joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x459668]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00413197
push eax
lea ecx, [esp + 0x30]
call fcn.00416666
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00413197
mov ecx, eax
call fcn.00416355
cmp dword [esi + 0x130], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x401d91
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x12c]
call fcn.004165d3
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x13c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0041689a
test edi, edi
je 0x401d4b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x130]
push edi
push eax
call fcn.0041691f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x130]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x12c]
test edx, edx
je 0x401dae
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004166ba
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4

Function at 0x402f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x402f79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x402fb4
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402fb0
lea ebx, [ebx]
cmp esi, eax
jae 0x402fb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402fa0
cmp esi, eax
jb 0x402fba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x414280
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4142b9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00414219
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413090
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x415d97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x415dda
call fcn.00418481
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x415dda
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x415df5
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00415951
test ebx, ebx
mov esi, eax
je 0x415df3
test edi, edi
je 0x415df3
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41a8f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x443de3
call fcn.0042f90a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00418481
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41a944
call fcn.00418481
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41a955
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41a962
or eax, 0xffffffff
jmp 0x41aabe
mov ecx, esi
call fcn.0041a440
mov dword [ebp - 0x14], eax
call fcn.0041323f
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41a9e0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a9e0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a9e0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00411d9b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41a9e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41a9e0
mov ecx, ebx
call fcn.00417352
test eax, eax
je 0x41a9e0
push 0
mov ecx, ebx
call fcn.0041736d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00414c7d
push dword [ebp - 0x14]
call fcn.00413197
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041a701
xor edi, edi
cmp eax, edi
je 0x41aa3d
test byte [esi + 0x3c], 0x10
je 0x41aa27
push 4
pop edi
mov ecx, esi
call fcn.0041720f
test ax, 0x100
je 0x41aa1d
push 5
pop edi
push edi
mov ecx, esi
call fcn.00412d3a
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41aa3d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00417517
or dword [ebp - 4], 0xffffffff
jmp 0x41aa68
cmp dword [ebp - 0x28], edi
je 0x41aa76
push 1
mov ecx, ebx
call fcn.0041736d
cmp dword [ebp - 0x2c], edi
je 0x41aa86
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41aa9f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41aa9f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041a47a
cmp dword [esi + 0x58], edi
je 0x41aabb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042f9af
ret
Function at 0x41c1d6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x459668]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41c213
push 0x449798
push 4
push eax
call fcn.0042f138
push eax
call fcn.00402fd0
add esp, 0x10
jmp 0x41c225
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x41c290
push edi
call fcn.0042fcf2
mov edi, dword [eax]
call fcn.0042fcf2
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042fc98
add esp, 0x18
mov ebx, eax
call fcn.0042fcf2
cmp dword [eax], 0
je 0x41c270
call fcn.0042fcf2
push dword [eax]
call fcn.00410a72
pop ecx
jmp 0x41c277
call fcn.0042fcf2
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41c290
cmp ebx, esi
jae 0x41c290
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
jmp 0x41c292
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e86d
leave
ret
Function at 0x41d621
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41d667
call fcn.00418481
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x41d667
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41d6aa
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41d693
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41d693
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41d6a7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e86d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459668]
jne 0x42e877
repz ret
jmp fcn.004343d3
Function at 0x433147
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x459800]
je 0x433162
inc edi
cmp edi, 0x17
jb 0x433153
cmp edi, 0x17
jae 0x4332e2
push ebp
push 3
call fcn.0043bc30
cmp eax, 1
pop ecx
je 0x4332ae
push 3
call fcn.0043bc30
test eax, eax
pop ecx
jne 0x433196
cmp dword [0x459648], 1
je 0x4332ae
cmp ebx, 0xfc
je 0x4332e1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45cc30
push ebp
call fcn.0043bbcb
add esp, 0xc
test eax, eax
je 0x4331cc
push esi
push esi
push esi
push esi
push esi
call fcn.004344e1
add esp, 0x14
push 0x104
mov esi, 0x45cc49
push esi
push 0
mov byte [0x45cd4d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x433210
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043bbcb
add esp, 0xc
test eax, eax
je 0x433210
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004344e1
add esp, 0x14
push esi
call fcn.0043bb40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433255
push esi
call fcn.0043bb40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45cf44
push 0x44d9ac
sub ecx, eax
push ecx
push eax
call fcn.0043ba85
add esp, 0x14
test eax, eax
je 0x433255
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004344e1
add esp, 0x14
jmp 0x433257
xor esi, esi
push 0x44b9e0
push ebx
push ebp
call fcn.0043ba14
add esp, 0xc
test eax, eax
je 0x433277
push esi
push esi
push esi
push esi
push esi
call fcn.004344e1
add esp, 0x14
push dword [edi*8 + 0x459804]
push ebx
push ebp
call fcn.0043ba14
add esp, 0xc
test eax, eax
je 0x433299
push esi
push esi
push esi
push esi
push esi
call fcn.004344e1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b857
add esp, 0xc
jmp 0x4332e1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4332e1
cmp ebp, 0xffffffff
je 0x4332e1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x459804]
push dword [esi]
call fcn.0043bb40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43b857
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00433d0b
xor ebx, ebx
cmp dword [0x45d724], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b92d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ba0d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43ba0d
push eax
call fcn.00433c9d
mov dword [esp], 0x44bc20
push edi
mov dword [0x45d724], eax
call esi
push eax
call fcn.00433c9d
mov dword [esp], 0x44bc0c
push edi
mov dword [0x45d728], eax
call esi
push eax
call fcn.00433c9d
mov dword [0x45d72c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00431fc2
test eax, eax
pop ecx
pop ecx
je 0x43b8fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004344e1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b92d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00433c9d
cmp eax, ebx
pop ecx
mov dword [0x45d734], eax
je 0x43b92d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00433c9d
pop ecx
mov dword [0x45d730], eax
mov eax, dword [0x45d730]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43b9b2
cmp dword [0x45d734], ecx
je 0x43b9b2
push eax
call fcn.00433d14
push dword [0x45d734]
mov esi, eax
call fcn.00433d14
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43b9b2
cmp edi, ebx
je 0x43b9b2
call esi
cmp eax, ebx
je 0x43b97f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b97f
test byte [ebp - 0x18], 1
jne 0x43b9b2
lea eax, [ebp - 0x10]
push eax
call fcn.00431ff9
test eax, eax
pop ecx
je 0x43b99a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004344e1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43b9a9
or dword [ebp + 0x10], 0x200000
jmp 0x43b9ed
or dword [ebp + 0x10], 0x40000
jmp 0x43b9ed
mov eax, dword [0x45d728]
cmp eax, dword [ebp - 8]
je 0x43b9ed
push eax
call fcn.00433d14
cmp eax, ebx
pop ecx
je 0x43b9ed
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b9ed
mov eax, dword [0x45d72c]
cmp eax, dword [ebp - 8]
je 0x43b9ed
push eax
call fcn.00433d14
cmp eax, ebx
pop ecx
je 0x43b9ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d724]
call fcn.00433d14
cmp eax, ebx
pop ecx
je 0x43ba0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ba0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443554
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x459668]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004434e9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042f480
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4435a3
cmp dword [ebp - 0x1c], 5
jb 0x4435bb
jmp 0x4435b7
cmp dword [ebp - 0x10], 1
jne 0x4435bb
cmp dword [ebp - 0x1c], 4
ja 0x4435b7
jne 0x4435bb
cmp dword [ebp - 0x18], 0
jbe 0x4435bb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44d600
call fcn.004433bd
test eax, eax
jge 0x4435dc
mov byte [0x45d9e8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e86d
add ebp, 0x78
leave
ret
Function at 0xa862fa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0xaa207c]
test eax, eax
je 0xa86339
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa86339
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa86339
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xa86339
cmp dword [ecx + 0x74], 0xe
jbe 0xa86339
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401540
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call fcn.004209f8
push eax
call fcn.004208c4
mov edi, dword [0x43800c]
mov ebx, dword [0x438010]
add esp, 8
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4015a4
mov ecx, dword [esi*4 + 0x443a90]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x4015c9
mov edx, dword [ebp - 4]
push edx
call dword [0x438008]
inc esi
cmp esi, 8
jl 0x401565
call fcn.004208d6
and eax, 0x80000007
jns 0x4015bb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x443a90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [0x438008]
mov eax, dword [esi*4 + 0x443a90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x43b2d4
push eax
xor bl, bl
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x401fff
mov ecx, dword [ebp + 8]
push edi
push 0x43b2dc
push ecx
call fcn.004218f3
mov edi, eax
add esp, 8
test edi, edi
je 0x401ff5
push esi
call fcn.00420b45
add esp, 4
test eax, eax
jne 0x401fea
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00421c4a
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00421e3e
push esi
call fcn.00420b45
add esp, 0x24
test eax, eax
je 0x401fc1
push edi
mov bl, 1
call fcn.00422275
add esp, 4
push esi
call fcn.00422275
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
lea ecx, [ebp - 0x414]
push ecx
mov dword [ebp - 0x408], eax
mov ebx, edx
mov dword [ebp - 0x414], edi
call dword [0x438274]
test eax, eax
jne 0x40455e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420826
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.00422369
add esp, 4
cmp byte [0x443a59], 0
jne 0x404582
call fcn.004060e0
mov byte [0x443a59], 1
mov edx, dword [0x443b0c]
mov eax, dword [edx + 0x8c]
push edi
push edi
push edi
push edi
push eax
call dword [0x438288]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x40469b
push 1
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [0x438278]
mov esi, eax
mov dword [ebp - 0x410], esi
test esi, esi
je 0x404694
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43b45c
push esi
call dword [0x438280]
mov edi, eax
test edi, edi
je 0x404687
push 0
push 0
push 0
push 0
push edi
call dword [0x438284]
test eax, eax
je 0x404680
push 0x43b2dc
push ebx
mov dword [ebp - 0x40c], 1
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x40467a
mov ebx, dword [0x43827c]
mov edi, edi
lea ecx, [ebp - 0x408]
push ecx
push 0x3ff
lea edx, [ebp - 0x404]
push edx
push edi
call ebx
test eax, eax
je 0x404671
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404671
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00421e3e
add esp, 0x10
jmp 0x404630
push esi
call fcn.00422275
add esp, 4
mov esi, dword [ebp - 0x410]
push edi
call dword [0x43828c]
push esi
call dword [0x43828c]
mov edi, dword [ebp - 0x418]
push edi
call dword [0x43828c]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
mov esp, ebp
pop ebp
ret
Function at 0x404f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push eax
lea ebx, [ebp - 4]
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00401de0
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, eax
push 1
push edi
mov ebx, esi
call fcn.004051f0
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x404fc2
mov eax, esi
lea edx, [eax + 1]
jmp 0x404fb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fb0
mov ecx, dword [ebp - 4]
sub eax, edx
sub ecx, eax
cmp ebx, ecx
jge 0x405034
mov edx, dword [ebp + 8]
push 0x43b2dc
push edx
call fcn.004218f3
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x405034
cmp byte [ebp + 0xc], 0
jne 0x404ff8
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fe7
sub eax, esi
lea esi, [eax + ebx]
mov ebx, dword [ebp - 4]
jmp 0x404ffa
xor esi, esi
cmp esi, ebx
jge 0x405019
mov edi, edi
push edx
push 1
lea eax, [esi + edi]
push 1
push eax
call fcn.00421e3e
mov edx, dword [ebp - 8]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x405000
push edx
call fcn.00422275
add esp, 4
push edi
call fcn.004208b9
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004208b9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ff0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x43b2d4
push eax
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x4060d1
push ebx
push edi
push 2
push 0
push esi
call fcn.0042213b
push esi
call fcn.0042204c
mov edi, eax
push edi
call fcn.0041fbf7
push 0
push 0
push esi
mov dword [ebp - 4], eax
call fcn.0042213b
add esp, 0x20
xor ebx, ebx
test edi, edi
jle 0x406066
lea ecx, [ecx]
push esi
call fcn.00420b45
add esp, 4
test eax, eax
jne 0x406066
mov ecx, dword [ebp - 4]
push esi
push 1
lea edx, [ebx + ecx]
push 1
push edx
call fcn.00421c4a
inc ebx
add esp, 0x10
cmp ebx, edi
jl 0x406040
push esi
call fcn.00422275
add esp, 4
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x406092
cmp ecx, dword [ebp + 0x10]
jl 0x40607e
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dl, byte [ecx + edx]
mov esi, dword [ebp - 4]
neg dl
xor byte [eax + esi], dl
inc eax
inc ecx
cmp eax, edi
jl 0x406077
mov eax, dword [ebp + 8]
push 0x43b2dc
push eax
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x4060c8
mov ecx, dword [ebp - 4]
push esi
push edi
push 1
push ecx
call fcn.00421e3e
push esi
call fcn.00422275
add esp, 0x14
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4060e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x43c70c
mov dword [ebp - 8], 0
mov eax, dword [ebx]
inc eax
push eax
call fcn.0041fbf7
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebx], eax
jbe 0x406122
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + eax]
xor dl, byte [ebx - 4]
inc eax
mov byte [eax + edi - 1], dl
cmp eax, dword [ebx]
jb 0x406110
mov byte [eax + edi], 0
mov ecx, dword [0x443b10]
mov edx, dword [0x443b0c]
lea eax, [ebp - 4]
cmp eax, ecx
jae 0x4061a9
cmp edx, eax
ja 0x4061a9
mov esi, dword [0x443b14]
mov edi, eax
sub edi, edx
sar edi, 2
cmp ecx, esi
jne 0x40619e
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40622c
sub esi, edx
inc eax
sar esi, 2
cmp eax, esi
jbe 0x40619e
mov ecx, esi
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x40617f
xor ecx, ecx
jmp 0x406181
add ecx, edx
cmp ecx, eax
jae 0x406187
mov ecx, eax
push ecx
mov esi, 0x443b0c
call fcn.004062a0
mov ecx, dword [0x443b10]
mov edx, dword [0x443b0c]
test ecx, ecx
je 0x406205
mov edx, dword [edx + edi*4]
mov dword [ecx], edx
jmp 0x4061ff
mov esi, dword [0x443b14]
cmp ecx, esi
jne 0x4061f9
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40622c
sub esi, edx
mov edx, esi
inc eax
sar edx, 2
cmp eax, edx
jbe 0x4061f9
mov ecx, edx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x4061e0
xor ecx, ecx
jmp 0x4061e2
add ecx, edx
cmp ecx, eax
jae 0x4061e8
mov ecx, eax
push ecx
mov esi, 0x443b0c
call fcn.004062a0
mov ecx, dword [0x443b10]
test ecx, ecx
je 0x406205
mov dword [ecx], edi
mov ecx, dword [0x443b10]
mov eax, dword [ebp - 8]
add eax, 0xc
add ecx, 4
add ebx, 0xc
mov dword [0x443b10], ecx
mov dword [ebp - 8], eax
cmp eax, 0x1e0
jb 0x4060f5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x43c8e8
call fcn.004202a1
int3