joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b460
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a770]
jne 0x44b46a
repz ret
jmp fcn.004515a3

Function at 0x45c938
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00451df7
and dword [ebp - 4], 0
cmp dword [0x47e490], 0
mov ebx, eax
jne 0x45c9e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45ca9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c4d0
push edi
call esi
test eax, eax
je 0x45ca9a
push eax
call fcn.00451d85
mov dword [esp], 0x46c4c0
push edi
mov dword [0x47e490], eax
call esi
push eax
call fcn.00451d85
mov dword [esp], 0x46c4ac
push edi
mov dword [0x47e494], eax
call esi
push eax
call fcn.00451d85
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47e498], eax
call esi
push eax
call fcn.00451d85
pop ecx
mov dword [0x47e4a0], eax
test eax, eax
je 0x45c9e9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451d85
pop ecx
mov dword [0x47e49c], eax
mov eax, dword [0x47e49c]
cmp eax, ebx
je 0x45ca41
cmp dword [0x47e4a0], ebx
je 0x45ca41
push eax
call fcn.00451e00
push dword [0x47e4a0]
mov esi, eax
call fcn.00451e00
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45ca41
test edi, edi
je 0x45ca41
call esi
test eax, eax
je 0x45ca38
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45ca38
test byte [ebp - 0xc], 1
jne 0x45ca41
or dword [ebp + 0x10], 0x200000
jmp 0x45ca7a
mov eax, dword [0x47e494]
cmp eax, ebx
je 0x45ca7a
push eax
call fcn.00451e00
pop ecx
test eax, eax
je 0x45ca7a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45ca7a
mov eax, dword [0x47e498]
cmp eax, ebx
je 0x45ca7a
push eax
call fcn.00451e00
pop ecx
test eax, eax
je 0x45ca7a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47e490]
call fcn.00451e00
pop ecx
test eax, eax
je 0x45ca9a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45ca9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00427820
call fcn.00422350
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x422198
jmp 0x422236
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x422197
cmp cl, 0x22
je 0x4221f0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x422210
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x422210
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4221d0
jmp 0x422210
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4221f0
cmp cl, 0x22
je 0x422272
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x422230
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x422220
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x422254
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004223c0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x422210
Function at 0x426590
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4265c6
mov dword [0x439080], eax
mov edx, 0x426570
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004269c0
test eax, eax
sete al
movzx eax, al
mov dword [0x42a090], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x42a090], eax
leave
ret

