joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f7a4
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rbp], rax
mov r13, qword [rcx]
lea r9, [rsp + 0x28]
or qword [r8], 0xffffffffffffffff
mov r12, r8
lea r8, [rsp + 0x40]
mov r15, rcx
xor esi, esi
call fcn.14007ef74
mov ebx, eax
test eax, eax
jne 0x14007f9fd
lea r8, [rsp + 0x24]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14007e90c
mov r14, qword [rsp + 0x28]
test al, al
jne 0x14007f845
call fcn.1401d74dc
mov ebx, dword [rax]
call fcn.1401d74dc
mov edx, ebx
mov rcx, r15
mov rdi, rax
call fcn.1400a3b6c
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r13
call fcn.14007dc94
jmp 0x14007f8dd
cmp dword [rsp + 0x40], 2
je 0x14007f853
cmp dword [rsp + 0x40], 0x17
jne 0x14007f873
cmp dword [rsp + 0x44], 1
jne 0x14007f873
mov dil, 1
cmp byte [r13 + 0xc16], sil
je 0x14007f876
mov rdx, r14
mov rcx, r15
call fcn.14007f060
jmp 0x14007f876
mov dil, sil
mov rcx, r14
call fcn.14007eea4
test dil, dil
je 0x14007f897
cmp byte [r13 + 0xe6c], sil
je 0x14007f897
mov rdx, r14
mov rcx, r13
call fcn.14007fa28
cmp qword [r13 + 0x760], rsi
je 0x14007f8ef
mov dl, 1
mov rcx, r13
call fcn.14006f9cc
mov rcx, qword [r13 + 0x768]
xor r8d, r8d
mov rdx, r14
call qword [r13 + 0x760]
xor edx, edx
mov rcx, r13
mov edi, eax
call fcn.14006f9cc
cmp edi, 2
jne 0x14007f8d4
mov dil, 1
jmp 0x14007f8f2
test edi, edi
je 0x14007f8ef
mov esi, Ordinal_46
mov rdx, r14
mov rcx, r15
call fcn.14007e63c
mov eax, esi
jmp 0x14007f9ff
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x14007f900
cmp dword [rsp + 0x40], 0x17
jne 0x14007f940
lea rcx, [rsp + 0x50]
call fcn.1400a3d08
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r14
mov rcx, r15
call fcn.14007f388
mov ebx, eax
test eax, eax
je 0x14007f940
mov rdx, r14
mov rcx, r15
call fcn.14007e63c
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x14007f9ff
mov edx, 1
mov rcx, r14
call fcn.1400a3d8c
lea rcx, [rsp + 0x28]
call fcn.140080634
cmp dword [r15 + 0x3f8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r15 + 0x3e8], xmm0
jle 0x14007f982
mov rdx, qword [r15 + 0x400]
mov r8d, 3
mov rcx, r13
call fcn.14006f218
test dil, dil
jne 0x14007f9f9
cmp dword [r15 + 0xbc], 1
jne 0x14007f9f9
cmp byte [r15 + 0x3de], sil
jne 0x14007f9b8
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14007f9b8
test ebx, ebx
jne 0x14007f939
jmp 0x14007f9f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x14007f9ee
sub edx, 0x2728
je 0x14007f9ee
cmp edx, 1
je 0x14007f9ee
mov rdx, r14
mov dword [r13 + 0x11ac], eax
mov rcx, r15
call fcn.14007e63c
mov ebx, 7
jmp 0x14007f939
mov ebx, esi
mov qword [r12], r14
jmp 0x14007f939
mov qword [r12], r14
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007fa28
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xe6c], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x14007faf2
mov ecx, dword [rbx + 0xe70]
mov dword [rsp + 0x58], 1
call fcn.14007fca0
mov ecx, dword [rbx + 0xe74]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.14007fca0
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, recvfrom
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14008b678
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r12, r9
xor ebp, ebp
and qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14008b7fa
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14008b7e7
cmp dword [rsi + 4], 2
jne 0x14008b6d2
mov r14d, reloc.WS2_32.dll_recv
jmp 0x14008b6e2
cmp dword [rsi + 4], 0x17
jne 0x14008b78e
mov r14d, Ordinal_30
cmp qword [rsi + 0x20], 0
je 0x14008b78e
cmp qword [rsi + 0x10], 0
jbe 0x14008b78e
cmp qword [rsi + 0x10], r14
jb 0x14008b78e
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14008b7bd
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]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
mov rcx, r14
mov dword [rax + 0x10], r14d
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14008b7b6
mov rdx, qword [rsi + 0x20]
mov r8, r14
mov rcx, rax
call fcn.1401d27a0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14008b77b
call qword [0x1402ac018]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14008b79c
test rbp, rbp
cmove rbp, rdi
test r15, r15
je 0x14008b78b
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x14008b7c2
jmp 0x14008b6c4
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [fcn.1401d7128]
mov rcx, rdi
call qword [fcn.1401d7128]
jmp 0x14008b7c2
mov ebx, 8
jmp 0x14008b7ab
mov ebx, 8
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14008b7d2
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x14008b7e2
mov rcx, rbp
call fcn.14008b630
xor ebp, ebp
jmp 0x14008b7f4
test rbp, rbp
jne 0x14008b7f4
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rbp
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008d820
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r15d, r15d
mov rbx, rcx
cmp byte [0x1402b2d58], r15b
jne 0x14008d876
call fcn.1400c3de0
test eax, eax
je 0x14008d8a9
mov byte [0x1402b2d58], 1
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbx + 0xd58]
test rcx, rcx
je 0x14008d8c8
mov edx, 0x400
call fcn.1400c4e00
call fcn.1400c3de0
test eax, eax
jne 0x14008d876
mov rsi, r15
lea r14, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140080634
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.14007db88
lea rcx, [rsp + 0x40]
lea rdi, [rsi + 3]
call fcn.140080634
lea rcx, [rsp + 0x50]
movsxd rbx, dword [rax + 8]
call fcn.140080634
mov rdx, rbx
lea rcx, [rdi - 2]
add rdx, qword [rax]
movq rax, xmm6
imul rdx, rdi
imul rcx, rax
shl rdx, 8
xor rdx, rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
call fcn.140080634
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.140080634
mov ecx, dword [rax]
lea eax, [rsi + 4]
add ecx, dword [rbx + 8]
imul ecx, eax
lea eax, [rsi + 2]
imul eax, dword [rsp + 0x28]
inc rsi
shl ecx, 0x10
xor ecx, eax
mov dword [rsp + 0x28], ecx
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [r14], xmm0
lea r14, [r14 + 0x10]
cmp rsi, 4
jb 0x14008d8cf
movsd xmm2, qword [0x1402065a0]
lea rcx, [rbp - 0x80]
mov edx, 0x40
call fcn.1400c3b10
call fcn.1400c3de0
test eax, eax
je 0x14008d8c8
mov edx, 0x100
mov byte [rbp - 0x40], r15b
lea rcx, [rbp - 0x40]
call fcn.1400c4b90
cmp byte [rbp - 0x40], r15b
je 0x14008d9ce
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.1400c4e00
call fcn.1400c3de0
test eax, eax
jne 0x14008d876
call fcn.1400c3de0
test eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_35
cmovne ecx, r15d
mov eax, ecx
jmp 0x14008d878

Function at 0x140091474
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1401e4e98
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x1400914c7
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x1400914c7
lea rcx, [rsp + 0x20]
call qword [0x1402ac018]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x140
pop rbx
ret
Function at 0x140096c38
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x248]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
or rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140096caf
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.14007e63c
cmp rbx, 0xffffffffffffffff
jne 0x140096cd4
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rsi
call fcn.14007dc94
lea eax, [rbx + 0x1f]
jmp 0x140096d3f
mov ebp, 1
mov byte [rdi + 0x3cc], 0
mov edx, ebp
mov qword [rdi + 0x248], rbx
mov rcx, rbx
call fcn.1400a3d8c
mov byte [rdi + 0x261], bpl
cmp qword [rsi + 0x760], 0
je 0x140096d3d
mov dl, bpl
mov rcx, rsi
call fcn.14006f9cc
mov rcx, qword [rsi + 0x768]
mov r8d, ebp
mov rdx, rbx
call qword [rsi + 0x760]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14006f9cc
test ebx, ebx
je 0x140096d3d
mov rcx, rdi
call fcn.140097164
lea eax, [rbp + 0x29]
jmp 0x140096d3f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x220]
cmp dword [rax + 0x28], 0
je 0x140098631
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
mov rcx, rbx
mov dword [rbx + 0x73c], r8d
add rsp, 0x20
pop rbx
jmp fcn.140098718
cmp byte [rcx + 0xbee], 0
je 0x140098649
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140098fd4
cmp byte [rcx + 0xc06], 0
je 0x1400986cf
mov r8, qword [rbx + 0x708]
test r8, r8
jne 0x1400986aa
mov r8, qword [rcx + 0xc60]
test r8, r8
jne 0x140098683
cmp byte [rcx + 0xbed], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x680]
lea rdx, str.PRET__s
call fcn.1400cd8d4
test eax, eax
jne 0x1400986d7
mov dword [rbx + 0x73c], 0x1d
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xbf9], 0
lea rax, [rbx + 0x680]
mov rcx, rax
je 0x1400986c6
lea rdx, str.PRET_STOR__s
jmp 0x140098691
lea rdx, str.PRET_RETR__s
jmp 0x140098691
mov rcx, rbx
call fcn.140098f58
add rsp, 0x20
pop rbx
ret
Function at 0x14009dfd8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rcx]
xor r9d, r9d
mov rcx, qword [rcx + 0x240]
mov byte [rsp + 0x21], dl
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x22], r8b
lea r8d, [r9 + 3]
mov byte [rsp + 0x20], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e033
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14007dc94
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x30
pop rbx
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x14009e341
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov rdi, qword [rbp + 0x220]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14009e1fe
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009e1fe
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009e1fe
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x20], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009e285
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e285
mov al, byte [rsp + 0x21]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e285
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e285
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e285
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e285
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14009dce4
mov rcx, qword [r14 + 0x240]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e2dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007dc94
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14009e048
mov rcx, qword [r14 + 0x240]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e329
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007dc94
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14009e344
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov ebx, 0x80
lea rcx, [rbp - 0x20]
mov r8d, ebx
xor edx, edx
call fcn.1401d2e50
mov r8d, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1401d2e50
mov r13, qword [rdi]
mov edx, reloc.WLDAP32.dll_Ordinal_60
mov rcx, r13
mov rbx, qword [r13 + 0x220]
mov r9, qword [rbx + 0x1ec0]
lea r8, [rbx + 0x1cb8]
sub r9, qword [rbx + 0x1eb8]
add r9, 2
call fcn.14009dce4
mov rax, qword [rbx + 0x1eb8]
mov cl, byte [rax]
inc rax
mov qword [rbx + 0x1eb8], rax
cmp cl, 0x18
je 0x14009e538
cmp cl, 0x23
je 0x14009e4ff
cmp cl, 0x27
jne 0x14009e5c6
and qword [rsp + 0x30], 0
lea r8, str._c_c_c_c
mov r14d, 0x800
mov dword [rsp + 0x28], Ordinal_46
mov edx, r14d
mov dword [rsp + 0x20], 0xfa
mov r9d, 0xff
lea rcx, [rbp + 0x60]
call fcn.140089898
mov rdi, qword [rbx + 0x1cb0]
mov esi, 4
test rdi, rdi
je 0x14009e4c3
or rbx, 0xffffffffffffffff
mov rcx, qword [rdi]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14009e44e
lea r12, [rsi + 1]
add r12, rax
cmp r12, 0x7fa
jae 0x14009e4ba
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x20]
lea rdx, str._127_____127s
call fcn.140073924
test eax, eax
je 0x14009e4ba
lea rax, [rsp + 0x60]
mov rdx, r14
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x60]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 1
sub rdx, rsi
mov qword [rsp + 0x20], rax
add rcx, rsi
lea r8, str._c_s_c_s
xor r9d, r9d
call fcn.140089898
mov rsi, r12
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14009e448
sub r14, rsi
mov dword [rsp + 0x20], 0xf0
lea rcx, [rbp + 0x60]
mov rdx, r14
add rcx, rsi
lea r8, str._c_c
mov r9d, 0xff
call fcn.140089898
mov rcx, qword [rsp + 0x50]
lea r8d, [rsi + 2]
mov rcx, qword [rcx + 0x240]
jmp 0x14009e59d
lea rax, [rbx + 0x1c28]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009e50a
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_35
jmp 0x14009e56f
lea rax, [rbx + 0x1c08]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009e543
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_30
mov r9d, 0xff
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c_s_c_c
mov edx, 0x800
lea rcx, [rbp + 0x60]
call fcn.140089898
mov rcx, qword [rdi + 0x240]
lea r8d, [rbx + 6]
xor r9d, r9d
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e5c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r13
mov r8d, eax
call fcn.14007dc94
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14009f120
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x680]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14009f1c1
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1401d27a0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
cmp r8d, 4
jge 0x14009f210
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007dc94
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 1
je 0x14009f2ff
sub ecx, 1
je 0x14009f2ff
sub ecx, 1
je 0x14009f286
sub ecx, 1
je 0x14009f315
sub ecx, 1
je 0x14009f271
cmp ecx, 1
jne 0x14009f2ff
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009ef0c
test eax, eax
je 0x14009f315
jmp 0x14009f1e6
movzx ecx, byte [rdx + 2]
movzx eax, byte [rdx + 3]
shl ecx, 8
or ecx, eax
mov dword [rbx + 8], ecx
jmp 0x14009f315
cmp r8d, 4
jle 0x14009f315
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14009f315
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007dbb0
mov esi, eax
test eax, eax
je 0x14009f2dc
mov edx, 5
mov rcx, rbx
call fcn.14009fb60
mov eax, esi
jmp 0x14009f1e6
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0x120], rax
mov rdx, qword [rdi + 0x120]
call fcn.1400879c8
jmp 0x14009f315
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1402061cc]
call fcn.14007dc94
mov rcx, r14
call fcn.140087bd4
test eax, eax
je 0x14009f1e4
mov edx, 5
mov rcx, rbx
call fcn.14009fb60
mov eax, Ordinal_46
jmp 0x14009f1e6
Function at 0x1400a3d8c
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
lea r8, [rsp + 0x20]
test edx, edx
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x38
ret

Function at 0x1400a3dcc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x140209600]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x1400a3f11
lea rdx, str.LoadLibraryExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140209620]
mov rcx, rdi
mov rbp, rax
call fcn.1401e56fc
test rax, rax
je 0x1400a3e41
mov rcx, rdi
test rbp, rbp
je 0x1400a3e39
mov r8d, 8
jmp 0x1400a3e64
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1400a3e68
test rbp, rbp
je 0x1400a3e70
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a3e70
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x1400a3f0e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400a3f0e
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x1400a3e8c
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400a3f05
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400a3f05
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x1400a3ebb
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x1400a3ecc
mov rcx, rsi
sub rcx, rdi
add rcx, r14
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x1400a3ede
mov rcx, rsi
test rbp, rbp
je 0x1400a3efc
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400a3f02
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.1401d7128]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400d1520
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1401d1210
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400fbee0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1401d1210
sub rsp, rax
lea rcx, [0x1402b5ea0]
add rsp, 0x28
jmp fcn.1400d1380