joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006b24
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x140006b66
xor eax, eax
jmp 0x140006d25
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140006ba0
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140006ba0
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x140006d25
cmp qword [rdi + 0x90], 0
je 0x140006d23
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [r8], rax
jne 0x140006bd8
mov rdx, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x68]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x78], 0
jne 0x140006bf9
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call fcn.140047a50
cmp eax, ebx
cmovne ebx, esi
jmp 0x140006d23
mov byte [rbp - 1], sil
mov qword [rbp + 0x1f], setsockopt
and qword [rbp + 0x17], 0
mov byte [rbp + 7], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.140007ccc
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140006d13
cmp eax, 1
jg 0x140006cf9
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 9]
sub r14, rax
je 0x140006cbf
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call fcn.140048034
cmp r14, rax
jne 0x140006d13
mov byte [rdi + 0x81], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x140006cf5
test r14, r14
jne 0x140006c1f
cmp qword [rbp + 0x17], 0x20
jae 0x140006d13
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.1400079b8
jmp 0x140006c1f
mov ebx, esi
jmp 0x140006d13
cmp eax, 3
jne 0x140006d13
movsx ecx, byte [rbp - 1]
mov rdx, qword [rdi + 0x90]
call fcn.140047a50
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x140006d23
mov rcx, qword [rbp + 7]
call fcn.140046814
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140046830
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008444
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x14000859f
cmp byte [rcx + 0x81], bl
je 0x14000859f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400084a5
xor al, al
jmp 0x1400085a4
mov qword [rbp - 0x18], setsockopt
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140007ccc
nop
mov esi, 1
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x14000850f
dec ecx
jne 0x14000857b
jmp 0x140008515
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 0x38]
sub r14, rax
je 0x140008555
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.140048034
cmp r14, rax
jne 0x140008585
cmp byte [rdi + 0x81], bl
je 0x140008582
test r14, r14
jne 0x1400084ca
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400079b8
jmp 0x1400084ca
cmp ecx, 2
jne 0x14000858b
jmp 0x140008588
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x14000859b
mov rcx, qword [rbp - 0x30]
call fcn.140046814
mov al, bl
jmp 0x1400085a4
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140046830
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000a330
Capabilities:
Receive http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov ebp, 0xb60
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000a383
lea eax, [rdi + 8]
jmp 0x14000a4cf
mov r15, rbp
xor esi, esi
mov r8, r15
xor edx, edx
mov rcx, rdi
call fcn.140049ef0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov r8d, 2
mov rdx, rsi
mov rcx, r14
mov dword [rsp + 0x20], ebp
call qword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov ebx, eax
test eax, eax
jne 0x14000a467
cmp dword [rdi + 0x24], 4
je 0x14000a438
cmp dword [rdi + 0x24], 6
je 0x14000a3e9
and qword [rsp + 0x20], 0
mov r8d, 0x1f7
lea r9, str.Not_Implemented
jmp 0x14000a451
cmp dword [0x1400d3608], 0
jne 0x14000a3fd
call fcn.140048794
mov dword [0x1400d3608], eax
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r14
call fcn.14000a66c
inc dword [0x1400d3604]
mov ebx, eax
call fcn.140048794
mov edx, dword [0x1400d3600]
test edx, edx
je 0x14000a430
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
jl 0x14000a45e
mov dword [0x1400d3600], eax
jmp 0x14000a45e
lea rax, str.success
mov r8d, 0xc8
lea r9, [0x1400a1440]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.14000a508
mov ebx, eax
test ebx, ebx
jne 0x14000a4b4
jmp 0x14000a386
cmp eax, 0xea
jne 0x14000a4f6
mov rsi, qword [rdi + 0x10]
mov ebp, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15d, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000a388
lea ebx, [rax + 8]
test rdi, rdi
je 0x14000a4cd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140046830
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp eax, 0x4cd
jne 0x14000a4b4
test rsi, rsi
je 0x14000a4b4
jmp 0x14000a386
Function at 0x14000a508
Capabilities:
Send http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
mov rdi, qword [rbp + 0x220]
mov r14, rcx
movzx ebx, r8w
mov r15, rdx
lea rcx, [rsp + 0x70]
mov r8d, 0x238
xor edx, edx
mov rsi, r9
call fcn.140049ef0
mov word [rsp + 0x78], bx
or rbx, 0xffffffffffffffff
mov rax, rbx
mov qword [rbp - 0x80], rsi
inc rax
cmp byte [rsi + rax], 0
jne 0x14000a567
mov word [rsp + 0x7a], ax
lea rax, str.text_html
mov qword [rbp + 0x70], rax
mov eax, 9
lea ecx, [rax + 0xf]
mov word [rbp + 0x68], ax
call fcn.140047194
lea rcx, str.Access_Control_Allow_Origin
mov edx, 1
mov qword [rbp - 0x70], rax
mov word [rbp - 0x78], dx
mov qword [rax + 8], rcx
mov rax, qword [rbp - 0x70]
lea ecx, [rdx + 0x1a]
mov word [rax], cx
mov rax, qword [rbp - 0x70]
lea rcx, [0x1400a1484]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp - 0x70]
mov word [rax + 2], dx
test rdi, rdi
je 0x14000a5f9
and dword [rsp + 0x50], 0
mov qword [rsp + 0x58], rdi
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14000a5d9
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], ebx
mov word [rbp + 0x188], dx
mov qword [rbp + 0x190], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rdx, qword [r15 + 0x10]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov ebx, eax
test eax, eax
je 0x14000a64b
lea rcx, str.HttpSendHttpResponse_failed_with__lu__n
mov edx, eax
call fcn.1400486bc
mov eax, ebx
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.140046830
add rsp, 0x2c8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000a9cc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdx, [0x1400d1e00]
mov rsi, rcx
call fcn.14004718c
or rdi, 0xffffffffffffffff
xor ebx, ebx
inc rdi
cmp byte [rax + rdi], bl
jne 0x14000a9f0
lea rdx, [0x1400d1e00]
mov rcx, rsi
call fcn.14004718c
movabs rdx, 0xcbf29ce484222325
test rdi, rdi
je 0x14000aa33
movzx ecx, byte [rbx + rax]
movabs r8, 0x100000001b3
inc rbx
xor rdx, rcx
imul rdx, r8
cmp rbx, rdi
jb 0x14000aa16
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdx
shr rax, 0x20
xor rax, rdx
add rsp, 0x20
pop rdi
ret
Function at 0x14000fb50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov edx, 7
mov rsi, rcx
lea r8d, [rdx - 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14000fc86
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000fc86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000fc86
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [r14 + 5]
mov ecx, eax
add rcx, rbx
cmp rbx, rcx
jae 0x14000fc86
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edx
jne 0x14000fbcf
cmp rbx, rcx
jae 0x14000fc86
cmp word [rbx], r14w
je 0x14000fc86
movzx edi, word [rbx]
test edi, edi
js 0x14000fca3
mov rax, qword [rsi]
lea ebp, [rdx + 1]
mov ecx, ebp
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14000fc23
mov edx, edi
mov rcx, rsi
call fcn.14000fcdc
movzx ecx, word [rbx]
or rax, 0xffffffffffffffff
lea r8, [rbx + 2]
cmp ecx, eax
jne 0x14000fc49
test r8, r8
jne 0x14000fc3c
mov eax, r14d
jmp 0x14000fc46
inc rax
cmp word [r8 + rax*2], r14w
jne 0x14000fc3c
lea ecx, [rax + 1]
movsxd r9, ecx
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.140048c88
test eax, eax
je 0x14000fc6f
cmp eax, 0xc
je 0x14000fcc4
cmp eax, 0x16
je 0x14000fcb9
cmp eax, 0x22
je 0x14000fcb9
cmp eax, 0x50
jne 0x14000fcae
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x14000fccf
mov dword [rcx - 0x10], edi
mov rcx, qword [rsi]
mov eax, ebp
mov word [rcx + rdi*2], r14w
jmp 0x14000fc88
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.140010614
int3
mov ecx, 0x80004005
call fcn.140010614
int3
mov ecx, 0x80070057
call fcn.140010614
int3
mov ecx, 0x8007000e
call fcn.140010614
int3
mov ecx, 0x80070057
call fcn.140010614
int3
Function at 0x1400168b0
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
movaps xmmword [rsp + 0x40], xmm6
mov rbx, rcx
mov rax, qword [rcx + 0x20]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x140016903
lea rax, [0x140016660]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [r11 - 0x38]
call r8
jmp 0x140016982
mov rdi, qword [rdx]
mov rsi, qword [rdx + 0x10]
movups xmm6, xmmword [rdx + 0x18]
mov rbp, qword [rdx + 0x28]
xor r14d, r14d
mov ecx, dword [0x1400d3778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001692c
mov rdx, qword [rax + 8]
jmp 0x14001692e
xor edx, edx
mov r8d, 0x40
movzx ecx, r14b
call fcn.140016210
test rax, rax
je 0x14001695c
mov qword [rax + 8], rdi
mov qword [rax + 0x18], rsi
movups xmmword [rax + 0x20], xmm6
mov qword [rax + 0x30], rbp
lea rcx, [0x140016680]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [rax + select]
nop
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140016982
xor edx, edx
mov rcx, rax
call qword [rax]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400169a0
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [r11 - 0x48], xmm8
mov rbx, rcx
mov rax, qword [rcx + 0x20]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x140016a05
lea rax, [0x140016780]
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [r11 - 0x58]
call r8
jmp 0x140016aa7
mov rdi, qword [rdx]
movups xmm6, xmmword [rdx + 8]
movsd xmm7, qword [rdx + 0x18]
mov esi, dword [rdx + 0x20]
mov rbp, qword [rdx + 0x28]
movups xmm8, xmmword [rdx + 0x30]
mov r14, qword [rdx + 0x40]
xor r15d, r15d
mov ecx, dword [0x1400d3778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140016a3b
mov rdx, qword [rax + 8]
jmp 0x140016a3d
xor edx, edx
mov r8d, 0x58
movzx ecx, r15b
call fcn.140016210
test rax, rax
je 0x140016a78
mov qword [rax + 8], rdi
movups xmmword [rax + 0x10], xmm6
movsd qword [rax + 0x20], xmm7
mov dword [rax + 0x28], esi
mov qword [rax + 0x30], rbp
movups xmmword [rax + 0x38], xmm8
mov qword [rax + 0x48], r14
lea rcx, [0x140016790]
mov qword [rax], rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rbx + 0x20]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [rax + select]
nop
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140016aa7
xor edx, edx
mov rcx, rax
call qword [rax]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140019120
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400d3778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001915e
mov rdx, qword [rax + 8]
xor eax, eax
mov r8, rbx
movzx ecx, al
add rsp, 0x20
pop rbx
jmp fcn.140016190
xor eax, eax
xor edx, edx
mov r8, rbx
movzx ecx, al
add rsp, 0x20
pop rbx
jmp fcn.140016190

Function at 0x140019180
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x1400d3778]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400191ad
mov r8, qword [rax + 8]
jmp 0x1400191b0
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x1400191d4
test r8, r8
je 0x1400191d4
cmp qword [r8], 0
jne 0x1400191d4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140046814
Function at 0x140019690
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
sub rsp, 0x48
xor r14d, r14d
mov rdi, r9
mov rbp, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400198bd
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
mov qword [rax - 0x28], r15
lea r13, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
lea r12, [0x1400d3590]
movabs r15, 0x8fafd21e25c5e09b
test r8b, r8b
je 0x140019746
test byte [rdx], 8
je 0x140019746
mov dword [rax + 8], r14d
mov dword [rax - 0x38], r14d
mov byte [rax - 0x34], r14b
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140019711
or eax, 1
mov qword [0x1400d3598], r15
mov qword [0x1400d3590], r13
mov dword [0x1400d35a0], eax
or byte [rdx], 8
lea r9, [rsp + 0x70]
mov r8d, 0x80
mov edx, 0xffff
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x30]
test eax, eax
setne dl
call fcn.14001ac70
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
test eax, eax
mov ebx, eax
setne dl
call fcn.14001ac70
test ebx, ebx
je 0x140019897
mov ecx, dword [0x1400d35a0]
test cl, 1
jne 0x140019790
or ecx, 1
mov rax, r15
mov r8, r13
mov dword [0x1400d35a0], ecx
mov qword [0x1400d3598], rax
mov qword [0x1400d3590], r13
jmp 0x14001979e
mov rax, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
movabs r10, 0xb2ab117a257edf0d
cmp rax, r15
je 0x1400197dc
cmp rax, r10
je 0x1400197dc
mov edx, 0x2733
mov rcx, r12
call qword [r8 + 0x30]
mov ecx, dword [0x1400d35a0]
mov rax, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
movabs r10, 0xb2ab117a257edf0d
cmp dword [rdi], 0x2733
jne 0x140019800
mov r9, qword [rdi + 8]
mov edx, r14d
test rax, rax
jne 0x1400197f5
cmp r9, r12
jmp 0x1400197f9
cmp qword [r9 + 8], rax
sete dl
test dl, dl
jne 0x140019863
test cl, 1
jne 0x140019822
or ecx, 1
mov rax, r15
mov r8, r13
mov dword [0x1400d35a0], ecx
mov qword [0x1400d3598], rax
mov qword [0x1400d3590], r13
cmp rax, r15
je 0x14001983f
cmp rax, r10
je 0x14001983f
mov edx, 0x4d5
mov rcx, r12
call qword [r8 + 0x30]
mov rax, qword [0x1400d3598]
cmp dword [rdi], 0x4d5
jne 0x140019897
mov rdx, qword [rdi + 8]
mov ecx, r14d
test rax, rax
jne 0x140019858
cmp rdx, r12
jmp 0x14001985c
cmp qword [rdx + 8], rax
sete cl
test cl, cl
je 0x140019897
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov rcx, rsi
mov dword [rsp + 0x70], r14d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
test eax, eax
mov ebx, eax
setne dl
call fcn.14001ac70
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, r14d
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bc70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x88], 0
je 0x14001bcad
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
add rsp, 0x50
pop rbx
jmp fcn.14001b210
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14001bcd5
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0x2719
add rsp, 0x50
pop rbx
jmp fcn.14001b210
mov eax, dword [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x90]
lea r9, [rsp + 0x60]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14001bd31
mov eax, 0x2746
jmp 0x14001bd3e
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x68]
je 0x14001bd6d
cmp eax, 0x3e5
je 0x14001bd6d
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rbx + 8]
mov r8d, eax
mov rdx, rdi
call fcn.14001b210
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14001b2f0
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14001bdca
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.14001b210
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14001bdf2
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.14001b210
xor eax, eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x50]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x58]
je 0x14001be71
cmp eax, 0x3e5
je 0x14001be71
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rdi + 8]
mov r8d, eax
mov rdx, rsi
call fcn.14001b210
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14001b2f0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret