joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
mov eax, 0x4782fc
call fcn.0046a008
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 8]
mov dword [edx], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffffff
mov edx, dword [ebp + 8]
mov byte [edx + 0x18], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x19], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x14], ecx
push 0x10
push 0
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.00469cbc
add esp, 0xc
mov edx, dword [ebp + 8]
mov word [edx + 0x1a], 0
push 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call fcn.00469cbc
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [eax + 0x60], 0x2722
push 0x10
push 0
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
call fcn.00469cbc
add esp, 0xc
push 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x50
push ecx
call fcn.00469cbc
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [eax + 0x3c], 0xe608
lea edx, [ebp - 0x1b8]
push edx
push 0x202
call sub.WSOCK32.DLL_WSAStartup
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x408a22
call sub.WSOCK32.DLL_WSACleanup
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x408ab8
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x408acd
mov al, 1
jmp 0x408b4e
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xffffffff
jne 0x408ae9
xor eax, eax
jmp 0x408b4e
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00469cbc
add esp, 0xc
mov word [ebp - 0x14], 2
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x12], ax
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp + 8]
push dword [edx]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408b4c
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.WSOCK32.DLL_closesocket
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov edx, str.InitSendSock_fun_error
mov eax, dword [ebp + 8]
call fcn.00408a98
xor eax, eax
jmp 0x408b4e
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x408b54
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x408b78
xor eax, eax
jmp 0x408be6
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00469cbc
add esp, 0xc
mov word [ebp - 0x14], 2
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0x3c]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x12], ax
xor edx, edx
mov dword [ebp - 0x10], edx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408be4
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.WSOCK32.DLL_closesocket
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xffffffff
mov edx, str.InitRcvSock_fun_bind_error
mov eax, dword [ebp + 8]
call fcn.00408a98
xor eax, eax
jmp 0x408be6
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x408bec
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
jne 0x408c13
xor eax, eax
jmp 0x408cf8
mov byte [ebp - 5], 1
push 1
lea edx, [ebp - 5]
push edx
push 4
push 0xffff
mov ecx, dword [ebp + 8]
push dword [ecx + 8]
call sub.WSOCK32.DLL_setsockopt
mov dword [ebp - 4], eax
push 0x10
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00469cbc
add esp, 0xc
mov word [ebp - 0x20], 2
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0x60]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1e], ax
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 8]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408c9e
mov eax, dword [ebp + 8]
push dword [eax + 8]
call sub.WSOCK32.DLL_closesocket
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffffff
mov edx, str.InitMulSick_fun_bind_error
mov eax, dword [ebp + 8]
call fcn.00408a98
xor eax, eax
jmp 0x408cf8
mov edx, dword [ebp + 8]
add edx, 0x50
push edx
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push 8
lea eax, [ebp - 0x10]
push eax
push 5
push 0
mov edx, dword [ebp + 8]
push dword [edx + 8]
call sub.WSOCK32.DLL_setsockopt
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408cf6
mov ecx, dword [ebp + 8]
push dword [ecx + 8]
call sub.WSOCK32.DLL_closesocket
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffffff
mov edx, str.InitMulSock_fun_setsockopt_error
mov eax, dword [ebp + 8]
call fcn.00408a98
xor eax, eax
jmp 0x408cf8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x408d64
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00469cbc
add esp, 0xc
mov word [ebp - 0x14], 2
mov edx, dword [ebp + 8]
mov cx, word [edx + 0x3e]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
call fcn.00469dcc
pop ecx
cmp eax, 1
jae 0x408da7
xor eax, eax
jmp 0x408df9
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x408dc0
xor eax, eax
jmp 0x408df9
push dword [ebp + 0xc]
call fcn.00469dcc
pop ecx
cmp eax, 1
jae 0x408dd2
xor eax, eax
jmp 0x408df9
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.WSOCK32.DLL_sendto
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408df7
xor eax, eax
jmp 0x408df9
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00469cbc
add esp, 0xc
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x18], 1
jmp 0x408ecb
mov dword [ebp - 8], 0x10
mov byte [ebp - 0x418], 0
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x18]
push edx
push 0
push 0x400
lea ecx, [ebp - 0x418]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WSOCK32.DLL_recvfrom
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x408e68
cmp dword [ebp - 4], 0
jne 0x408e97
cmp dword [ebp - 4], 0xffffffff
jne 0x408e7b
mov edx, str.UDP_Thread_quit_bytesSOCKET_ERROR_error
mov eax, dword [ebp + 8]
call fcn.00408a98
cmp dword [ebp - 4], 0
jne 0x408e8e
mov edx, str.UDP_Thread_quit_bytes0_error
mov eax, dword [ebp + 8]
call fcn.00408a98
mov edx, dword [ebp + 8]
mov byte [edx + 0x18], 0
jmp 0x408ecb
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x418], 0
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_inet_ntoa
push eax
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.00469d9c
add esp, 8
mov dx, word [ebp - 0x16]
push edx
call sub.WSOCK32.DLL_ntohs
mov ecx, dword [ebp + 8]
mov word [ecx + 0x1a], ax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x18], 0
jne 0x408e2a
mov edx, str.UDP_thread_quit
mov eax, dword [ebp + 8]
call fcn.00408a98
mov esp, ebp
pop ebp
ret
Function at 0x408f48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x408f5e
push dword [ebp + 8]
call fcn.00408b54
pop ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
jne 0x408f6f
push dword [ebp + 8]
call fcn.00408ab8
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0xffffffff
je 0x408fc0
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x408fc0
mov edx, dword [ebp + 8]
cmp byte [edx + 0x18], 0
je 0x408f8e
mov al, 1
pop ecx
pop ebp
ret
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 8]
push 0x408eec
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
setne al
and eax, 1
pop ecx
pop ebp
ret
xor eax, eax
pop ecx
pop ebp
ret

Function at 0x409008
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
jne 0x40901e
push dword [ebp + 8]
call fcn.00408bec
pop ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
jne 0x40902f
push dword [ebp + 8]
call fcn.00408ab8
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xffffffff
je 0x409080
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x409080
mov edx, dword [ebp + 8]
cmp byte [edx + 0x19], 0
je 0x40904e
mov al, 1
pop ecx
pop ebp
ret
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 8]
push 0x409154
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
setne al
and eax, 1
pop ecx
pop ebp
ret
xor eax, eax
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
mov dword [ebp - 4], 0x10
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov byte [edx + 0x19], 1
jmp 0x409143
mov dword [ebp - 0xc], 0x10
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x400
lea edx, [ebp - 0x41c]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 8]
call sub.WSOCK32.DLL_recvfrom
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4090e0
cmp dword [ebp - 8], 0
jne 0x40910f
cmp dword [ebp - 8], 0xffffffff
jne 0x4090f3
mov edx, str.MUL_Thread_quit_bytesSOCKET_ERROR_error
mov eax, dword [ebp + 8]
call fcn.00408a98
cmp dword [ebp - 8], 0
jne 0x409106
mov edx, str.MUL_Thread_quit_bytes0_error
mov eax, dword [ebp + 8]
call fcn.00408a98
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x19], 0
jmp 0x409143
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x41c], 0
push dword [ebp - 0x18]
call sub.WSOCK32.DLL_inet_ntoa
push eax
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
call fcn.00469d9c
add esp, 8
mov cx, word [ebp - 0x1a]
push ecx
call sub.WSOCK32.DLL_ntohs
mov edx, dword [ebp + 8]
mov word [edx + 0x1a], ax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19], 0
jne 0x4090a9
mov esp, ebp
pop ebp
ret
Function at 0x40921c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
mov eax, 0x4783bc
call fcn.0046a008
mov word [ebp - 0x14], 8
mov eax, dword [ebp + 8]
add eax, 0x444
call fcn.00401abc
inc dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 0
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
mov word [eax + 8], 0x1771
mov edx, dword [ebp + 8]
mov word [edx + 0xa], 0
push str.00000000
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
call fcn.00469d9c
add esp, 8
push str.FFFFFFFFFFFF
mov eax, dword [ebp + 8]
add eax, 0x1d
push eax
call fcn.00469d9c
add esp, 8
lea edx, [ebp - 0x1b8]
push edx
push 0x202
call sub.WSOCK32.DLL_WSAStartup
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4092ca
call sub.WSOCK32.DLL_WSACleanup
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x409354
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x409369
push dword [ebp + 8]
call fcn.00409458
pop ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0xffffffff
jne 0x40937b
push dword [ebp + 8]
call fcn.004094fc
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xffffffff
je 0x4093c5
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
je 0x4093c5
mov edx, dword [ebp + 8]
mov byte [edx + 0xc], 1
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x409930
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
setne al
and eax, 1
pop ecx
pop ebp
ret
xor eax, eax
pop ecx
pop ebp
ret

Function at 0x409458
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0x3e8
push 2
push 6
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40947d
xor eax, eax
jmp 0x4094f5
mov byte [ebp - 5], 1
push 1
lea edx, [ebp - 5]
push edx
push 0x20
push 0xffff
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.WSOCK32.DLL_setsockopt
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4094a5
xor eax, eax
jmp 0x4094f5
mov word [ebp - 0x14], 6
mov edx, dword [ebp + 8]
mov cx, word [edx + 8]
mov word [ebp - 8], cx
push 4
push 0
lea eax, [ebp - 0x12]
push eax
call fcn.00469cbc
add esp, 0xc
push 6
push 0
lea edx, [ebp - 0xe]
push edx
call fcn.00469cbc
add esp, 0xc
push 0xe
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4094f3
xor eax, eax
jmp 0x4094f5
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4094fc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0x3e8
push 2
push 6
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x409523
xor eax, eax
jmp 0x40959d
mov byte [ebp - 5], 1
push 1
lea edx, [ebp - 5]
push edx
push 0x20
push 0xffff
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
call sub.WSOCK32.DLL_setsockopt
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40954c
xor eax, eax
jmp 0x40959d
mov word [ebp - 0x14], 6
mov edx, dword [ebp + 8]
mov cx, word [edx + 0xa]
mov word [ebp - 8], cx
push 4
push 0
lea eax, [ebp - 0x12]
push eax
call fcn.00469cbc
add esp, 0xc
push 6
push 0
lea edx, [ebp - 0xe]
push edx
call fcn.00469cbc
add esp, 0xc
push 0xe
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40959b
xor eax, eax
jmp 0x40959d
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4095a4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push dword [ebp + 8]
call fcn.004094fc
pop ecx
mov word [ebp - 0x14], 6
mov ax, word [ebp + 0xc]
mov word [ebp - 8], ax
push 4
lea edx, [ebp - 0x12]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
push dword [ebp + 8]
call fcn.004099a0
add esp, 0x10
push 6
lea eax, [ebp - 0xe]
push eax
mov edx, dword [ebp + 8]
add edx, 0x1d
push edx
push dword [ebp + 8]
call fcn.004099a0
add esp, 0x10
push 0xe
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WSOCK32.DLL_sendto
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409617
xor eax, eax
jmp 0x409619
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40ad44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x124
call fcn.004691d8
pop ecx
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00469d9c
add esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], edx
lea eax, [ebp + 0x18]
push eax
mov edx, dword [ebp - 4]
add edx, 0x20
push edx
call fcn.00469d9c
add esp, 8
lea ecx, [ebp + 0x98]
push ecx
mov eax, dword [ebp - 4]
add eax, 0xa0
push eax
call fcn.00469d9c
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov dword [eax + 0x120], ecx
lea edx, [ebp - 8]
push edx
push 0
push dword [ebp - 4]
push 0x40adf0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret
Function at 0x40b658
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov eax, 0x47d7d8
call fcn.0046a008
xor edx, edx
mov dword [ebp - 0x44], edx
mov word [ebp - 0x30], 0x14
lea eax, [ebp - 4]
call fcn.00401abc
push eax
inc dword [ebp - 0x24]
call fcn.00401ff8
mov word [ebp - 0x30], 8
mov word [ebp - 0x30], 0x20
lea eax, [ebp - 0x10]
call fcn.00401abc
push eax
inc dword [ebp - 0x24]
mov edx, 0x47d6a8
lea eax, [ebp - 0xc]
call fcn.00473eac
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
pop ecx
call fcn.00473fd4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00473fac
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00473f7c
mov word [ebp - 0x30], 0x2c
lea eax, [ebp - 0x14]
call fcn.00401abc
mov edx, eax
inc dword [ebp - 0x24]
mov ecx, dword [0x482a30]
mov eax, dword [ecx]
call fcn.004556b4
lea edx, [ebp - 0x14]
push dword [edx]
lea eax, [ebp - 0x18]
call fcn.00401abc
mov edx, eax
inc dword [ebp - 0x24]
pop eax
call fcn.00420ff8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 8]
call fcn.00401abc
push eax
inc dword [ebp - 0x24]
mov edx, str.p2tect.sys
lea eax, [ebp - 0x1c]
call fcn.00473eac
inc dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
pop ecx
pop eax
call fcn.00473fd4
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00473f7c
mov word [ebp - 0x30], 8
mov eax, dword [ebp - 4]
call fcn.00420f2c
test al, al
jne 0x40b7a0
push 0
lea eax, [ebp - 4]
call fcn.00401fd8
push eax
lea eax, [ebp - 8]
call fcn.00401fd8
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebp - 4]
call fcn.00420f2c
test al, al
jne 0x40b7e0
mov eax, dword [ebp - 0x44]
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40b871
xor ecx, ecx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x48]
push ecx
push str.c:windows_system32driversp2tect.sys
push 0x47d6c6
call fcn.0040bbd3
add esp, 0x10
test eax, eax
je 0x40b843
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40b871
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00473f7c
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40b9dc
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push 0
push 2
push 1
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_CreateServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ba14
xor eax, eax
pop ecx
pop ebp
ret
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
pop ecx
pop ebp
ret

Function at 0x40ba24
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ba47
xor eax, eax
jmp 0x40ba86
push 0
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_StartServiceA
test eax, eax
jne 0x40ba73
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x420
je 0x40ba73
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x422
je 0x40ba73
xor edx, edx
jmp 0x40ba78
mov edx, 1
mov dword [ebp - 8], edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40ba8a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp eax, 5
jb 0x40bab5
push dword [ebp + 8]
push str..Global_s
lea eax, [ebp - 0x44]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
jmp 0x40bac9
push dword [ebp + 8]
push str.._s
lea edx, [ebp - 0x44]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x44]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40baf1
xor eax, eax
jmp 0x40bb0e
cmp dword [ebp + 0xc], 0
je 0x40bb01
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
jmp 0x40bb09
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40bb12
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bb35
xor eax, eax
jmp 0x40bb51
lea edx, [ebp - 0x24]
push edx
push 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_ControlService
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40bb55
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bb78
xor eax, eax
jmp 0x40bb8e
push dword [ebp - 4]
call sub.ADVAPI32.DLL_DeleteService
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40c698
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x40c6ab
mov al, 1
jmp 0x40c71a
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp + 8]
push 0x40c604
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x40c6e2
xor eax, eax
jmp 0x40c71a
push 0x14
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call sub.KERNEL32.DLL_GetExitCodeThread
cmp dword [ebp - 8], 0x103
je 0x40c718
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x14], ecx
xor eax, eax
jmp 0x40c71a
mov al, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d5f8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
pop ebp
ret