joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57c650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x653510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x57c680
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e98
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x57c6bc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x57c6bc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e98
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x57c7a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x57c6e4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x57c717
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0054418d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e98
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x57c7a3
cmp eax, 1
jle 0x57c776
cmp eax, 3
jne 0x57c7a3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0057a9d0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e98
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x57c793
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00568bb8
add esp, 0x10
cmp edi, eax
jne 0x57c7a3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x57c6a7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e98
mov esp, ebp
pop ebp
ret 4
Function at 0x57dd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57dde4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57ddd3
jg 0x57dd48
test edx, edx
je 0x57ddd3
call fcn.00458c90
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57dd98
jg 0x57dd5e
test esi, esi
je 0x57dd98
cmp ebx, eax
jg 0x57dd6d
jl 0x57dd68
cmp edi, esi
jae 0x57dd6d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00526b60
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x57ddba
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x57ddcd
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x57dd48
jl 0x57ddcd
test edi, edi
jne 0x57dd48
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57de03
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x57de05
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57dead
jg 0x57de1f
test esi, esi
je 0x57dead
test eax, eax
jl 0x57de5e
jg 0x57de29
test ebx, ebx
je 0x57de5e
cmp edi, eax
jg 0x57de38
jl 0x57de33
cmp esi, ebx
jae 0x57de38
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00526b60
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x57de64
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x57dead
jg 0x57de6e
test esi, esi
je 0x57dead
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x57dead
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x57de99
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005cba00
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57dec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x57df8e
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x57df7d
jg 0x57def8
test edx, edx
je 0x57df7d
call fcn.004594e0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x57df46
jg 0x57df0e
test esi, esi
je 0x57df46
cmp ebx, eax
jg 0x57df1d
jl 0x57df18
cmp edi, esi
jae 0x57df1d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00526b60
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x57df6a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x57df77
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x57def8
jl 0x57df77
test edi, edi
jne 0x57def8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x57dfad
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x57dfaf
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x57e028
jg 0x57dfc1
test esi, esi
je 0x57e028
test eax, eax
jl 0x57e002
jg 0x57dfcb
test ebx, ebx
je 0x57e002
cmp edi, eax
jg 0x57dfda
jl 0x57dfd5
cmp esi, ebx
jae 0x57dfda
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00526b60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x57e005
mov edx, dword [ebp + 8]
test edi, edi
jl 0x57e028
jg 0x57e00f
test esi, esi
je 0x57e028
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x57e028
push eax
push esi
push 1
push edx
call fcn.00568bb8
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a9f80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005aa590
add esp, 8
test al, al
je 0x5a9fa5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5a9fa5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5aa590
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5aba40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5aba6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5aba6b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x403860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
sti
test al, 2
mov dh, 0
xor bl, 0x10
rol byte [eax], 1
push ebx
push esi
sub cl, al
add byte [edi], cl
invalid

Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406ff9
test eax, eax
jne 0x405e30
test ebp, edi
add byte [eax], al
add byte [ebx - 0x74f723c3], al
unpcklps xmm1, xmmword [edi]
mov esi, gs
add byte [eax], al
add byte [ecx + 0x410384], ah
cmp dword [0xf8b08dc], 0x14
jl 0x405e2e
mov eax, dword [0x410384]
test eax, eax
jne 0x407e32
mov dword [0xfd0384], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test dword [edx + 0x74], esp
bound esi, qword [eax + edx*2 + 0x5f]
pop eax
adc eax, 0xc0850041
jne 0x405d2e
pop ebp
push 0x8cf410
push 4
out 0x86, al
dec ebx
add byte [eax], al
int 0xc4
or al, 0xe9
pop eax
add eax, dword [ecx]
test eax, eax
xchg dword [edi + ebp*4 - 0x73000000], eax
dec ebp
cld
push ecx
stosb byte es:[edi], al
mov edx, eax
mov ecx, esi
test esi, esi
je 0x405db3
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
call 0x77408fd0
mov ecx, dword [ebp - 0x56]
daa
les eax, [eax + 0x56]
bound eax, qword [ecx]
call dword [0xb140c058]
push ebx
invalid
xor eax, dword [edi + 0x5f]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
ret
Function at 0x407b68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x805440]
jne 0x407b72
repz ret
jmp fcn.004099a6

Function at 0x4088cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x805440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405f13
and dword [ebp - 0x14], 0
cmp dword [0x8075bc], 0
mov dword [ebp - 0x18], eax
jne 0x40897e
push 0x4022c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408a26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022b8
push ebx
call edi
test eax, eax
je 0x408a26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4022a8
push ebx
mov dword [0x8075bc], eax
call edi
push eax
call esi
push 0x402294
push ebx
mov dword [0x8075c0], eax
call edi
push eax
call esi
push 0x402278
push ebx
mov dword [0x8075c4], eax
call edi
push eax
call esi
mov dword [0x8075cc], eax
test eax, eax
je 0x40897e
push 0x402260
push ebx
call edi
push eax
call esi
mov dword [0x8075c8], eax
mov eax, dword [0x8075c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4089d7
cmp dword [0x8075cc], ecx
je 0x4089d7
push eax
call esi
push dword [0x8075cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4089d7
test ebx, ebx
je 0x4089d7
call edi
test eax, eax
je 0x4089ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4089ce
test byte [ebp - 8], 1
jne 0x4089d7
or dword [ebp + 0x10], 0x200000
jmp 0x408a0a
mov eax, dword [0x8075c0]
cmp eax, dword [ebp - 0x18]
je 0x408a0a
push eax
call esi
test eax, eax
je 0x408a0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408a0a
mov eax, dword [0x8075c4]
cmp eax, dword [ebp - 0x18]
je 0x408a0a
push eax
call esi
test eax, eax
je 0x408a0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8075bc]
call esi
test eax, eax
je 0x408a26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408a28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407b68
leave
ret
Function at 0x801860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xb8b648], ax
mov word [0xb8b64c], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xb8b648
mov dword [0xb8b654], 0x320033
mov dword [0xb8b65c], 0x6c006c
mov word [0xb8b64e], cx
mov dword [0xb8b650], 0x6c0065
mov dword [0xb8b658], 0x64002e
mov word [0xb8b64a], dx
mov word [0xb8b660], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xb8b644]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xb8b640], eax
mov eax, dword [0x80c694]
push edx
push eax
mov byte [0x80790b], 0x65
mov dword [0x807901], 0x75747269
mov word [0x807905], 0x6c61
mov byte [0x807900], 0x56
mov word [0x80790c], 0x7463
mov byte [0x80790e], 0
mov dword [0x807907], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x801950
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.00409120
cmp dword [0xb8b644], 0x37
jne 0x801a1c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x402c2c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x402c48
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x402c5c
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402c7c
push 0x402c98
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x402cd4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x402cf0
push 0x402d10
push 0x402d2c
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb8c638]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x80c694]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x801be0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb8b644]
sub esp, 0x48c
push ebx
push ebp
push esi
mov esi, dword [0x80c694]
shr eax, 3
push edi
test eax, eax
je 0x801db0
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jmp 0x801c14
mov esi, dword [esp + 0x14]
cmp dword [0xb8b644], 0x1c
jne 0x801c31
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x805dc0]
mov eax, dword [0x805dc4]
mov ecx, dword [0x805dc8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [0x805dcc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x24]
mov esi, ebx
shr esi, 5
cmp dword [0xb8b644], 0x1b
mov dword [esp + 0x10], eax
jne 0x801cad
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x9c]
push ecx
push 0
push 0x402b00
push 0x402b6c
push 0x402ba0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x28]
lea ecx, [ebx + ebp]
xor esi, ecx
xor esi, eax
sub edi, esi
mov eax, edi
shl eax, 4
mov dword [0xb8b5b4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
cmp dword [0xb8b644], 0x1be
jne 0x801cf2
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0xb8b644], 0x979
mov dword [0xb8b5b8], 0xff6b3619
mov dword [0xb8b5bc], 0xffffffff
jne 0x801d2f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x18]
mov dword [esp + 0x10], eax
jne 0x801c6a
cmp dword [0xb8b644], 0x8d4
jne 0x801d67
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0xb8b644], 0x17
jne 0x801d9f
push 0
push 0
push 0
push 0x402bec
push 0x402c20
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x801c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c
ret
Function at 0x405158
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d420]
jne 0x405162
repz ret
jmp fcn.004073f3

Function at 0x405b50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004038c4
and dword [ebp - 0x14], 0
cmp dword [0x40e7d8], 0
mov dword [ebp - 0x18], eax
jne 0x405c03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405cab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405cab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e7e0], eax
call edi
push eax
call esi
mov dword [0x40e7e8], eax
test eax, eax
je 0x405c03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e7e4], eax
mov eax, dword [0x40e7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405c5c
cmp dword [0x40e7e8], ecx
je 0x405c5c
push eax
call esi
push dword [0x40e7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405c5c
test ebx, ebx
je 0x405c5c
call edi
test eax, eax
je 0x405c53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405c53
test byte [ebp - 8], 1
jne 0x405c5c
or dword [ebp + 0x10], 0x200000
jmp 0x405c8f
mov eax, dword [0x40e7dc]
cmp eax, dword [ebp - 0x18]
je 0x405c8f
push eax
call esi
test eax, eax
je 0x405c8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405c8f
mov eax, dword [0x40e7e0]
cmp eax, dword [ebp - 0x18]
je 0x405c8f
push eax
call esi
test eax, eax
je 0x405c8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e7d8]
call esi
test eax, eax
je 0x405cab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405cad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405158
leave
ret
Function at 0x403cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x403cbb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x403d77
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
sub edi, 1
jne 0x403cd0
pop edi
test esi, esi
je 0x403d9a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
sub esi, 1
jne 0x403d80
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x404520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 0xc], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x40457c
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404564
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429319
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
xor ecx, ebp
div dword [ebp - 0xc]
pop edi
pop esi
pop ebx
call fcn.00429319
mov esp, ebp
pop ebp
ret
Function at 0x4045c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x404605
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404600
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x404632
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x404616
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x404650
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429319
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40463d
cmp byte [esi + 8], 0
je 0x40463d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429319
mov esp, ebp
pop ebp
ret