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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x218]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x3e0]
mov rsi, qword [rcx + r8*8 + 0x1d0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x140091fd3
lea rax, [0x140091b10]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x140091fd3
cmp qword [rbx], 0
je 0x140091f54
test rdi, rdi
je 0x140091fd3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1400910b0
cmp eax, 0xffffffff
je 0x140091fd3
test al, 1
je 0x140091fd3
cmp qword [rbx], 0
jne 0x140091fb2
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [fcn.1401ac298]
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 0x140091fb2
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
movsxd rcx, esi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140091fd3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140091ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2b8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140092033
mov rax, qword [rcx + 0x208]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x140092078
mov r9, qword [rbx + 0x200]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1401c0e10]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140092270
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x828]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400922e0
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1400922a3
cmp qword [rdi + 0x78], rcx
je 0x1400922e0
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1400922b6
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x1400931e0]
lea rdx, [rsp + 0x20]
call fcn.140098d40
cmp byte [rsp + 0x28], 0
jne 0x1400922f4
mov qword [rdi + 0x828], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400922fc
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x14009231a
mov rcx, rbx
call fcn.140003c30
test eax, eax
jne 0x14009233c
jmp 0x1400922e0
cmp rdi, 0xffffffffffffffff
je 0x14009233c
mov r9d, 2
movsxd rcx, edi
lea rdx, [rsp + 0x40]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400922e0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400928a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x140289378]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140092978
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x9c
call sub.VCRUNTIME140.dll_memset
mov r8b, 3
mov dword [rsp + 0x40], 0x9c
mov edx, 2
mov dword [rsp + 0x44], 6
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]
mov edx, 0x33
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x14009296c
mov dword [0x140289378], 2
jmp 0x1400929cf
mov dword [0x140289378], 1
jmp 0x14009297d
cmp eax, 2
je 0x1400929cf
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400929ae
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x1400929cf
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0xf0
pop rbx
ret
Function at 0x1400929f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140092a5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400a3900
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400918b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400918b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140092b60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x140092d2d
cmp byte [rcx + 0x3b2], 0
jne 0x140092d25
cmp byte [rcx + 0x3cc], 0
jne 0x140092d25
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140092c02
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a3900
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400917f0
jmp 0x140092d2d
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140092c5f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a3900
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400917f0
jmp 0x140092d2d
lea rbx, [rdi + 0x114]
mov rdx, rbx
lea r8, [rdi + 0x144]
lea rcx, [rsp + 0xb0]
call fcn.140093200
test al, al
jne 0x140092cad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a3900
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400917f0
jmp 0x140092d2d
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x178]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x148]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140093200
test al, al
jne 0x140092d25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a3900
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400917f0
jmp 0x140092d2d
mov rcx, rdi
call fcn.1400927e0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401aad60
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140093600
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x694], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14009366f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400918b0
jmp 0x1400936fe
mov ecx, dword [rbx + 0x698]
mov dword [rsp + 0x58], 1
call fcn.14009b680
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x69c]
call fcn.14009b680
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recv
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400936fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1400918b0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401aad60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14009dd30
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14009dd5a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401c2d98]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk]
test rax, rax
je 0x14009ddbe
mov rcx, rbx
test r14, r14
je 0x14009dda8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14009ddf6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009ddf6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14009deb8
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14009de20
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x14009deb3
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14009deb3
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14009de50
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x14009de64
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14009de80
mov rcx, rdi
test r14, r14
je 0x14009dea1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14009dea7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rdi
mov rbp, rax
call qword [case.0x14009ea5b.0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14009df20
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
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14009e0e4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14009e0c4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14009df7d
lea ebp, [rax + 0xe]
jmp 0x14009df89
cmp eax, 0x17
jne 0x14009e031
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x14009e031
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14009e031
cmp rax, rbp
jb 0x14009e031
mov ecx, 0x30
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x14009e06c
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 + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.1401ac298]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14009e05b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14009e01e
call qword [case.0x140088237.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14009e040
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14009e02e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14009df70
jmp 0x14009e072
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [case.0x14009ea5b.0]
mov rcx, rdi
call qword [case.0x14009ea5b.0]
jmp 0x14009e072
mov rcx, rdi
mov r14d, 8
call qword [case.0x14009ea5b.0]
jmp 0x14009e072
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14009e087
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14009e0bf
test rbx, rbx
je 0x14009e0ba
mov rcx, qword [rbx + 0x20]
call qword [case.0x14009ea5b.0]
mov rcx, qword [rbx + 0x18]
call qword [case.0x14009ea5b.0]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [case.0x14009ea5b.0]
mov rbx, rdi
test rdi, rdi
jne 0x14009e091
mov rbx, r13
jmp 0x14009e0d3
test rbx, rbx
jne 0x14009e0d3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14009e2a0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
lea r8, [rsp + 0x20]
mov rdx, rcx
mov rbx, rcx
mov ecx, 2
call sub.WS2_32.dll_inet_pton
test eax, eax
jle 0x14009e367
mov ecx, 0x40
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x14009e30d
mov rcx, rbx
call qword [case.0x140088237.0]
mov rsi, rax
test rax, rax
jne 0x14009e316
mov rcx, rdi
call qword [case.0x14009ea5b.0]
xor ebx, ebx
mov eax, ebx
jmp 0x14009e3c3
mov eax, dword [rsp + 0x20]
lea rcx, [rdi + 0x20]
mov dword [rcx], eax
mov dword [rdi + 0x10], 0x40002
lea rax, [rdi + 0x30]
xor ebx, ebx
mov qword [rdi + 8], rbx
mov edx, ebp
mov qword [rdi], rsi
mov qword [rdi + 0x18], rax
mov qword [rax], rcx
mov rcx, rdi
mov rax, qword [rdi + 0x18]
mov qword [rax + 8], rbx
call fcn.14009e100
mov rcx, rsi
mov rbx, rax
call qword [case.0x14009ea5b.0]
mov rcx, rdi
call qword [case.0x14009ea5b.0]
mov rax, rbx
jmp 0x14009e3c3
lea r8, [rsp + 0x28]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_pton
test eax, eax
jle 0x14009e3c1
mov ecx, 0x40
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x14009e30d
mov rcx, rbx
call qword [case.0x140088237.0]
mov rsi, rax
test rax, rax
je 0x14009e304
movups xmm0, xmmword [rsp + 0x28]
lea rcx, [rdi + 0x20]
movups xmmword [rcx], xmm0
mov dword [rdi + 0x10], 0x100017
jmp 0x14009e327
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401aad60
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14009e3f0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x108
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r15, qword [rcx]
xor ebp, ebp
mov rdi, rdx
mov dword [r9], ebp
mov edx, dword [rcx + 0x3f0]
mov esi, r8d
mov r14, rcx
sub edx, 1
je 0x14009e449
mov ebx, ebp
cmp edx, 1
jne 0x14009e438
lea ebx, [rbp + 0x17]
call fcn.14009e530
test al, al
mov ecx, 2
cmove ebx, ecx
jmp 0x14009e450
mov ecx, 2
mov ebx, ecx
xor eax, eax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, dword [r14 + 0xa4]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], ebx
call sub.WS2_32.dll_inet_pton
cmp eax, 1
je 0x14009e4a8
lea r8, [rsp + 0x70]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_pton
cmp eax, 1
jne 0x14009e4b0
mov dword [rsp + 0x28], 4
test esi, esi
je 0x14009e4d2
mov r9d, esi
lea r8, [0x1401c2db0]
mov edx, recv
lea rcx, [rsp + 0x58]
call fcn.14009c9a0
lea rbp, [rsp + 0x58]
lea r9, [rsp + 0x20]
mov rdx, rbp
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14009df20
test eax, eax
je 0x14009e504
mov r9d, esi
lea rdx, str.getaddrinfo_3__failed_for__s:_d_n
mov r8, rdi
mov rcx, r15
call fcn.1400918b0
xor eax, eax
jmp 0x14009e509
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009e9b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14009ea0c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14009ea1c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400a0a20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400a0a87
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a0a87
lea rcx, [rsp + 0x20]
call qword [case.0x140088237.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x148
ret
jmp 0x1400a0a20

Function at 0x1400a0ab0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400a0a87
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a0a87
lea rcx, [rsp + 0x20]
call qword [case.0x140088237.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x148
ret
jmp 0x1400a0a20
Function at 0x1400a5040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 2
jne 0x1400a508a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400a507a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400a50d4
cmp qword [rbx + 0x10], 0
jne 0x1400a50bf
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401c04c4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400a50bf
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400a50f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a50ef
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c3550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401abae0
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.1400c3440
test rax, rax
je 0x1400c3619
cmp dword [rsp + 0x38], 0
jg 0x1400c3619
cmp dword [rsp + 0x3c], 0
jg 0x1400c3619
mov rcx, qword [rbx + 0x98]
movzx eax, word [rcx + 0x1bc]
add ax, ax
mov word [rcx + 0x1bc], ax
mov rax, qword [rbx + 0x98]
cmp word [rax + 0x1bc], 0x3c
jbe 0x1400c35c0
mov ecx, 0x3c
mov word [rax + 0x1bc], cx
mov rcx, rbx
call fcn.1400c3940
mov rcx, rbx
call fcn.1400c3020
test eax, eax
jns 0x1400c35dd
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x98]
inc dword [rax + 0x1a8]
mov rax, qword [rbx + 0x98]
cmp dword [rax + 0x1a8], 2
jbe 0x1400c3604
mov dword [rax + 0x1a8], 1
mov rcx, rbx
call fcn.1400c3940
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c6020
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400c5c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.1401abae0
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x1400c5c5c
lea r9, str.ssl_statem_statem_dtls.c
mov dword [rsp + 0x20], 0x39f
mov edx, 0x153
lea ecx, [rax - 0x1c]
lea r8d, [rax + 0x14]
call fcn.1400d9bd0
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.1400c3630
test eax, eax
je 0x1400c5c86
mov rcx, rbx
call fcn.1400aece0
mov rcx, rbx
test eax, eax
jne 0x1400c5c93
call fcn.140108620
mov rcx, rax
mov edx, 1
call fcn.1400db070
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400c3550