joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444bf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444c23
push esi
call fcn.00447cf0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444c1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444ca9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444c92
mov eax, dword [esi + 8]
test eax, eax
je 0x444c47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444c8e
cmp eax, 2
je 0x444c92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444c3a
cmp eax, 3
je 0x444c6d
cmp eax, 1
jne 0x444c3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444c3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444c3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444cd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444cb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444cd0
add esp, 4
pop esi
ret

Function at 0x450d50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x450df3
test eax, eax
jbe 0x450df3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x450df3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x450d9e
xor esi, esi
jmp 0x450da4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x450dcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040c360
add esi, eax
push esi
mov ebx, esi
call fcn.0040c360
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x450db0
pop ebp
test edi, edi
pop edi
jne 0x450df3
test ebx, ebx
je 0x450df3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00458e10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x450f35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45104d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45104d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a626
mov esi, eax
test esi, esi
je 0x45104d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45104d
mov ecx, esi
call fcn.00450ea0
cmp edi, eax
jge 0x45104d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x450fd3
mov dword [esp + 0x34], 1
jmp 0x45102e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45104d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00450400
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x454ff0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x455039
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4554b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00455060
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004550e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004550e0
lea ecx, [esi + 0xc]
call fcn.00468b86
lea ecx, [esi + 0x10]
call fcn.00468b86
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00456670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00456670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00456670
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00468bfb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00468bfb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x456860
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4568c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4568c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4568a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46afc9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469056
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046902e
jmp 0x46b00d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c6ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46c6fc
call fcn.00472233
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c6fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c6f3
xor eax, eax
jmp 0x46c704
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c70a
pop edi
pop esi
pop ebx
ret 4

Function at 0x472763
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x472791
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4727af
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004726c9
jmp 0x4727af
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4727af
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004726c9
test edi, edi
mov eax, edi
jne 0x472799
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1020dce9
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 1], si
call fcn.1020dcd3

Function at 0x10217c0c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10236b42
push esi
lea esp, [esp + 4]
jmp 0x101fb876
pushfd
call 0x10236182
jmp 0x102362d5

Function at 0x10218097
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x101fe683
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x101fe69d
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x101fe68c
pop esi
jmp 0x101fe6a8
ret 4
jmp 0x101fe676

Function at 0x1023647a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp]
push word [esp + 2]
lea esp, [esp + 2]
jmp 0x10236464

Function at 0x102b16ef
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
xchg ah, cl
lea edi, [edx + ebp]
mov cl, bl
jmp 0x102b0fc4
push dword [esp + 4]
lea esp, [esp + 3]
lea esp, [esp + 0x10]
jmp 0x102b170e
lea esp, [esp]
pop dword [esp + 5]
jmp 0x102b16d9
call fcn.101ffc12
jmp 0x102b171d
call 0x102adec0
test eax, eax
je 0x102b0ff0
jne 0x102b16f8
xor eax, eax
inc eax
jmp 0x102b0ff0

Function at 0x102d70b6
Capabilities:
Access peb ldr_data

Disassembly:
lea esp, [esp + 3]
call fcn.102d70a0

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x28b2071b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
mov ecx, 0x5b266abb
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401309
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40131d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40133e
cmp esi, eax
jae 0x401317
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401330
cmp esi, eax
jae 0x401317
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c20
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424ac0
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
call fcn.00422047
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x401c57
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0x3c]
movzx ecx, word [esp + 0x38]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401c83
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401d03
push 0
or edi, 0xffffffff
push edi
push 0
lea ecx, [esp + 0x28]
call fcn.00401b90
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0041dacc
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
push 0x9001
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.0041dd64
test eax, eax
lea ecx, [esp + 0xc]
jne 0x401d17
call fcn.0041da6a
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0041db0b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
call fcn.00401a60
pop ebp
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebp
push esi
call fcn.0041d81f
lea ecx, [esp + 0xc]
call fcn.0041da6a
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0041db0b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
call fcn.00401a60
mov ecx, dword [esp + 0x30]
pop ebp
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x40252c
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 0x40257f
call fcn.00422047
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40257f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402575
xor eax, eax
jmp 0x402698
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 0x4025af
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 0x4025af
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402695
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4025dc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00402125
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402695
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402625
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402625
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40261f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00402125
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402685
and dword [ebp + 0xc], 0
jmp 0x402685
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402685
push 0xc
call fcn.004196b7
mov esi, eax
test esi, esi
pop ecx
je 0x402667
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 0x402669
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402680
push dword [ebp - 8]
call fcn.00417b23
jmp 0x402685
call fcn.00417afa
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4025ea
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c1af
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.0040c3a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c24a
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 [0x4340b0]
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 0x40c24a
cmp eax, 1
je 0x40c26b
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 0x40c24a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c217
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c246
xor eax, eax
inc eax
jmp 0x40c28a
cmp edi, eax
jae 0x40c24e
xor eax, eax
jmp 0x40c28a
cmp eax, esi
jae 0x40c255
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 [0x4340b0]
jmp 0x40c26e
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 0x40c442
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429310
call fcn.0040d8a0
mov edi, 0x94
mov eax, edi
call fcn.0040c3a0
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 [0x4340b0], ecx
mov eax, dword [esi + 4]
mov dword [0x4340bc], eax
mov edx, dword [esi + 8]
mov dword [0x4340c0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4340b4], esi
cmp ecx, 2
je 0x40c4a2
or esi, 0x8000
mov dword [0x4340b4], esi
shl eax, 8
add eax, edx
mov dword [0x4340b8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c4dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c4dd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c4f5
cmp eax, 0x20b
je 0x40c4e2
mov dword [ebp - 0x1c], esi
jmp 0x40c509
cmp dword [ecx + 0x84], 0xe
jbe 0x40c4dd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c503
cmp dword [ecx + 0x74], 0xe
jbe 0x40c4dd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040fc99
pop ecx
test eax, eax
jne 0x40c51d
push 0x1c
call fcn.0040c41e
pop ecx
call fcn.0040ee08
test eax, eax
jne 0x40c52e
push 0x10
call fcn.0040c41e
pop ecx
call fcn.004113b7
mov dword [ebp - 4], esi
call fcn.004111b9
test eax, eax
jge 0x40c547
push 0x1b
call fcn.0040c3f9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x435970], eax
call fcn.00411097
mov dword [0x4340a0], eax
call fcn.00410ff5
test eax, eax
jge 0x40c56d
push 8
call fcn.0040c3f9
pop ecx
call fcn.00410dc2
test eax, eax
jge 0x40c57e
push 9
call fcn.0040c3f9
pop ecx
push 1
call fcn.0040c71d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c594
push eax
call fcn.0040c3f9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410d65
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c5b5
movzx eax, word [ebp - 0x40]
jmp 0x40c5b8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004176b0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c5d6
push edi
call fcn.0040c84a
call fcn.0040c86c
jmp 0x40c608
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d8db
ret
Function at 0x40c787
Capabilities:
Terminate process

Disassembly:
push 8
push 0x429338
call fcn.0040d8a0
push 8
call fcn.0040fc4e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4340f0], esi
jne 0x40c7bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4340ec], esi
mov al, byte [ebp + 0x10]
mov byte [0x4340e8], al
cmp dword [ebp + 0xc], edi
jne 0x40c805
cmp dword [0x435968], edi
je 0x40c7f5
mov eax, dword [0x435964]
sub eax, 4
mov dword [0x435964], eax
cmp eax, dword [0x435968]
jb 0x40c7f5
mov eax, dword [eax]
cmp eax, edi
je 0x40c7d6
call eax
jmp 0x40c7d6
push 0x430090
mov eax, 0x430088
call fcn.0040c705
pop ecx
push 0x43009c
mov eax, 0x430094
call fcn.0040c705
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40c836
cmp dword [ebp + 0x10], edi
jne 0x40c844
mov dword [0x4340f0], esi
push dword [ebp + 8]
call fcn.0040c6c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40c843
push 8
call fcn.0040fb99
pop ecx
ret
call fcn.0040d8db
ret
Function at 0x410828
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 0x410856
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 0x41085d
cmp ebx, dword [eax + 4]
jae 0x41085d
xor eax, eax
jmp 0x410a4d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41086e
xor eax, eax
inc eax
jmp 0x410a4c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410884
cmp ecx, edx
jae 0x4109c9
cmp dword [eax + 4], 0
je 0x41088d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410875
cmp dword [ebp + 8], 0
je 0x4108af
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4109c9
cmp eax, esi
jae 0x4109c9
mov eax, dword [0x434270]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4108d4
cmp dword [esi*4 + 0x434278], edi
je 0x4109cd
inc esi
cmp esi, eax
jl 0x4108c2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410a49
cmp dword [ebp - 8], 0x1000000
jne 0x410a49
test byte [ebp - 0xc], 0xcc
je 0x410952
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410a49
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410a49
cmp word [eax + 0x18], 0x10b
jne 0x410a49
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410a49
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410952
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410952
test byte [ecx + 0x27], 0x80
jne 0x4109c9
push 1
push 0x4342b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410866
mov ecx, dword [0x434270]
test ecx, ecx
mov edx, ecx
jle 0x410986
lea eax, [ecx*4 + 0x434274]
cmp dword [eax], edi
je 0x410986
dec edx
sub eax, 4
test edx, edx
jg 0x41097a
test edx, edx
jne 0x4109b7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410993
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4109ab
lea eax, [edx*4 + 0x434278]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410999
cmp ecx, 0x10
jge 0x4109b7
inc ecx
mov dword [0x434270], ecx
push 0
push 0x4342b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410866
xor eax, eax
jmp 0x410a4c
test esi, esi
jle 0x410866
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4342b8
call ebx
test eax, eax
jne 0x410866
cmp dword [esi*4 + 0x434278], edi
je 0x410a23
mov eax, dword [0x434270]
lea esi, [eax - 1]
test esi, esi
jl 0x410a11
cmp dword [esi*4 + 0x434278], edi
je 0x410a0d
dec esi
jns 0x410a01
test esi, esi
jge 0x410a21
cmp eax, 0x10
jge 0x410a1c
inc eax
mov dword [0x434270], eax
lea esi, [eax - 1]
jmp 0x410a23
je 0x410a3b
xor ecx, ecx
test esi, esi
jl 0x410a3b
lea eax, [ecx*4 + 0x434278]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410a29
push 0
push 0x4342b8
call ebx
jmp 0x410866
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret