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

Disassembly:
push 0xffffffffffffffff
push 0x44f318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], edi
mov dword [esp + 8], edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
mov byte [esp + 0x30], 2
call dword [edx + pe_nt_image_headers32]
test eax, eax
jne 0x40eed2
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x40eed2
mov eax, dword [esp + 0x38]
sub eax, edi
je 0x40ee89
dec eax
je 0x40ee5f
dec eax
jne 0x40ee97
mov edx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [edx + 0x210]
jmp 0x40ee97
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [edx + 0x250]
test eax, eax
jne 0x40ee97
cmp word [esp + 0x10], 8
jne 0x40ee97
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040e700
jmp 0x40ee97
mov edx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [edx + 0x218]
mov ecx, dword [esp + 8]
cmp ecx, edi
jne 0x40eea3
xor eax, eax
jmp 0x40eeba
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [esp + 8]
cmp ecx, edi
mov esi, dword [esp + 0x30]
mov dword [esi], eax
je 0x40eed8
cmp eax, edi
jne 0x40eed8
push 0x8007000e
call fcn.00401490
mov esi, dword [esp + 0x30]
mov dword [esi], edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
cmp eax, edi
mov dword [esp + 0x28], 0xffffffff
je 0x40ef04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40f480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040f280
mov esi, dword [eax]
cmp esi, ebx
je 0x40f4d1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40f4e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40f518
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40f503
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x4536bc
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40f554
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40f584
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40f584
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40f564
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40f584
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40fa10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040f930
mov esi, dword [eax]
cmp esi, ebx
je 0x40fa61
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40fa73
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40faa8
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40fa93
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x4536bc
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40fae4
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40fb14
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40fb14
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40faf4
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40fb14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x410100
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x41010b
xor al, al
ret 8
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 8

Function at 0x410130
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x41013b
xor al, al
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 0xc

Function at 0x4101d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4101db
xor al, al
ret 8
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x4101ed
mov eax, dword [eax + 4]
jmp 0x4101f0
add eax, 4
inc edx
push edx
push eax
mov eax, dword [esp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 8
Function at 0x410210
Capabilities:
Create udp socket
Encode data using xor
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4664d0]
push ebx
push ebp
push esi
push edi
push 0x11
push 2
push 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x28]
push ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [esp + 0x30]
mov word [esp + 0x12], ax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410256
sub eax, edx
mov edi, eax
lea edx, [edi + 1]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4102d9
mov edx, esi
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410280
cmp edi, 0x5aa
jle 0x4102a4
mov edi, 0x5aa
mov byte [esi + 0x5a8], 0xa
mov byte [esi + 0x5a9], cl
xor eax, eax
test edi, edi
jle 0x4102b9
lea ebx, [ebx]
xor byte [eax + esi], 0xc
inc eax
cmp eax, edi
jl 0x4102b0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
push edi
push esi
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00422ede
add esp, 0x14
ret
Function at 0x417270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44fd44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
lea ecx, [esi + 0x54]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x1c]
push eax
mov byte [esp + 0x24], 4
call fcn.00402e50
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x54]
push ecx
mov ecx, esi
mov dword [esi + 0xa4], ebx
call fcn.00402e50
cmp dword [edi + 0x18], 0x10
jb 0x417304
mov edi, dword [edi + 4]
jmp 0x417307
add edi, 4
push edi
mov ecx, esi
call fcn.00416b10
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x417325
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x41733a
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x41734c
xor eax, eax
jmp 0x41737e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x417370
cmp esi, eax
jae 0x417348
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x417362
cmp esi, eax
jae 0x417348
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x418a17
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 0x418a6a
call fcn.0044b82f
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebx
je 0x418a6a
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x418a60
xor eax, eax
jmp 0x418b83
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 0x418a9a
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 0x418a9a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x418b80
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x418ac7
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00419150
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x418b80
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x418b10
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x418b10
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x418b0a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00419150
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x418b70
and dword [ebp + 0xc], 0
jmp 0x418b70
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x418b70
push 0xc
call fcn.0043887e
mov esi, eax
test esi, esi
pop ecx
je 0x418b52
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 0x418b54
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x418b6b
push dword [ebp - 8]
call fcn.00433373
jmp 0x418b70
call fcn.0043334a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x418ad5
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x422c77
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.00422e70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x422d12
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 [0x469634]
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 0x422d12
cmp eax, 1
je 0x422d33
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 0x422d12
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x422cdf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x422d0e
xor eax, eax
inc eax
jmp 0x422d52
cmp edi, eax
jae 0x422d16
xor eax, eax
jmp 0x422d52
cmp eax, esi
jae 0x422d1d
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 [0x469634]
jmp 0x422d36
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 0x4232a3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x458980
call fcn.00424c84
push 8
call fcn.004268ef
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x469674], esi
jne 0x4232d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x469670], esi
mov al, byte [ebp + 0x10]
mov byte [0x46966c], al
cmp dword [ebp + 0xc], edi
jne 0x423321
cmp dword [0x46b02c], edi
je 0x423311
mov eax, dword [0x46b028]
sub eax, 4
mov dword [0x46b028], eax
cmp eax, dword [0x46b02c]
jb 0x423311
mov eax, dword [eax]
cmp eax, edi
je 0x4232f2
call eax
jmp 0x4232f2
push 0x4650a0
mov eax, 0x465098
call fcn.00423221
pop ecx
push 0x4650ac
mov eax, 0x4650a4
call fcn.00423221
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x423352
cmp dword [ebp + 0x10], edi
jne 0x423360
mov dword [0x469674], esi
push dword [ebp + 8]
call fcn.004231df
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42335f
push 8
call fcn.0042683a
pop ecx
ret
call fcn.00424cbf
ret
Function at 0x423ed6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4589b0
call fcn.00424c84
mov edi, 0x94
mov eax, edi
call fcn.00422e70
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 [0x469634], ecx
mov eax, dword [esi + 4]
mov dword [0x469640], eax
mov edx, dword [esi + 8]
mov dword [0x469644], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x469638], esi
cmp ecx, 2
je 0x423f36
or esi, 0x8000
mov dword [0x469638], esi
shl eax, 8
add eax, edx
mov dword [0x46963c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x423f71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423f71
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x423f89
cmp eax, 0x20b
je 0x423f76
mov dword [ebp - 0x1c], esi
jmp 0x423f9d
cmp dword [ecx + 0x84], 0xe
jbe 0x423f71
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x423f97
cmp dword [ecx + 0x74], 0xe
jbe 0x423f71
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042693a
pop ecx
test eax, eax
jne 0x423fb1
push 0x1c
call fcn.00423eb2
pop ecx
call fcn.004265f5
test eax, eax
jne 0x423fc2
push 0x10
call fcn.00423eb2
pop ecx
call fcn.00428133
mov dword [ebp - 4], esi
call fcn.0042a8aa
test eax, eax
jge 0x423fdb
push 0x1b
call fcn.00423e8d
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x46b020], eax
call fcn.0042a788
mov dword [0x469688], eax
call fcn.0042a6e6
test eax, eax
jge 0x424001
push 8
call fcn.00423e8d
pop ecx
call fcn.0042a4b3
test eax, eax
jge 0x424012
push 9
call fcn.00423e8d
pop ecx
push 1
call fcn.00423239
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x424028
push eax
call fcn.00423e8d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0042a456
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x424049
movzx eax, word [ebp - 0x40]
jmp 0x42404c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043211b
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42406a
push edi
call fcn.00423366
call fcn.00423388
jmp 0x42409c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00424cbf
ret
Function at 0x4274c9
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 0x4274f7
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 0x4274fe
cmp ebx, dword [eax + 4]
jae 0x4274fe
xor eax, eax
jmp 0x4276ee
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42750f
xor eax, eax
inc eax
jmp 0x4276ed
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x427525
cmp ecx, edx
jae 0x42766a
cmp dword [eax + 4], 0
je 0x42752e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x427516
cmp dword [ebp + 8], 0
je 0x427550
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42766a
cmp eax, esi
jae 0x42766a
mov eax, dword [0x469800]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x427575
cmp dword [esi*4 + 0x469808], edi
je 0x42766e
inc esi
cmp esi, eax
jl 0x427563
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4276ea
cmp dword [ebp - 8], 0x1000000
jne 0x4276ea
test byte [ebp - 0xc], 0xcc
je 0x4275f3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4276ea
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4276ea
cmp word [eax + 0x18], 0x10b
jne 0x4276ea
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4276ea
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4275f3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4275f3
test byte [ecx + 0x27], 0x80
jne 0x42766a
push 1
push 0x469848
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x427507
mov ecx, dword [0x469800]
test ecx, ecx
mov edx, ecx
jle 0x427627
lea eax, [ecx*4 + 0x469804]
cmp dword [eax], edi
je 0x427627
dec edx
sub eax, 4
test edx, edx
jg 0x42761b
test edx, edx
jne 0x427658
push 0xf
pop ebx
cmp ecx, ebx
jg 0x427634
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42764c
lea eax, [edx*4 + 0x469808]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42763a
cmp ecx, 0x10
jge 0x427658
inc ecx
mov dword [0x469800], ecx
push 0
push 0x469848
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x427507
xor eax, eax
jmp 0x4276ed
test esi, esi
jle 0x427507
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x469848
call ebx
test eax, eax
jne 0x427507
cmp dword [esi*4 + 0x469808], edi
je 0x4276c4
mov eax, dword [0x469800]
lea esi, [eax - 1]
test esi, esi
jl 0x4276b2
cmp dword [esi*4 + 0x469808], edi
je 0x4276ae
dec esi
jns 0x4276a2
test esi, esi
jge 0x4276c2
cmp eax, 0x10
jge 0x4276bd
inc eax
mov dword [0x469800], eax
lea esi, [eax - 1]
jmp 0x4276c4
je 0x4276dc
xor ecx, ecx
test esi, esi
jl 0x4276dc
lea eax, [ecx*4 + 0x469808]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4276ca
push 0
push 0x469848
call ebx
jmp 0x427507
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429cfd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4664d0]
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 + 0x466d78]
je 0x429d32
inc eax
cmp eax, 0x13
jb 0x429d23
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x466d78]
jne 0x429e58
mov eax, dword [0x469690]
cmp eax, 1
je 0x429e30
cmp eax, edx
jne 0x429d62
cmp dword [0x466544], 1
je 0x429e30
cmp ecx, 0xfc
je 0x429e58
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 0x429d98
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004278a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00424520
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x429dcc
mov eax, edi
push eax
call fcn.00424520
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x458b3c
push edi
call fcn.004237a0
add esp, 0x10
push edi
call fcn.00424520
push dword [esi + 0x466d7c]
mov ebx, eax
call fcn.00424520
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00422e70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004278a0
push edi
push ebx
call fcn.004278b0
push 0x458b38
push ebx
call fcn.004278b0
push dword [esi + 0x466d7c]
push ebx
call fcn.004278b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042c97d
add esp, 0x2c
jmp 0x429e58
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x466d7c]
push dword [esi]
call fcn.00424520
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.00422ede
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret