joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410650
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47808c
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00402eb0
mov dword [esp + 0x1c], 0
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.00402eb0
mov byte [esp + 0x1c], 1
lea ebp, [esi + 0x1c]
mov ecx, ebp
call fcn.00402eb0
mov byte [esp + 0x1c], 2
lea ecx, [esi + 0x28]
call fcn.00402eb0
mov byte [esp + 0x1c], 3
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push 0
mov dword [esi + 4], ecx
push 0x484714
mov ecx, edi
mov dword [esi], eax
mov dword [esi + 8], edx
call fcn.00409170
xor edi, edi
push edi
push 0x484714
mov ecx, ebx
call fcn.00409170
push edi
push 0x484714
mov ecx, ebp
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.00409170
push edi
push 0x484714
lea ecx, [esi + 0x28]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.00409170
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x414190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x476890
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4968d4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0x414]
call dword [0x497c84]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
mov byte [ebp - 4], 1
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x414216
call fcn.004167b0
mov edi, eax
jmp 0x414343
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41422f
call fcn.004167b0
jmp 0x41433a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x414248
call fcn.004167b0
jmp 0x41433a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x414289
mov byte [ebp - 4], 0
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x414270
lea eax, [ebp]
call fcn.00415740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00416800
mov eax, 0x8007000e
jmp 0x414360
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
test edx, edx
ja 0x4142a3
cmp eax, 0xffffffff
jbe 0x4142ad
push 0x80070057
call fcn.00402a10
cmp eax, 0x400
jbe 0x4142c6
lea edx, [ebp]
push edx
call fcn.00415750
mov dword [ebp - 4], 1
jmp 0x4142f0
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x4142f0
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4142fe
mov edi, 0x8007000e
jmp 0x41433c
call dword [0x497c84]
push edi
push ebx
push edi
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41431f
call fcn.004167b0
jmp 0x41433a
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
push eax
mov ecx, dword [ebp]
lea edx, [ebp - 0x28]
call fcn.00414390
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x414357
lea eax, [ebp]
call fcn.00415740
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00454567
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4156e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4156f3
push 0x80004005
call fcn.00402a10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x415700
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x415890
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4761cb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x244]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x23c], esi
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push esi
push ebx
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x4159c2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x41591e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
cmp eax, esi
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x14], ecx
jne 0x4159c2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x24]
push edx
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x40]
push edx
push esi
push ecx
mov dword [esp + 0x38], 0x100
call edi
test eax, eax
jne 0x4159a2
jmp 0x415960
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00415890
mov ebx, eax
cmp ebx, esi
jne 0x415a0c
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
mov dword [esp + 0x38], 0x100
call edi
test eax, eax
je 0x415960
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4159b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov edx, dword [ebp]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4159e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, edi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00454567
add esp, 0x22c
ret 4
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x415a2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, ebx
jmp 0x4159e2
Function at 0x419ce0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x476deb
mov eax, dword fs:[0]
push eax
mov eax, 0xeac0
call fcn.00455e70
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0xeabc], eax
push ebp
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0xeac8]
mov dword fs:[0], eax
xor ebp, ebp
push 0x4e1e
lea eax, [esp + 0x9caa]
push ebp
push eax
mov word [esp + 0x9cb0], bp
call fcn.00455df0
push 0x44
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.00455df0
xor eax, eax
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.00402eb0
mov dword [esp + 0xead0], ebp
push 0x4e1e
lea edx, [esp + 0x6a]
push ebp
push edx
mov word [esp + 0x70], bp
call fcn.00455df0
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push 0x2710
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4e1e
lea ecx, [esp + 0x4e8a]
push ebp
push ecx
mov word [esp + 0x4e90], bp
call fcn.00455df0
push edi
lea edx, [esp + 0x74]
push edx
push str._s_s
push 0x2710
lea eax, [esp + 0x4ea0]
push 0x2710
push eax
call fcn.00455549
push esi
lea ecx, [esp + 0x4eac]
push ecx
push str._s__s
push 0x2710
lea edx, [esp + 0x9cd8]
push 0x2710
push edx
call fcn.00455549
add esp, 0x3c
push 1
push ebp
push esi
lea eax, [esp + 0x4e90]
push eax
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x419e4c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x9cc4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x419e4c
mov dword [esp + 0xead0], 0xffffffff
lea ecx, [esp + 8]
call fcn.00406bc0
xor eax, eax
jmp 0x419e65
mov dword [esp + 0xead0], 0xffffffff
lea ecx, [esp + 8]
call fcn.00406bc0
mov eax, 1
mov ecx, dword [esp + 0xeac8]
mov dword fs:[0], ecx
pop ecx
pop ebp
mov ecx, dword [esp + 0xeabc]
xor ecx, esp
call fcn.00454567
add esp, 0xeacc
ret
Function at 0x419fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47870f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi], 0x2710
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [esp + 0x14], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esp + 0x14], 2
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [esp + 0x14], 3
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov byte [esp + 0x14], 4
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov byte [esp + 0x14], 5
lea eax, [esi + 0x78]
push eax
call fcn.0041ad20
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x41c970
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x121c
call fcn.00455e70
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x1218], eax
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x41cac6
mov ecx, dword [0x485dd8]
mov edx, dword [str._unknown_]
mov eax, dword [0x485dd4]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0x1f4
mov dword [esp + 0x1024], ecx
mov dword [esp + 0x101c], edx
mov edx, dword [0x485ddc]
mov dword [esp + 0x1020], eax
mov eax, dword [0x485de0]
lea ecx, [esp + 0x1030]
push 0
push ecx
shr ebp, 2
mov dword [esp + 0x1030], edx
mov dword [esp + 0x1034], eax
call fcn.00455df0
add esp, 0xc
xor edi, edi
test ebp, ebp
jbe 0x41cac4
push esi
mov edi, edi
mov eax, dword [esp + edi*4 + 0x1c]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41cab1
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41cab1
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x1020]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea ecx, [esp + 0x101c]
mov eax, str.HGWC.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ca8c
test dx, dx
je 0x41ca88
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ca8c
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ca66
xor eax, eax
jmp 0x41ca91
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41cab1
push eax
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41cab1
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, ebp
jb 0x41ca10
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.00454567
add esp, 0x121c
ret
Function at 0x41e670
Capabilities:
Read .ini file

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0x41e67b
mov ecx, dword [ecx + 8]
jmp 0x41e67e
add ecx, 8
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x41e68d
mov edx, dword [eax + 4]
jmp 0x41e690
lea edx, [eax + 4]
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x41e6ab
mov eax, dword [eax + 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 8
push ecx
push 0
add eax, 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 8

Function at 0x41e940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
cmp dword [eax], 0
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, ecx
je 0x41e9d0
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e985
sub eax, edx
push eax
lea edx, [esp + 0x10]
add esi, 4
push edx
mov ecx, esi
call fcn.004092c0
cmp byte [esp + edi + 0xb], 0x5c
pop edi
mov ecx, esi
jne 0x41e9b6
push 0xffffffffffffffff
push 0
push ebx
call fcn.0041e710
jmp 0x41e9dd
push 1
push 0x47a8f0
call fcn.0041e810
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.0041e710
jmp 0x41e9dd
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esi + 4]
call fcn.004087c0
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.00454567
add esp, 0x108
ret 8
Function at 0x41ea00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47311b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x47c]
mov esi, ecx
push 0x200
lea eax, [esp + 0x234]
push 0
mov ebp, 1
push eax
mov dword [esp + 0x448], ebp
call fcn.00455df0
push 0x200
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00455df0
add esp, 0x18
mov edi, 0x10
lea ecx, [ecx]
cmp dword [esp + 0x478], edi
mov eax, dword [esp + 0x464]
jae 0x41ea97
lea eax, [esp + 0x464]
push ebp
push eax
lea edx, [esp + 0x238]
push str._s_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [esi + 0x1c], edi
jb 0x41eab9
mov eax, dword [esi + 8]
jmp 0x41eabc
lea eax, [esi + 8]
cmp dword [esp + 0x45c], edi
mov ecx, dword [esp + 0x448]
jae 0x41ead3
lea ecx, [esp + 0x448]
push eax
push 0x200
lea eax, [esp + 0x38]
push eax
push 0x483884
lea edx, [esp + 0x240]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x30], 0
je 0x41eb66
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41eb15
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.004092c0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
mov byte [esp + 0x440], 2
call fcn.00406d10
cmp dword [esp + 0x2c], edi
mov byte [esp + 0x43c], 1
jb 0x41eb5e
mov edx, dword [esp + 0x18]
push edx
call fcn.00434567
add esp, 4
add ebp, 1
jmp 0x41ea80
cmp ebp, 1
jle 0x41ebc2
cmp dword [esp + 0x45c], edi
jb 0x41eb84
mov eax, dword [esp + 0x448]
push eax
call fcn.00434567
add esp, 4
cmp dword [esp + 0x478], edi
mov dword [esp + 0x45c], 0xf
mov dword [esp + 0x458], 0
mov byte [esp + 0x448], 0
jb 0x41ebbb
mov ecx, dword [esp + 0x464]
push ecx
call fcn.00434567
add esp, 4
mov eax, 1
jmp 0x41ec14
cmp dword [esp + 0x45c], edi
jb 0x41ebdb
mov edx, dword [esp + 0x448]
push edx
call fcn.00434567
add esp, 4
cmp dword [esp + 0x478], edi
mov dword [esp + 0x45c], 0xf
mov dword [esp + 0x458], 0
mov byte [esp + 0x448], 0
jb 0x41ec12
mov eax, dword [esp + 0x464]
push eax
call fcn.00434567
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00454567
add esp, 0x42c
ret 0x3c
Function at 0x42adb0
Capabilities:
Create directory

Disassembly:
sub esp, 0x514
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x510], eax
mov eax, dword [esp + 0x518]
push 0x100
lea ecx, [esp + 0x314]
push ecx
push 0x100
lea edx, [esp + 0x41c]
push edx
push 0x100
lea ecx, [esp + 0x1c]
push ecx
push 3
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00456442
lea eax, [esp + 0x2c]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42ae06
sub eax, edx
cmp eax, 1
ja 0x42ae40
test eax, eax
jne 0x42ae34
mov eax, 1
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00454567
add esp, 0x514
ret
mov al, byte [esp + 8]
cmp al, 0x5c
je 0x42ae1a
cmp al, 0x2f
je 0x42ae1a
push 0x104
lea eax, [esp + 0x10c]
push 0
push eax
call fcn.00455df0
lea eax, [esp + 0x14]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42ae60
push ebx
push ebp
sub eax, edx
push esi
lea ebx, [eax + 1]
xor esi, esi
test ebx, ebx
push edi
jbe 0x42af55
mov ebp, 1
lea ecx, [esp + 0x18]
sub ebp, ecx
jmp 0x42ae90
mov al, byte [esp + esi + 0x18]
cmp al, 0x5c
lea edi, [esp + esi + 0x18]
je 0x42aeab
cmp al, 0x2f
je 0x42aeab
lea edx, [edi + ebp]
cmp edx, ebx
jne 0x42af41
lea eax, [esp + 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42aeb5
sub eax, edx
je 0x42af41
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42aed0
sub eax, edx
lea eax, [esp + 0x118]
push eax
je 0x42af06
lea ecx, [esp + 0x14]
push ecx
push 0x47a9d4
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.00454fe6
add esp, 0x14
jmp 0x42af20
push 0x4843c0
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00454fe6
add esp, 0x10
push 0
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42af41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42af73
mov al, byte [edi]
mov byte [esp + esi + 0x118], al
add esi, 1
cmp esi, ebx
jb 0x42ae90
mov eax, 1
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454567
add esp, 0x514
ret
xor eax, eax
jmp 0x42af5a

Function at 0x42b150
Capabilities:
Read file on windows

Disassembly:
jmp 0x431ed0
sub esp, 8
mov eax, dword [ecx]
push 0x47bb58
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.004572a8
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x431f04
add esp, 8
ret
push eax
push 1
lea edx, [esp + 0xc]
push 4
push edx
call fcn.00457594
mov eax, dword [esp + 0x10]
push eax
call fcn.00456dad
mov eax, dword [esp + 0x18]
add esp, 0x14
add esp, 8
ret

Function at 0x42b160
Capabilities:
Write file on windows

Disassembly:
jmp 0x431e80
push ecx
mov eax, dword [ecx]
push 0x47bb28
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004572a8
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
je 0x431ecc
push eax
push 1
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00457162
mov eax, dword [esp + 0x10]
push eax
call fcn.00456fa7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00456dad
add esp, 0x18
pop ecx
ret 4
Function at 0x42b180
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, ecx
mov edx, dword [ebx + 4]
xor esi, esi
cmp edx, esi
push edi
je 0x42b257
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x42b1a1
xor eax, eax
jmp 0x42b1a9
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jne 0x42b257
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jle 0x42b257
push 0x47bb28
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call fcn.004572a8
add esp, 0xc
cmp dword [esp + 0x10], esi
je 0x42b257
mov ecx, dword [ebx + 4]
push ebp
push ecx
call fcn.00434562
add esp, 4
cmp dword [ebx + 4], esi
mov ebp, eax
jbe 0x42b21d
lea ecx, [ecx]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x42b203
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x42b208
call fcn.0045520c
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
setne al
mov byte [esi + ebp], al
add esi, 1
cmp esi, dword [ebx + 4]
jb 0x42b1f0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push ecx
push edx
push 1
push ebp
call fcn.00457162
mov eax, dword [esp + 0x24]
push eax
call fcn.00456fa7
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00456dad
push ebp
call fcn.00434567
add esp, 0x1c
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x42b260
Capabilities:
Get file size

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b2b0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b2a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebp
pop ecx
ret
push ebx
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b2e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
pop ebx
pop edi
pop esi
mov edx, ebp
pop ebp
pop ecx
ret
Function at 0x42b410
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x473c90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x49ec04]
mov edx, dword [eax + 0xc]
mov ecx, 0x49ec04
mov dword [esp + 0x20], 0
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
push eax
push ecx
push ebx
lea edx, [esp + 0x20]
push str._s_dprg_f_d.list
push edx
mov byte [esp + 0x34], 1
call fcn.00420ca0
mov esi, dword [esp + 0x28]
add esp, 0x10
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
push esi
call fcn.0040ab70
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebp], eax
call fcn.0042b3a0
mov byte [esp + 0x20], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b4bc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b4e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc