joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006d220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.1800d3260
sub rsp, rax
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ecx, ecx
lea rsi, [rsp + 0x50]
mov r8d, 0x2000
mov qword [rsp + 0x40], rcx
mov r14, rdx
mov qword [rsp + 0x30], rsi
mov ebx, ecx
mov qword [rsp + 0x38], r8
mov r10d, ecx
mov r11d, ecx
mov ebp, ecx
mov edx, ecx
mov r9d, ecx
mov rax, r8
sub rax, rbx
cmp rax, 0x2000
jae 0x18006d321
lea rax, [r8 + r8]
mov rcx, rax
lea rbx, [r11 + 0x2000]
sub rcx, r10
cmp rcx, 0x2000
cmovae rbx, rax
cmovae rdx, rbp
cmp rbx, rdx
jb 0x18006d436
mov rax, rbx
sub rax, r9
cmp rax, 0x2000
jb 0x18006d436
mov rdx, rbx
mov rcx, rdi
call fcn.18004ec70
mov r8, qword [rsp + 0x40]
mov rcx, rax
mov rdx, qword [rsp + 0x30]
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x30], rax
je 0x18006d312
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.18004cde0
add qword [rdi + 0x10], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
add rcx, rsi
mov r9, r14
mov edx, 1
mov r8d, 0x2000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rcx, rax
mov rsi, qword [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x40], rcx
mov rbx, rcx
cmp rax, 0x2000
jne 0x18006d373
mov r8, qword [rsp + 0x38]
mov r10, rcx
mov r11, rcx
mov rbp, rcx
mov rdx, rcx
jmp 0x18006d283
mov rax, qword [rdi + 0x18]
cmp qword [rax + 0x18], 0
jle 0x18006d386
mov rcx, rdi
call fcn.180057530
cmp rbx, 0x28
ja 0x18006d39c
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.18005c2e0
jmp 0x18006d3d6
lea rax, [rbx + 1]
movabs rcx, 0x7fffffffffffffe7
cmp rax, rcx
ja 0x18006d446
mov rax, qword [rdi + 0x18]
mov r9d, reloc.WS2_32.dll_sendto
mov r8, rbx
mov rdx, rsi
mov ecx, dword [rax + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.18005c240
mov qword [rax + 0x10], rbx
mov rcx, qword [rdi + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or eax, 0x40
mov dword [rcx + 8], eax
lea rax, [rsp + 0x50]
add qword [rdi + 0x10], 0x10
cmp qword [rsp + 0x30], rax
je 0x18006d40e
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.18004cde0
add qword [rdi + 0x10], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1800d2550
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, str.buffer_too_large
mov rcx, rdi
call fcn.18004fe30
int3
mov rcx, rdi
call fcn.180071c50
int3
Function at 0x18006d450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2060
call fcn.1800d3260
sub rsp, rax
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x2050], rax
xor ebp, ebp
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], 0x2000
mov eax, ebp
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x50]
mov qword [rsp + 0x30], r14
mov rsi, r8
mov r15, rdx
mov rbx, rcx
cmp r8, 0x2000
jbe 0x18006d512
mov eax, 0x4000
mov rdi, r8
cmp r8, rax
cmovbe rdi, rax
cmp rdi, r8
jb 0x18006d60b
mov rdx, rdi
call fcn.18004ec70
mov r8, qword [rsp + 0x40]
mov rcx, rax
mov rdx, qword [rsp + 0x30]
mov r14, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x30], rax
je 0x18006d503
lea edx, [rbp - 2]
mov rcx, rbx
lea r8d, [rbp - 1]
call fcn.18004cde0
add qword [rbx + 0x10], 0xfffffffffffffff0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
lea rcx, [r14 + rax]
mov r9, r15
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, qword [rsp + 0x40]
mov r14, rax
mov rbx, qword [rsp + 0x48]
add rdi, rax
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbx + 0x18]
cmp qword [rcx + 0x18], rbp
jle 0x18006d553
mov rcx, rbx
call fcn.180057530
cmp rdi, 0x28
ja 0x18006d569
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.18005c2e0
jmp 0x18006d5a3
lea rax, [rdi + 1]
movabs rcx, 0x7fffffffffffffe7
cmp rax, rcx
ja 0x18006d618
mov rax, qword [rbx + 0x18]
mov r9d, reloc.WS2_32.dll_sendto
mov r8, rdi
mov rdx, rsi
mov ecx, dword [rax + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.18005c240
mov qword [rax + 0x10], rdi
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or eax, 0x40
mov dword [rcx + 8], eax
lea rax, [rsp + 0x50]
add qword [rbx + 0x10], 0x10
cmp qword [rsp + 0x30], rax
je 0x18006d5db
mov edx, 0xfffffffe
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.18004cde0
add qword [rbx + 0x10], 0xfffffffffffffff0
test r14, r14
setne bpl
mov eax, ebp
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1800d2550
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2060
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.buffer_too_large
call fcn.18004fe30
int3
mov rcx, rbx
call fcn.180071c50
int3
Function at 0x18007bcc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx]
lea rdi, [rdx + 8]
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp eax, 0xc
jne 0x18007bd22
mov rax, qword [rcx]
movsxd r10, dword [rdi]
mov r9, qword [rax + 0x38]
mov edx, dword [r9 + r10*4]
mov eax, edx
and eax, 0x3f
cmp al, 0x1b
jne 0x18007bd27
dec dword [rcx + 0x20]
and edx, 0xffc5ffff
or edx, 0x440000
xor eax, eax
shr edx, 0x11
mov ecx, 0x4000
test r8d, r8d
cmove eax, ecx
or edx, eax
jmp 0x18007bd81
cmp eax, 7
je 0x18007bd5e
mov rdx, qword [rbx]
movzx ecx, byte [rcx + 0x3c]
inc ecx
movzx eax, byte [rdx + 0xc]
cmp ecx, eax
jbe 0x18007bd43
cmp ecx, 0xff
jae 0x18007bda5
mov byte [rdx + 0xc], cl
inc byte [rbx + 0x3c]
mov rdx, rsi
movzx r8d, byte [rbx + 0x3c]
mov rcx, rbx
dec r8d
call fcn.18007b5c0
cmp dword [rsi], 7
jne 0x18007bd71
mov edx, dword [rdi]
bt edx, 8
jb 0x18007bd71
movzx eax, byte [rbx + 0x3a]
cmp edx, eax
jl 0x18007bd71
dec byte [rbx + 0x3c]
mov edx, dword [rdi]
shl edx, 9
or edx, ebp
shl edx, 0xe
or edx, 0x3fe3
mov rcx, rbx
call fcn.18007b160
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18007ade0
mov rcx, qword [rbx + 0x10]
lea rdx, str.function_or_expression_needs_too_many_registers
call fcn.1800791e0
int3
Function at 0x180098dd0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180098e31
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180098e2b
shr ax, 8
cmp al, 2
jne 0x180098e2b
call fcn.18009eca0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800d2550
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800d2550
add rsp, 0x1d8
ret
Function at 0x1800a7960
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x430], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1800a7a91
test rax, rax
je 0x1800a7a91
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1800a7a91
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1800a79eb
sub ecx, 1
je 0x1800a79db
sub ecx, 1
je 0x1800a79f2
cmp ecx, 1
je 0x1800a79e2
jmp 0x1800a7a91
lea r9, str.Header
lea rax, [0x1800d9920]
jmp 0x1800a79f9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1800a9db0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800a7a22
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x1800a7a59
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1800a7a91
jmp 0x1800a7aa1
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x1800d9840]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1800a81a0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800d2550
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1800a7dbb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
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 0x1800a7e80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rcx + rax*8 + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x1800a7f2c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800a7efb
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.180099a20
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1800a7ac0
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x882c], ebx
mov dword [r14], gethostname
jmp 0x1800a7ee5
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800a81a0
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 + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1800a81e3
mov rax, qword [rcx + 0x1a8]
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 0x1800a8228
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800d9840]
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 + 0x1a0]
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 0x1800a8420
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 + 0x7c0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1800a8490
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1800a8453
cmp qword [rdi + 0x78], rcx
je 0x1800a8490
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1800a8466
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x1800a94b0]
lea rdx, [rsp + 0x20]
call fcn.1800b2170
cmp byte [rsp + 0x28], 0
jne 0x1800a84a4
mov qword [rdi + 0x7c0], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1800a84ac
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x1800a84ca
mov rcx, rbx
call fcn.1800a0510
test eax, eax
jne 0x1800a84ec
jmp 0x1800a8490
cmp rdi, 0xffffffffffffffff
je 0x1800a84ec
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1800a8490
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a8a30
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x18010f6b0]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1800a8b08
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, reloc.WLDAP32.dll_Ordinal_32
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 0x1800a8afc
mov dword [0x18010f6b0], 2
jmp 0x1800a8b5f
mov dword [0x18010f6b0], 1
jmp 0x1800a8b0d
cmp eax, 2
je 0x1800a8b5f
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 0x1800a8b3e
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x1800a8b5f
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.1800d2550
add rsp, 0xf0
pop rbx
ret

Function at 0x1800a8c60
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 0x1800a8ccb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.180099a20
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1800a7b80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1800a7b80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a8dd0
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 [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x1800a8f90
cmp byte [rcx + 0x339], 0
jne 0x1800a8f88
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 0x1800a8e65
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180099a20
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800a7ac0
jmp 0x1800a8f90
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 0x1800a8ec2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180099a20
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800a7ac0
jmp 0x1800a8f90
lea rbx, [rdi + 0xf0]
mov rdx, rbx
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0xb0]
call fcn.1800a94d0
test al, al
jne 0x1800a8f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180099a20
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800a7ac0
jmp 0x1800a8f90
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x154]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x124]
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.1800a94d0
test al, al
jne 0x1800a8f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180099a20
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800a7ac0
jmp 0x1800a8f90
mov rcx, rdi
call fcn.1800a8970
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800d2550
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800a98d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18010f050]
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 + 0x634], 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 0x1800a993f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1800a7b80
jmp 0x1800a99ce
mov ecx, dword [rbx + 0x638]
mov dword [rsp + 0x58], 1
call fcn.1800a9bc0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x63c]
call fcn.1800a9bc0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, listen
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 0x1800a99ce
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.1800a7b80
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d2550
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800a9ba0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x1800b43d0
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 0x1800b4594
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1800b4574
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1800b442d
lea ebp, [rax + 0xe]
jmp 0x1800b4439
cmp eax, 0x17
jne 0x1800b44e1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1800b44e1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1800b44e1
cmp rax, rbp
jb 0x1800b44e1
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1800b451c
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 [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1800b450b
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 0x1800b44ce
call qword [case.0x18009ea37.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1800b44f0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1800b44de
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800b4420
jmp 0x1800b4522
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [case.0x1800b4f7b.0]
mov rcx, rdi
call qword [case.0x1800b4f7b.0]
jmp 0x1800b4522
mov rcx, rdi
mov r14d, 8
call qword [case.0x1800b4f7b.0]
jmp 0x1800b4522
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1800b4537
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1800b456f
test rbx, rbx
je 0x1800b456a
mov rcx, qword [rbx + 0x20]
call qword [case.0x1800b4f7b.0]
mov rcx, qword [rbx + 0x18]
call qword [case.0x1800b4f7b.0]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [case.0x1800b4f7b.0]
mov rbx, rdi
test rdi, rdi
jne 0x1800b4541
mov rbx, r13
jmp 0x1800b4583
test rbx, rbx
jne 0x1800b4583
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 0x1800b4a00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1800b4ed0
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 0x1800b4f2c
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 0x1800b4f3c
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