joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431ad7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.CapLogNetFiles.dat
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._Y_m_d
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00427d26
mov ecx, eax
call fcn.00427d68
mov edx, dword [0x43db14]
mov dword [esp + 0x14c], 0
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call fcn.0041ab80
lea eax, [esp + 0x40]
mov bl, 2
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], bl
call fcn.0041ac43
test eax, eax
je 0x413473
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call fcn.0041ae63
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0041afca
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 3
call fcn.004289df
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.004288f2
lea edx, [esp + 0x14]
push 8
push edx
lea ecx, [esp + 0x14]
call fcn.00427771
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 4
call fcn.004289df
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], bl
call fcn.004288f2
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], 8
jne 0x41346b
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0041bda7
add esp, 8
test eax, eax
jge 0x41346b
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.0041af32
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
call fcn.004288f2
test esi, esi
jne 0x4133c6
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call fcn.0041abbd
lea ecx, [esp + 0xc]
mov byte [esp + 0x14c], 0
call fcn.004288f2
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x415e00
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x431e06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], bl
mov edi, str.caplog_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041c9cd
mov edi, str.history.map
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0041ab80
lea eax, [esp + 0x3c]
push ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2e0], ebx
call fcn.0041ac43
test eax, eax
jne 0x415fb8
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00428e50
push ebx
lea ecx, [esp + 0x40]
push 0x1001
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e4], 1
call fcn.00428f62
test eax, eax
je 0x415fa8
push 0x13888
lea ecx, [esp + 0x14]
call fcn.00429230
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x18]
call dword [edx + 0x28]
lea eax, [esp + 0xc]
push 4
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 1
call fcn.004290b9
lea ecx, [esp + 0xc]
push 4
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.004290b9
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x140]
mov esi, 0xc8
rep stosd dword es:[edi], eax
lea edx, [esp + 0x140]
push 0x190
push edx
lea ecx, [esp + 0x18]
call fcn.004290b9
dec esi
jne 0x415f86
lea ecx, [esp + 0x10]
call fcn.0042917d
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d8], bl
call fcn.00428ea5
lea ecx, [esp + 0x20]
mov dword [esp + 0x2d8], 0xffffffff
call fcn.0041abbd
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret
Function at 0x416980
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431ebb
push eax
mov eax, 0x2d5dc
mov dword fs:[0], esp
call fcn.0041c1e0
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.spy9.map
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x416ab9
mov ecx, ebp
call fcn.00416d00
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call fcn.00428e50
push 0
lea ecx, [esp + 0x20]
push 0x1001
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2d5fc], 0
call fcn.00428f62
test eax, eax
je 0x416a9e
mov ecx, 0xb532
xor eax, eax
lea edi, [esp + 0x120]
lea edx, [esp + 0x120]
rep stosd dword es:[edi], eax
push 0x2d4c8
push edx
lea ecx, [esp + 0x14]
call fcn.004290b9
lea ecx, [esp + 0xc]
call fcn.0042917d
mov ecx, ebp
call fcn.00416d20
lea ecx, [esp + 0xc]
mov dword [esp + 0x2d5f0], 0xffffffff
call fcn.00428ea5
mov ecx, dword [esp + 0x2d5e8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2d5e8
ret
Function at 0x416d90
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x22c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1008]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x1008]
mov edi, 1
cmp eax, 0xffffffff
jne 0x416dd8
push 0
push edi
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x1008], eax
jne 0x416dd8
pop edi
xor eax, eax
pop esi
add esp, 0x22c
ret 0xc
mov eax, dword [esp + 0x238]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
mov dword [esp + 0x18], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jne 0x416e0e
pop edi
xor eax, eax
pop esi
add esp, 0x22c
ret 0xc
mov edx, dword [esp + 0x23c]
push edx
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x1008]
mov word [esp + 0x16], ax
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
push 0x8004667e
push ecx
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esi + 0x1008]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x416ec9
mov ecx, dword [esp + 0x240]
mov eax, dword [esi + 0x1008]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x138], eax
push 0
lea edx, [esp + 0x138]
push ecx
inc eax
push edx
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x144], edi
call sub.WSOCK32.dll_select
test eax, eax
je 0x416eb5
mov ecx, dword [esi + 0x1008]
lea eax, [esp + 0x2c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x416ec9
mov ecx, esi
call fcn.00416d70
pop edi
xor eax, eax
pop esi
add esp, 0x22c
ret 0xc
mov eax, dword [esi + 0x1008]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_ioctlsocket
mov edx, dword [esi + 0x1008]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1005
push 0xffff
push edx
mov dword [esp + 0x20], 0xbb8
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esi + 0x1008]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x1008]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0xffff
push eax
mov dword [esp + 0x24], edi
call sub.WSOCK32.dll_setsockopt
mov eax, edi
pop edi
pop esi
add esp, 0x22c
ret 0xc
Function at 0x416f60
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
call ebp
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x14]
push 0
push esi
push edi
mov ecx, dword [eax + 0x1008]
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x416fbf
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x416fd9
call ebp
sub eax, ebx
cmp eax, 0x7d0
ja 0x416fd9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416fd5
test eax, eax
jle 0x416fd9
mov edx, dword [esp + 0x10]
add edi, eax
add edx, eax
sub esi, eax
mov dword [esp + 0x10], edx
call ebp
mov ebx, eax
test esi, esi
jg 0x416f85
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x416ff0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [esp + 0x10], ecx
call ebp
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x10]
push 0
push esi
push edi
mov ecx, dword [eax + 0x1008]
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x417045
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x417057
call ebp
sub eax, ebx
cmp eax, 0x7d0
ja 0x417057
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x417051
test eax, eax
jle 0x417057
add edi, eax
sub esi, eax
call ebp
mov ebx, eax
test esi, esi
jle 0x417061
jmp 0x41700b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4175e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4175fa
mov ecx, dword [eax + 0xc]
pop esi
mov edx, dword [ecx]
mov eax, dword [edx]
ret
mov eax, esi
pop esi
ret

Function at 0x4179a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0041bd80
mov edi, dword [esp + 0x11c]
mov byte [eax + 1], 0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x417b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x431fe2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x508
push esi
push edi
mov dword [esp + 8], 0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x51c], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0041bd80
mov edi, dword [esp + 0x52c]
mov byte [eax + 1], 0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x530]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
mov eax, dword [esp + 0x530]
push 0x400
push ecx
mov ecx, dword [esp + 0x534]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x520]
lea edx, [esp + 0x110]
push edx
mov ecx, esi
call fcn.00428960
mov dword [esp + 8], 1
lea ecx, [esp + 0x530]
mov byte [esp + 0x518], 0
call fcn.004288f2
mov ecx, dword [esp + 0x510]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x514
ret
Function at 0x417d10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x417d4b
add esp, 0x400
ret
lea ecx, [esp]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x417d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x400
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
add esp, 0x400
ret

Function at 0x417d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432017
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x43db14]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 8], eax
mov ebx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], ebx
or eax, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push esi
push eax
mov byte [esp + 0x38], 2
mov dword [esp + 0x20], 6
call sub.iphlpapi.dll_SendARP
cmp eax, esi
jne 0x417eb3
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x417eb3
lea ecx, [eax + eax*2]
push edi
push ecx
call fcn.00428e1c
mov edx, dword [esp + 0x18]
add esp, 4
dec edx
mov edi, eax
test edx, edx
jbe 0x417e40
xor eax, eax
lea ecx, [esp + 0xc]
mov al, byte [esp + esi + 0x1c]
push eax
push str._02X
push ecx
call fcn.00427b91
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.00428cbe
mov eax, dword [esp + 0x14]
inc esi
dec eax
cmp esi, eax
jb 0x417e0f
xor ecx, ecx
lea edx, [esp + 0xc]
mov cl, byte [esp + esi + 0x1c]
push ecx
push str._02X
push edx
call fcn.00427b91
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00428cbe
push edi
call fcn.00428e45
mov esi, dword [esp + 0x38]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00428667
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x2c], bl
call fcn.004288f2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004288f2
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov esi, dword [esp + 0x30]
push 0x441314
mov ecx, esi
call fcn.00428960
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.004288f2
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.004288f2
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x417f00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x432043
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push 0
push 2
mov dword [esp + 0x140], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x417fe5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x43db14]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x148], 1
call fcn.00428a2f
lea ecx, [esp + 0x10]
call fcn.00428dba
lea ecx, [esp + 0x14c]
call fcn.00428dba
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0041bda7
add esp, 8
test eax, eax
jne 0x417fbc
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x1f0fff
call edi
push 0
push eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x144], 0
call fcn.004288f2
test esi, esi
jne 0x417f5c
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x130]
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x4180b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41811c
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x418690
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43214b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebp
push esi
push edi
mov dword [esp + 0x220], 0
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x43db14]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x22c]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push str._s__s
push eax
mov byte [esp + 0x230], 2
call fcn.00427b91
mov ecx, dword [esp + 0x23c]
push 0x441314
push ecx
call fcn.0041bda7
mov ebp, dword [esp + 0x244]
mov edx, dword [esp + 0x248]
add esp, 0x18
lea ecx, [esp + 0x114]
neg eax
sbb eax, eax
and eax, ebp
neg edx
sbb edx, edx
and edx, 5
push edx
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 1
call fcn.004288f2
lea ecx, [esp + 0x228]
mov byte [esp + 0x220], 0
call fcn.004288f2
lea ecx, [esp + 0x22c]
mov dword [esp + 0x220], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x418880
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x41892c
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x41891a
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x418907
mov eax, dword [esp + 0x14]
mov esi, 3
cmp eax, 1
jne 0x4188ed
push edi
mov esi, 2
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 4
jne 0x41890a
push edi
mov esi, 1
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
or esi, 0xffffffff
push edi
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
mov esi, 0xfffffffe
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 0xfffffffd
pop ebx
add esp, 0x1c
ret