joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b100
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
xor r9d, r9d
mov r8d, dword [rsp + 0x160]
mov rdx, rax
mov rcx, qword [rdi]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x14003b1bc
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x14003b19c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003b19c
lea edx, [rbp + 1]
lea rcx, [rsp + 0x40]
call fcn.140002860
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x40]
call fcn.1400019a0
mov rax, qword [rdi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
lea edx, [rbp + 2]
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.140003bc0
lea rax, vtable.Aws::Utils::Array_unsigned_char_.0
mov qword [rbx], rax
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov word [rbx + 0x18], 0
mov dword [rbx + 0x1c], ebp
jmp 0x14003b2b9
xor r9d, r9d
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rdi]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x14003b251
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x14003b234
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003b234
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140002860
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x40]
call fcn.1400019a0
mov rax, qword [rdi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.140003bc0
lea rax, vtable.Aws::Utils::Array_unsigned_char_.0
mov qword [rbx], rax
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov word [rbx + 0x18], 0
mov dword [rbx + 0x1c], ebp
jmp 0x14003b2b9
mov edi, dword [rsi + 0x10]
mov rsi, qword [rsi + 0x18]
lea rax, vtable.Aws::Utils::Array_unsigned_char_.0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbp
test rsi, rsi
je 0x14003b29b
test rdi, rdi
je 0x14003b29b
mov edx, edi
mov rcx, qword [str.Aws::Array]
call fcn.14001add0
nop
mov qword [rsp + 0x38], rax
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400bb410
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140035820
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003b2b9
call fcn.140015ad0
nop
mov rax, rbx
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003b2e0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x2150
call fcn.1400b9ba0
sub rsp, rax
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], al
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, dword [rcx + 0x20]
mov r8, qword [rcx + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
setns byte [rsp + 0x48]
test eax, eax
jns 0x14003b3dd
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003b3a8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003b3a8
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140002860
nop
lea rdx, str.Error_creating_hash_handle.
lea rcx, [rsp + 0x50]
call fcn.1400019a0
mov rax, qword [rbx]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x50]
call fcn.140003bc0
xor bl, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003b3b9
call sub.bcrypt.dll_BCryptDestroyHash
movzx eax, bl
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.1400b91a0
mov rbx, qword [rsp + 0x2170]
add rsp, 0x2150
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140021f80
mov rcx, qword [rbx]
movsxd rax, dword [rcx + 4]
cmp dword [rax + rbx + 0x10], 0
jne 0x14003b49b
mov r8d, 0x2000
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140021b80
mov rax, qword [rbx + 8]
test rax, rax
jle 0x14003b3ea
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x14003b3ea
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003b3a8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003b3a8
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140002860
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x50]
call fcn.1400019a0
mov rax, qword [rbx]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
jmp 0x14003b39e
movsxd rax, dword [rcx + 4]
test byte [rax + rbx + 0x10], 1
je 0x14003b3a8
xor r9d, r9d
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x14003b527
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003b3a8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003b3a8
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140002860
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x50]
call fcn.1400019a0
mov rax, qword [rbx]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
jmp 0x14003b39e
mov bl, 1
jmp 0x14003b3aa
Function at 0x14003c230
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x110
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 0
je 0x14003c342
cmp dword [rcx + 0x10], 0
jbe 0x14003c342
cmp qword [rcx + 0x28], 0
je 0x14003c342
cmp dword [rcx + 0x20], 0
jbe 0x14003c342
cmp qword [rcx + 8], 0
je 0x14003c342
lea rbx, [rcx + 0x30]
mov qword [rax + 8], rbx
mov rcx, rbx
call fcn.1400b68b0
test eax, eax
jne 0x14003c35b
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rdi + 8]
call sub.bcrypt.dll_BCryptHashData
mov ebp, eax
test eax, eax
jns 0x14003c33a
call fcn.1400170f0
mov rsi, rax
test rax, rax
je 0x14003c324
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003c324
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140002860
nop
lea rdx, str.Error_computing_hash:
lea rcx, [rsp + 0x20]
call fcn.1400019a0
mov rcx, rax
mov edx, ebp
call fcn.1400037a0
mov rax, qword [rsi]
lea r9, [rsp + 0x20]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x20]
call fcn.140003bc0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003c33a
call sub.bcrypt.dll_BCryptDestroyHash
mov qword [rdi + 8], 0
mov rcx, rbx
call fcn.1400b68e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1400b69c0
int3
add rcx, 8
jmp 0x14003c230

Function at 0x14003c370
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x110
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 0
je 0x14003c342
cmp dword [rcx + 0x10], 0
jbe 0x14003c342
cmp qword [rcx + 0x28], 0
je 0x14003c342
cmp dword [rcx + 0x20], 0
jbe 0x14003c342
cmp qword [rcx + 8], 0
je 0x14003c342
lea rbx, [rcx + 0x30]
mov qword [rax + 8], rbx
mov rcx, rbx
call fcn.1400b68b0
test eax, eax
jne 0x14003c35b
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rdi + 8]
call sub.bcrypt.dll_BCryptHashData
mov ebp, eax
test eax, eax
jns 0x14003c33a
call fcn.1400170f0
mov rsi, rax
test rax, rax
je 0x14003c324
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003c324
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140002860
nop
lea rdx, str.Error_computing_hash:
lea rcx, [rsp + 0x20]
call fcn.1400019a0
mov rcx, rax
mov edx, ebp
call fcn.1400037a0
mov rax, qword [rsi]
lea r9, [rsp + 0x20]
mov r8, qword [str.CryptoHash]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x20]
call fcn.140003bc0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003c33a
call sub.bcrypt.dll_BCryptDestroyHash
mov qword [rdi + 8], 0
mov rcx, rbx
call fcn.1400b68e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1400b69c0
int3
add rcx, 8
jmp 0x14003c230
Function at 0x14003d6d0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14003dac0
Capabilities:
Send data

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [str.0_r_n_r_n]
lea r9, [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov rcx, rdx
movzx eax, word [reloc.WS2_32.dll_ioctlsocket]
lea rdx, [rsp + 0x24]
mov r8d, 5
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x14003db22
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0x48
ret
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0x48
ret
Function at 0x14003ee80
Capabilities:
Set http header

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14003eeb8
mov rdx, qword [r8]
lea rcx, [rsp + 0x110]
call fcn.140031610
nop
lea rdx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rdx, qword [rsp + 0x110]
mov r9d, 0xa0000000
mov r8d, dword [rsp + 0x120]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14003efab
call fcn.1400170f0
mov rsi, rax
test rax, rax
je 0x14003efab
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 2
jl 0x14003efab
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140002860
nop
lea rdx, str.Failed_to_add_HTTP_request_headers:
lea rcx, [rsp + 0x20]
call fcn.1400019a0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003ef50
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001d10
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.__with_error_code:
mov rcx, rbx
call fcn.1400019a0
mov rcx, rax
mov edx, edi
call fcn.1400105c0
mov rbx, qword [rsi]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x20]
mov edx, 2
mov rcx, rsi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x20]
call fcn.140003bc0
nop
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x14003efef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003efea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f013
call fcn.1400b91c0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b91a0
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r14
pop rdi
pop rsi
ret
call fcn.1400bfe60
int3
Function at 0x14003f4c0
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14003f4f0
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, rdx
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400461f0
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x18], 0x10
mov rdi, rcx
jb 0x140046207
mov rdx, qword [rdx]
movzx r8d, word [r8]
xor eax, eax
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [rdi + 0x78]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9d, 4
mov ecx, dword [rdi + 0x74]
mov rbx, rax
mov dword [rsp + 0x58], ecx
mov rcx, rax
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x58]
mov rcx, rbx
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400469c0
Capabilities:
Connect socket
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dword [rcx], 0x17
mov rbx, rcx
movzx ecx, r8w
mov rdi, rdx
xorps xmm0, xmm0
jne 0x140046a46
mov esi, reloc.WS2_32.dll_socket
mov qword [rsp + 0x34], 0
mov word [rsp + 0x20], si
movdqu xmmword [rsp + 0x24], xmm0
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x28]
mov rdx, rdi
mov ecx, esi
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
movups xmm0, xmmword [rsp + 0x20]
lea r8d, [rsi + 5]
mov eax, dword [rsp + 0x38]
movsd xmm1, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x58], eax
movsd qword [rsp + 0x50], xmm1
jmp 0x140046a84
movups xmmword [rsp + 0x40], xmm0
mov esi, 2
mov word [rsp + 0x40], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x44]
mov rdx, rdi
mov ecx, esi
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
movaps xmm0, xmmword [rsp + 0x40]
lea r8d, [rsi + 0xe]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
movsxd rcx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, eax
sete al
mov byte [rbx + 4], al
mov eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140046ab0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x120
mov eax, edx
mov rsi, rcx
mov edx, 2
lea r8d, [rdx + 0xf]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp byte [rsp + 0x160], 0
je 0x140046b0e
mov dword [rsp + 0x160], 1
lea r8, [rsp + 0x160]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp qword [rsp + 0x150], 0
je 0x140046bfd
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x150]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140046bfd
call fcn.1400170f0
mov r14, rax
test rax, rax
je 0x140046bfd
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + htons]
cmp eax, 3
jl 0x140046bfd
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140002860
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_send_buffer_size_to
lea rcx, [rsp + 0x30]
call fcn.1400019a0
mov rcx, rax
mov rdx, qword [rsp + 0x150]
call fcn.1400039b0
mov rcx, rax
lea rdx, str._for_socket
call fcn.1400019a0
mov rcx, rax
mov rdx, rdi
call fcn.1400039b0
mov rcx, rax
lea rdx, str._error_code:
call fcn.1400019a0
mov rcx, rax
mov edx, ebx
call fcn.1400037a0
mov rax, qword [r14]
lea r9, [rsp + 0x30]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, r14
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.140003bc0
cmp qword [rsp + 0x158], 0
je 0x140046ced
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x158]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140046ced
call fcn.1400170f0
mov r14, rax
test rax, rax
je 0x140046ced
mov r8, qword [rax]
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 3
jl 0x140046ced
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140002860
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_receive_buffer_size_to
lea rcx, [rsp + 0x30]
call fcn.1400019a0
mov rcx, rax
mov rdx, qword [rsp + 0x158]
call fcn.1400039b0
mov rcx, rax
lea rdx, str._for_socket
call fcn.1400019a0
mov rcx, rax
mov rdx, rdi
call fcn.1400039b0
mov rcx, rax
lea rdx, str._error_code:
call fcn.1400019a0
mov rcx, rax
mov edx, ebx
call fcn.1400037a0
mov rax, qword [r14]
lea r9, [rsp + 0x30]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, r14
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.140003bc0
mov dword [rsi + 8], edi
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop r14
pop rdi
pop rsi
ret
Function at 0x140046d10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 4], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140046d46
cmp qword [rcx + 0x28], 0x10
lea rdx, [rcx + 0x10]
jb case.default.0x140046d62
mov rdx, qword [rdx]
movzx r8d, word [rcx + 0xc]
call fcn.1400469c0
movsxd rcx, dword [rbx + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]
add byte [rax], al
add byte [rax + 0x15], al
adc eax, 0
add byte [rax], al
add byte [rax + rax], 0
add al, 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
sub byte [rdi], 0
outsd dx, dword [rsi]
add byte [rax], al
add byte [rax], al
add byte [rax], al
and byte [rsi], 0x4f
invalid
invalid
invalid
add byte [rax], al
add byte [rax], al
invalid
add byte [rax], al
add byte [rax], al
sub byte [rdi], 0
outsd dx, dword [rsi]
add byte [rax], al
add byte [rax], al
add byte [rax], al
and byte [rsi], 0x4f
invalid
invalid
invalid
add byte [rsi], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rdi], 0
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
or byte [0x1400f16ce], 0
or eax, 0
add byte [rax], al
or byte [rdi], 0
sldt word [rax]
add byte [rax], al
add byte [rax], al
adc byte [rsi], 0
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
adc byte [rdi], 0
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140086f70
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x140086fc7
mov r8, qword [rax]
mov edx, 0x404
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 5
jl 0x140086fc7
mov r10, qword [rbx]
lea r9, str.static:_This_library_was_built_with_Windows_8.1_or_later__probing_OS_to_see_what_were_actually_running_on.
mov edx, 5
mov r8d, 0x404
mov rcx, rbx
call qword [r10]
mov r8b, 3
mov edx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0xb0], rcx
mov r8, rax
mov dword [rsp + 0xb8], ecx
lea edx, [rcx + 0x33]
mov word [rsp + 0xb4], cx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 6
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 2
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], 0x9c
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1400870c9
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x1400870c5
mov r9, qword [rax]
mov edx, 0x404
mov rcx, rax
call qword [r9 + htons]
cmp eax, 5
jl 0x1400870c5
mov r10, qword [rbx]
lea r9, str.static:_Were_running_on_Windows_8.1_or_later._ALPN_is_available.
mov edx, 5
mov r8d, 0x404
mov rcx, rbx
call qword [r10]
mov al, 1
jmp 0x140087107
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x140087105
mov r8, qword [rax]
mov edx, 0x404
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 3
jl 0x140087105
mov r10, qword [rbx]
lea r9, str.static:_Running_on_older_version_of_windows__ALPN_is_not_supported._Please_update_your_OS_to_take_advantage_of_modern_features.
mov edx, 3
mov r8d, 0x404
mov rcx, rbx
call qword [r10]
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0xd0
pop rbx
ret
Function at 0x140093b70
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov edx, dword [rdx]
test edx, edx
je 0x140093b8e
cmp edx, 1
mov edx, 2
je 0x140093b93
mov edx, 1
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140093bad
sub ecx, 1
je 0x140093ba6
cmp ecx, 1
jne 0x140093bad
jmp 0x140093bb2
mov ecx, reloc.WS2_32.dll_socket
jmp 0x140093bb2
mov ecx, 2
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140093c27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x140093c0c
mov r9, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [r9 + htons]
cmp eax, 2
jl 0x140093c0c
mov r10, qword [rbx]
lea r9, str.idstatic:_socket___call_failed_with_WSAError__d
mov edx, 2
mov dword [rsp + 0x20], edi
mov r8d, 0x402
mov rcx, rbx
call qword [r10]
mov ecx, edi
call fcn.140093d60
mov ecx, eax
call fcn.1400a32b0
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x70], r14
call fcn.1400a3910
mov r14, rax
test rax, rax
je 0x140093c7f
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 5
jl 0x140093c7f
mov ecx, dword [rbx]
lea r9, str.id_p_handle_p:_initializing_with_domain__d_and_type__d
mov eax, dword [rbx + 4]
mov edx, 5
mov r10, qword [r14]
mov r8d, 0x402
mov dword [rsp + 0x38], ecx
mov rcx, r14
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [r10]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14, qword [rsp + 0x70]
test eax, eax
je 0x140093d05
mov qword [rsp + 0x60], rbp
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x140093cf0
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 2
jl 0x140093cf0
mov r10, qword [rbx]
lea r9, str.idstatic:_ioctlsocket___call_failed_with_WSAError__d
mov edx, 2
mov dword [rsp + 0x20], ebp
mov r8d, 0x402
mov rcx, rbx
call qword [r10]
mov ecx, ebp
call fcn.140093d60
mov ecx, eax
call fcn.1400a32b0
mov rbp, qword [rsp + 0x60]
jmp 0x140093d26
mov rdx, rbx
mov qword [rsi + 0x220], rdi
mov rcx, rsi
mov qword [rsi + 0x228], 0
call fcn.140093430
test eax, eax
je 0x140093d47
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov qword [rsi + 0x220], 0xffffffffffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret