joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x452944]
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 0x40ddd2
lea ecx, [esp + 8]
call fcn.0040db90
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40ddd6
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 0x40dd80
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040dcb0
mov edi, eax
test edi, edi
jne 0x40ddfa
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 0x40dd42
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40dd99
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 0x40ddb8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424991
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40dde1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424991
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de09
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.00424991
add esp, 0x118
ret 4
Function at 0x411740
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [0x4518dc]
push esi
mov esi, dword [0x4518f4]
push edi
imul esi, esi, 0x62fe
mov edi, dword [0x4518e8]
mov eax, 0x58fba7b7
imul edi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4518d8]
mov ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, edx
cmp eax, 0x132b600
lea edx, [ecx + ebx + 0xd46b]
mov dword [str._r_____r_____n], edx
je 0x4117b0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
jmp 0x4117a0
push 0x3e8
call edi
dec esi
jne 0x4117a0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [0x4518ec]
mov eax, 0xd45237bd
imul edi
push ebp
sar edx, 0xd
mov ebp, ecx
imul ebp, ebp, 0x5c10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4518f0]
sub eax, ebp
mov ebp, eax
mov eax, 0x27a02fad
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4518d4]
sub ebp, eax
add ebp, dword [str._r_____r_____n]
lea eax, [edx + ebp - 0x5a74]
mov dword [0x4518d4], eax
mov eax, dword [0x563c68]
mov edx, eax
inc eax
test edx, edx
mov dword [0x563c68], eax
pop ebp
jle 0x41184d
mov eax, 0x7225d683
imul ecx, ecx, 0xd4a0
imul ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add ecx, edx
mov edx, dword [0x4518e0]
add eax, ecx
sub eax, esi
sub eax, edx
pop edi
add eax, 0x131b4
pop esi
mov dword [0x4518d8], eax
mov eax, 1
pop ebx
ret
mov eax, 0x57bc6617
imul ebx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xf1bde717
imul edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
sub eax, ecx
mov ecx, dword [0x4518f4]
lea edx, [eax + ecx - 0x5a6f]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x411310
push 0
push 0
mov dword [0x563978], 0
mov dword [0x4518dc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4518e8]
mov esi, dword [0x4518d8]
mov eax, 0x9a5307c5
imul esi, esi, 0xd4a0
imul ecx
mov eax, dword [0x4518f0]
add edx, ecx
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4518e4]
imul edx, edx, 0x33af
sub esi, ecx
add esi, eax
lea eax, [edx + esi + 0xc49d]
pop edi
pop esi
mov dword [0x4518e0], eax
mov eax, 1
pop ebx
ret
Function at 0x4151a0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4518e4]
mov eax, 0xa5820cf9
imul ecx
add edx, ecx
mov ecx, dword [0x4518f4]
sar edx, 0xe
imul ecx, ecx, 0x5a75
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, eax
sub esi, ecx
mov ecx, dword [0x4518e0]
mov eax, 0x7225d683
imul ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [esp + 8]
add esi, 0x1f366
cmp eax, 0x132b600
mov dword [0x4518e4], esi
je 0x415215
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x415206
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [0x4518dc]
imul ecx, ecx, 0x5a75
imul esi, esi, 0x5c10
add esi, ecx
mov ecx, dword [0x4518d8]
mov edx, ecx
imul edx, edx, 0xbb8d
sub esi, edx
mov eax, 0x27a02fad
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x56396c]
test eax, eax
mov dword [0x4518e8], esi
jne 0x4152c8
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x413fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4518e8]
mov esi, dword [0x4518d8]
mov dword [0x56395c], eax
imul esi, esi, 0xd4a0
mov eax, 0x9a5307c5
imul ecx
add edx, ecx
mov ecx, dword [0x4518e4]
sar edx, 0xf
imul ecx, ecx, 0x33af
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x4518f0]
lea edx, [ecx + esi + 0xc49d]
mov dword [0x56396c], 1
mov dword [0x4518e0], edx
mov eax, 1
pop esi
ret
Function at 0x4176e0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43f818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x4518e8]
mov eax, 0x58fba7b7
imul ecx
mov ecx, dword [0x4518dc]
push esi
mov esi, dword [0x4518f4]
imul esi, esi, 0x62fe
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4518d8]
sub esi, eax
mov eax, dword [0x567354]
sub esi, edx
lea edx, [esi + ecx + 0xd46b]
mov ecx, 0x567354
mov dword [str._r_____r_____n], edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [0x4518dc]
mov eax, 0x57bc6617
imul ecx
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov esi, ecx
mov ecx, dword [0x4518e8]
mov eax, 0xf1bde717
imul ecx
mov ecx, dword [0x4518ec]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
sub eax, ecx
mov ecx, dword [0x4518f4]
lea edx, [eax + ecx - 0x5a6f]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov dword [0x4518dc], edx
call fcn.00417450
mov ecx, dword [0x4518d8]
mov esi, dword [0x4518dc]
mov edx, dword [0x4518e0]
imul esi, esi, 0x5c10
mov eax, ecx
imul edx, edx, 0x5a75
imul eax, eax, 0xbb8d
add esi, edx
sub esi, eax
mov eax, 0x27a02fad
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov dword [0x4518e8], esi
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x417824
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 0x41bb43
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 0x41bb96
call fcn.0043c702
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41bb96
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41bb8c
xor eax, eax
jmp 0x41bcaf
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 0x41bbc6
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 0x41bbc6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41bcac
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41bbf3
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041c2e7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41bcac
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41bc3c
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41bc3c
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41bc36
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041c2e7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41bc9c
and dword [ebp + 0xc], 0
jmp 0x41bc9c
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41bc9c
push 0xc
call fcn.00436604
mov esi, eax
test esi, esi
pop ecx
je 0x41bc7e
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 0x41bc80
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41bc97
push dword [ebp - 8]
call fcn.00432057
jmp 0x41bc9c
call fcn.0043202e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41bc01
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x424ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042713c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x424ef0
test byte [esp + 8], 2
je 0x424ef0
call fcn.0042712a
mov dword [eax], 0xd
call fcn.00427133
mov dword [eax], 5
jmp 0x424ec9
xor eax, eax
ret
Function at 0x424fb7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x445510
call fcn.00426fa8
push 8
call fcn.00428840
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x566e44], esi
jne 0x424feb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x566e40], esi
mov al, byte [ebp + 0x10]
mov byte [0x566e3c], al
cmp dword [ebp + 0xc], edi
jne 0x425035
cmp dword [0x56872c], edi
je 0x425025
mov eax, dword [0x568728]
sub eax, 4
mov dword [0x568728], eax
cmp eax, dword [0x56872c]
jb 0x425025
mov eax, dword [eax]
cmp eax, edi
je 0x425006
call eax
jmp 0x425006
push 0x44e0d0
mov eax, 0x44e0c8
call fcn.00424f35
pop ecx
push 0x44e0dc
mov eax, 0x44e0d4
call fcn.00424f35
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x425066
cmp dword [ebp + 0x10], edi
jne 0x425074
mov dword [0x566e44], esi
push dword [ebp + 8]
call fcn.00424ef3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x425073
push 8
call fcn.0042878b
pop ecx
ret
call fcn.00426fe3
ret

Function at 0x425347
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.004251e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4253e2
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 [0x566e04]
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 0x4253e2
cmp eax, 1
je 0x425403
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 0x4253e2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4253af
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4253de
xor eax, eax
inc eax
jmp 0x425422
cmp edi, eax
jae 0x4253e6
xor eax, eax
jmp 0x425422
cmp eax, esi
jae 0x4253ed
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 [0x566e04]
jmp 0x425406
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 0x42559a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x445540
call fcn.00426fa8
mov edi, 0x94
mov eax, edi
call fcn.004251e0
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 [0x566e04], ecx
mov eax, dword [esi + 4]
mov dword [0x566e10], eax
mov edx, dword [esi + 8]
mov dword [0x566e14], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x566e08], esi
cmp ecx, 2
je 0x4255fa
or esi, 0x8000
mov dword [0x566e08], esi
shl eax, 8
add eax, edx
mov dword [0x566e0c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x425635
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425635
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42564d
cmp eax, 0x20b
je 0x42563a
mov dword [ebp - 0x1c], esi
jmp 0x425661
cmp dword [ecx + 0x84], 0xe
jbe 0x425635
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42565b
cmp dword [ecx + 0x74], 0xe
jbe 0x425635
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00429322
pop ecx
test eax, eax
jne 0x425675
push 0x1c
call fcn.00425576
pop ecx
call fcn.0042815d
test eax, eax
jne 0x425686
push 0x10
call fcn.00425576
pop ecx
call fcn.00428871
mov dword [ebp - 4], esi
call fcn.0042a842
test eax, eax
jge 0x42569f
push 0x1b
call fcn.00425551
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x568720], eax
call fcn.0042a720
mov dword [0x566e48], eax
call fcn.0042a67e
test eax, eax
jge 0x4256c5
push 8
call fcn.00425551
pop ecx
call fcn.0042a44b
test eax, eax
jge 0x4256d6
push 9
call fcn.00425551
pop ecx
push 1
call fcn.00424f4d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4256ec
push eax
call fcn.00425551
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042a3ee
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42570d
movzx eax, word [ebp - 0x40]
jmp 0x425710
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043170e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42572e
push edi
call fcn.0042507a
call fcn.0042509c
jmp 0x425760
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00426fe3
ret
Function at 0x429eb1
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 0x429edf
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 0x429ee6
cmp ebx, dword [eax + 4]
jae 0x429ee6
xor eax, eax
jmp 0x42a0d6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x429ef7
xor eax, eax
inc eax
jmp 0x42a0d5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x429f0d
cmp ecx, edx
jae 0x42a052
cmp dword [eax + 4], 0
je 0x429f16
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x429efe
cmp dword [ebp + 8], 0
je 0x429f38
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42a052
cmp eax, esi
jae 0x42a052
mov eax, dword [0x566fe0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x429f5d
cmp dword [esi*4 + 0x566fe8], edi
je 0x42a056
inc esi
cmp esi, eax
jl 0x429f4b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a0d2
cmp dword [ebp - 8], 0x1000000
jne 0x42a0d2
test byte [ebp - 0xc], 0xcc
je 0x429fdb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42a0d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42a0d2
cmp word [eax + 0x18], 0x10b
jne 0x42a0d2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42a0d2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x429fdb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x429fdb
test byte [ecx + 0x27], 0x80
jne 0x42a052
push 1
push 0x567028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x429eef
mov ecx, dword [0x566fe0]
test ecx, ecx
mov edx, ecx
jle 0x42a00f
lea eax, [ecx*4 + 0x566fe4]
cmp dword [eax], edi
je 0x42a00f
dec edx
sub eax, 4
test edx, edx
jg 0x42a003
test edx, edx
jne 0x42a040
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42a01c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42a034
lea eax, [edx*4 + 0x566fe8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42a022
cmp ecx, 0x10
jge 0x42a040
inc ecx
mov dword [0x566fe0], ecx
push 0
push 0x567028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x429eef
xor eax, eax
jmp 0x42a0d5
test esi, esi
jle 0x429eef
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x567028
call ebx
test eax, eax
jne 0x429eef
cmp dword [esi*4 + 0x566fe8], edi
je 0x42a0ac
mov eax, dword [0x566fe0]
lea esi, [eax - 1]
test esi, esi
jl 0x42a09a
cmp dword [esi*4 + 0x566fe8], edi
je 0x42a096
dec esi
jns 0x42a08a
test esi, esi
jge 0x42a0aa
cmp eax, 0x10
jge 0x42a0a5
inc eax
mov dword [0x566fe0], eax
lea esi, [eax - 1]
jmp 0x42a0ac
je 0x42a0c4
xor ecx, ecx
test esi, esi
jl 0x42a0c4
lea eax, [ecx*4 + 0x566fe8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42a0b2
push 0
push 0x567028
call ebx
jmp 0x429eef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a0da
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x452944]
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 + 0x452ee8]
je 0x42a10f
inc eax
cmp eax, 0x13
jb 0x42a100
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x452ee8]
jne 0x42a235
mov eax, dword [0x566e50]
cmp eax, 1
je 0x42a20d
cmp eax, edx
jne 0x42a13f
cmp dword [0x452954], 1
je 0x42a20d
cmp ecx, 0xfc
je 0x42a235
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 0x42a175
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042ce90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004262d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a1a9
mov eax, edi
push eax
call fcn.004262d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x445710
push edi
call fcn.00425c00
add esp, 0x10
push edi
call fcn.004262d0
push dword [esi + 0x452eec]
mov ebx, eax
call fcn.004262d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004251e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042ce90
push edi
push ebx
call fcn.0042cea0
push 0x441fb4
push ebx
call fcn.0042cea0
push dword [esi + 0x452eec]
push ebx
call fcn.0042cea0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042d9d1
add esp, 0x2c
jmp 0x42a235
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x452eec]
push dword [esi]
call fcn.004262d0
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.00424991
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42d9d1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x567278], ebx
push esi
push edi
jne 0x42da51
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42da8c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44652c
push edi
call esi
test eax, eax
mov dword [0x567278], eax
je 0x42da8c
push 0x44651c
push edi
call esi
push 0x446508
push edi
mov dword [0x56727c], eax
call esi
cmp dword [0x566e04], 2
mov dword [0x567280], eax
jne 0x42da51
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x567288], eax
je 0x42da51
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x567284], eax
mov eax, dword [0x567284]
test eax, eax
je 0x42da96
call eax
test eax, eax
je 0x42da7d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x567288]
test eax, eax
je 0x42da7d
test byte [ebp - 8], 1
jne 0x42da96
cmp dword [0x566e10], 4
jb 0x42da90
or byte [ebp + 0x12], 0x20
jmp 0x42dab5
xor eax, eax
jmp 0x42dac5
or byte [ebp + 0x12], 4
jmp 0x42dab5
mov eax, dword [0x56727c]
test eax, eax
je 0x42dab5
call eax
mov ebx, eax
test ebx, ebx
je 0x42dab5
mov eax, dword [0x567280]
test eax, eax
je 0x42dab5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x567278]
pop edi
pop esi
pop ebx
leave
ret