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

Disassembly:
sub esp, 0x118
mov eax, dword [0x459190]
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 0x417902
lea ecx, [esp + 8]
call fcn.004176c0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x417906
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 0x4178b0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004177e0
mov edi, eax
test edi, edi
jne 0x41792a
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 0x417872
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4178c9
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 0x4178e8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a6e1
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x417911
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a6e1
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417939
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.0042a6e1
add esp, 0x118
ret 4
Function at 0x417e10
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 0x417e22
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 0x41b8c0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x457824]
mov eax, 0x77c150d
imul ebp
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x9ad70599
imul ebp
add edx, ebp
mov ebp, dword [0x45781c]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0xb7fe3405
imul ebp
push esi
mov esi, dword [0x457830]
push edi
mov edi, dword [0x457838]
mov ebx, esi
imul edi, edi, 0x1685
add edx, ebp
imul ebx, ebx, 0x10e6
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x14]
add ecx, ebx
add ecx, edi
cmp eax, 0x132b600
mov dword [str._r_____r____], ecx
je 0x41b958
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41b947
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [0x457834]
imul esi, esi, 0x1643
mov eax, 0xf00f00f1
imul ebp
add edx, ebp
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x457818]
imul edx, edx, 0x2220
add eax, edx
sub eax, esi
mov dword [esp + 0x14], eax
mov eax, 0x8f2b7b75
imul dword [0x457820]
add edx, dword [0x457820]
mov eax, dword [esp + 0x14]
sar edx, 0xb
add eax, edx
mov esi, edx
shr esi, 0x1f
add esi, eax
mov eax, 0xb6adc247
imul ebp
add edx, ebp
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x56b64c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x457818], esi
mov dword [0x56b64c], eax
jle 0x41ba1f
mov eax, 0x77c150d
imul dword [0x457838]
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x17eb125
imul dword [0x45781c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
sub eax, edi
pop edi
sub eax, ecx
pop esi
lea ecx, [eax + ebx + 0x1123]
pop ebp
mov dword [0x45781c], ecx
mov eax, 1
pop ebx
ret
mov edi, dword [0x45782c]
imul ecx, ecx, 0x1a74
imul esi, esi, 0x59b
mov eax, 0x9ad70599
imul edi
add edx, edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x77826bf5
imul dword [0x457820]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
sub ecx, ebp
sub ecx, 0x2220
mov dword [0x457820], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41b380
push 0
push 0
mov dword [0x56b36c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x45782c]
mov esi, dword [str._r_____r____]
mov eax, 0x17eb125
imul esi, esi, 0x2234
imul ecx
mov ecx, dword [0x457818]
sar edx, 5
imul ecx, ecx, 0x10e6
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x457830]
mov edx, dword [0x457828]
imul edx, edx, 0x59b
sub esi, eax
pop edi
add ecx, esi
pop esi
lea eax, [edx + ecx - 0x2220]
pop ebp
mov dword [0x457824], eax
mov eax, 1
pop ebx
ret
Function at 0x420410
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x457824]
mov eax, 0x77c150d
imul ebp
sar edx, 8
push esi
mov esi, dword [0x457838]
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x2d78bd59
imul esi
sar edx, 0xa
mov ebx, esi
imul ebx, ebx, 0x2220
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
sub ecx, ebx
mov ebx, dword [0x45781c]
mov edx, ebx
imul edx, edx, 0x1568
add ecx, edx
mov eax, 0x7931d3bd
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, edi
cmp eax, 0x132b600
mov dword [0x457828], ecx
mov eax, 0x9ad70599
je 0x4204e6
imul ebp
imul esi, esi, 0x1685
add edx, ebp
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xb7fe3405
imul ebx
sub esi, ecx
mov ecx, dword [0x457830]
add edx, ebx
imul ecx, ecx, 0x10e6
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add ecx, esi
mov dword [str._r_____r____], ecx
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x4204d5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [0x457820]
mov edi, dword [0x45782c]
imul esi
imul edi, edi, 0x2220
add edx, esi
imul esi, esi, 0x1643
sar edx, 0xc
add edi, edx
mov ebp, edx
mov edx, dword [0x457830]
imul edx, edx, 0xe4e
shr ebp, 0x1f
add ebp, edi
add ebp, esi
add ebp, edx
mov eax, 0xb6adc247
imul ebx
add edx, ebx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, dword [0x56b360]
test eax, eax
mov dword [0x45782c], ebp
jne 0x42061f
mov esi, dword [0x457834]
mov eax, 0x77c150d
imul ecx
sar edx, 8
mov edi, ecx
mov eax, edx
imul edi, edi, 0x2234
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x9ad70599
imul esi
add edx, esi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0xb7fe3405
imul ecx
add edx, ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x457818]
imul edx, edx, 0x1568
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x41ee90
sub edi, ecx
push 0
add edi, edx
push 0
mov dword [0x457834], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x45782c]
mov esi, dword [str._r_____r____]
mov dword [0x56b350], eax
imul esi, esi, 0x2234
mov edi, dword [0x457830]
mov eax, 0x17eb125
imul ecx
mov eax, dword [0x457828]
sar edx, 5
imul eax, eax, 0x59b
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x457818]
imul edx, edx, 0x10e6
sub esi, ecx
add edx, edi
add edx, esi
lea ecx, [eax + edx - 0x2220]
mov dword [0x56b360], 1
mov dword [0x457824], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4218be
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 0x421911
call fcn.00442445
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x421911
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x421907
xor eax, eax
jmp 0x421a2a
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 0x421941
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 0x421941
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x421a27
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42196e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00420b33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x421a27
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4219b7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4219b7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4219b1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00420b33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x421a17
and dword [ebp + 0xc], 0
jmp 0x421a17
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x421a17
push 0xc
call fcn.0043c347
mov esi, eax
test esi, esi
pop ecx
je 0x4219f9
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 0x4219fb
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x421a12
push dword [ebp - 8]
call fcn.00437d9a
jmp 0x421a17
call fcn.00437d71
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42197c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ac6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042cebc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42ac90
test byte [esp + 8], 2
je 0x42ac90
call fcn.0042ceaa
mov dword [eax], 0xd
call fcn.0042ceb3
mov dword [eax], 5
jmp 0x42ac69
xor eax, eax
ret
Function at 0x42ad57
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44b5d0
call fcn.0042cd28
push 8
call fcn.0042ef61
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56d67c], esi
jne 0x42ad8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56d678], esi
mov al, byte [ebp + 0x10]
mov byte [0x56d674], al
cmp dword [ebp + 0xc], edi
jne 0x42add5
cmp dword [0x56ef6c], edi
je 0x42adc5
mov eax, dword [0x56ef68]
sub eax, 4
mov dword [0x56ef68], eax
cmp eax, dword [0x56ef6c]
jb 0x42adc5
mov eax, dword [eax]
cmp eax, edi
je 0x42ada6
call eax
jmp 0x42ada6
push 0x4540cc
mov eax, 0x4540c4
call fcn.0042acd5
pop ecx
push 0x4540d8
mov eax, 0x4540d0
call fcn.0042acd5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42ae06
cmp dword [ebp + 0x10], edi
jne 0x42ae14
mov dword [0x56d67c], esi
push dword [ebp + 8]
call fcn.0042ac93
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42ae13
push 8
call fcn.0042eeac
pop ecx
ret
call fcn.0042cd63
ret

Function at 0x42b087
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.0042af20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42b122
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 [0x56d63c]
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 0x42b122
cmp eax, 1
je 0x42b143
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 0x42b122
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42b0ef
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42b11e
xor eax, eax
inc eax
jmp 0x42b162
cmp edi, eax
jae 0x42b126
xor eax, eax
jmp 0x42b162
cmp eax, esi
jae 0x42b12d
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 [0x56d63c]
jmp 0x42b146
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 0x42bae2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44b688
call fcn.0042cd28
mov edi, 0x94
mov eax, edi
call fcn.0042af20
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 [0x56d63c], ecx
mov eax, dword [esi + 4]
mov dword [0x56d648], eax
mov edx, dword [esi + 8]
mov dword [0x56d64c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56d640], esi
cmp ecx, 2
je 0x42bb42
or esi, 0x8000
mov dword [0x56d640], esi
shl eax, 8
add eax, edx
mov dword [0x56d644], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42bb7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42bb7d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42bb95
cmp eax, 0x20b
je 0x42bb82
mov dword [ebp - 0x1c], esi
jmp 0x42bba9
cmp dword [ecx + 0x84], 0xe
jbe 0x42bb7d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42bba3
cmp dword [ecx + 0x74], 0xe
jbe 0x42bb7d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042f0a2
pop ecx
test eax, eax
jne 0x42bbbd
push 0x1c
call fcn.0042babe
pop ecx
call fcn.0042dedd
test eax, eax
jne 0x42bbce
push 0x10
call fcn.0042babe
pop ecx
call fcn.0042ef92
mov dword [ebp - 4], esi
call fcn.00431c6f
test eax, eax
jge 0x42bbe7
push 0x1b
call fcn.0042ba99
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56ef60], eax
call fcn.00431b4d
mov dword [0x56d688], eax
call fcn.00431aab
test eax, eax
jge 0x42bc0d
push 8
call fcn.0042ba99
pop ecx
call fcn.00431878
test eax, eax
jge 0x42bc1e
push 9
call fcn.0042ba99
pop ecx
push 1
call fcn.0042aced
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42bc34
push eax
call fcn.0042ba99
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043181b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42bc55
movzx eax, word [ebp - 0x40]
jmp 0x42bc58
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043743e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42bc76
push edi
call fcn.0042ae1a
call fcn.0042ae3c
jmp 0x42bca8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042cd63
ret
Function at 0x42fc31
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 0x42fc5f
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 0x42fc66
cmp ebx, dword [eax + 4]
jae 0x42fc66
xor eax, eax
jmp 0x42fe56
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42fc77
xor eax, eax
inc eax
jmp 0x42fe55
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42fc8d
cmp ecx, edx
jae 0x42fdd2
cmp dword [eax + 4], 0
je 0x42fc96
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42fc7e
cmp dword [ebp + 8], 0
je 0x42fcb8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42fdd2
cmp eax, esi
jae 0x42fdd2
mov eax, dword [0x56d818]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42fcdd
cmp dword [esi*4 + 0x56d820], edi
je 0x42fdd6
inc esi
cmp esi, eax
jl 0x42fccb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42fe52
cmp dword [ebp - 8], 0x1000000
jne 0x42fe52
test byte [ebp - 0xc], 0xcc
je 0x42fd5b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42fe52
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42fe52
cmp word [eax + 0x18], 0x10b
jne 0x42fe52
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42fe52
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42fd5b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42fd5b
test byte [ecx + 0x27], 0x80
jne 0x42fdd2
push 1
push 0x56d860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42fc6f
mov ecx, dword [0x56d818]
test ecx, ecx
mov edx, ecx
jle 0x42fd8f
lea eax, [ecx*4 + 0x56d81c]
cmp dword [eax], edi
je 0x42fd8f
dec edx
sub eax, 4
test edx, edx
jg 0x42fd83
test edx, edx
jne 0x42fdc0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42fd9c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42fdb4
lea eax, [edx*4 + 0x56d820]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42fda2
cmp ecx, 0x10
jge 0x42fdc0
inc ecx
mov dword [0x56d818], ecx
push 0
push 0x56d860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42fc6f
xor eax, eax
jmp 0x42fe55
test esi, esi
jle 0x42fc6f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56d860
call ebx
test eax, eax
jne 0x42fc6f
cmp dword [esi*4 + 0x56d820], edi
je 0x42fe2c
mov eax, dword [0x56d818]
lea esi, [eax - 1]
test esi, esi
jl 0x42fe1a
cmp dword [esi*4 + 0x56d820], edi
je 0x42fe16
dec esi
jns 0x42fe0a
test esi, esi
jge 0x42fe2a
cmp eax, 0x10
jge 0x42fe25
inc eax
mov dword [0x56d818], eax
lea esi, [eax - 1]
jmp 0x42fe2c
je 0x42fe44
xor ecx, ecx
test esi, esi
jl 0x42fe44
lea eax, [ecx*4 + 0x56d820]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42fe32
push 0
push 0x56d860
call ebx
jmp 0x42fc6f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431507
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x459190]
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 + 0x459a70]
je 0x43153c
inc eax
cmp eax, 0x13
jb 0x43152d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x459a70]
jne 0x431662
mov eax, dword [0x56d690]
cmp eax, 1
je 0x43163a
cmp eax, edx
jne 0x43156c
cmp dword [0x4591d4], 1
je 0x43163a
cmp ecx, 0xfc
je 0x431662
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 0x4315a2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00432c00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042c050
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4315d6
mov eax, edi
push eax
call fcn.0042c050
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44b7d0
push edi
call fcn.0042b930
add esp, 0x10
push edi
call fcn.0042c050
push dword [esi + 0x459a74]
mov ebx, eax
call fcn.0042c050
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042af20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00432c00
push edi
push ebx
call fcn.00432c10
push 0x4481b4
push ebx
call fcn.00432c10
push dword [esi + 0x459a74]
push ebx
call fcn.00432c10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004336fa
add esp, 0x2c
jmp 0x431662
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x459a74]
push dword [esi]
call fcn.0042c050
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.0042a6e1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4336fa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56dab0], ebx
push esi
push edi
jne 0x43377a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4337b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44c5ec
push edi
call esi
test eax, eax
mov dword [0x56dab0], eax
je 0x4337b5
push 0x44c5dc
push edi
call esi
push 0x44c5c8
push edi
mov dword [0x56dab4], eax
call esi
cmp dword [0x56d63c], 2
mov dword [0x56dab8], eax
jne 0x43377a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56dac0], eax
je 0x43377a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56dabc], eax
mov eax, dword [0x56dabc]
test eax, eax
je 0x4337bf
call eax
test eax, eax
je 0x4337a6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56dac0]
test eax, eax
je 0x4337a6
test byte [ebp - 8], 1
jne 0x4337bf
cmp dword [0x56d648], 4
jb 0x4337b9
or byte [ebp + 0x12], 0x20
jmp 0x4337de
xor eax, eax
jmp 0x4337ee
or byte [ebp + 0x12], 4
jmp 0x4337de
mov eax, dword [0x56dab4]
test eax, eax
je 0x4337de
call eax
mov ebx, eax
test ebx, ebx
je 0x4337de
mov eax, dword [0x56dab8]
test eax, eax
je 0x4337de
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56dab0]
pop edi
pop esi
pop ebx
leave
ret