joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ceed0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x1401a7268]
cmp rax, 3
jne 0x1400cf0c2
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400cf0d2
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400cef68
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400cf024
inc rdx
cmp rax, rdx
jne 0x1400cef50
jmp 0x1400cf08d
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400cef9e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400cf024
inc rdx
cmp rcx, rdx
jne 0x1400cef80
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400cefa2
jmp 0x1400cefee
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x1400ee600]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400cefee
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400cefc0
sub rax, rcx
je 0x1400cf08d
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400cf021
inc rdx
cmp rax, rdx
jne 0x1400cf010
jmp 0x1400cf08d
add rdx, rcx
cmp rdx, rdi
jne 0x1400cf08d
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400cf0a1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400cf0b9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400cf0e4
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400cf0e4
mov rbx, rdx
call fcn.1400ed490
mov rdx, rbx
jmp 0x1400cef0c
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1400ed4f0
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cf7c0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1401a72e8]
mov edx, 0x10
xor ecx, ecx
call fcn.1400cfc90
test rax, rax
je 0x1400cf894
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400cf930]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400cf886
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x1400cf863
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000a380
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000a380
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400ea870
ud2

Function at 0x1400d2ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp fcn.1400c9000

Function at 0x1400d5683
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400d498a
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400d56bf
xor eax, eax
jmp 0x1400d56cd
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400d59fa
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov r14, rcx
lea r15, [rbp - 0x1e]
lea r12, [rbp - 0x2e]
mov r13, qword [rcx + 8]
mov edi, 0x7fffffff
cmp r9, rdi
cmovb rdi, r9
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x40], rax
push 1
pop rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdi
lea rcx, [rbp - 0x28]
mov rdx, r13
mov r8, rbx
call fcn.1400db971
mov al, byte [rbp - 0x1f]
cmp al, 3
je 0x1400d5b8b
mov rdx, qword [rbp - 0x28]
cmp al, 2
je 0x1400d5b9f
mov cl, byte [rbp - 0x20]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rbp - 0x38], rdx
mov byte [rbp - 0x30], cl
mov byte [rbp - 0x2f], al
mov rcx, qword [rbp - 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400d5bb4
mov rdx, rsi
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400d5b90
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.140045345
cmp al, 0xd
jne 0x1400d5b60
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400d5b60
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400d5bc0
mov rdi, r13
mov r13, r14
mov r14, r15
mov r15, rbx
mov rbx, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140045144
mov rsi, rax
xor ecx, ecx
call fcn.1400d4557
test rsi, rsi
je 0x1400d5b4d
push 1
pop rcx
mov rdx, qword [rbp - 8]
call fcn.1400455be
mov rcx, rsi
mov rsi, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rdi
mov rdi, qword [rbp - 0x18]
jmp 0x1400d5b64
mov rsi, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rdi
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
mov qword [rbp - 8], rcx
call fcn.14007d4ae
cmp al, 0xd
jne 0x1400d5b9b
mov rcx, r14
lea rdx, [rbp - 0x38]
call fcn.1400db908
mov rcx, qword [rbp - 8]
call fcn.140043a89
jmp 0x1400d5a53
push 2
pop rax
jmp 0x1400d5b95
movsxd rdx, eax
xor eax, eax
mov qword [rbp - 0x10], rax
jmp 0x1400d5b9f
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.C:Users16956.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47_tokio_1.37.0_srciopoll_evented.rs
call fcn.1400eafe0
ud2

Function at 0x1400db452
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400db459
test al, 1
je 0x1400db478
test al, 2
jne 0x1400db490
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401466f0]
mov edx, 0x23
call fcn.1400eacd0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140146730]
mov edx, 0x25
call fcn.1400eacd0
int3
Function at 0x1400ea464
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ea4ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ea4ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ea4ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ea4ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ea4ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ea4b0
xor al, al
add rsp, 0x28
ret

Function at 0x1400ed4f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14000a6b0
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400ed579
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400ed5ab
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400ed5bf
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x1400ed5db
mov rcx, qword [rbp - 0x20]
mov edx, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14000a380
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x1400ed5db
mov edx, 1
mov rcx, rdi
call fcn.14000a380
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140001360
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
test rax, rax
je 0x140001449
xor ecx, ecx
test rbx, rbx
je 0x140001449
cmp rbx, 0x40
jb 0x14000141a
movdqa xmm2, xmmword [0x1400cc660]
mov r8, rbx
movdqa xmm3, xmmword [str.3333333333333333]
and r8, 0xffffffffffffffc0
add rax, 0x20
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rcx, 0x40
movdqa xmm1, xmm2
xorps xmm0, xmm2
psubb xmm0, xmm3
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
psubb xmm1, xmm3
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm0, xmm2
psubb xmm0, xmm3
movdqu xmmword [rax - 0x40], xmm0
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
psubb xmm0, xmm3
movdqu xmmword [rax - 0x30], xmm0
cmp rcx, r8
jb 0x1400013c0
cmp rcx, rbx
jae 0x140001446
lea rax, [rcx + rdx]
sub rbx, rcx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
xor cl, 0xab
sub cl, 0x33
mov byte [rax - 1], cl
sub rbx, 1
jne 0x140001430
mov rax, rdx
add rsp, 0x20
pop rbx
ret
Function at 0x140001450
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400cf040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x18], 1
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x18]
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 0xa
mov ecx, 0xf
mov qword [rbp - 0x40], rcx
movsd xmm0, qword [0x1400cc4a0]
movsd qword [rbp - 0x58], xmm0
movzx eax, word [0x1400cc4a8]
mov word [rbp - 0x50], ax
mov byte [rbp - 0x4e], dil
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rcx
mov byte [rbp - 0x38], dil
mov dword [rbp - 0x60], 1
mov ebx, edi
movzx r9d, byte [rbp + rbx - 0x58]
xor r9b, 0xaa
cmp rdi, rcx
jae 0x14000150f
lea rax, [rdi + 1]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x38]
cmp rcx, 0xf
cmova rax, qword [rbp - 0x38]
mov byte [rax + rdi], r9b
mov byte [rax + rdi + 1], 0
jmp 0x140001518
lea rcx, [rbp - 0x38]
call fcn.1400ca8e0
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rax, qword [rbp - 0x38]
xor byte [rax + rbx], 0x55
inc rbx
cmp rbx, 0xa
jae 0x14000153d
mov rcx, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
jmp 0x1400014e0
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rdx, qword [rbp - 0x38]
lea rcx, [0x1400cc4b0]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140001596
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001591
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001591
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cac70
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400cac50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400c9fc0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cf040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400ca153
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov edi, 0xffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400ca14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cc3b0]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x1400cc3c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400ca14d
lea ecx, [rbp + 0x18]
call fcn.1400cac78
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400ca0ab
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400ca183
jmp 0x1400ca0ae
mov rbx, rbp
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1400ca178
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov esi, eax
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x1400ca129
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400ca10a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400ca11c
call fcn.1400cac70
mov qword [rbx + 8], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.1400cac70
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x1400ca14d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x1400ca155
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400cac50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.1400caab0
nop
mov ecx, 0x8007000e
call fcn.1400caab0
int3
Function at 0x1400cb630
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cb67a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cb67a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cb67a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cb67a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cb67a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cb67c
xor al, al
add rsp, 0x28
ret
Function at 0x1400279dc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1800011d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800011f8
xor eax, eax
lea r8, [0x1800010d0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180001000
Capabilities:
Get routing table

Disassembly:
push rbx
push rbp
sub rsp, 0x1c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rbx + 0x3c]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x180001210
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x1e8], rdi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x180001098
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x18000120c
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbp
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x1800011f8
cmp dword [rbp], ebx
mov qword [rsp + 0x1f0], r12
mov r12d, ebx
jle 0x1800011b8
mov qword [rsp + 0x1e0], rsi
mov qword [rsp + 0x1c0], r13
lea r13, [rbp + 8]
nop dword [rax + rax]
mov ecx, dword [r13 - 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0xb0]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13 + 8]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x130]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
lea rsi, [rsp + 0x30]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x18000116a
lea rsi, [rsp + 0xb0]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
je 0x18000117d
inc r12d
add r13, 0x38
cmp r12d, dword [rbp]
jl 0x1800010e0
jmp 0x1800011a8
lea rcx, [0x18000a470]
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x130]
inc rbx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x180001190
mov ebx, 1
mov rsi, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x1f0]
mov eax, ebx
mov rdi, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800054a0
add rsp, 0x1c8
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1800011d6
mov eax, ebx
jmp 0x1800011de
Function at 0x180001220
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub rsp, 0x1d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test edx, edx
je 0x1800012e6
cmp edx, 1
jne 0x180001306
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180001306
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x18000a428], rax
test rax, rax
je 0x180001306
lea rcx, [0x180006348]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call section..text
test eax, eax
jne 0x1800012a9
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call section..text
test eax, eax
je 0x180001295
lea rcx, [0x18000a490]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [0x18000a470]
lea rdx, str._c_route_add_0.0.0.0_mask_0.0.0.0__s
lea rcx, [0x18000a490]
call qword [sym.imp.MSVCR90.dll_sprintf]
call fcn.180002810
mov byte [str.SOFTWARE_test], 0
jmp 0x180001306
mov rcx, qword [0x18000a428]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18000a308]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800054a0
add rsp, 0x1d8
ret

Function at 0x180001330
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rdx, str.Themes
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x1d
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1800013a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1800013c0
cmp dword [rsp + 0x24], 1
je 0x1800013c8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x180001383
jmp 0x1800013c8
mov dword [rsp + 0x24], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180001480
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [0x18000a5e4]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1800014c9
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1800014c0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
pop rbx
ret