joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b68
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ba5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402bc5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d04
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ca8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ca8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e4f
inc ebx
jmp 0x402e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e6c
lea eax, [ebp - 8]
call fcn.00404a94
ret

Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a94
test esi, esi
jne 0x402eab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b84
jmp 0x402ecc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca8
mov dword [esp], eax
test esi, esi
je 0x402ecc
cmp dword [ebx], 0
je 0x402ecc
dec esi
jmp 0x402eb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d24
xor eax, eax
push ebp
push 0x403d1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41c020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404910
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d044], 0
je 0x404971
cmp word [0x41d218], 0xd7b2
jne 0x404939
cmp dword [0x41d220], 0
jbe 0x404939
mov eax, 0x41d214
call dword [0x41d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41c0b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404998
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41c02c], 0
jne 0x40498d
push 0
push 0x41c0b0
push 0x41c0b8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403630
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bd
lea eax, [ebp - 0x10]
call fcn.00404a94
ret

Function at 0x408350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408369
test al, 0x10
jne 0x40836d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4084b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f30
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4084d6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40af58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40af91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b84
jmp 0x40af9a
mov eax, ebx
mov edx, esi
call fcn.00404ae8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40afa4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40afc5
mov al, byte [esp]
jmp 0x40afc7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c4cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c530
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c537
lea eax, [ebp - 0xc]
call fcn.00404a94
ret
Function at 0x419110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4191e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov esi, eax
mov eax, edi
mov edx, esi
call fcn.004050bc
mov eax, dword [edi]
call fcn.00404f30
push eax
push esi
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4191c6
mov eax, dword [edi]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404ae8
test bl, bl
je 0x4191cd
push dword [edi]
push 0x419200
lea eax, [ebp - 0x14]
mov edx, dword [0x41ccc8]
add edx, 0x907
mov ecx, 0xb
call fcn.00404d04
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040c2c8
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404ae8
jmp 0x4191cd
mov eax, edi
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4191ef
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404ab8
ret

Function at 0x4192fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x419398
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004050bc
push esi
mov eax, dword [ebx]
call fcn.00404f30
push eax
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x419376
mov eax, dword [ebx]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404ae8
jmp 0x41937d
mov eax, ebx
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41939f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret
Function at 0x419470
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
xor eax, eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004053e0
xor eax, eax
push ebp
push 0x419677
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x15c]
mov ecx, 0x41968c
call fcn.00404d7c
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
mov edx, 0x10
call fcn.00408548
mov ebx, eax
test ebx, ebx
jne 0x4195d3
xor eax, eax
push ebp
push 0x4195cc
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4195b3
mov eax, dword [ebp - 0x14c]
mov edx, 0x419698
call fcn.00404e7c
je 0x41959e
mov eax, dword [ebp - 0x14c]
mov edx, 0x4196a4
call fcn.00404e7c
je 0x41959e
test byte [ebp - 0x150], 0x10
je 0x41959e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
inc eax
push eax
lea eax, [ebp - 0x160]
mov ecx, 0x4196b0
mov edx, dword [ebp - 0x14c]
call fcn.00404d7c
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
pop ecx
call fcn.00405018
mov eax, dword [ebp + 8]
push eax
call fcn.00419470
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
mov ebx, eax
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
sub ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
pop edx
call fcn.00404fd0
lea eax, [ebp - 0x158]
call fcn.00408598
mov ebx, eax
test ebx, ebx
je 0x4194f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195d3
lea eax, [ebp - 0x158]
call fcn.004085bc
ret
lea edx, [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040c308
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00404b2c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.004084b4
mov eax, dword [0x41ccc8]
mov al, byte [eax + 0x917]
sub al, 1
jb 0x419615
je 0x419622
jmp 0x419637
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00408894
jmp 0x419637
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41967e
lea eax, [ebp - 0x164]
call fcn.00404a94
lea eax, [ebp - 0x160]
call fcn.00404a94
lea eax, [ebp - 0x15c]
call fcn.00404a94
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004054a4
ret
Function at 0x41972c
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41993a
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4197f8
mov eax, dword [0x41ccc8]
cmp byte [eax + 0x915], 0
jne 0x4197f8
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040af0c
mov edx, dword [ebp - 4]
mov eax, 0x419950
call fcn.00405074
test eax, eax
jne 0x41979c
push ebx
push 0x41995c
push 0x41995c
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404df0
jmp 0x4197c0
mov al, byte [0x419960]
push eax
lea eax, [ebp - 8]
push eax
mov edx, 0x419950
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040caa8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404b2c
push 0x40010
push 0
mov eax, dword [ebp - 4]
call fcn.00404f30
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x41caf0]
push eax
call sub.user32.dll_DestroyWindow
mov eax, dword [0xe1f534]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0xe1f538]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41ccc8]
cmp byte [eax], 1
jne 0x41989b
mov eax, dword [0x41ccc8]
cmp byte [eax + 0x917], 2
je 0x41989b
mov eax, dword [0xe1f524]
call fcn.00405844
mov esi, eax
test esi, esi
jl 0x419877
inc esi
xor ebx, ebx
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
xor edx, edx
call fcn.004084b4
mov eax, dword [0x41ccc8]
mov al, byte [eax + 0x917]
sub al, 1
jb 0x41984d
je 0x41985c
jmp 0x419873
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
call fcn.004085d8
jmp 0x419873
push 4
push 0
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
inc ebx
dec esi
jne 0x41982b
mov eax, dword [0xe1f528]
call fcn.00405844
mov ebx, eax
cmp ebx, 0
jl 0x41989b
mov eax, dword [0xe1f528]
mov eax, dword [eax + ebx*4]
call fcn.004196b4
dec ebx
cmp ebx, 0xffffffff
jne 0x419888
test edi, edi
jne 0x419904
cmp dword [0x41cae8], 0
je 0x419904
push 0
push 0
push 0x41996c
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e74
push dword [ebp - 0x10]
push 0x41996c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0xc]
call fcn.00404f30
push eax
mov eax, dword [0x41cae8]
call fcn.00404f30
push eax
push 0x419970
push 0
call sub.shell32.dll_ShellExecuteA
push 4
push 0
mov eax, dword [0x41cae8]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
cmp dword [0x41cb04], 0
je 0x419918
mov eax, dword [0x41cb04]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
call fcn.00404a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419941
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ab8
ret
Function at 0x428610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x414015
lea edi, [esi - 0x13015]
push edi
or ebp, 0xffffffff
jmp 0x428632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428628
mov eax, 1
add ebx, ebx
jne 0x42864b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428640
jne 0x42865c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428640
xor ecx, ecx
sub eax, 3
jb 0x428670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4286e2
mov ebp, eax
add ebx, ebx
jne 0x42867b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4286ac
inc ecx
add ebx, ebx
jne 0x428698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42868d
jne 0x4286a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42868d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4286cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4286bd
jmp 0x42862e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4286cc
add edi, ecx
jmp 0x42862e
pop esi
mov edi, esi
mov ecx, 0x98e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4286ea
cmp byte [edi], 9
jne 0x4286ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4286ef
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x42875e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2806c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42871c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28074]
or eax, eax
je 0x428758
mov dword [ebx], eax
add ebx, 4
jmp 0x428739
call dword [esi + 0x28070]
mov ebp, dword [esi + 0x28078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x428792
sub esp, 0xffffff80
jmp 0x401130
Function at 0x401c57
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xa450c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x401ca0
push str.SetDefaultDllDirectories
push 0xa12570
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ca0
push 0xc00
call eax
test eax, eax
jne 0x401d3c
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401d3c
cmp eax, 0x104
ja 0x401d3c
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401cd7
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x401d3b
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401cf8
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x401cf5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00997730
leave
ret
Function at 0x4053f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
lea ebx, [esi + 0xc8]
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4054a8
mov edi, ebx
mov dword [ebp - 4], ecx
mov eax, ecx
cmp dword [edi + 8], edx
je 0x405484
push edi
call fcn.004053c5
mov eax, dword [ebp - 4]
xor edx, edx
add edi, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x405474
cmp dword [esi + 0x5c], 0
je 0x4054a3
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040639a
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul edx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add edx, esi
push edx
mov dword [ebp - 4], edx
call fcn.0040539f
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
push dword [ebp - 4]
call fcn.00406311
mov edi, eax
test edi, edi
je 0x405529
and dword [esi + 0x44], 0
push 0x20
pop esi
push ebx
call fcn.00405321
add ebx, 0x28
sub esi, 1
jne 0x405518
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40553d
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405551
cmp dword [esi + 0x40], edx
jne 0x405551
cmp dword [esi + 0x3c], edx
jne 0x405551
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret 4

Function at 0x406639
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009efe6b
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406665
call fcn.0040654b
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x408108
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa0e7eb
call fcn.009979da
cmp byte [0xa46f54], 0
mov edi, dword [ebp + 8]
jne 0x408155
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004076e2
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.009979a4
pop ecx
test esi, esi
jne 0x408163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408167
xor al, al
jmp 0x40819c
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408144
mov al, 1
jmp 0x40819c
lea ecx, [ebp - 0x50]
call fcn.0040898f
lea ecx, [ebp - 0x28]
call fcn.00406b2f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00408b57
test al, al
je 0x408191
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.009979a4
pop ecx
mov al, bl
call fcn.009979b7
ret 4

Function at 0x4081a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa46f54], 0
jne 0x4081e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009979a4
pop ecx
test esi, esi
pop esi
jne 0x4081de
xor al, al
jmp 0x4081f2
mov al, 1
jmp 0x4081f2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x408368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409168
cmp eax, 0xffffffff
je 0x408395
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x408395
and eax, 0xfffffffe
push eax
push esi
call fcn.004088fe
test al, al
je 0x4083bf
cmp byte [0xa46f54], 0
push esi
jne 0x4083c7
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009979a4
pop ecx
test esi, esi
jne 0x4083c3
xor al, al
jmp 0x4083d2
mov al, 1
jmp 0x4083d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret 4

Function at 0x408646
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa46f54], 0
jne 0x408682
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009979a4
pop ecx
test esi, esi
pop esi
jne 0x40867e
xor al, al
jmp 0x408690
mov al, 1
jmp 0x408690
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4