joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405663
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256d8], 0x44
push eax
xor eax, eax
push 0x4256d8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40569e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405728
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b2f
mov edi, eax
cmp edi, 0xffffffff
je 0x405769
test byte [esp + 0x10], 1
push esi
je 0x40574b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405751
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40575a
xor eax, eax
inc eax
jmp 0x40576b
test byte [esp + 0x10], 4
jne 0x405769
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405770
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a3b
test bl, 8
mov dword [ebp - 8], eax
je 0x4057af
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429268], eax
jmp 0x40592c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057c9
test eax, eax
je 0x4058da
test bl, 2
je 0x4058da
mov esi, 0x4246d8
push edi
push esi
call fcn.00405ee8
cmp dword [ebp + 8], 0
je 0x4057e8
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4057ee
push edi
call fcn.0040597f
cmp word [edi], 0
jne 0x4057fe
cmp word [0x4246d8], 0x5c
jne 0x405809
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058cf
cmp word [ebp - 0x22c], 0x2e
jne 0x405853
cmp word [ebp - 0x22a], 0
je 0x4058b2
cmp word [ebp - 0x22a], 0x2e
jne 0x405853
cmp word [ebp - 0x228], 0
je 0x4058b2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405ee8
test byte [ebp - 0x258], 0x10
je 0x40587e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058b2
push dword [ebp + 0xc]
push edi
call fcn.00405770
jmp 0x4058b2
push dword [ebp - 4]
push edi
call fcn.00405728
test eax, eax
jne 0x4058aa
cmp dword [ebp - 4], eax
je 0x4058a2
push edi
push 0xfffffffffffffff1
call fcn.00405192
push 0
push edi
call fcn.00405d82
jmp 0x4058b2
inc dword [0x429268]
jmp 0x4058b2
push edi
push 0xfffffffffffffff2
call fcn.00405192
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40582b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058da
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40592c
cmp dword [ebp - 8], esi
jne 0x4058ee
inc dword [0x429268]
jmp 0x40592c
push edi
call fcn.0040622b
test eax, eax
je 0x40592c
push edi
call fcn.00405933
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405728
test eax, eax
jne 0x405924
cmp dword [ebp - 4], esi
je 0x4058e6
push edi
push 0xfffffffffffffff1
call fcn.00405192
push esi
push edi
call fcn.00405d82
jmp 0x40592c
push edi
push 0xffffffffffffffe5
call fcn.00405192
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a3b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ed8
push esi
call fcn.00405ee8
push esi
call fcn.004059de
mov edi, eax
test edi, edi
jne 0x405a5c
xor eax, eax
jmp 0x405ab4
push edi
call fcn.0040617c
test byte [0x4291f8], 0x80
je 0x405a79
mov ax, word [edi]
test ax, ax
je 0x405a58
cmp ax, 0x5c
je 0x405a58
sub edi, esi
sar edi, 1
jmp 0x405a93
call fcn.0040622b
test eax, eax
je 0x405a8d
test byte [eax], 0x10
je 0x405a58
push esi
call fcn.0040597f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405a7f
call fcn.00405933
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b2f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b4e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405b54
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405b83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40953c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409540]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405bd3
test edi, edi
jne 0x405b90
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405bcd
Function at 0x405c06
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d70
push 0x409560
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405c55
push 1
push 0
push esi
call fcn.00405b54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405d7c
cmp eax, edi
jg 0x405d7c
mov esi, 0x426570
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405d7c
cmp eax, edi
jg 0x405d7c
push esi
push ebx
push str._ls_ls_r_n
push 0x425970
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f0a
push 4
push 0xc0000000
push esi
call fcn.00405b54
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405d7c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d75
push edi
push esi
push ebp
call fcn.00405bd7
test eax, eax
je 0x405d75
push str._Rename__r_n
push esi
call fcn.00405ab9
test eax, eax
jne 0x405d0b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d40
add eax, 0xa
push 0x409544
push eax
call fcn.00405ab9
mov ebp, eax
test ebp, ebp
je 0x405d3c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d2d
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d27
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405d42
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425970
push eax
call fcn.00405b0f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405db5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e29
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405e16
cmp dword [ebp + 0x14], 1
je 0x405e19
cmp dword [ebp + 0x14], 2
je 0x405e19
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x406337
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406311
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x40630c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406368
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x40634a
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x689c6831
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x297177ed
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x8ccb9e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8cc92e
add eax, eax
sub eax, eax
call fcn.008ccbd2
add eax, edx
and eax, eax
inc edx
xor dword [ebx], esi
mov edx, edx
or edx, eax
inc ebx
push edx
pop edx
cmp ebx, ecx
jne fcn.008ccb9e
mov edx, 0x3e5734f7
push 0x72290019
pop eax
add edx, eax
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp fcn.00431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x27a46e45
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x77170385
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x24313b8e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3a8b4210
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x62ac31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323d0
cmp edx, dword [eax]
je 0x62ac53
add eax, 8
inc ecx
cmp eax, 0x632460
jl 0x62ac44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323d0]
jne 0x62ad81
mov eax, dword [0x639d60]
cmp eax, 1
je 0x62ad5b
test eax, eax
jne 0x62ac84
cmp dword [0x6322f8], 1
je 0x62ad5b
cmp edx, 0xfc
je 0x62ad81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62acbb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062b610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062baa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62acfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062baa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f9ec
push edi
call fcn.0062d970
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062b610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062b620
lea eax, [ebp - 0xa0]
push 0x62f9cc
push eax
call fcn.0062b620
push dword [esi + 0x6323d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062b620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d8e4
add esp, 0x2c
pop edi
jmp 0x62ad81
lea eax, [ebp + 8]
lea esi, [esi + 0x6323d4]
push 0
push eax
push dword [esi]
call fcn.0062baa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40121e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 8]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x401246
xor esi, esi
inc esi
jmp 0x401292
lea edi, [ebp - 0x214]
push 0x208
push 0
push edi
call fcn.006030b0
add esp, 0xc
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x401290
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401283
push edi
call fcn.0040121e
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
jmp 0x401292
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00517c1a
mov eax, esi
add esp, 0x20c
pop esi
pop edi
pop ebp
ret
Function at 0x401b54
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x664
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0x260]
push 0x250
push edi
push ebx
call fcn.006030b0
add esp, 0xc
lea esi, [ebp - 0x468]
push 0x208
push edi
push esi
call fcn.006030b0
add esp, 0xc
push 0x639270
push dword [ebp + 8]
push 0x639278
push 0xffffffffffffffff
push 0x103
push esi
call fcn.00401af6
add esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401cb8
mov esi, eax
lea edi, [ebp - 0x234]
lea ebx, [ebp - 0x670]
push 0x639284
push edi
call fcn.006207b6
add esp, 8
test eax, eax
je 0x401c86
push 0x639288
push edi
call fcn.006207b6
add esp, 8
test eax, eax
je 0x401c86
test byte [ebp - 0x260], 0x10
jne 0x401c54
push 0x208
push 0
push ebx
call fcn.006030b0
add esp, 0xc
push edi
push dword [ebp + 8]
push 0x639278
push 0xffffffffffffffff
push 0x103
push ebx
call fcn.00401af6
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c86
test al, 1
je 0x401c4b
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401c86
push 0x208
push 0
push ebx
call fcn.006030b0
add esp, 0xc
push edi
push dword [ebp + 8]
push 0x639278
push 0xffffffffffffffff
push 0x103
push ebx
call fcn.00401af6
add esp, 0x18
push ebx
call fcn.00401b54
add esp, 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401bd2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
mov eax, edi
add esp, 0x664
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402018
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1214
call fcn.00517f10
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
cmp dword [ebp + 8], 0
je 0x402119
cmp dword [ebp + 0xc], 0
je 0x402119
lea eax, [ebp - 0x121c]
lea ecx, [ebp - 0x1010]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x402117
mov esi, dword [ebp - 0x121c]
shr esi, 2
lea edi, [ebp - 0x1218]
push 0x208
push 0
push edi
call fcn.006030b0
add esp, 0xc
mov dword [ebp - 0x1220], esi
test esi, esi
je 0x402117
xor ebx, ebx
push 0x208
xor esi, esi
push esi
push edi
call fcn.006030b0
add esp, 0xc
push dword [ebp + ebx*4 - 0x1010]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test eax, eax
je 0x402107
push 0x104
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x402107
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push dword [ebp + 0xc]
push eax
call fcn.0061c41c
add esp, 8
test eax, eax
jne 0x402107
mov eax, dword [ebp + 8]
push eax
call fcn.006208d5
add esp, 4
push eax
push dword [ebp + 8]
push edi
call fcn.0061c762
add esp, 0xc
test eax, eax
je 0x402130
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp dword [ebp - 0x1220], ebx
jne 0x402097
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
mov eax, esi
add esp, 0x1214
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x402119

Function at 0x40213c
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x20c
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x214]
push 0x208
push 0
push esi
call fcn.006030b0
add esp, 0xc
push 0x104
push esi
push str._windir__fontsmsyh.ttf
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
add esp, 0x20c
pop esi
pop ebx
pop ebp
ret
Function at 0x40465e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x639712
mov esi, 0x103
push 0x639704
push ebx
push esi
push 0x70bd9c
call fcn.00404830
add esp, 0x10
call fcn.0040488c
mov edi, 0x770730
push edi
push ebx
push esi
push 0x70bfa4
call fcn.00404830
add esp, 0x10
call fcn.0040488c
push edi
push ebx
push esi
push 0x70c1ac
call fcn.00404830
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push esi
push 0x70c3b4
call fcn.00404830
add esp, 0x10
mov eax, dword [ebp + 8]
push dword [eax]
push 0x639718
push esi
push 0x70c9cc
call fcn.00404830
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x424]
mov dword [edi], eax
lea ebx, [ebp - 0x218]
push 0x208
push eax
push ebx
call fcn.006030b0
add esp, 0xc
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call fcn.004048fa
add esp, 0x10
test eax, eax
je 0x40476d
push esi
push 0x70c7c4
push ebx
call fcn.00404968
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
cmove eax, ebx
push eax
push 0x639712
push esi
push 0x70c5bc
call fcn.00404830
add esp, 0x10
push dword [ebp - 0x424]
push 0x639718
push esi
push 0x70cbd4
call fcn.00404830
add esp, 0x10
jmp 0x404784
push str.unknown
push 0x103
push 0x70c5bc
call fcn.00404830
add esp, 0xc
lea esi, [ebp - 0x420]
push 0x208
push 0
push esi
call fcn.006030b0
sub esp, 0x18
movaps xmm0, xmmword [0x639290]
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], esi
lea eax, [ebp - 0x434]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x430]
mov dword [esp + 8], eax
lea eax, [ebp - 0x42c]
mov dword [esp + 4], eax
lea edi, [ebp - 0x428]
mov dword [esp], edi
call fcn.00488220
add esp, 0x24
mov eax, dword [edi]
test eax, eax
je 0x404804
push esi
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
push eax
push str._d._d._d__s
push 0x103
push 0x70cddc
call fcn.00404830
add esp, 0x1c
push 0x104
push 0x70cfe4
call fcn.00404a38
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret