joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a600
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0e38
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x47a639
inc eax
mov dword [esi + 0x10], eax
jmp 0x47a74c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x47a64d
mov eax, 0xffffffc7
jmp 0x47a74e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x47a65e
cmp dword [esi + 8], eax
jne 0x47a64d
cmp dword [esi + 8], eax
jne 0x47a677
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x47a677
mov eax, 0xffffffc7
jmp 0x47a74e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x47a68b
push eax
mov ecx, ebx
call fcn.00479e30
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00447eb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x47a6bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00447ed0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004795a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x47a6ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bb670
call fcn.004480b0
mov eax, dword [esp + 0x38]
jmp 0x47a74e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0047a460
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x47a733
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0047a480
mov esi, eax
test esi, esi
jne 0x47a763
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0047a460
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x47a705
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bb670
call fcn.004480b0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bb670
call fcn.004480b0
mov eax, esi
jmp 0x47a74e

Function at 0x47d870
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x47d8d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x47d8d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x47d8d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x47d8d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x47d910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x483a40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a9dda
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004833e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a9d08
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a65c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a65c9
push 1
push 0
push 0
mov ecx, esi
call fcn.004a6571
push 1
push 0
push 1
mov ecx, esi
call fcn.004a6571
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a9e4c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x483bc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a9dda
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004833e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a9d08
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x483c84
cmp dword [esp + 0x40], 1
jne 0x483c82
cmp ecx, eax
jge 0x483c84
mov eax, ecx
cmp eax, 0xc8
jge 0x483c90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00483a40
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a9e4c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x484400
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b14f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a49ea
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004aa082
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004ab59e
test eax, eax
je 0x48451c
mov ecx, dword [esp + 0x3c]
call fcn.004aa0af
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4844e0
push edi
mov ecx, esi
call fcn.004a7714
mov ecx, esi
call fcn.00484680
cmp dword [esp + 0x38], 1
jne 0x484515
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a784f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x486f40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x486f73
push esi
call fcn.0048a030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x486f6c
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 0x486ff9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x486fe2
mov eax, dword [esi + 8]
test eax, eax
je 0x486f97
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 0x486fde
cmp eax, 2
je 0x486fe2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x486f8a
cmp eax, 3
je 0x486fbd
cmp eax, 1
jne 0x486f8a
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 0x486f8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x486f8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00487020
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x487008
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00487020
add esp, 4
pop esi
ret

Function at 0x4a57df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a5817
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.004a386c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a3844
jmp 0x4a5823
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a6ed1
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 0x4a6f13
call fcn.004ac98e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a6f13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a6f0a
xor eax, eax
jmp 0x4a6f1b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a6f21
pop edi
pop esi
pop ebx
ret 4

Function at 0x4acebe
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 0x4aceec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4acf0a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ace24
jmp 0x4acf0a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4acf0a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ace24
test edi, edi
mov eax, edi
jne 0x4acef4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402580
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42882b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40270e
push esi
mov ebx, str.DrTray.exe
lea esi, [esp + 0x1c]
call fcn.00404a50
add esp, 4
push 0x206
lea ecx, [esp + 0x3a]
push 0
mov dword [esp + 0x250], 0
push ecx
mov word [esp + 0x40], 0
call fcn.0041b5e0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
mov ebx, 8
jne 0x402735
lea eax, [esp + 0x34]
lea edx, [eax + 2]
jmp 0x402660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402660
sub eax, edx
sar eax, 1
lea edx, [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c00
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4026f0
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
jae 0x40269b
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push str.DrTray.exe
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4026f0
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
push esi
push str.SetSysStartRunApp___RegQueryValueEx___ErrorCode:_d
push 2
call fcn.00415b20
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebx
jb 0x40270e
mov edx, dword [esp + 0x1c]
push edx
call fcn.00416abb
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004170e8
add esp, 0x23c
ret
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
push esi
push str.SetSysStartRunApp___RegQueryValueEx__:_d
push 2
call fcn.00415b20
add esp, 0xc
jmp 0x40268d
Function at 0x404a50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4281d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004040a0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404aa4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.004044b0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004040a0
cmp dword [esp + 0x24], 8
jb 0x404aea
mov eax, dword [esp + 0x10]
push eax
call fcn.00416abb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4062c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push ebp
mov dword [esi + 0x14], eax
push edi
mov edi, dword [0x435c80]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x4452
mov dword [esi + 0x20], eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x24]
mov word [ecx], ax
mov edx, dword [esi + 0x24]
mov byte [edx + 2], 0x43
mov eax, dword [esi + 0x24]
push edi
mov byte [eax + 3], 1
call sub.WS2_32.dll_htonl
mov ecx, dword [esi + 0x24]
mov dword [ecx + 4], eax
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x40631d
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0x24]
add eax, 8
push eax
call fcn.0041a2e0
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
call sub.WS2_32.dll_htons
mov edx, dword [esi + 0x24]
mov word [edx + 0x18], ax
mov eax, dword [esp + 0x2c]
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x24]
mov word [ecx + 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
push ebp
call sub.WS2_32.dll_htonl
mov edx, dword [esi + 0x24]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x24]
mov word [ecx + 0x20], ax
mov edx, dword [esi + 0x24]
mov word [edx + 0x22], 0
xor eax, eax
mov edi, esi
mov ecx, 0x24
push ebx
lea esp, [esp]
movzx ebx, byte [edi]
movzx edx, ax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
sub ecx, 1
add edi, 1
xor bx, word [edx*2 + 0x435650]
test ecx, ecx
movzx eax, bx
jne 0x406390
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x24]
mov word [ecx + 0x22], ax
cmp dword [esp + 0x28], 0x10
pop ebx
jb 0x4063d6
mov edx, dword [esp + 0x10]
push edx
call fcn.00416abb
add esp, 4
pop edi
mov eax, ebp
pop ebp
ret 0x28

Function at 0x4067e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428e71
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
call fcn.004063e0
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], si
mov dword [esp + 0x38], esi
push 0x42c290
mov esi, 1
push str.DrMain
mov dword [esp + 0x14], esi
call fcn.00401490
push eax
mov edx, str.OpenApplicationFail
lea ecx, [esp + 0x20]
call fcn.00414040
mov dword [esp + 0x38], esi
cmp dword [eax + 0x18], 8
jb 0x40685f
mov eax, dword [eax + 4]
jmp 0x406862
add eax, 4
push edi
mov edx, eax
call fcn.00403f70
lea esi, [esp + 0x14]
call fcn.00403f40
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x406d70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x428d13
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ebx, [esi + 4]
push ebx
mov dword [esi], vtable.ProcessCtrl.0
call fcn.00405840
lea eax, [esi + 0x1d4]
xor edi, edi
push eax
mov dword [esp + 0x20], edi
call fcn.00413570
mov dword [esi + 0x220], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
mov byte [esp + 0x1c], 2
call fcn.00409ab0
mov dword [esi + 0x234], eax
mov byte [eax + 0x31], 1
mov eax, dword [esi + 0x234]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x234]
mov dword [eax], eax
mov eax, dword [esi + 0x234]
mov dword [eax + 8], eax
mov dword [esi + 0x238], edi
lea eax, [esi + 0x240]
push eax
mov byte [esp + 0x20], 3
call fcn.00405ca0
lea ecx, [esi + 0x270]
push ecx
mov byte [esp + 0x20], 4
call fcn.00405ca0
lea edx, [esi + 0x2a0]
push edx
mov byte [esp + 0x20], 5
call fcn.00405ca0
push edi
mov byte [esp + 0x20], 6
push edi
push edi
mov dword [esi + 0x2d4], edi
mov dword [esi + 0x2d0], edi
mov dword [esi + 0x2d8], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
mov dword [esi + 0x23c], eax
call fcn.004058f0
lea eax, [esp + 0x10]
push eax
push edi
push esi
push 0x408930
push edi
push edi
mov dword [esi + 0x2e0], edi
mov dword [esi + 0x2dc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2dc], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40a3d0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x1224
call fcn.00422f50
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x1220], eax
push ebx
xor ebx, ebx
push 0xffc
lea eax, [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.0041b5e0
push 0x206
lea ecx, [esp + 0x102e]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1034], bx
call fcn.0041b5e0
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x1000
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x13], bl
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40a455
xor al, al
pop ebx
mov ecx, dword [esp + 0x1220]
xor ecx, esp
call fcn.004170e8
add esp, 0x1224
ret
push ebp
push esi
mov esi, dword [esp + 0x10]
shr esi, 2
cmp esi, ebx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
jle 0x40a573
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x40a480
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0x28]
lea eax, [esp + eax*4 + 0x28]
push ecx
push ebx
push 0x410
mov dword [esp + 0x2c], eax
call ebp
mov edi, eax
cmp edi, ebx
je 0x40a551
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40a4e7
push 0x208
lea ecx, [esp + 0x102c]
push ebx
push ecx
call fcn.0041b5e0
mov eax, dword [esp + 0x30]
add esp, 0xc
push 0x104
lea edx, [esp + 0x102c]
push edx
push eax
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov ecx, dword [esp + 0x1238]
lea eax, [esp + 0x1028]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a51b
cmp dx, bx
je 0x40a517
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a51b
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40a4f5
xor eax, eax
jmp 0x40a520
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40a551
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push edx
push ebx
push 0x1f0fff
call ebp
mov esi, eax
cmp esi, ebx
je 0x40a54d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
cmp al, bl
jne 0x40a575
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x40a480
xor al, al
mov ecx, dword [esp + 0x1230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004170e8
add esp, 0x1224
ret