joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, dword [0x456824]
mov eax, 0xbdd265f5
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45681c]
mov esi, eax
mov eax, 0x5f7fac71
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x1525
mov ebx, dword [esp + 0x20]
sub esi, eax
add esi, edx
mov eax, 0x61e35267
imul ecx
mov ecx, dword [0x456838]
sar edx, 0xb
imul ecx, ecx, 0x58f
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esp + 0x14]
sub esi, eax
push edx
xor edi, edi
add esi, ecx
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [str._r_____r____], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x40dd70
mov ecx, dword [0x456838]
mov edi, dword [0x45681c]
mov eax, 0xbdd265f5
imul ecx
add edx, ecx
imul ecx, ecx, 0x58f
sar edx, 0xc
push ebp
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0xc152500d
imul edi
add edx, edi
sar edx, 0xc
mov eax, edx
add ebp, edx
mov edx, dword [0x456830]
imul edx, edx, 0x1525
shr eax, 0x1f
add eax, ebp
add eax, edx
sub eax, ecx
sub eax, dword [str._r_____r____]
add eax, 0x1126
push esi
mov dword [0x45681c], eax
call fcn.0043bfb2
add esp, 4
mov edi, eax
push edi
push esi
xor esi, esi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebp
je 0x40dd5b
mov ebx, dword [0x456828]
mov eax, dword [str._r_____r____]
imul ebx, ebx, 0x1ec0
mov ecx, dword [0x45682c]
imul eax, eax, 0x1594
add ebx, eax
mov eax, 0xc152500d
imul ecx
mov eax, dword [0x456830]
add edx, ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0x1525
sub ebx, ecx
add ebx, eax
lea eax, [edx + ebx - 0x11cf]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4471f4
push edi
mov dword [0x456824], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dd00
mov ecx, dword [0x456828]
mov eax, 0xbdd265f5
imul ecx
add edx, ecx
mov esi, ecx
sar edx, 0xc
imul esi, esi, 0x1594
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x5f7fac71
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0x1530
sub esi, ecx
mov ecx, dword [0x456834]
add esi, edx
mov eax, 0x61e35267
imul ecx
mov ecx, dword [esp + 0xc]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x456834], esi
mov dx, word [ecx + 0x14]
mov word [esp + 0x10], dx
mov ecx, dword [0x45681c]
mov eax, 0x214d0215
imul ecx
mov ecx, dword [0x456820]
mov esi, ecx
sar edx, 0xa
imul esi, esi, 0x1572
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x61e35267
imul ecx
mov eax, dword [0x456830]
sar edx, 0xb
imul eax, eax, 0xcde
add esi, edx
mov ecx, edx
mov edx, dword [0x45682c]
imul edx, edx, 0x11cf
shr ecx, 0x1f
add ecx, esi
add ecx, edx
add ecx, eax
mov dword [0x45682c], ecx
push edi
call fcn.0043bfb7
mov ax, word [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4175c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x458190]
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 0x4176e2
lea ecx, [esp + 8]
call fcn.004174a0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x4176e6
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 0x417690
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004175c0
mov edi, eax
test edi, edi
jne 0x41770a
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 0x417652
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4176a9
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 0x4176c8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a321
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4176f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a321
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417719
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.0042a321
add esp, 0x118
ret 4
Function at 0x417bf0
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 0x417c02
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 0x41b620
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x456824]
mov eax, 0xbdd265f5
imul ebp
add edx, ebp
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, eax
mov ecx, dword [0x456830]
mov ebx, dword [0x456838]
mov eax, 0x5f7fac71
imul ebx, ebx, 0x58f
imul dword [0x45681c]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x61e35267
imul ebp
push edi
sar edx, 0xb
mov edi, ecx
imul edi, edi, 0x1525
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [esp + 0x14]
add esi, ebx
add esi, edi
cmp eax, 0x132b600
mov dword [str._r_____r____], esi
je 0x41b6b4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41b6a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [0x456834]
imul ecx, ecx, 0xffffea8e
mov eax, 0x214d0215
imul ebp
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0xe6005641
imul ebp
add edx, ebp
sar edx, 0xc
add ecx, edx
mov eax, edx
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x456818]
imul ecx, ecx, 0x11cf
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, 0x4f950fb3
imul dword [0x456820]
mov eax, dword [esp + 0x14]
sar edx, 0xa
add eax, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, eax
mov eax, dword [0x56a64c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x456818], ecx
mov dword [0x56a64c], eax
jle 0x41b77b
mov ecx, dword [0x456838]
mov eax, 0xbdd265f5
imul ecx
add edx, ecx
mov ecx, dword [0x45681c]
sar edx, 0xc
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0xc152500d
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ebx
sub eax, esi
lea ecx, [eax + edi + 0x1126]
pop edi
pop esi
pop ebp
mov dword [0x45681c], ecx
mov eax, 1
pop ebx
ret
mov edx, dword [0x45682c]
imul ecx, ecx, 0x1ec0
imul esi, esi, 0x14ec
mov eax, 0x61e35267
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x776d83ad
imul dword [0x456820]
sar edx, 0xb
mov eax, edx
add ecx, esi
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, ebp
sub ecx, 0x11cf
mov dword [0x456820], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41b100
push 0
push 0
mov dword [0x56a36c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x45682c]
mov esi, dword [0x456828]
mov eax, 0xc152500d
imul esi, esi, 0x1ec0
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 0xc
imul ecx, ecx, 0x1594
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x456830]
mov edx, dword [0x456818]
imul edx, edx, 0x1525
sub esi, eax
pop edi
add ecx, esi
pop esi
lea eax, [edx + ecx - 0x11cf]
pop ebp
mov dword [0x456824], eax
mov eax, 1
pop ebx
ret
Function at 0x420050
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [0x456824]
mov eax, 0xbdd265f5
imul ebx
add edx, ebx
sar edx, 0xc
push ebp
mov ebp, dword [0x45681c]
push esi
mov esi, dword [0x456838]
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x60db712d
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebp
imul ecx, ecx, 0x1530
mov edx, esi
imul edx, edx, 0x11cf
sub ecx, eax
sub ecx, edx
mov eax, 0xb838211b
imul esi
mov eax, ecx
add edx, esi
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add eax, edx
add ecx, eax
mov eax, dword [esp + 0x18]
sub ecx, edi
cmp eax, 0x132b600
mov dword [0x456828], ecx
je 0x420128
mov ecx, dword [0x456830]
imul esi, esi, 0x58f
mov eax, 0x5f7fac71
imul ecx, ecx, 0x1525
imul ebp
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x61e35267
imul ebx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esi, ecx
mov dword [str._r_____r____], esi
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x420116
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 0x214d0215
imul ebp
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456820]
mov esi, edx
imul esi, esi, 0x1572
sub esi, eax
mov eax, 0x61e35267
imul edx
sar edx, 0xb
add esi, edx
mov eax, edx
mov edx, dword [0x45682c]
imul edx, edx, 0x11cf
shr eax, 0x1f
add eax, esi
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0xcde
add eax, edx
mov dword [0x45682c], eax
mov eax, dword [0x56a360]
test eax, eax
jne 0x420263
mov esi, dword [0x456818]
mov eax, 0xbdd265f5
imul esi, esi, 0x1530
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x1594
sub esi, eax
add esi, edx
mov edx, dword [0x456834]
mov eax, 0x61e35267
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x5f7fac71
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x41eb20
push 0
sub esi, ecx
push 0
mov dword [0x456834], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x456828]
mov ecx, dword [0x456818]
imul esi, esi, 0x1ec0
mov dword [0x56a350], eax
imul ecx, ecx, 0x1525
mov eax, dword [str._r_____r____]
imul eax, eax, 0x1594
add esi, eax
add esi, ecx
mov ecx, dword [0x45682c]
mov eax, 0xc152500d
imul ecx
add edx, ecx
mov ecx, dword [0x456830]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
lea edx, [esi + ecx - 0x11cf]
mov dword [0x56a360], 1
mov dword [0x456824], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4214fe
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 0x421551
call fcn.00442085
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x421551
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x421547
xor eax, eax
jmp 0x42166a
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 0x421581
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 0x421581
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x421667
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4215ae
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00420773
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x421667
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4215f7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4215f7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4215f1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00420773
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x421657
and dword [ebp + 0xc], 0
jmp 0x421657
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x421657
push 0xc
call fcn.0043bf87
mov esi, eax
test esi, esi
pop ecx
je 0x421639
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 0x42163b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x421652
push dword [ebp - 8]
call fcn.004379da
jmp 0x421657
call fcn.004379b1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4215bc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a8ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042cafc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42a8d0
test byte [esp + 8], 2
je 0x42a8d0
call fcn.0042caea
mov dword [eax], 0xd
call fcn.0042caf3
mov dword [eax], 5
jmp 0x42a8a9
xor eax, eax
ret
Function at 0x42a997
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44a5d0
call fcn.0042c968
push 8
call fcn.0042eba1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56c67c], esi
jne 0x42a9cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56c678], esi
mov al, byte [ebp + 0x10]
mov byte [0x56c674], al
cmp dword [ebp + 0xc], edi
jne 0x42aa15
cmp dword [0x56df6c], edi
je 0x42aa05
mov eax, dword [0x56df68]
sub eax, 4
mov dword [0x56df68], eax
cmp eax, dword [0x56df6c]
jb 0x42aa05
mov eax, dword [eax]
cmp eax, edi
je 0x42a9e6
call eax
jmp 0x42a9e6
push 0x4530cc
mov eax, 0x4530c4
call fcn.0042a915
pop ecx
push 0x4530d8
mov eax, 0x4530d0
call fcn.0042a915
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42aa46
cmp dword [ebp + 0x10], edi
jne 0x42aa54
mov dword [0x56c67c], esi
push dword [ebp + 8]
call fcn.0042a8d3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42aa53
push 8
call fcn.0042eaec
pop ecx
ret
call fcn.0042c9a3
ret

Function at 0x42acc7
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.0042ab60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42ad62
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 [0x56c63c]
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 0x42ad62
cmp eax, 1
je 0x42ad83
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 0x42ad62
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42ad2f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42ad5e
xor eax, eax
inc eax
jmp 0x42ada2
cmp edi, eax
jae 0x42ad66
xor eax, eax
jmp 0x42ada2
cmp eax, esi
jae 0x42ad6d
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 [0x56c63c]
jmp 0x42ad86
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 0x42b722
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44a688
call fcn.0042c968
mov edi, 0x94
mov eax, edi
call fcn.0042ab60
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 [0x56c63c], ecx
mov eax, dword [esi + 4]
mov dword [0x56c648], eax
mov edx, dword [esi + 8]
mov dword [0x56c64c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56c640], esi
cmp ecx, 2
je 0x42b782
or esi, 0x8000
mov dword [0x56c640], esi
shl eax, 8
add eax, edx
mov dword [0x56c644], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42b7bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b7bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42b7d5
cmp eax, 0x20b
je 0x42b7c2
mov dword [ebp - 0x1c], esi
jmp 0x42b7e9
cmp dword [ecx + 0x84], 0xe
jbe 0x42b7bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42b7e3
cmp dword [ecx + 0x74], 0xe
jbe 0x42b7bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042ece2
pop ecx
test eax, eax
jne 0x42b7fd
push 0x1c
call fcn.0042b6fe
pop ecx
call fcn.0042db1d
test eax, eax
jne 0x42b80e
push 0x10
call fcn.0042b6fe
pop ecx
call fcn.0042ebd2
mov dword [ebp - 4], esi
call fcn.004318af
test eax, eax
jge 0x42b827
push 0x1b
call fcn.0042b6d9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56df60], eax
call fcn.0043178d
mov dword [0x56c688], eax
call fcn.004316eb
test eax, eax
jge 0x42b84d
push 8
call fcn.0042b6d9
pop ecx
call fcn.004314b8
test eax, eax
jge 0x42b85e
push 9
call fcn.0042b6d9
pop ecx
push 1
call fcn.0042a92d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42b874
push eax
call fcn.0042b6d9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043145b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42b895
movzx eax, word [ebp - 0x40]
jmp 0x42b898
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043707e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42b8b6
push edi
call fcn.0042aa5a
call fcn.0042aa7c
jmp 0x42b8e8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042c9a3
ret
Function at 0x42f871
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 0x42f89f
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 0x42f8a6
cmp ebx, dword [eax + 4]
jae 0x42f8a6
xor eax, eax
jmp 0x42fa96
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42f8b7
xor eax, eax
inc eax
jmp 0x42fa95
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42f8cd
cmp ecx, edx
jae 0x42fa12
cmp dword [eax + 4], 0
je 0x42f8d6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42f8be
cmp dword [ebp + 8], 0
je 0x42f8f8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42fa12
cmp eax, esi
jae 0x42fa12
mov eax, dword [0x56c818]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42f91d
cmp dword [esi*4 + 0x56c820], edi
je 0x42fa16
inc esi
cmp esi, eax
jl 0x42f90b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42fa92
cmp dword [ebp - 8], 0x1000000
jne 0x42fa92
test byte [ebp - 0xc], 0xcc
je 0x42f99b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42fa92
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42fa92
cmp word [eax + 0x18], 0x10b
jne 0x42fa92
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42fa92
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42f99b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42f99b
test byte [ecx + 0x27], 0x80
jne 0x42fa12
push 1
push 0x56c860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42f8af
mov ecx, dword [0x56c818]
test ecx, ecx
mov edx, ecx
jle 0x42f9cf
lea eax, [ecx*4 + 0x56c81c]
cmp dword [eax], edi
je 0x42f9cf
dec edx
sub eax, 4
test edx, edx
jg 0x42f9c3
test edx, edx
jne 0x42fa00
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42f9dc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42f9f4
lea eax, [edx*4 + 0x56c820]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42f9e2
cmp ecx, 0x10
jge 0x42fa00
inc ecx
mov dword [0x56c818], ecx
push 0
push 0x56c860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42f8af
xor eax, eax
jmp 0x42fa95
test esi, esi
jle 0x42f8af
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56c860
call ebx
test eax, eax
jne 0x42f8af
cmp dword [esi*4 + 0x56c820], edi
je 0x42fa6c
mov eax, dword [0x56c818]
lea esi, [eax - 1]
test esi, esi
jl 0x42fa5a
cmp dword [esi*4 + 0x56c820], edi
je 0x42fa56
dec esi
jns 0x42fa4a
test esi, esi
jge 0x42fa6a
cmp eax, 0x10
jge 0x42fa65
inc eax
mov dword [0x56c818], eax
lea esi, [eax - 1]
jmp 0x42fa6c
je 0x42fa84
xor ecx, ecx
test esi, esi
jl 0x42fa84
lea eax, [ecx*4 + 0x56c820]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42fa72
push 0
push 0x56c860
call ebx
jmp 0x42f8af
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431147
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x458190]
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 + 0x458a70]
je 0x43117c
inc eax
cmp eax, 0x13
jb 0x43116d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x458a70]
jne 0x4312a2
mov eax, dword [0x56c690]
cmp eax, 1
je 0x43127a
cmp eax, edx
jne 0x4311ac
cmp dword [0x4581d4], 1
je 0x43127a
cmp ecx, 0xfc
je 0x4312a2
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 0x4311e2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00432840
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042bc90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x431216
mov eax, edi
push eax
call fcn.0042bc90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a7d0
push edi
call fcn.0042b570
add esp, 0x10
push edi
call fcn.0042bc90
push dword [esi + 0x458a74]
mov ebx, eax
call fcn.0042bc90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042ab60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00432840
push edi
push ebx
call fcn.00432850
push 0x4471b4
push ebx
call fcn.00432850
push dword [esi + 0x458a74]
push ebx
call fcn.00432850
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043333a
add esp, 0x2c
jmp 0x4312a2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x458a74]
push dword [esi]
call fcn.0042bc90
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.0042a321
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret