joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002acc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x58
cmp qword [rcx], 0xffffffffffffffff
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov rdi, r9
mov r13d, r8d
mov rbx, rdx
mov r12, rcx
jne 0x1002ad21
lea rdx, [0x10042240]
lea rcx, [rsp + 0x38]
call fcn.10024b50
mov r9d, dword [r12 + 0x8c]
lea r8, [r12 + 9]
lea rdx, str._comm__Socket__s:_d_::recv_all_error:_Invalid_Socket.
mov rcx, rax
call fcn.10024c50
mov eax, 0xffffffff
jmp 0x1002ae38
test rdx, rdx
jne 0x1002ad5d
lea rdx, [0x10042280]
lea rcx, [rsp + 0x38]
call fcn.10024b50
mov r9d, dword [r12 + 0x8c]
lea r8, [r12 + 9]
lea rdx, str._comm__Socket__s:_d_::recv_all_error:_NULL_buffer.
mov rcx, rax
call fcn.10024c50
mov eax, 0xffffffff
jmp 0x1002ae38
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
test r8d, r8d
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov ebp, esi
jle 0x1002ae26
nop
cmp byte [r12 + 8], 0
je 0x1002ada5
mov rcx, qword [r12]
mov r8d, r13d
movsxd rdx, ebp
sub r8d, ebp
add rdx, rbx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x1002adcf
mov rcx, qword [r12]
lea rax, [rsp + 0x30]
mov r8d, r13d
mov qword [rsp + 0x28], rax
movsxd rdx, ebp
sub r8d, ebp
add rdx, rbx
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
je 0x1002addf
cmp esi, 0xffffffff
je 0x1002ade4
add ebp, esi
cmp ebp, r13d
jl 0x1002ad80
cmp esi, 0xffffffff
jne 0x1002ae26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1001f320
lea rdx, [0x100422c0]
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.10024b50
mov r9d, dword [r12 + 0x8c]
lea r8, [r12 + 9]
lea rdx, str._comm__Socket__s:_d_::recv_all_error:__s.
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.10024c50
cmp ebp, r13d
cmove esi, ebp
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x1002b370
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x10050650]
mov qword [rsp + 0x48], rax
cmp byte [rcx + 8], 0
mov qword [rsp + 0x70], rsi
mov rsi, rcx
je 0x1002b3a2
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
jmp 0x1002b3b3
mov edx, 2
mov ecx, edx
lea r8d, [rdx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rsi], rax
jne 0x1002b410
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1001f320
lea rdx, [0x10041f28]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.10024b50
mov r9d, dword [rsi + 0x8c]
lea r8, [rsi + 9]
lea rdx, str._comm__Socket__s:_d_::create_failed:__s
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.10024c50
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x1002b479
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov word [rsp + 0x38], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x3a], rax
mov dword [rsp + 0x42], eax
mov word [rsp + 0x46], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002b462
movzx ecx, word [rsp + 0x3a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rsi + 0x8c], r11d
mov rax, qword [rsi]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1003b040
add rsp, 0x58
ret
mov rax, rcx
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1003b040
add rsp, 0x58
ret
Function at 0x1002b4a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x78
mov rax, qword [0x10050650]
mov qword [rsp + 0x58], rax
cmp qword [rcx], 0xffffffffffffffff
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rsi
mov rbp, r8
mov dword [rcx + 0x8c], edx
mov rsi, rcx
jne 0x1002b4ea
call fcn.1002b370
cmp rax, 0xffffffffffffffff
jne 0x1002b4ea
mov dword [rsi + 0x8c], eax
jmp 0x1002b637
movzx ebx, word [rsi + 0x8c]
xor eax, eax
mov rcx, rbp
mov dword [rsp + 0x38], eax
mov word [rsp + 0x38], 2
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
test bx, bx
mov dword [rsp + 0x3c], eax
jne 0x1002b523
mov word [rsp + 0x3a], bx
jmp 0x1002b531
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1002b5bf
cmp byte [rsi + 8], 0
je 0x1002b563
mov rcx, qword [rsi]
mov edx, 5
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1002b5bf
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x1002b637
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov word [rsp + 0x48], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002b637
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rsi + 0x8c], r11d
jmp 0x1002b637
mov qword [rsp + 0x60], rdi
mov dword [rsi + 0x8c], 0xffffffff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1001f320
lea rdx, [0x10041f58]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.10024b50
mov r9d, dword [rsi + 0x8c]
lea r8, [rsi + 9]
lea rdx, str._comm__Socket__s:_d_::listen_failed:__s
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.10024c50
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
je 0x1002b630
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
lea rdx, [0x10041f88]
lea rcx, [rsp + 0x30]
call fcn.10024b50
mov r9d, dword [rsi + 0x8c]
lea r8, [rsi + 9]
lea rdx, str._comm__Socket__s_::listen__d___s_
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.10024c50
mov eax, dword [rsi + 0x8c]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.1003b040
add rsp, 0x78
ret
Function at 0x1002b6a0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x10050650]
mov qword [rsp + 0x78], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
xor dil, dil
cmp qword [rcx], 0xffffffffffffffff
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x1002b6e7
call fcn.1002b370
cmp rax, 0xffffffffffffffff
je 0x1002b7e6
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.1002d910
mov rcx, qword [rsp + 0x40]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor eax, eax
mov dword [rsp + 0x58], eax
mov word [rsp + 0x58], 2
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
test si, si
mov dword [rsp + 0x5c], eax
jne 0x1002b75c
mov word [rsp + 0x5a], si
jmp 0x1002b76a
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1002b7d5
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1002b7d0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov word [rsp + 0x68], ax
mov qword [rsp + 0x6a], rax
mov dword [rsp + 0x72], eax
mov word [rsp + 0x76], ax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002b7d0
movzx ecx, word [rsp + 0x6a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rbx + 0x8c], r11d
mov dil, 1
jmp 0x1002b7db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov al, dil
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.1003b040
add rsp, 0x98
ret
Function at 0x1002b980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x10050650]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rcx], 0xffffffffffffffff
mov rsi, rdx
mov byte [rcx + 8], 1
mov dword [rcx + 0x8c], 0
mov qword [rsp + 0x40], rdi
mov rdi, rcx
xor edx, edx
add rcx, 9
mov r8d, 0x80
call sub.msvcrt.dll_memset
lea r8, str.tcp_cli_socket
lea rdx, [0x10041f20]
lea rcx, [rdi + 9]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rcx, [rdi + 0x90]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
cmp rsi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
mov qword [rdi], rsi
je 0x1002ba51
xor eax, eax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov word [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x2a], rax
mov dword [rsp + 0x32], eax
mov word [rsp + 0x36], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002ba51
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rdi + 0x8c], r11d
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1003b040
add rsp, 0x48
ret

Function at 0x1002bbe0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
je 0x1002bcbc
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x1002bc5f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x10041fb8]
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.10024b50
mov r9d, dword [rbp + 0x8c]
lea r8, [rbp + 9]
lea rdx, str._comm__Socket__s:_d_::accept_failed:__d
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.10024c50
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
jmp 0x1002bc89
mov rcx, qword [rbp]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x1002bcbc
cmp rsi, 0xffffffffffffffff
je 0x1002bcbc
mov ecx, 0x490
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x1002bcbc
mov rdx, rsi
mov rcx, rax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
jmp fcn.1002b980
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x48
ret
Function at 0x1002c130
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x68
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0x30], r14
mov qword [rbp], 0
mov qword [rsp + 0x28], r15
movzx r14d, r9w
mov byte [r13], 0
mov r15d, r8d
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x1002c28e
cmp word [rax + 0x10], 2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
jne 0x1002c23d
cmp word [rax + 0x12], 4
jne 0x1002c23d
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1002c23d
nop
mov esi, dword [rcx]
mov edx, gethostbyaddr
lea ecx, [rdx - 0x2f]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
mov rbx, rax
je 0x1002c223
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
jne 0x1002c1f8
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor ebx, ebx
jmp 0x1002c223
mov ecx, dword [rsp + 0x78]
mov word [rax], 2
mov word [rax + 2], r14w
mov dword [rax + 4], esi
mov dword [rbx + 8], ecx
mov dword [rbx + 4], 2
mov dword [rbx + 0xc], r15d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x1002c287
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x1002c1c0
mov rdx, qword [r12]
mov r8d, 0x400
mov rcx, r13
call qword [sym.imp.msvcrt.dll_strncpy]
mov byte [r13 + 0x400], 0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
mov eax, 8
jmp 0x1002c25a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x1002c2a5
dec eax
je 0x1002c2b3
dec eax
je 0x1002c2ac
dec eax
mov eax, 0x2af9
jmp 0x1002c269
mov eax, 0x2afb
jmp 0x1002c269
mov eax, 0x2afa
jmp 0x1002c269
Function at 0x1002ccf0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x10050650]
mov qword [rsp + 0x270], rax
cmp dword [0x10059df0], 0
lea rax, [0x1002c650]
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [r11 - 8], r12
mov qword [rsp + 0x30], rax
lea rax, [0x1002ca20]
lea r12, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x1002c5e0]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
jne 0x1002ceca
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002cec0
mov qword [rsp + 0x290], rbx
xor ebx, ebx
mov rcx, rbx
movzx eax, byte [rsp + rcx + 0x160]
inc rcx
test al, al
mov byte [rsp + rcx + 0x4f], al
jne 0x1002cd90
xor eax, eax
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], rdi
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.ws2_32]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1002cdfb
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1002ce5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbx
nop
movzx eax, byte [rsp + rdx + 0x160]
inc rdx
test al, al
mov byte [rsp + rdx + 0x4f], al
jne 0x1002ce00
xor eax, eax
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.wship6]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1002cea8
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1002ce5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1002cea8
lea rdi, [rsp + 0x28]
mov rdx, qword [rdi - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi], rax
je 0x1002ce52
inc rbx
add rdi, 0x10
cmp rbx, 3
jl 0x1002ce62
mov rax, qword [rsp + 0x28]
mov qword [0x10050930], rax
mov rax, qword [rsp + 0x38]
mov qword [0x10050940], rax
mov rax, qword [rsp + 0x48]
mov qword [0x10050950], rax
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x290]
mov dword [0x10059df0], 1
mov r12, qword [rsp + 0x280]
movzx eax, bp
mov rbp, qword [rsp + 0x298]
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
call fcn.1003b040
add rsp, 0x288
ret
Function at 0x10031df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x68]
mov rbx, r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10031e39
mov ecx, dword [rsp + 0x50]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret

Function at 0x10032920
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x10050650]
mov qword [rsp + 0x150], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
test r8d, r8d
mov qword [r11 - 0x10], rsi
mov ebx, 0x10008
mov eax, 0x10108
cmovne ebx, eax
mov qword [r11 - 0x18], rdi
mov edi, r8d
bts ebx, 9
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
jne 0x10032975
mov eax, 0x3f2
jmp 0x10032a40
call fcn.100320a0
lea r11, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10032a40
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov ebx, eax
je 0x100329ff
test eax, eax
jne 0x10032a33
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, edi
call fcn.10032920
mov ebx, eax
test eax, eax
mov eax, 0
je 0x100329a0
jmp 0x10032a33
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.100320a0
test edi, edi
je 0x10032a25
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.10031ff0
test eax, eax
mov ebx, eax
je 0x10032a33
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x150]
call fcn.1003b040
add rsp, 0x178
ret
Function at 0x10033420
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
lea rax, [0x10043048]
mov byte [rcx + 0x18], 0
mov qword [rsp + 0x40], rbx
mov qword [rcx], rax
mov qword [rsp + 0x48], rdi
mov rdi, rcx
add rcx, 0xa8
call fcn.1002ae60
lea rcx, [rdi + 0xa8]
call fcn.1002bb70
mov rcx, qword [rdi + 0x10]
lea r11, [0x1003f428]
xor ebx, ebx
test rcx, rcx
mov qword [rdi], r11
mov byte [rdi + 0x18], 0
je 0x100334cc
lea edx, [rbx + 0x64]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100334cc
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
mov byte [rdi + 0x18], bl
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x100334cc
mov rcx, qword [rdi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rdi + 0x19], bl
mov dword [rdi + 8], ebx
je 0x100334cc
lea edx, [rbx + 1]
mov rcx, rdi
call fcn.10004e00
mov qword [rdi + 0x10], rbx
mov dword [rdi + 8], ebx
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x100334e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa0], rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret

Function at 0x10033500
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rdi, rcx
lea r8, [0x10043018]
add rcx, 0xa8
call fcn.1002b4a0
lea rdx, [rdi + 0x1a]
lea rcx, [rdi + 0xa8]
mov dword [rdi + 0x538], eax
call fcn.1002a590
xor esi, esi
cmp byte [rdi + 0x18], sil
jne 0x100335b5
lea rax, [rsp + 0x30]
lea r8, [0x10006fa0]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov ecx, dword [rsp + 0x30]
mov qword [rdi + 0x10], rax
mov dword [rdi + 8], ecx
jne 0x100335c7
xor ecx, ecx
call fcn.1001f320
lea rdx, [0x1003f470]
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.10024b50
lea r8, [rdi + 0x1a]
lea rdx, str._comm__create_thread__s__failed:__s
mov r9, rbx
mov rcx, rax
call fcn.10024c50
jmp 0x100335c7
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x100335c7
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rdi + 0x538], esi
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
setg al
add rsp, 0x48
ret

Function at 0x10033600
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x10050650]
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
call fcn.1003b040
add rsp, 0x1d8
ret
Function at 0x100337e0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x10050650]
mov qword [rsp + 0xa0], rax
xor eax, eax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
or dword [rsp + 0x40], 2
mov qword [r11 - 0x10], rsi
mov dword [rcx + 0xac], ebp
mov rbx, rdx
mov rsi, rcx
mov qword [r11 - 0x18], rdi
lea rcx, [r11 - 0x48]
lea rdx, [0x100430c0]
mov edi, 0xffffffff
mov byte [r11 - 0x48], bpl
mov qword [r11 - 0x47], rax
mov qword [r11 - 0x3f], rax
mov qword [r11 - 0x37], rax
mov dword [r11 - 0x2f], eax
mov word [r11 - 0x2b], ax
mov byte [r11 - 0x29], al
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x48], 1
call qword [sym.imp.msvcrt.dll_sprintf]
mov rax, qword [0x10059df8]
test rax, rax
jne 0x10033895
xor ecx, ecx
call fcn.1002ccf0
mov qword [0x10059df8], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x100339a5
mov rax, qword [rsp + 0x30]
lea edx, [rbx + 1]
xor r9d, r9d
mov ecx, dword [rax + 4]
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASocketA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1003397f
mov rdx, qword [rsp + 0x30]
mov rcx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
je 0x1003397f
mov edx, 6
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 5]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsi
mov edi, ebp
mov qword [rsi + 0x18], rbx
call fcn.10033700
xor eax, eax
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x72], rax
mov word [rsp + 0x70], di
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov dword [rsp + 0x3c], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x70], 2
jne 0x1003397f
mov eax, dword [rsp + 0x74]
mov dword [rsi + 0xac], eax
mov rax, qword [0x10059e00]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x100339a0
mov cx, 2
call fcn.1002ccf0
mov qword [0x10059e00], rax
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xe8]
mov eax, edi
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call fcn.1003b040
add rsp, 0xc8
ret