Function at 0x4266b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x425070
mov dword [ebp - 0x24], 0x429a84
mov dword [ebp - 0x1c], 0x426770
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.00426dd0
cmp dword [0x42a090], 0
mov dword [ebp - 0x44], 0x439090
je 0x426750
jl 0x426790
mov dword [ebp - 0x3c], 1
mov eax, dword [0x439080]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x426833
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00426eb0
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x42a0a0]
mov eax, 0xffffffff
test edx, edx
je 0x4267aa
mov eax, dword [0x42a094]
test eax, eax
je 0x4267ea
xor eax, eax
test eax, eax
jne 0x4267e0
mov edi, dword [0x42a090]
test edi, edi
js 0x4267e0
mov dword [ebp - 0x44], 0x439090
mov ebx, dword [0x42a090]
test ebx, ebx
je 0x426750
jmp 0x4266fe
xor esi, esi
mov dword [0x42a090], esi
jmp 0x4267b8
mov dword [esp], 0x42a098
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x426871
mov eax, dword [0x42a094]
test eax, eax
jne 0x4267a8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x42a094]
test eax, eax
je 0x42680d
jmp 0x4267a8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x426865
mov dword [esp + 4], eax
mov eax, dword [0x439080]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x42689a
test edx, edx
je 0x426885
mov dword [ebp - 0x3c], 1
call fcn.004264e0
call fcn.00426590
mov eax, 1
mov dword [0x42a094], eax
jmp 0x4267a8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x426746
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x426861
Function at 0x426cc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4390e0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x426d00
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.004269c0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x4270b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4390e0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x42718c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x4271a1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x427160
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4270f8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x427108
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x427153
test edx, edx
jne 0x427146
test ecx, ecx
je 0x4270f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x4271b0
cmp eax, 8
je 0x4270f0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4270e2
call fcn.00426a80
mov eax, dword [0x4390e0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x4270d4
call fcn.00426d20
mov eax, dword [0x4390e0]
jmp 0x4270d4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00427020
cmp eax, 7
jne 0x42714b
mov eax, dword [0x4390e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x427203
mov edi, dword [eax + 0x30]
test edi, edi
js 0x42722e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x42720f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00426a80
mov eax, dword [0x4390e0]
jmp 0x4271e1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4271f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4271f2
call fcn.00426d20
mov eax, dword [0x4390e0]
jmp 0x4271e8
Function at 0x427490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4390e0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x427524
mov esi, dword [eax + 0x30]
test esi, esi
js 0x427540
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x427560
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x427518
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00427020
cmp eax, 7
jne 0x4275df
mov eax, dword [0x4390e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4275b6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x4275d0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x427590
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00427240
jmp 0x4274d5
call fcn.00426a80
mov eax, dword [0x4390e0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x4274b0
lea esi, [esi]
call fcn.00426d20
mov eax, dword [0x4390e0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x4274bb
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4274be
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x427507
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427507
call fcn.00426a80
mov eax, dword [0x4390e0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x4274f9
nop
lea esi, [esi]
call fcn.00426d20
mov eax, dword [0x4390e0]
jmp 0x4274f9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4275f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x427682
mov eax, dword [0x4390e0]
test eax, eax
je 0x427676
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x4276f1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x427697
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00427240
cmp eax, 7
jne 0x42770f
mov eax, dword [0x4390e0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4276e2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x427700
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x4276c3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00426a80
mov eax, dword [0x4390e0]
jmp 0x427612
mov dword [esp], edi
call fcn.004270b0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x427627
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x427665
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427665
call fcn.00426a80
mov eax, dword [0x4390e0]
jmp 0x427650
call fcn.00426d20
mov eax, dword [0x4390e0]
jmp 0x42761d
call fcn.00426d20
mov eax, dword [0x4390e0]
jmp 0x42765b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x401da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [0x40b484]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [0x40b438]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x40b454]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
mov ebx, dword [0x40b034]
test eax, eax
jne 0x401ed6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [0x40b030]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [0x40b02c]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x401e82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x401ef7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040998a
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x405010
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push edx
call fcn.00404fd0
push 0x40
lea eax, [esp + 0x24]
push 0x40eb80
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x4051db
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 8
shr esi, 5
cmp esi, 1
jl 0x4051db
mov ebp, esi
shl ebp, 5
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
lea ebp, [esi - 1]
add esp, 0x20
mov edi, ebp
test edi, edi
jl 0x4050dc
mov ecx, dword [esp + 0x120]
mov eax, edi
shl eax, 5
add eax, ebx
cmp ecx, dword [eax]
jge 0x4050d8
dec edi
sub eax, 0x20
test edi, edi
jge 0x4050ca
jmp 0x4050dc
test edi, edi
jge 0x405101
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, edi
shl edx, 5
lea eax, [edx + ebx]
mov edx, dword [edx + ebx]
cmp edx, ecx
jne 0x405166
mov ecx, dword [esp + 0x124]
test ecx, ecx
jne 0x40513d
inc edi
mov ecx, edi
shl ecx, 0x1b
sub ecx, edi
add ecx, esi
shl edi, 5
shl ecx, 5
add edi, ebx
push ecx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov esi, ebp
jmp 0x405198
lea eax, [edi + 1]
mov edx, eax
shl edx, 0x1b
sub edx, eax
add edx, esi
shl eax, 5
shl edx, 5
add eax, ebx
push edx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or eax, 0xffffffff
add esp, 0xc
sub eax, edi
add esi, eax
jmp 0x405198
mov eax, dword [esp + 0x124]
test eax, eax
je 0x405198
lea eax, [edi + 1]
mov ecx, eax
shl ecx, 0x1b
sub ecx, eax
add ecx, esi
shl eax, 5
shl ecx, 5
add eax, ebx
push ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or edx, 0xffffffff
add esp, 0xc
sub edx, edi
add esi, edx
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
shl esi, 5
push edi
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push esi
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x402ba4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4425a9
call fcn.00441b80
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x44b558
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 3
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403396
lea ecx, [esi + 0x18]
push 3
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403396
lea ecx, [esi + 0x24]
push 3
mov byte [ebp - 4], 2
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403396
lea ecx, [esi + 0x30]
push 3
mov byte [ebp - 4], 3
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403396
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 4
mov dword [esi + 0x3c], 0x44b510
mov dword [esi], 0x44b528
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402c6d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4425f0
call fcn.00441b80
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edi, [esi + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x44b510
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00428327
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004282fe
push dword [esi + 0x30]
call fcn.004284d8
push dword [esi + 0x24]
call fcn.004284d8
push dword [esi + 0x18]
call fcn.004284d8
push dword [esi + 0xc]
call fcn.004284d8
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword [esi], 0x44b588
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret

Function at 0x40820b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x443067
call fcn.00441b80
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 3
mov dword [ebp - 0x10], esi
mov dword [esi], 0x44bc00
mov dword [esi + 4], 0x44bbf0
mov dword [esi + 8], 0x44bbc4
mov dword [esi + 0xc], 0x44bbb4
mov dword [esi + 0x10], 0x44bba4
mov dword [esi + 0x14], 0x44bb94
lea ecx, [esi + 0x20]
mov dword [esi + 0x18], 0x44bb84
mov dword [esi + 0x1c], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00403396
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.004082e9
push 4
lea eax, [esi + 0x90]
pop ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x44bb7c
lea eax, [esi + 0xac]
mov dword [esi + 0xa4], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0x44bb74
mov byte [esi + 0xc0], bl
or dword [esi + 0xc4], 0xffffffff
mov dword [esi], 0x44bb44
mov dword [esi + 4], 0x44bb34
mov dword [esi + 8], 0x44bb08
mov dword [esi + 0xc], 0x44baf8
mov dword [esi + 0x10], 0x44bae8
mov dword [esi + 0x14], 0x44bad8
mov dword [esi + 0x18], 0x44bac8
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret