joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.10006520
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0xc]
shr ecx, 2
test eax, eax
jne 0x100064e1
test ecx, ecx
jle 0x10006516
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jl 0x100064cb
pop edi
pop esi
ret 4
jbe 0x10006516
xor eax, eax
test ecx, ecx
jle 0x10006516
push ebx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edi, dword [edi + eax*4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, dword [edi + eax*4]
xor ebx, edi
inc eax
cmp eax, ecx
mov dword [edx], ebx
jl 0x100064ea
pop ebx
pop edi
pop esi
ret 4

Function at 0x10006520
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push edi
push edi
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], esi
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
push 0xcc0020
push edi
push edi
push ebp
push edx
push eax
push edi
push edi
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ax, word [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov word [esp + 0x26], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov ecx, 0xa
lea esi, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x18], 0x28
mov dword [esp + 0x20], edx
mov word [esp + 0x24], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov edi, dword [esp + 0x10]
push 0
mov esi, dword [esp + 0x18]
push eax
add ecx, dword [ebx + 4]
push ecx
push edx
push 0
push edi
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebp
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401900
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 0x401919
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40192d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40194e
cmp esi, eax
jae 0x401927
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401940
cmp esi, eax
jae 0x401927
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4086e0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44a298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cccc]
mov eax, 0x3b87af8d
imul ecx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push esi
mov esi, dword [0x45ccd4]
push edi
mov edi, eax
mov eax, 0xe0e0bbb3
imul esi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x1f1f444d
imul ecx
imul ecx, ecx, 0x530e8f
sar edx, 0x14
sub ebx, edi
mov edi, edx
add ebx, edx
mov eax, 0x61fd3f09
imul esi
sar edx, 0x15
shr edi, 0x1f
mov eax, edx
add edi, ebx
add edi, edx
mov edx, dword [0x45cce8]
imul edx, edx, 0x569052
shr eax, 0x1f
add eax, edi
add eax, edx
mov edx, dword [0x57304c]
add eax, ecx
mov ecx, dword [0x45ccdc]
imul ecx, ecx, 0x5184aa
add eax, ecx
mov ecx, 0x57304c
mov dword [str._r_____r____], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x45ccd0]
mov eax, 0x26bae4e5
imul ecx
mov ecx, dword [0x45ccd8]
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xd0d507c9
imul ecx
add edx, ecx
imul ecx, ecx, 0x839c4a
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
sub edi, esi
add edi, ecx
mov ecx, dword [0x45ccdc]
mov eax, 0x1f1f444d
imul ecx
sar edx, 0x14
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cce8]
imul edx, edx, 0x569052
sub edi, ecx
mov dword [esp + 0x18], 0
add edi, edx
mov eax, dword [0x45ccc8]
mov ebx, dword [0x45cce4]
imul eax, eax, 0x5184aa
mov edx, dword [esp + 0x20]
add edi, eax
lea ecx, [esp + 0x24]
push ecx
sub edi, ebx
sub edi, 0x273a49
push edx
lea ecx, [esp + 0x14]
mov dword [0x45ccd0], edi
call fcn.00408450
mov ecx, dword [0x45cccc]
mov eax, dword [0x45ccd0]
mov edx, dword [0x45ccdc]
mov esi, dword [0x45cce4]
imul edx, edx, 0x273a49
lea edi, [eax + ecx]
imul edi, edi, 0x44ce3d
add edi, edx
mov eax, 0x1f1f444d
imul esi
sar edx, 0x14
mov ebx, edx
add edi, edx
mov eax, 0x61fd3f09
imul esi
mov eax, dword [0x45cce0]
imul eax, eax, 0x6489e9
sar edx, 0x15
shr ebx, 0x1f
mov esi, edx
shr esi, 0x1f
add ebx, edi
add ebx, edx
add esi, ebx
add esi, eax
mov eax, 0x647e2ce7
imul ecx
sar edx, 0x15
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov dword [0x45ccdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebx
jg 0x4088d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b3c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45e640]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b4e2
lea ecx, [esp + 8]
call fcn.0041b2a0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x41b4e6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b490
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0041b3c0
mov edi, eax
test edi, edi
jne 0x41b50a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b452
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41b4a9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b4c8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fa01
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x41b4f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fa01
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b519
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042fa01
add esp, 0x118
ret 4
Function at 0x41b9f0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41ba02
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x426bde
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 0x426c31
call fcn.00447755
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426c31
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426c27
xor eax, eax
jmp 0x426d4a
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 0x426c61
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 0x426c61
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x426d47
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x426c8e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00425e53
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x426d47
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x426cd7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x426cd7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x426cd1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00425e53
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x426d37
and dword [ebp + 0xc], 0
jmp 0x426d37
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x426d37
push 0xc
call fcn.00441657
mov esi, eax
test esi, esi
pop ecx
je 0x426d19
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 0x426d1b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x426d32
push dword [ebp - 8]
call fcn.0043d0aa
jmp 0x426d37
call fcn.0043d081
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x426c9c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ff6d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ff8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004321cc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42ffb0
test byte [esp + 8], 2
je 0x42ffb0
call fcn.004321ba
mov dword [eax], 0xd
call fcn.004321c3
mov dword [eax], 5
jmp 0x42ff89
xor eax, eax
ret
Function at 0x430077
Capabilities:
Terminate process

Disassembly:
push 8
push 0x450738
call fcn.00432038
push 8
call fcn.00434271
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x572b3c], esi
jne 0x4300ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x572b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x572b34], al
cmp dword [ebp + 0xc], edi
jne 0x4300f5
cmp dword [0x57442c], edi
je 0x4300e5
mov eax, dword [0x574428]
sub eax, 4
mov dword [0x574428], eax
cmp eax, dword [0x57442c]
jb 0x4300e5
mov eax, dword [eax]
cmp eax, edi
je 0x4300c6
call eax
jmp 0x4300c6
push 0x4590cc
mov eax, 0x4590c4
call fcn.0042fff5
pop ecx
push 0x4590d8
mov eax, 0x4590d0
call fcn.0042fff5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430126
cmp dword [ebp + 0x10], edi
jne 0x430134
mov dword [0x572b3c], esi
push dword [ebp + 8]
call fcn.0042ffb3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430133
push 8
call fcn.004341bc
pop ecx
ret
call fcn.00432073
ret

Function at 0x4303a7
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.00430240
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430442
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 [0x572afc]
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 0x430442
cmp eax, 1
je 0x430463
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 0x430442
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43040f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43043e
xor eax, eax
inc eax
jmp 0x430482
cmp edi, eax
jae 0x430446
xor eax, eax
jmp 0x430482
cmp eax, esi
jae 0x43044d
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 [0x572afc]
jmp 0x430466
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 0x430df2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4507f0
call fcn.00432038
mov edi, 0x94
mov eax, edi
call fcn.00430240
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 [0x572afc], ecx
mov eax, dword [esi + 4]
mov dword [0x572b08], eax
mov edx, dword [esi + 8]
mov dword [0x572b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x572b00], esi
cmp ecx, 2
je 0x430e52
or esi, 0x8000
mov dword [0x572b00], esi
shl eax, 8
add eax, edx
mov dword [0x572b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x430e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430e8d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x430ea5
cmp eax, 0x20b
je 0x430e92
mov dword [ebp - 0x1c], esi
jmp 0x430eb9
cmp dword [ecx + 0x84], 0xe
jbe 0x430e8d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x430eb3
cmp dword [ecx + 0x74], 0xe
jbe 0x430e8d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004343b2
pop ecx
test eax, eax
jne 0x430ecd
push 0x1c
call fcn.00430dce
pop ecx
call fcn.004331ed
test eax, eax
jne 0x430ede
push 0x10
call fcn.00430dce
pop ecx
call fcn.004342a2
mov dword [ebp - 4], esi
call fcn.00436f7f
test eax, eax
jge 0x430ef7
push 0x1b
call fcn.00430da9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x574420], eax
call fcn.00436e5d
mov dword [0x572b48], eax
call fcn.00436dbb
test eax, eax
jge 0x430f1d
push 8
call fcn.00430da9
pop ecx
call fcn.00436b88
test eax, eax
jge 0x430f2e
push 9
call fcn.00430da9
pop ecx
push 1
call fcn.0043000d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x430f44
push eax
call fcn.00430da9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00436b2b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x430f65
movzx eax, word [ebp - 0x40]
jmp 0x430f68
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043c74e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x430f86
push edi
call fcn.0043013a
call fcn.0043015c
jmp 0x430fb8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432073
ret
Function at 0x434f41
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 0x434f6f
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 0x434f76
cmp ebx, dword [eax + 4]
jae 0x434f76
xor eax, eax
jmp 0x435166
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x434f87
xor eax, eax
inc eax
jmp 0x435165
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x434f9d
cmp ecx, edx
jae 0x4350e2
cmp dword [eax + 4], 0
je 0x434fa6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x434f8e
cmp dword [ebp + 8], 0
je 0x434fc8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4350e2
cmp eax, esi
jae 0x4350e2
mov eax, dword [0x572cd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x434fed
cmp dword [esi*4 + 0x572ce0], edi
je 0x4350e6
inc esi
cmp esi, eax
jl 0x434fdb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435162
cmp dword [ebp - 8], 0x1000000
jne 0x435162
test byte [ebp - 0xc], 0xcc
je 0x43506b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435162
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435162
cmp word [eax + 0x18], 0x10b
jne 0x435162
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435162
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43506b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43506b
test byte [ecx + 0x27], 0x80
jne 0x4350e2
push 1
push 0x572d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x434f7f
mov ecx, dword [0x572cd8]
test ecx, ecx
mov edx, ecx
jle 0x43509f
lea eax, [ecx*4 + 0x572cdc]
cmp dword [eax], edi
je 0x43509f
dec edx
sub eax, 4
test edx, edx
jg 0x435093
test edx, edx
jne 0x4350d0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4350ac
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4350c4
lea eax, [edx*4 + 0x572ce0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4350b2
cmp ecx, 0x10
jge 0x4350d0
inc ecx
mov dword [0x572cd8], ecx
push 0
push 0x572d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x434f7f
xor eax, eax
jmp 0x435165
test esi, esi
jle 0x434f7f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x572d20
call ebx
test eax, eax
jne 0x434f7f
cmp dword [esi*4 + 0x572ce0], edi
je 0x43513c
mov eax, dword [0x572cd8]
lea esi, [eax - 1]
test esi, esi
jl 0x43512a
cmp dword [esi*4 + 0x572ce0], edi
je 0x435126
dec esi
jns 0x43511a
test esi, esi
jge 0x43513a
cmp eax, 0x10
jge 0x435135
inc eax
mov dword [0x572cd8], eax
lea esi, [eax - 1]
jmp 0x43513c
je 0x435154
xor ecx, ecx
test esi, esi
jl 0x435154
lea eax, [ecx*4 + 0x572ce0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435142
push 0
push 0x572d20
call ebx
jmp 0x434f7f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436817
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45e640]
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 + 0x45ef20]
je 0x43684c
inc eax
cmp eax, 0x13
jb 0x43683d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ef20]
jne 0x436972
mov eax, dword [0x572b50]
cmp eax, 1
je 0x43694a
cmp eax, edx
jne 0x43687c
cmp dword [0x45e684], 1
je 0x43694a
cmp ecx, 0xfc
je 0x436972
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 0x4368b2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00437f10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00431360
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4368e6
mov eax, edi
push eax
call fcn.00431360
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x450938
push edi
call fcn.00430c40
add esp, 0x10
push edi
call fcn.00431360
push dword [esi + 0x45ef24]
mov ebx, eax
call fcn.00431360
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00430240
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00437f10
push edi
push ebx
call fcn.00437f20
push 0x44d278
push ebx
call fcn.00437f20
push dword [esi + 0x45ef24]
push ebx
call fcn.00437f20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00438a0a
add esp, 0x2c
jmp 0x436972
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45ef24]
push dword [esi]
call fcn.00431360
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.0042fa01
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x438a0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x572f70], ebx
push esi
push edi
jne 0x438a8a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438ac5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451754
push edi
call esi
test eax, eax
mov dword [0x572f70], eax
je 0x438ac5
push 0x451744
push edi
call esi
push 0x451730
push edi
mov dword [0x572f74], eax
call esi
cmp dword [0x572afc], 2
mov dword [0x572f78], eax
jne 0x438a8a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x572f80], eax
je 0x438a8a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x572f7c], eax
mov eax, dword [0x572f7c]
test eax, eax
je 0x438acf
call eax
test eax, eax
je 0x438ab6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x572f80]
test eax, eax
je 0x438ab6
test byte [ebp - 8], 1
jne 0x438acf
cmp dword [0x572b08], 4
jb 0x438ac9
or byte [ebp + 0x12], 0x20
jmp 0x438aee
xor eax, eax
jmp 0x438afe
or byte [ebp + 0x12], 4
jmp 0x438aee
mov eax, dword [0x572f74]
test eax, eax
je 0x438aee
call eax
mov ebx, eax
test ebx, ebx
je 0x438aee
mov eax, dword [0x572f78]
test eax, eax
je 0x438aee
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x572f70]
pop edi
pop esi
pop ebx
leave
ret