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

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov ecx, dword [0x45569c]
mov esi, dword [0x4556a8]
mov eax, 0x73b2d479
imul esi, esi, 0x212c
imul ecx
mov ecx, dword [0x455690]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x27e98ca1
imul ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x455694]
mov eax, 0x5d0a95d5
imul ecx
mov ecx, dword [0x45568c]
imul ecx, ecx, 0x11be
sar edx, 0xb
mov eax, edx
mov edi, dword [esp + 0x1c]
shr eax, 0x1f
add esi, edx
lea edx, [esp + 0x10]
add eax, esi
push edx
add eax, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
mov dword [str._r_____r____], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x40d08e
mov ecx, dword [0x455690]
mov eax, 0x5d0a95d5
imul ecx
mov ecx, dword [0x4556a0]
push ebx
imul ecx, ecx, 0x11be
mov ebx, dword [0x4556a8]
imul ebx, ebx, 0x212c
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ebx
add eax, ecx
mov ecx, dword [0x45568c]
mov ebx, eax
mov eax, 0x4b438bdf
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add ebx, edx
mov edx, dword [0x455694]
add eax, ebx
sub eax, edx
add eax, 0x1e03
push esi
mov dword [0x45568c], eax
call fcn.0043b0e2
add esp, 4
mov ebx, eax
push ebx
push esi
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d084
mov esi, dword [str._r_____r____]
mov ecx, dword [0x45568c]
imul esi, esi, 0x1603
mov edx, dword [0x455698]
imul ecx, ecx, 0x11be
imul edx, edx, 0xe0e
add esi, ecx
mov ecx, dword [0x45569c]
add esi, edx
mov eax, 0x4b438bdf
imul ecx
mov ecx, dword [0x4556a4]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
lea edx, [esi + ecx - 0x544]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4461b8
push ebx
mov dword [0x455694], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
mov esi, dword [0x45568c]
je 0x40d032
mov ecx, dword [0x45569c]
mov eax, 0x73b2d479
imul ecx
imul ecx, ecx, 0x1603
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a4]
mov edi, eax
mov eax, 0xd816735f
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x5d0a95d5
imul esi
mov eax, dword [esp + 0x10]
sub ebp, edi
add ebp, ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x455688]
imul edx, edx, 0xd9b
sub ebp, ecx
add ebp, edx
mov dword [0x4556a4], ebp
mov bp, word [eax + 0x14]
mov ecx, dword [0x455694]
mov edi, dword [0x455690]
mov eax, 0x27e98ca1
imul edi, edi, 0x2367
imul ecx
imul ecx, ecx, 0x544
sar edx, 0xa
add edi, edx
mov eax, edx
mov edx, esi
imul edx, edx, 0x15e3
shr eax, 0x1f
add eax, edi
add eax, edx
mov edi, eax
mov eax, 0x48dbb693
imul esi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
mov dword [0x45569c], edi
push ebx
call fcn.0043b0e7
add esp, 4
pop ebx
pop edi
pop esi
mov ax, bp
pop ebp
add esp, 0xc
ret
Function at 0x4167b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x457000]
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 0x4168d2
lea ecx, [esp + 8]
call fcn.00416690
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x4168d6
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 0x416880
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004167b0
mov edi, eax
test edi, edi
jne 0x4168fa
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 0x416842
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x416899
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 0x4168b8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00429441
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4168e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00429441
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416909
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.00429441
add esp, 0x118
ret 4
Function at 0x416de0
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 0x416df2
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 0x41a700
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x45569c]
mov eax, 0x73b2d479
imul ebp
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, eax
mov ecx, dword [0x4556a8]
mov eax, 0xd816735f
imul dword [0x455690]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x5d0a95d5
imul dword [0x455694]
push edi
sub ebx, esi
mov esi, dword [0x45568c]
mov edi, ecx
imul esi, esi, 0x11be
imul edi, edi, 0x212c
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
add eax, ebx
add esi, eax
cmp dword [esp + 0x14], 0x132b600
mov dword [str._r_____r____], esi
je 0x41a797
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41a786
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [0x4556a0]
mov eax, ebx
imul eax, eax, 0x2367
mov dword [esp + 0x14], eax
mov eax, 0x5d929e5d
imul ebp
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a4]
mov ebp, eax
mov eax, dword [esp + 0x14]
sub ebp, eax
mov eax, 0x48dbb693
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455690]
sub ebp, eax
mov eax, edx
imul eax, eax, 0x544
sub ebp, eax
mov eax, dword [0x5697bc]
add ebp, esi
mov esi, dword [0x455688]
add esi, ebp
mov ebp, eax
inc eax
test ebp, ebp
mov dword [0x455688], esi
mov dword [0x5697bc], eax
jle 0x41a85a
mov eax, 0x5d0a95d5
imul ebx, ebx, 0x11be
imul edx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x4b438bdf
imul dword [0x45568c]
sar edx, 0xa
add ecx, ebx
mov eax, edx
shr eax, 0x1f
add ecx, edx
mov edx, dword [0x455694]
add eax, ecx
sub eax, edi
pop edi
sub eax, edx
pop esi
add eax, 0x1e03
pop ebp
mov dword [0x45568c], eax
mov eax, 1
pop ebx
ret
mov eax, 0x443d7153
imul ecx, ecx, 0x19a8
imul esi, esi, 0xe0e
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x27e98ca1
imul dword [0x45569c]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
sub ecx, ebx
sub ecx, 0x544
mov dword [0x455690], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41a1f0
push 0
push 0
mov dword [0x5694e8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [str._r_____r____]
mov edx, dword [0x45568c]
imul esi, esi, 0x1603
mov eax, dword [0x455698]
imul edx, edx, 0x11be
mov ecx, dword [0x45569c]
imul eax, eax, 0xe0e
add esi, edx
add esi, eax
mov eax, 0x4b438bdf
imul ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4556a4]
sub esi, ecx
pop edi
lea eax, [esi + edx - 0x544]
pop esi
pop ebp
mov dword [0x455694], eax
mov eax, 1
pop ebx
ret
Function at 0x41f170
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x455698]
push ebx
push esi
push edi
mov edi, dword [0x455694]
mov eax, 0x5d0a95d5
imul edi
sar edx, 0xb
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x3dbd3249
imul ecx
mov ecx, dword [0x4556a8]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x736e5bc3
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a0]
sub ebx, eax
imul edx, edx, 0xd9b
mov eax, ecx
imul eax, eax, 0x544
add ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x10]
sub ebx, esi
cmp eax, 0x132b600
mov dword [0x455698], ebx
je 0x41f250
mov edx, dword [0x45569c]
imul ecx, ecx, 0x212c
mov eax, 0x73b2d479
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455690]
sub ecx, eax
mov eax, 0x27e98ca1
imul edx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45568c]
imul edx, edx, 0x11be
sub ecx, eax
add ecx, esi
add edx, ecx
mov dword [str._r_____r____], edx
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41f240
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [0x455690]
mov eax, 0x27e98ca1
imul esi, esi, 0x2367
imul edi
imul edi, edi, 0x544
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add esi, edx
add ecx, esi
mov esi, dword [0x45568c]
mov eax, esi
imul eax, eax, 0x15e3
add ecx, eax
mov eax, 0x48dbb693
imul esi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x5694dc]
add ecx, edi
test eax, eax
mov dword [0x45569c], ecx
jne 0x41f385
mov eax, 0x73b2d479
imul ecx
imul ecx, ecx, 0x1603
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a4]
mov edi, eax
mov eax, 0xd816735f
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x5d0a95d5
imul esi
sar edx, 0xb
sub ebx, edi
add ebx, ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x455688]
imul edx, edx, 0xd9b
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x41dc30
sub ebx, ecx
push 0
add ebx, edx
push 0
mov dword [0x4556a4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [str._r_____r____]
mov ecx, dword [0x45568c]
imul esi, esi, 0x1603
mov edx, dword [0x455698]
imul ecx, ecx, 0x11be
imul edx, edx, 0xe0e
mov dword [0x5694cc], eax
add esi, ecx
mov ecx, dword [0x45569c]
add esi, edx
mov eax, 0x4b438bdf
imul ecx
mov ecx, dword [0x4556a4]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
lea edx, [esi + ecx - 0x544]
mov dword [0x5694dc], 1
mov dword [0x455694], edx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x420626
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 0x420679
call fcn.004411b5
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x420679
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42066f
xor eax, eax
jmp 0x420792
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 0x4206a9
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 0x4206a9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42078f
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4206d6
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041f893
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42078f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42071f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42071f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x420719
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041f893
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42077f
and dword [ebp + 0xc], 0
jmp 0x42077f
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42077f
push 0xc
call fcn.0043b0b7
mov esi, eax
test esi, esi
pop ecx
je 0x420761
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 0x420763
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42077a
push dword [ebp - 8]
call fcn.00436b0a
jmp 0x42077f
call fcn.00436ae1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4206e4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42997d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bc2c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4299a0
test byte [esp + 8], 2
je 0x4299a0
call fcn.0042bc1a
mov dword [eax], 0xd
call fcn.0042bc23
mov dword [eax], 5
jmp 0x429979
xor eax, eax
ret
Function at 0x429a67
Capabilities:
Terminate process

Disassembly:
push 8
push 0x449598
call fcn.0042ba98
push 8
call fcn.0042d330
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56b7ec], esi
jne 0x429a9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56b7e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x56b7e4], al
cmp dword [ebp + 0xc], edi
jne 0x429ae5
cmp dword [0x56d0cc], edi
je 0x429ad5
mov eax, dword [0x56d0c8]
sub eax, 4
mov dword [0x56d0c8], eax
cmp eax, dword [0x56d0cc]
jb 0x429ad5
mov eax, dword [eax]
cmp eax, edi
je 0x429ab6
call eax
jmp 0x429ab6
push 0x4520cc
mov eax, 0x4520c4
call fcn.004299e5
pop ecx
push 0x4520d8
mov eax, 0x4520d0
call fcn.004299e5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x429b16
cmp dword [ebp + 0x10], edi
jne 0x429b24
mov dword [0x56b7ec], esi
push dword [ebp + 8]
call fcn.004299a3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x429b23
push 8
call fcn.0042d27b
pop ecx
ret
call fcn.0042bad3
ret

Function at 0x429df7
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.00429c90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429e92
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 [0x56b7ac]
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 0x429e92
cmp eax, 1
je 0x429eb3
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 0x429e92
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x429e5f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x429e8e
xor eax, eax
inc eax
jmp 0x429ed2
cmp edi, eax
jae 0x429e96
xor eax, eax
jmp 0x429ed2
cmp eax, esi
jae 0x429e9d
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 [0x56b7ac]
jmp 0x429eb6
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 0x42a852
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x449650
call fcn.0042ba98
mov edi, 0x94
mov eax, edi
call fcn.00429c90
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 [0x56b7ac], ecx
mov eax, dword [esi + 4]
mov dword [0x56b7b8], eax
mov edx, dword [esi + 8]
mov dword [0x56b7bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56b7b0], esi
cmp ecx, 2
je 0x42a8b2
or esi, 0x8000
mov dword [0x56b7b0], esi
shl eax, 8
add eax, edx
mov dword [0x56b7b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42a8ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a8ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42a905
cmp eax, 0x20b
je 0x42a8f2
mov dword [ebp - 0x1c], esi
jmp 0x42a919
cmp dword [ecx + 0x84], 0xe
jbe 0x42a8ed
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42a913
cmp dword [ecx + 0x74], 0xe
jbe 0x42a8ed
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042de12
pop ecx
test eax, eax
jne 0x42a92d
push 0x1c
call fcn.0042a82e
pop ecx
call fcn.0042cc4d
test eax, eax
jne 0x42a93e
push 0x10
call fcn.0042a82e
pop ecx
call fcn.0042d361
mov dword [ebp - 4], esi
call fcn.004309df
test eax, eax
jge 0x42a957
push 0x1b
call fcn.0042a809
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56d0c0], eax
call fcn.004308bd
mov dword [0x56b7f8], eax
call fcn.0043081b
test eax, eax
jge 0x42a97d
push 8
call fcn.0042a809
pop ecx
call fcn.004305e8
test eax, eax
jge 0x42a98e
push 9
call fcn.0042a809
pop ecx
push 1
call fcn.004299fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42a9a4
push eax
call fcn.0042a809
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043058b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42a9c5
movzx eax, word [ebp - 0x40]
jmp 0x42a9c8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004361ae
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42a9e6
push edi
call fcn.00429b2a
call fcn.00429b4c
jmp 0x42aa18
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042bad3
ret
Function at 0x42e9a1
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 0x42e9cf
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 0x42e9d6
cmp ebx, dword [eax + 4]
jae 0x42e9d6
xor eax, eax
jmp 0x42ebc6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42e9e7
xor eax, eax
inc eax
jmp 0x42ebc5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42e9fd
cmp ecx, edx
jae 0x42eb42
cmp dword [eax + 4], 0
je 0x42ea06
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42e9ee
cmp dword [ebp + 8], 0
je 0x42ea28
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42eb42
cmp eax, esi
jae 0x42eb42
mov eax, dword [0x56b988]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42ea4d
cmp dword [esi*4 + 0x56b990], edi
je 0x42eb46
inc esi
cmp esi, eax
jl 0x42ea3b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42ebc2
cmp dword [ebp - 8], 0x1000000
jne 0x42ebc2
test byte [ebp - 0xc], 0xcc
je 0x42eacb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42ebc2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42ebc2
cmp word [eax + 0x18], 0x10b
jne 0x42ebc2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42ebc2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42eacb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42eacb
test byte [ecx + 0x27], 0x80
jne 0x42eb42
push 1
push 0x56b9d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42e9df
mov ecx, dword [0x56b988]
test ecx, ecx
mov edx, ecx
jle 0x42eaff
lea eax, [ecx*4 + 0x56b98c]
cmp dword [eax], edi
je 0x42eaff
dec edx
sub eax, 4
test edx, edx
jg 0x42eaf3
test edx, edx
jne 0x42eb30
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42eb0c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42eb24
lea eax, [edx*4 + 0x56b990]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42eb12
cmp ecx, 0x10
jge 0x42eb30
inc ecx
mov dword [0x56b988], ecx
push 0
push 0x56b9d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42e9df
xor eax, eax
jmp 0x42ebc5
test esi, esi
jle 0x42e9df
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56b9d0
call ebx
test eax, eax
jne 0x42e9df
cmp dword [esi*4 + 0x56b990], edi
je 0x42eb9c
mov eax, dword [0x56b988]
lea esi, [eax - 1]
test esi, esi
jl 0x42eb8a
cmp dword [esi*4 + 0x56b990], edi
je 0x42eb86
dec esi
jns 0x42eb7a
test esi, esi
jge 0x42eb9a
cmp eax, 0x10
jge 0x42eb95
inc eax
mov dword [0x56b988], eax
lea esi, [eax - 1]
jmp 0x42eb9c
je 0x42ebb4
xor ecx, ecx
test esi, esi
jl 0x42ebb4
lea eax, [ecx*4 + 0x56b990]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42eba2
push 0
push 0x56b9d0
call ebx
jmp 0x42e9df
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430277
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x457000]
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 + 0x4578e0]
je 0x4302ac
inc eax
cmp eax, 0x13
jb 0x43029d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4578e0]
jne 0x4303d2
mov eax, dword [0x56b800]
cmp eax, 1
je 0x4303aa
cmp eax, edx
jne 0x4302dc
cmp dword [0x457044], 1
je 0x4303aa
cmp ecx, 0xfc
je 0x4303d2
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 0x430312
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00431970
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042adc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430346
mov eax, edi
push eax
call fcn.0042adc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x449798
push edi
call fcn.0042a6a0
add esp, 0x10
push edi
call fcn.0042adc0
push dword [esi + 0x4578e4]
mov ebx, eax
call fcn.0042adc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00429c90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00431970
push edi
push ebx
call fcn.00431980
push 0x446178
push ebx
call fcn.00431980
push dword [esi + 0x4578e4]
push ebx
call fcn.00431980
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043246a
add esp, 0x2c
jmp 0x4303d2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4578e4]
push dword [esi]
call fcn.0042adc0
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.00429441
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret