joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45361c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4537c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4537a8
mov dl, 1
mov eax, dword [0x4175e0]
call fcn.00403180
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fe0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453797
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00441198
test al, al
je 0x45378a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4537d8
lea eax, [ebp - 0x254]
call fcn.00409064
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45378a
xor eax, eax
push ebp
push 0x453783
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45376c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404250
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45376c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45378a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45368d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b7a4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4537ce
lea eax, [ebp - 0x260]
call fcn.00403fe0
ret

Function at 0x4540fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x488bb4]
cmp byte [eax + 0xa5], 0
jne 0x45416d
cmp dword [0x488bcc], 0
jne 0x45412e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4540b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x488bcc], eax
cmp dword [0x488bc8], 0
jne 0x454149
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x488bc8], eax
cmp dword [0x488bd0], 0
jne 0x45416d
push esp
push 0
push 0
push 0x45405c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x488bd0], eax
pop edx
ret
Function at 0x454264
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45427b
add esp, 0xfffffff0
call fcn.004034d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f734
mov eax, dword [0x487b3c]
cmp word [eax + 2], 0
jne 0x4542a3
mov eax, dword [0x487b3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045593c
mov eax, dword [0x487c9c]
cmp word [eax + 2], 0
jne 0x4542bd
mov eax, dword [0x487c9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455b34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417018]
call fcn.00403180
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417018]
call fcn.00403180
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421910]
call fcn.00427650
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454444
mov eax, dword [0x4879a4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427a20
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4560d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4879a4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c790
test eax, eax
je 0x4543b2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a58
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7b8
test eax, eax
je 0x4543c6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404250
mov eax, dword [0x48775c]
cmp byte [eax], 0
jne 0x4543fa
mov eax, ebx
call fcn.0045456c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004562b0
mov eax, ebx
call fcn.00456c74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45443a
call fcn.0040352c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4547ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488bb4]
cmp dword [eax + 0x30], 0
je 0x454896
cmp dword [ebx + 0x94], 0
jne 0x454890
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45477c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454890
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454856
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454890
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419604
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454865
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4553f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45542d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040d0
jmp 0x45543a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404034
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45648c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4564cd
mov eax, esi
call fcn.0043c95c
test al, al
je 0x4564cd
mov eax, dword [ebx + 0x84]
call fcn.0043c684
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4564cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c684
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x408233
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c07c]
test eax, eax
je 0x408272
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408272
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408272
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408272
cmp dword [ecx + 0x74], 0xe
jbe 0x408272
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x402c6b
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402c72
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402c6f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402c6f
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402c98
lea edx, [eax + ecx]
jmp 0x402c9a
xor edx, edx
test edx, edx
je 0x402c6f
lea eax, [edx + 8]
test eax, eax
je 0x402c6f
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402cc9
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402cc9
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402ccb
xor eax, eax
test eax, eax
je 0x402c6f
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret
Function at 0x401310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ecx, ecx
push edi
mov dword [0x4b1d28], ecx
mov dword [ebp - 4], ecx
mov edi, 0xfc5018
mov eax, dword [edi - 0xfd0]
test eax, eax
je 0x4013de
mov eax, dword [edi + 8]
test eax, eax
jne 0x4013de
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x401363
mov edx, eax
shl edx, 7
add edx, eax
shl edx, 3
sub edx, eax
mov ecx, eax
mov eax, dword [edx*4 + 0xfc5018]
cmp eax, 0xffffffff
jne 0x401349
mov esi, ecx
shl esi, 7
add esi, ecx
shl esi, 3
sub esi, ecx
shl esi, 2
mov eax, dword [esi + 0xfc501c]
test eax, eax
jne 0x4013d4
call fcn.004446cb
mov ecx, eax
shl ecx, 0x11
or ecx, eax
or ecx, 0x11111111
mov dword [esi + 0xfc501c], ecx
mov eax, dword [esi + 0xfc405c]
cmp eax, 4
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0xfc4048]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jb 0x4013d4
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 8]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4013d4
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x4013c5
mov dword [0x4b1d28], 1
mov ecx, dword [ebp - 4]
inc ecx
add edi, 0x101c
cmp edi, 0x13b4d94
mov dword [ebp - 4], ecx
jl 0x401329
mov eax, dword [0x4b1d2c]
test eax, eax
jne 0x401498
mov eax, dword [0x13b5180]
test eax, eax
je 0x401498
call fcn.004446cb
mov esi, eax
shl esi, 0x11
call fcn.004446cb
mov edx, dword [0x13b5180]
or esi, eax
or esi, 1
mov edi, 0xfa0
mov dword [0x4b1d2c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 0x10]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401465
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401456
mov eax, dword [0x4b1d2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
mov esi, 0x7f99a8
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 0x10]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401498
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401489
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b1d28]
test eax, eax
push ebx
push esi
push edi
je 0x40157e
xor ecx, ecx
mov edx, 0xfc5018
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov eax, dword [edx - 0xfd0]
test eax, eax
je 0x401558
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4014f2
mov esi, eax
shl esi, 7
add esi, eax
shl esi, 3
sub esi, eax
mov ecx, eax
mov eax, dword [esi*4 + 0xfc5018]
cmp eax, 0xffffffff
jne 0x4014d8
mov edi, ecx
shl edi, 7
add edi, ecx
shl edi, 3
sub edi, ecx
shl edi, 2
mov eax, dword [edi + 0xfc501c]
test eax, eax
je 0x401558
mov ecx, dword [edi + 0xfc4048]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xfc405c]
cmp eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jb 0x40154e
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0xc]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x40154b
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x40153c
mov edx, dword [ebp - 8]
mov dword [edi + 0xfc501c], 0
mov ecx, dword [ebp - 4]
add edx, 0x101c
inc ecx
cmp edx, 0x13b4d94
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
jl 0x4014c3
mov dword [0x4b1d28], 0
mov eax, dword [0x4b1d2c]
test eax, eax
je 0x4015fe
mov edx, dword [0x13b5180]
mov edi, 0xfa0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0x14]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4015c1
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x4015b2
mov eax, dword [0x4b1d2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov esi, 0x7f99a8
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0x14]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4015f4
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x4015e5
mov dword [0x4b1d2c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403df0
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
push 0x4b3db4
push 0x47f900
xor eax, eax
push 3
push eax
mov ecx, 0x10
mov edi, 0x4b3db0
push 0x47f990
rep stosd dword es:[edi], eax
call ebx
test eax, eax
jge 0x403e29
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x4b3db4]
mov ecx, dword [eax]
push 0
push 0
push 0x4b3db0
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x403e49
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x4b3dd0], eax
jne 0x403e66
pop edi
pop ebx
add esp, 0x24
ret
push 0x4b3dd8
push 0
push 0x4b3db0
push 0x4044f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x4b3dd4], eax
jne 0x403e90
pop edi
pop ebx
add esp, 0x24
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4b3dd0]
mov eax, dword [0x4b3db4]
mov edx, dword [eax]
push 0
push 0
push ecx
push eax
call dword [edx + 0x50]
test eax, eax
jge 0x403eb9
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x4b3db4]
mov edx, dword [eax]
push 0x47f960
push eax
call dword [edx + 0x58]
test eax, eax
jge 0x403ed5
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push 0x4b3dbc
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov ecx, 9
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x4b3db0]
push 0x47b588
mov dword [esp + 0x18], 0x24
mov dword [esp + 0x30], 1
mov dword [0x4b3de0], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0x22
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x403f34
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x4b3dbc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
test eax, eax
jge 0x403f4d
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x4b3dbc]
mov eax, dword [0x4b3db4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
jge 0x403f6b
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x4b3dbc]
mov eax, dword [0x4b3db4]
mov edx, dword [eax]
push 1
push ecx
push 0
push eax
call dword [edx + 0x68]
test eax, eax
jge 0x403f8d
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0x4b3dc0
push 0x47f920
push 3
push 0
push 0x47f970
call ebx
test eax, eax
jge 0x403fae
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x30]
pop edi
mov dword [0x4b3dcc], edx
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x404c60
Capabilities:
Check for software breakpoints
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
mov eax, dword [0x4b3e10]
sub esp, 0x10
test eax, eax
push esi
jne 0x404df4
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x6e72656b
mov dword [esp + 0xc], 0x32336c65
mov dword [esp + 0x10], 0x6c6c642e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x4b3e10], eax
jne 0x404cb4
pop esi
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], 0x61657243
mov dword [esp + 0x10], 0x69466574
mov dword [esp + 0x14], 0x41656c
call esi
test eax, eax
mov dword [0x4b3df0], eax
jne 0x404ce8
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4b3e10]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x64616552
mov dword [esp + 0x10], 0x656c6946
mov dword [esp + 0x14], 0
call esi
test eax, eax
mov dword [0x4b3df4], eax
jne 0x404d1c
pop esi
add esp, 0x10
ret
mov eax, dword [0x4b3e10]
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], 0x74697257
mov dword [esp + 0x10], 0x6c694665
mov dword [esp + 0x14], 0x65
call esi
test eax, eax
mov dword [0x4b3df8], eax
jne 0x404d4f
pop esi
add esp, 0x10
ret
mov edx, dword [0x4b3e10]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0xc], 0x736f6c43
mov dword [esp + 0x10], 0x6e614865
mov dword [esp + 0x14], 0x656c64
call esi
test eax, eax
mov dword [0x4b3dfc], eax
jne 0x404d83
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4b3e10]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x46746547
mov dword [esp + 0x10], 0x53656c69
mov dword [esp + 0x14], 0x657a69
call esi
test eax, eax
mov dword [0x4b3e00], eax
jne 0x404db7
pop esi
add esp, 0x10
ret
mov eax, dword [0x4b3e10]
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], 0x46746553
mov dword [esp + 0x10], 0x50656c69
mov dword [esp + 0x14], 0x746e696f
mov dword [esp + 0x18], 0x7265
call esi
test eax, eax
mov dword [0x4b3e04], eax
jne 0x404df4
pop esi
xor eax, eax
add esp, 0x10
ret
mov edx, 0x4b3df0
mov ecx, dword [edx]
xor eax, eax
cmp byte [eax + ecx], 0xcc
je 0x404ded
inc eax
cmp eax, 8
jl 0x404dfd
add edx, 4
cmp edx, 0x4b3e08
jl 0x404df9
pop esi
mov eax, 1
add esp, 0x10
ret
Function at 0x404e20
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [eax]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
or cl, byte [edi]
jne 0x404e48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004139c0
mov ebx, dword [esp + 0x12c]
add esp, 8
xor eax, eax
test ebx, 0x80000000
je 0x404e78
mov eax, 1
push 0
push 0x80
push 3
push 0
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404f1c
mov edi, dword [esp + 0x128]
test edi, edi
je 0x404ecf
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x404ecf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x404efe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x404efe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x134]
test eax, eax
je 0x404f0f
mov dword [eax], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x5c
push edi
call fcn.00444f90
add esp, 8
test eax, eax
je 0x404f2e
lea edi, [eax + 1]
mov al, byte [0x7e27cc]
test al, al
je 0x404ec1
mov ebp, dword [esp + 0x134]
mov esi, 0x7e27cc
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x11c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push ebp
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0044ffa0
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x404fbb
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x104]
add esi, 0x104
test al, al
mov dword [esp + 0x10], esi
jne 0x404f47
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
call fcn.00414160
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, eax
shl ebx, 7
add ebx, eax
shl ebx, 3
sub ebx, eax
shl ebx, 2
mov eax, dword [ebx + 0xfc406c]
test eax, eax
push ebp
je 0x405574
mov eax, dword [ebx + 0xfc4048]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push edx
call fcn.00405370
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x405590
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 8]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebx + 0xfc4044], eax
jne 0x4055b2
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 8]
push esi
mov edx, ecx
push edi
shr ecx, 2
mov edi, eax
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [ebx + 0xfc405c], eax
mov ecx, dword [ebx + 0xfc4044]
mov dword [ebx + 0xfc4048], ecx
mov dword [ebx + 0xfc406c], 1
mov eax, dword [ebx + 0xfc4044]
mov dword [ebx + 0xfc404c], eax
mov dword [ebx + 0xfc4050], eax
pop edi
xor eax, eax
mov dword [ebx + 0xfc5018], 0xffffffff
pop esi
mov dword [ebx + 0xfc501c], eax
mov dword [ebx + 0xfc5020], eax
pop ebp
mov dword [edx*4 + 0xbce34c], 0x3e8
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x405ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [eax]
sub esp, 0x108
push esi
mov esi, dword [esp + 0x114]
or cl, byte [esi]
jne 0x405b02
xor eax, eax
pop esi
add esp, 0x108
ret
mov ecx, dword [0x4b3e0c]
test ecx, ecx
je 0x405b85
push eax
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
push esi
push eax
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405b54
xor eax, eax
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405b7e
pop esi
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x108
ret