joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a7cc0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x180237160]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, r8
mov qword [rsp + 0x80], reloc.WS2_32.dll_ntohs
xor esi, esi
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], sil
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800a7e5e
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1800a7e5e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.180004540
mov r11d, esi
mov edx, esi
mov ecx, esi
movsxd r9, dword [rsp + 0x78]
test r9, r9
jle 0x1800a7db5
mov rdi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
cmp rdi, 0x10
cmovae rax, r8
cmp byte [rcx + rax], 0x1f
jle 0x1800a7db2
lea rax, [rsp + 0x68]
cmp rdi, 0x10
cmovae rax, r8
cmp byte [rcx + rax], 0x7f
jge 0x1800a7db2
inc edx
inc rcx
cmp rcx, r9
jl 0x1800a7d80
jmp 0x1800a7db5
mov r11d, edx
movsxd r8, r11d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.1800a8350
mov rdi, rax
cmp rbx, rax
je 0x1800a7e2c
cmp qword [rbx + 0x18], 0x10
jb 0x1800a7de1
mov rcx, qword [rbx]
call fcn.180183e0c
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rsi
mov byte [rbx], 0
cmp qword [rdi + 0x18], 0x10
jae 0x1800a7e0b
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
mov rcx, rbx
call fcn.180183a80
jmp 0x1800a7e14
mov rax, qword [rdi]
mov qword [rbx], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x10], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x18], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rsp + 0xa8], 0x10
jb 0x1800a7e45
mov rcx, qword [rsp + 0x90]
call fcn.180183e0c
nop
cmp qword [rsp + 0x80], 0x10
jb 0x1800a7e5a
mov rcx, qword [rsp + 0x68]
call fcn.180183e0c
mov al, 1
jmp 0x1800a7e8b
mov r8d, socket
lea rdx, str.err_:_uncode_failed_
mov rcx, rbx
call fcn.180004540
nop
cmp qword [rsp + 0x80], 0x10
jb 0x1800a7e89
mov rcx, qword [rsp + 0x68]
call fcn.180183e0c
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.180183a50
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800a8110
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rbx, r9
mov rax, r8
mov r10, rdx
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x30], esi
lea rcx, [rbp + 0x28]
mov qword [r11 - 0x58], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800a817a
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
xor edx, edx
mov rcx, rdi
call fcn.1800a86f0
nop
jmp 0x1800a825b
mov dword [rbp - 0x2c], 0x1fe
mov ecx, 0x1fe
call fcn.1801888ac
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1800a86f0
nop
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
test eax, eax
jne 0x1800a821f
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1800a820d
mov eax, dword [rbx + 8]
test eax, eax
je 0x1800a8209
lea ecx, [rax + 1]
lock cmpxchg dword [rbx + 8], ecx
je 0x1800a81f4
mov eax, dword [rbx + 8]
test eax, eax
jne 0x1800a81e1
jmp 0x1800a8209
mov rbx, qword [rbp - 0x10]
mov r8, rbx
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.1800a8790
jmp 0x1800a820d
mov rbx, qword [rbp - 0x10]
mov dword [rbp - 0x30], 1
test rbx, rbx
je 0x1800a825b
lock dec dword [rbx + 8]
jmp 0x1800a823d
xor edx, edx
mov rcx, rdi
call fcn.1800a86f0
mov dword [rbp - 0x30], 1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1800a825b
lock dec dword [rcx + 8]
jne 0x1800a825b
mov rbx, qword [rbp - 0x10]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x1800a825b
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + htons]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800a8960
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800a8810]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800a89b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r8d
mov r8, rcx
mov ebx, edx
lea rcx, [0x180242ad0]
mov edx, 0xff
mov rdi, r9
call fcn.1801887c4
lea rcx, [0x180242cd4]
mov r8, rdi
mov edx, 0xff
mov dword [0x180242cd0], ebx
call fcn.1801887c4
xor eax, eax
lea r8, [0x1800a8810]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x180242f38], esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x1800a8cc0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800b13c0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800a8cd0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800b13f0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1800ac1f0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
mov eax, 0x20
call fcn.180188f30
sub rsp, rax
lea r8d, [rax + 0x50]
xor edx, edx
mov rbx, rcx
call fcn.180189610
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov dword [rbx + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800b04e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.180188f30
sub rsp, rax
mov rbx, r8
call fcn.1800afef0
test eax, eax
js 0x1800b071e
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1800b0569
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x1800b0520
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1800b071c
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x180000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
mov r9d, dword [rdi + rdx*4 + 0x1a5100]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x1a5900]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x1a5d00]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
xor r9d, dword [rdi + rcx*4 + 0x1a5500]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
mov r8d, dword [rdi + rdx*4 + 0x1a5100]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x1a5900]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1a5500]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x1a5d00]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
mov r8d, dword [rdi + rdx*4 + 0x1a5100]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x1a5900]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1a5500]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x1a5d00]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
mov r8d, dword [rdi + rdx*4 + 0x1a5900]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x1a5500]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1a5100]
movzx ecx, byte [rdi + rax*4 + 0x1a4500]
xor r8d, dword [rdi + rcx*4 + 0x1a5d00]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1800b0590
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800b13c0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800b13c0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800b13f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800b13f0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800b1420
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1800b1448
lea r9, [rsp + 0x50]
jmp 0x1800b1452
cmp edx, 1
jne 0x1800b149b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1800b14ee
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x1800b18e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x1800b1924
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x1800b192a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1800b1932
xor eax, eax
jmp 0x1800b19ad
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x1800b1988
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x1800b19a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x1800b19a6
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x1800b1b30
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x1800b1852
cmp ax, 0x17
je 0x1800b184b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x1800b1857
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1800b183e
test bx, bx
je 0x1800b188d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x180237160]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.180189610
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.1800b19f0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1800b1bdb
call fcn.18018473c
test ebx, ebx
je 0x1800b1beb
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1800b1c4e
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1800b1c25
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1800b1c10
cmp eax, 0x17
je 0x1800b1c10
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1800b1bf8
jmp 0x1800b1c25
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.180183a80
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1800b1c41
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1800b1c4c
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180183a50
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.1800b12d0
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x1800b1cc2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800b1810
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800b1b30
Function at 0x1800b1c80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x1800b1852
cmp ax, 0x17
je 0x1800b184b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x1800b1857
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1800b183e
test bx, bx
je 0x1800b188d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x180237160]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.180189610
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.1800b19f0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1800b1bdb
call fcn.18018473c
test ebx, ebx
je 0x1800b1beb
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1800b1c4e
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1800b1c25
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1800b1c10
cmp eax, 0x17
je 0x1800b1c10
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1800b1bf8
jmp 0x1800b1c25
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.180183a80
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1800b1c41
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1800b1c4c
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180183a50
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.1800b12d0
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x1800b1cc2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800b1810
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800b1b30
Function at 0x1800b42e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x1800b4310
mov dword [rcx + 0x20], eax
mov dword [rcx + 0x18], 1
mov dword [rcx + 0x1c], 2
xor eax, eax
mov dword [rcx + 0x24], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x28]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1800b434f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 2
mov dword [rbx + 0x24], 1
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x108]
cmp eax, 2
je 0x1800b43b5
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800b43aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800b43aa
test eax, eax
je 0x1800b43aa
mov ecx, 0x80004005
call fcn.1800a8c50
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1c], 5
test eax, eax
cmove eax, ecx
xor ecx, ecx
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x24], ecx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800b4530
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8d, r8d
je 0x1800b45b0
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x28]
lea r8d, [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1800b459e
cmp word [rsi], 2
mov rcx, qword [rdi + 0x28]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800b4599
cmp eax, 0xffffffff
jne 0x1800b459e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800b459e
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp word [rdx], 2
mov rcx, qword [rcx + 0x28]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800b459e
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1800b459e
mov dword [rdi + 0x68], 1
xor ecx, ecx
mov dword [rdi + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x108]
cmp eax, 2
jne 0x1800b463d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800b4664
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, ebx
mov ebx, eax
mov rdx, qword [rdi + 0x38]
lea rcx, str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.1800b3ce0
test ebx, ebx
je 0x1800b4599
mov ecx, 0x80004005
call fcn.1800a8c50
int3

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x210]
mov eax, dword [rcx + 0x50]
inc dword [rcx + 0x210]
xor edi, edi
mov rbx, rcx
cmp edx, eax
jb 0x1800b46d1
mov dword [rcx + 0x18], 1
mov qword [rcx + 0x1c], 5
mov dword [rcx + 0x24], edi
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800b46f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, edi
mov edi, eax
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.1800b3ce0
test edi, edi
je 0x1800b4731
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 5
mov dword [rbx + 0x20], edi
mov dword [rbx + 0x24], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret