joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41e679
mov ecx, dword [ebp - 0x10]
call fcn.0041ebb0
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
jne 0x41e6b2
xor eax, eax
jmp 0x41e7ee
push 8
push 0x453c54
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.0042f740
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0x4000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0x2c
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0x2c
je 0x41e74e
jmp 0x41e7ad
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041ef70
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x100
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41e78f
jmp 0x41e7ad
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406c80
mov dword [ebp - 4], 1
xor edx, edx
jne 0x41e680
cmp dword [ebp - 4], 0
jne 0x41e7d3
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
je 0x41e7d3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
call fcn.0041efc0
mov ecx, dword [ebp - 0x10]
call fcn.0041f010
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ec30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x41ec48
xor eax, eax
jmp 0x41ed36
mov dword [ebp - 4], 0
push 0
push 0
push pe_nt_image_headers32
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ca0
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ce0
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ca0
cmp dword [ebp - 4], eax
je 0x41ece2
push 0
call fcn.004256d0
add esp, 4
movzx eax, al
test eax, eax
jne 0x41ecb5
jmp 0x41ecde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Read
push 0xf7
push 0x453f14
push 0
call fcn.004256f0
add esp, 0xc
push eax
call fcn.00425630
add esp, 0xc
xor eax, eax
jmp 0x41ed36
mov dword [ebp - 8], 0
jmp 0x41ecf4
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ca0
cmp dword [ebp - 8], eax
jge 0x41ed31
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ce0
movzx eax, byte [eax]
cmp eax, 0xff
je 0x41ed2f
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406ce0
mov byte [eax], 0
jmp 0x41eceb
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41ed40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x41ed58
xor eax, eax
jmp 0x41ee81
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x48]
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x2c
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], 0x2c
je 0x41ede9
push 0
call fcn.004256d0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41edb9
jmp 0x41ede2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_
push 0x117
push 0x453f70
push 0
call fcn.004256f0
add esp, 0xc
push eax
call fcn.00425630
add esp, 0xc
xor eax, eax
jmp 0x41ee81
push 0
push 0
push pe_nt_image_headers32
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406ca0
push eax
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406ce0
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406ca0
cmp dword [ebp - 4], eax
je 0x41ee7c
push 0
call fcn.004256d0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41ee4f
jmp 0x41ee78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_BITMAP
push 0x11f
push str.DownLoaderOnlineSetupV2_GuaGuaCommonBitmapFile.cpp
push 0
call fcn.004256f0
add esp, 0xc
push eax
call fcn.00425630
add esp, 0xc
xor eax, eax
jmp 0x41ee81
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x424ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eb66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x74], 0
jne 0x424f1e
xor eax, eax
jmp 0x425068
push 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042676c
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.0041f730
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x424f65
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409e40
mov eax, dword [ebp - 0x30]
jmp 0x425068
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x28]
je 0x425015
push 0
call fcn.004256d0
add esp, 4
movzx edx, al
test edx, edx
jne 0x424fc5
jmp 0x424ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.COutputFile::WriteData__I64d___d_
push 0xa3
push str.DownLoaderOnlineSetupV2_GuaGuaCommonOutputFile.cpp
push 0
call fcn.004256f0
add esp, 0xc
push eax
call fcn.00425630
add esp, 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409e40
mov eax, dword [ebp - 0x34]
jmp 0x425068
push 0xff
mov ecx, dword [ebp - 0x3c]
call fcn.0041f730
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430aa0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.0041eef0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0041ee90
mov ecx, dword [ebp - 0x3c]
call fcn.0041ed40
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409e40
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426c0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x426c5f
call fcn.00449649
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426c5f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426c55
xor eax, eax
jmp 0x426d78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x426c8f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x426c8f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x426d75
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x426cbc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00425978
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x426d75
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x426d05
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x426d05
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x426cff
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00425978
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x426d65
and dword [ebp + 0xc], 0
jmp 0x426d65
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x426d65
push 0xc
call fcn.0044304a
mov esi, eax
test esi, esi
pop ecx
je 0x426d47
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x426d49
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x426d60
push dword [ebp - 8]
call fcn.0043de1a
jmp 0x426d65
call fcn.0043ddf1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x426cca
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430876
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x430893
call fcn.00432937
mov dword [eax], 0x16
xor eax, eax
jmp 0x4308fd
push esi
push 0x8c
push 1
call fcn.004334e7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4308e8
push esi
call fcn.00434c01
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4308c6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4307e1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4308fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043069c
test ebx, ebx
pop ecx
je 0x4308fa
push ebx
call fcn.00432949
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430901
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00430710
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43099c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x469798]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43099c
cmp eax, 1
je 0x4309bd
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43099c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430969
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430998
xor eax, eax
inc eax
jmp 0x4309dc
cmp edi, eax
jae 0x4309a0
xor eax, eax
jmp 0x4309dc
cmp eax, esi
jae 0x4309a7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x469798]
jmp 0x4309c0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431191
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x458a00
call fcn.00431a10
mov edi, 0x94
mov eax, edi
call fcn.00430710
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x469798], ecx
mov eax, dword [esi + 4]
mov dword [0x4697a4], eax
mov edx, dword [esi + 8]
mov dword [0x4697a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46979c], esi
cmp ecx, 2
je 0x4311f1
or esi, 0x8000
mov dword [0x46979c], esi
shl eax, 8
add eax, edx
mov dword [0x4697a0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43122c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43122c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431244
cmp eax, 0x20b
je 0x431231
mov dword [ebp - 0x1c], esi
jmp 0x431258
cmp dword [ecx + 0x84], 0xe
jbe 0x43122c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431252
cmp dword [ecx + 0x74], 0xe
jbe 0x43122c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433740
pop ecx
test eax, eax
jne 0x43126c
push 0x1c
call fcn.0043116d
pop ecx
call fcn.00434dfb
test eax, eax
jne 0x43127d
push 0x10
call fcn.0043116d
pop ecx
call fcn.00438df2
mov dword [ebp - 4], esi
call fcn.00438bf4
test eax, eax
jge 0x431296
push 0x1b
call fcn.00431148
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46b090], eax
call fcn.00438ad2
mov dword [0x469784], eax
call fcn.00438a30
test eax, eax
jge 0x4312bc
push 8
call fcn.00431148
pop ecx
call fcn.004387fd
test eax, eax
jge 0x4312cd
push 9
call fcn.00431148
pop ecx
push 1
call fcn.0043161a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4312e3
push eax
call fcn.00431148
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004387a0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x431304
movzx eax, word [ebp - 0x40]
jmp 0x431307
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043ced0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x431325
push edi
call fcn.00431747
call fcn.00431769
jmp 0x431357
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00431a4b
ret
Function at 0x431684
Capabilities:
Terminate process

Disassembly:
push 8
push 0x458a38
call fcn.00431a10
push 8
call fcn.004336f5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4697d8], esi
jne 0x4316b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4697d4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4697d0], al
cmp dword [ebp + 0xc], edi
jne 0x431702
cmp dword [0x46b088], edi
je 0x4316f2
mov eax, dword [0x46b084]
sub eax, 4
mov dword [0x46b084], eax
cmp eax, dword [0x46b088]
jb 0x4316f2
mov eax, dword [eax]
cmp eax, edi
je 0x4316d3
call eax
jmp 0x4316d3
push 0x464098
mov eax, 0x464090
call fcn.00431602
pop ecx
push 0x4640a4
mov eax, 0x46409c
call fcn.00431602
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x431733
cmp dword [ebp + 0x10], edi
jne 0x431741
mov dword [0x4697d8], esi
push dword [ebp + 8]
call fcn.004315c0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x431740
push 8
call fcn.00433640
pop ecx
ret
call fcn.00431a4b
ret
Function at 0x4360b6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4360e4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4360eb
cmp ebx, dword [eax + 4]
jae 0x4360eb
xor eax, eax
jmp 0x4362db
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4360fc
xor eax, eax
inc eax
jmp 0x4362da
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x436112
cmp ecx, edx
jae 0x436257
cmp dword [eax + 4], 0
je 0x43611b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x436103
cmp dword [ebp + 8], 0
je 0x43613d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x436257
cmp eax, esi
jae 0x436257
mov eax, dword [0x469958]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x436162
cmp dword [esi*4 + 0x469960], edi
je 0x43625b
inc esi
cmp esi, eax
jl 0x436150
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4362d7
cmp dword [ebp - 8], 0x1000000
jne 0x4362d7
test byte [ebp - 0xc], 0xcc
je 0x4361e0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4362d7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4362d7
cmp word [eax + 0x18], 0x10b
jne 0x4362d7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4362d7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4361e0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4361e0
test byte [ecx + 0x27], 0x80
jne 0x436257
push 1
push 0x4699a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4360f4
mov ecx, dword [0x469958]
test ecx, ecx
mov edx, ecx
jle 0x436214
lea eax, [ecx*4 + 0x46995c]
cmp dword [eax], edi
je 0x436214
dec edx
sub eax, 4
test edx, edx
jg 0x436208
test edx, edx
jne 0x436245
push 0xf
pop ebx
cmp ecx, ebx
jg 0x436221
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x436239
lea eax, [edx*4 + 0x469960]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x436227
cmp ecx, 0x10
jge 0x436245
inc ecx
mov dword [0x469958], ecx
push 0
push 0x4699a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4360f4
xor eax, eax
jmp 0x4362da
test esi, esi
jle 0x4360f4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4699a0
call ebx
test eax, eax
jne 0x4360f4
cmp dword [esi*4 + 0x469960], edi
je 0x4362b1
mov eax, dword [0x469958]
lea esi, [eax - 1]
test esi, esi
jl 0x43629f
cmp dword [esi*4 + 0x469960], edi
je 0x43629b
dec esi
jns 0x43628f
test esi, esi
jge 0x4362af
cmp eax, 0x10
jge 0x4362aa
inc eax
mov dword [0x469958], eax
lea esi, [eax - 1]
jmp 0x4362b1
je 0x4362c9
xor ecx, ecx
test esi, esi
jl 0x4362c9
lea eax, [ecx*4 + 0x469960]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4362b7
push 0
push 0x4699a0
call ebx
jmp 0x4360f4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4385f0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4654b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x465e08]
je 0x438625
inc eax
cmp eax, 0x13
jb 0x438616
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x465e08]
jne 0x43874b
mov eax, dword [0x46978c]
cmp eax, 1
je 0x438723
cmp eax, edx
jne 0x438655
cmp dword [0x4654f4], 1
je 0x438723
cmp ecx, 0xfc
je 0x43874b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43868b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00430d00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042f0c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4386bf
mov eax, edi
push eax
call fcn.0042f0c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x458cec
push edi
call fcn.00439f80
add esp, 0x10
push edi
call fcn.0042f0c0
push dword [esi + 0x465e0c]
mov ebx, eax
call fcn.0042f0c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00430710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00430d00
push edi
push ebx
call fcn.00430d10
push 0x458ce8
push ebx
call fcn.00430d10
push dword [esi + 0x465e0c]
push ebx
call fcn.00430d10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00439e86
add esp, 0x2c
jmp 0x43874b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x465e0c]
push dword [esi]
call fcn.0042f0c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042fef0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret