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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14003cc5b
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov ecx, 0x38
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0xa0
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x258]
mov r14, rcx
call fcn.14003d3c0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WSOCK32.DLL_send]
mov rsi, qword [rsp + 0xd0]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x14003ce26
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14003cdf3
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14003ce29
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.14005a1b0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14003c8e0
mov rcx, qword [r14]
mov dword [rcx + 0x1128], ebx
mov dword [rsi], 0x37
mov rax, rdi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14003d49c
lea rax, [0x14003cca0]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x14003d49c
cmp qword [rbx], 0
je 0x14003d426
test rdi, rdi
je 0x14003d49c
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1400468d0
cmp eax, 0xffffffff
je 0x14003d49c
test al, 1
je 0x14003d49c
cmp qword [rbx], 0
jne 0x14003d47b
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.msvcrt.dll_malloc]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14003d47b
mov qword [rbx + 8], rcx
jmp 0x14003d49c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WSOCK32.DLL_recv]
movsxd rcx, eax
test eax, eax
jle 0x14003d49c
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140041900
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14065a600]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14004195d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.14003c200
test al, al
je 0x140041951
mov dword [0x14065a600], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14065a600], 1
jmp 0x140041962
cmp eax, 2
je 0x1400419b4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x140041993
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400419b4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140041bd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x1a0
cmp dword [rcx + 0xbc], 3
mov rdi, rdx
mov rbx, rcx
jne 0x140041de5
cmp byte [rcx + 0x3ed], 0
mov qword [rax + 0x10], rsi
jne 0x140041dd5
cmp byte [rcx + 0x405], 0
jne 0x140041dd5
mov rsi, qword [rcx]
lea r8, [rax + 8]
lea rdx, [rax - 0x88]
mov rcx, rdi
mov dword [rax + 8], pe_nt_image_headers64
call qword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x140041c66
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.14005a1b0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003c8e0
jmp 0x140041ddd
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x1c0], pe_nt_image_headers64
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x140041cd7
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.14005a1b0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003c8e0
jmp 0x140041ddd
mov edx, dword [rsp + 0x1b0]
lea rdi, [rbx + 0x18e]
lea r9, [rbx + 0x1bc]
lea rcx, [rsp + 0x120]
mov r8, rdi
call fcn.140040e50
test al, al
jne 0x140041d3e
call qword [sym.imp.msvcrt.dll__errno]
mov rbx, rax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.14005a1b0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14003c8e0
jmp 0x140041ddd
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
movups xmm1, xmmword [rdi + 0x10]
mov edx, dword [rsp + 0x1c0]
lea r9, [rbx + 0x1f0]
lea r8, [rbx + 0x1c0]
lea rcx, [rsp + 0xa0]
movups xmmword [rbx + 0x88], xmm0
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x98], xmm1
movsd qword [rbx + 0xa8], xmm0
mov dword [rbx + 0xb0], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0xb4], ax
call fcn.140040e50
test al, al
jne 0x140041dd5
call qword [sym.imp.msvcrt.dll__errno]
mov rbx, rax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.14005a1b0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14003c8e0
jmp 0x140041ddd
mov rcx, rbx
call fcn.140041810
mov rsi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140042780
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp byte [rcx + 0xea7], al
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1400427ee
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.14003ca40
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0xe0c]
mov dword [rsp + 0x50], 1
call fcn.140046430
imul ecx, eax, 0x3e8
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rbx + 0xe10]
call fcn.140046430
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, 0xc
mov edx, 0x98000004
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x80]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x140042880
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.14003ca40
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x1400428a0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xb0
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
lea r9, [r11 + 8]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [r11 + 8], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x14004290e
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, [rsp + 0x30]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.14005a1b0
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.14003ca40
add rsp, 0xb0
pop rbx
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14003ca40
add rsp, 0xb0
pop rbx
ret
Function at 0x140053f70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.140004150
sub rsp, rax
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140053fbb
lea rdx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140053fbb
lea rcx, [rsp + 0x20]
call qword [case.0x1400396e7.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret

Function at 0x140055f70
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, r8
xor r14d, r14d
mov rbx, r9
mov rsi, rdx
mov rbp, rcx
mov r8, r9
mov rcx, rdi
xor edx, edx
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r14
mov dword [rax + 0x20], r14d
mov dword [rax - 0x38], 4
mov dword [rax - 0x34], ebx
call sub.msvcrt.dll_memset
mov r9d, dword [rsp + 0x90]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x14005608a
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_CryptCreateHash]
test eax, eax
je 0x140056068
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.DLL_CryptHashData]
test eax, eax
je 0x140056068
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x88]
lea edx, [r14 + 4]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.DLL_CryptGetHashParam]
test eax, eax
je 0x140056068
mov eax, dword [rsp + 0x88]
cmp rbx, rax
jb 0x140056068
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea edx, [r14 + 2]
mov r8, rdi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.DLL_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140056078
call qword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005608a
xor edx, edx
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140059440
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140059604
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400595e4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005949d
lea ebp, [rax + 0xe]
jmp 0x1400594a9
cmp eax, 0x17
jne 0x140059551
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140059551
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140059551
cmp rax, rbp
jb 0x140059551
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005958c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14005957b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14005953e
call qword [case.0x1400396e7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140059560
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14005954e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140059490
jmp 0x140059592
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14000409c]
mov rcx, rdi
call qword [fcn.14000409c]
jmp 0x140059592
mov rcx, rdi
mov r14d, 8
call qword [fcn.14000409c]
jmp 0x140059592
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400595a7
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400595df
test rbx, rbx
je 0x1400595da
mov rcx, qword [rbx + 0x20]
call qword [fcn.14000409c]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14000409c]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14000409c]
mov rbx, rdi
test rdi, rdi
jne 0x1400595b1
mov rbx, r13
jmp 0x1400595f3
test rbx, rbx
jne 0x1400595f3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14005e580
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov edx, 1
mov ebx, 2
mov rsi, r9
lea r8d, [rdx + 5]
mov ecx, ebx
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x30], 1
call qword [sym.imp.WSOCK32.DLL_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005e771
xor eax, eax
mov ecx, 0x7f000001
mov qword [rsp + 0x38], rax
mov word [rsp + 0x38], bx
mov qword [rsp + 0x40], rax
call qword [sym.imp.WSOCK32.DLL_htonl]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 2]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov edx, 0xffff
mov rcx, rdi
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi], 0xffffffffffffffff
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
cmp eax, 0xffffffff
je 0x14005e755
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_bind]
cmp eax, 0xffffffff
je 0x14005e755
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_getsockname]
cmp eax, 0xffffffff
je 0x14005e755
lea edx, [rbx - 1]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_listen]
cmp eax, 0xffffffff
je 0x14005e755
lea edx, [rbx - 1]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.WSOCK32.DLL_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14005e755
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x14005e755
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14005e755
lea r8, [0x1400874c8]
lea edx, [rbx + 0xa]
lea rcx, [rsp + 0x48]
mov r9, rsi
call fcn.140050aa0
lea rax, [rsp + 0x48]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005e6e1
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WSOCK32.DLL_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14005e755
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x54]
lea r8d, [r9 + 0xc]
call qword [sym.imp.WSOCK32.DLL_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14005e755
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14005e755
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_closesocket]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
or eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x14005e790
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x140063c40
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140063c7a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x140063c78
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a9d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006aa12
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006aa55
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006aab1
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x14006aa70
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006aaf3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140089f81]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140089f82]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006aac0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14006b3c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x14065a740], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x14065a750]
jne 0x14006b40d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x14065a778], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x14065a740], 1
mov ecx, dword [0x14065a778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14006b4e2
mov rcx, qword [0x140659310]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14006b50d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14065a748]
test rax, rax
je 0x14006b45d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x14065a748], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14006b528]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x14065a778]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140659310]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14006b50d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x6d88f700
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b05e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d88f888
mov rax, qword [0x6d8b05e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d88f74c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d88f7d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d88f730
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d88f8bd
mov rax, qword [0x6d8b05e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8b05e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d88f8a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d88f7ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d88f830
add dword [0x6d8b05e4], 1
cmp edi, 8
jae 0x6d88f803
test dil, 4
jne 0x6d88f874
test edi, edi
je 0x6d88f7f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d88f88f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d88f7f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d88f81c
jmp 0x6d88f7f8
add rsi, qword [0x6d8b05e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d88f7ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d88f7f8
xor esi, esi
jmp 0x6d88f757
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d88f7f8
mov rax, qword [0x6d8b05e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d890010
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8b08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8b08a0]
test rbx, rbx
je 0x6d890064
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d89005b
test rsi, rsi
je 0x6d89005b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d890040
lea rcx, [0x6d8b08c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]