joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800222c0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.180018270
xor ebx, ebx
cmp qword [0x18003d830], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800223ec
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800224ff
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800224ff
mov rcx, rax
call fcn.1800181a0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18003d830], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800181a0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18003d838], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800181a0
lea rcx, [rsp + 0x98]
mov qword [0x18003d840], rax
call fcn.1800156b0
test eax, eax
je 0x18002239f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180012d70
cmp dword [rsp + 0x98], 2
jne 0x1800223ec
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800181a0
test rax, rax
mov qword [0x18003d850], rax
je 0x1800223ec
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800181a0
mov qword [0x18003d848], rax
mov rcx, qword [0x18003d848]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180022498
cmp qword [0x18003d850], rbp
je 0x180022498
call fcn.180018360
mov rcx, qword [0x18003d850]
mov rsi, rax
call fcn.180018360
test rsi, rsi
mov r12, rax
je 0x180022498
test rax, rax
je 0x180022498
call rsi
test rax, rax
je 0x180022463
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180022463
test byte [rsp + 0x40], 1
jne 0x180022498
lea rcx, [rsp + 0x30]
call fcn.180015700
test eax, eax
je 0x180022485
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180012d70
cmp dword [rsp + 0x30], 4
jb 0x180022492
bts edi, 0x15
jmp 0x1800224d6
bts edi, 0x12
jmp 0x1800224d6
mov rcx, qword [0x18003d838]
cmp rcx, rbp
je 0x1800224d6
call fcn.180018360
test rax, rax
je 0x1800224d6
call rax
test rax, rax
mov rbx, rax
je 0x1800224d6
mov rcx, qword [0x18003d840]
cmp rcx, rbp
je 0x1800224d6
call fcn.180018360
test rax, rax
je 0x1800224d6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18003d830]
call fcn.180018360
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800224ff
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180022501
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x416420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4165ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x006a9218]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433d00
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416485
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416494
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4164b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4164c3
cmp rbx, 0x1000
jae 0x41648b
jmp 0x41652d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4164d5
xor edx, edx
jmp 0x416524
mov rcx, qword [0x006a9218]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433d00
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4164b9
jmp 0x4164a8
call fcn.00466c80
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004383c0
lea rax, [0x00589b50]
mov ebx, 0x18
nop dword [rax]
call fcn.00438c40
mov rax, qword [rsp + 0x38]
call fcn.00438980
lea rax, [0x0058a31e]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438c40
mov rax, qword [rsp + 0x30]
call fcn.00438980
call fcn.00438600
call fcn.00438420
lea rax, [0x0058d1d9]
mov ebx, 0x21
call fcn.00436a20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463540
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416420
Function at 0x4165e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416806
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x006a9220]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433d80
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416653
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416662
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416685
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416695
cmp rbx, 0x1000
jae 0x416659
nop
jmp 0x416718
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x4166ad
xor esi, esi
jmp 0x41670a
mov rax, qword [0x006a9220]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433d80
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41668b
jmp 0x416676
call fcn.00466c80
xorps xmm15, xmm15
mov r14, qword [0x00730c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4167a0
nop dword [rax + rax]
call fcn.004383c0
lea rax, [0x0058a337]
mov ebx, 0x19
call fcn.00438c40
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00438980
lea rax, [0x0058a31e]
mov ebx, 0x19
call fcn.00438c40
mov eax, dword [rsp + 0x34]
call fcn.00438980
nop
call fcn.00438600
call fcn.00438420
lea rax, [0x00585445]
mov ebx, 0xd
call fcn.00436a20
nop dword [rax + rax]
cmp eax, 0x5af
je 0x416740
call fcn.004383c0
lea rax, [0x0058a337]
mov ebx, 0x19
call fcn.00438c40
mov rax, qword [rsp + 0x38]
call fcn.00438980
lea rax, [0x0058a31e]
mov ebx, 0x19
call fcn.00438c40
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00438980
call fcn.00438600
call fcn.00438420
lea rax, [0x0058c8a1]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00436a20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463540
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004165e0
Function at 0x465380
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00730dc0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x007309ae], 0
je 0x4653b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x007310c0]
aesenc xmm0, xmmword [0x007310d0]
aesenc xmm0, xmmword [0x007310e0]
movq rax, xmm0
ret
jmp 0x409d20
Function at 0x140006a60
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1d0
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
test cl, 2
jne 0x140006af6
call fcn.1400284a0
mov esi, eax
test eax, eax
jne 0x140006b24
lea rcx, str.iphlpapi.dll
call fcn.140006b40
mov qword [0x140a69028], rax
test rax, rax
je 0x140006ac2
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006ac2
mov qword [0x140a69020], rax
mov dword [rsp + 0x20], 3
xor esi, esi
mov ecx, 6
xor edx, edx
xor r8d, r8d
mov r9d, 2
call fcn.140028710
mov byte [0x140a69030], al
lea rcx, [0x140a69038]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x140006b24
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140006b1f
movzx eax, word [rsp + 0x30]
cmp eax, 0x202
je 0x140006a7f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 2
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140890ac0
mov eax, esi
add rsp, 0x1d0
pop rsi
ret

Function at 0x140006b40
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x1408ec746]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006b9f
mov rdi, rax
lea rdx, [0x1408ec758]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x1408ec768]
mov rcx, rsi
call fcn.1408aa678
test rax, rax
je 0x140006bb0
test rbx, rbx
je 0x140006be9
mov rax, rbx
mov rcx, rsi
xor edx, edx
mov r8d, 8
jmp 0x140006bdb
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, rbx
test rbx, rbx
je 0x140006bfe
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006bfe
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
mov rax, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp rax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140006ba1
mov r14d, eax
mov rcx, rsi
call fcn.1408a7438
lea ecx, [r14 + 1]
add rcx, rax
add rcx, rcx
call qword [fcn.14089969c]
mov rdi, rax
test rax, rax
je 0x140006c82
mov rcx, rdi
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140006c82
mov rcx, rdi
call fcn.1408a7438
lea rcx, [rdi + rax*2]
lea rdx, [0x1408ec77e]
call fcn.1408aa6ac
mov rcx, rdi
call fcn.1408a7438
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.1408aa6ac
mov rcx, rdi
test r15, r15
je 0x140006c86
xor edx, edx
mov r8d, 8
call r15
jmp 0x140006c8c
xor ebx, ebx
jmp 0x140006c8f
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call qword [fcn.140899688]
jmp 0x140006ba1
Function at 0x14000fe30
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1008
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000fe8b
cmp dword [rsp + 0x34], 1
jne 0x14000fe8b
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x40
pop rsi
ret

Function at 0x140014710
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
test rdx, rdx
jle 0x140014755
mov rsi, rdx
mov rdi, rcx
add rsi, rcx
mov eax, 0x1505
nop word [rax + rax]
mov rbx, rax
shl rbx, 5
add rbx, rax
movzx ecx, byte [rdi]
inc rdi
call fcn.14001ce40
movzx eax, al
xor rax, rbx
cmp rdi, rsi
jb 0x140014730
movzx eax, al
jmp 0x14001475a
mov eax, 5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140016ac0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov edi, ecx
mov rcx, r8
call fcn.140016a90
mov ecx, edi
mov rdx, rsi
mov r8d, eax
call fcn.1408bcaf8
cdqe
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14001ce60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x14001ce6e
test rdx, rdx
jne 0x14001ce80
xor eax, eax
or rcx, rdx
sete al
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx ecx, byte [rcx]
test cl, cl
je 0x14001cec7
inc rdi
nop dword [rax + rax]
movzx ebx, byte [rsi]
test bl, bl
je 0x14001cec9
call fcn.14001ce40
mov ebp, eax
mov ecx, ebx
call fcn.14001ce40
cmp bpl, al
jne 0x14001cedb
inc rsi
movzx ecx, byte [rdi]
inc rdi
test cl, cl
jne 0x14001cea0
xor ecx, ecx
test cl, cl
setne al
cmp byte [rsi], 0
sete cl
xor cl, al
movzx eax, cl
jmp 0x14001cedd
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14001ce80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x14001ce6e
test rdx, rdx
jne 0x14001ce80
xor eax, eax
or rcx, rdx
sete al
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx ecx, byte [rcx]
test cl, cl
je 0x14001cec7
inc rdi
nop dword [rax + rax]
movzx ebx, byte [rsi]
test bl, bl
je 0x14001cec9
call fcn.14001ce40
mov ebp, eax
mov ecx, ebx
call fcn.14001ce40
cmp bpl, al
jne 0x14001cedb
inc rsi
movzx ecx, byte [rdi]
inc rdi
test cl, cl
jne 0x14001cea0
xor ecx, ecx
test cl, cl
setne al
cmp byte [rsi], 0
sete cl
xor cl, al
movzx eax, cl
jmp 0x14001cedd
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14001d7a0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 4
mov eax, dword [0x140a69058]
cmp eax, 2
je 0x14001d86b
mov rsi, rcx
test eax, eax
jne 0x14001d819
mov dword [rsp + 0x20], 3
mov ecx, 6
xor edx, edx
xor r8d, r8d
mov r9d, 2
call fcn.140028710
test al, al
je 0x14001d80f
mov dword [0x140a69058], 2
jmp 0x14001d86b
mov dword [0x140a69058], 1
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14001d84a
cmp dword [rsp + 0x30], 0x4020
jg 0x14001d86b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x2e8]
test byte [rax + 0x85], 8
jne 0x14001ea7a
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov dword [rsp + 0x2c], Ordinal_133
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 0x98]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14001ea20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, eax
call fcn.140001470
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rsi
mov r8d, edi
mov r9, rax
jmp 0x14001ea75
lea r9, [rdi + 0x144]
add rdi, 0x114
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.140017fb0
test al, al
jne 0x14001ea7a
call fcn.1408a4284
mov ecx, dword [rax]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
call fcn.140001470
mov rdi, rax
call fcn.1408a4284
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, rsi
mov r9, rdi
call fcn.1400042b0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x1b8
pop rdi
pop rsi
ret

Function at 0x14001ef60
Capabilities:
Connect socket

Disassembly:
test dl, dl
je 0x14001ef6a
mov eax, 0xffffffff
ret
mov rdx, qword [rcx + 0x10]
mov r8d, dword [rdx + 0x14]
mov rcx, qword [rdx + 0x98]
add rdx, 0x18
jmp qword [sym.imp.WS2_32.dll_connect]
Function at 0x14001f180
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov r8d, reloc.WLDAP32.dll_Ordinal_27
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x38
ret

Function at 0x14001f1d0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdx
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x14001f252
test eax, eax
jns 0x14001f252
cmp byte [rsi + 0xaaf], 0
je 0x14001f252
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.140001470
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
mov r8, rax
call fcn.140004380
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x140
pop rsi
ret

Function at 0x14001f270
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rcx + 0xabb]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x5c]
mov rcx, rdx
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x14001f35f
mov dword [rsp + 0x50], 1
mov ecx, dword [rdi + 0xa24]
call fcn.140016aa0
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x54], eax
mov ecx, dword [rdi + 0xa28]
call fcn.140016aa0
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, recvfrom
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14001f37a
cmp byte [rdi + 0xaaf], 0
je 0x14001f37a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, rdi
mov r8d, esi
mov r9d, eax
call fcn.140004380
jmp 0x14001f37a
cmp byte [rdi + 0xaaf], 0
je 0x14001f37a
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rdi
mov r8, rsi
call fcn.140004380
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14001f970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x140
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov dword [r9], 0
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001fa09
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001f9d2
mov dword [rdi], 0x51
jmp 0x14001fa09
mov ebp, eax
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.140001470
mov rcx, qword [r14 + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1400042b0
mov rax, qword [r14 + 8]
mov dword [rax + 0xd74], ebp
mov dword [rdi], gethostname
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14001fa45
cmp byte [rcx + 0xaaf], 0
je 0x14001fa45
mov rdx, qword [r14]
test rdx, rdx
je 0x14001fa45
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x14001fa45
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r8, str.nw_in_read_len_zu______d__err_d
mov r9, rsi
call fcn.140004420
movsxd rsi, ebx
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140890ac0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14001fc40
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov r8d, dword [rsi + 0x14]
lea rdx, [rsi + 0x18]
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001fd0b
mov rcx, rbx
mov rdx, rdi
call fcn.14001e960
test rdi, rdi
je 0x14001fcf0
cmp byte [rdi + 0xaaf], 0
je 0x14001fcf0
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x14001fcf0
mov eax, dword [rsi + 0x110]
lea rcx, [rsi + 0xe0]
mov edx, dword [rsi + 0x144]
lea r8, [rsi + 0x114]
mov r10, qword [rsi + 0x98]
cmp dword [rsi], 5
lea r11, str.QUIC
lea r9, [0x1408eec94]
cmove r9, r11
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rcx, rdi
mov rdx, rbx
call fcn.140004420
mov rcx, qword [rsi + 0x98]
mov edx, 1
call fcn.140050c50
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsi, 0xe0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.14001ef90
Function at 0x1400244d0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400244e0
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x140013d0e.0]
test rax, rax
je 0x14002453e
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x140024539
cmp eax, edi
je 0x140024539
cmp eax, 0x8001
jae 0x140024539
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x140024500
jmp 0x140024549
mov rcx, rbx
jmp 0x140024541
mov rcx, r14
call qword [fcn.140899688]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400244e0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400244e0
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x140013d0e.0]
test rax, rax
je 0x14002453e
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x140024539
cmp eax, edi
je 0x140024539
cmp eax, 0x8001
jae 0x140024539
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x140024500
jmp 0x140024549
mov rcx, rbx
jmp 0x140024541
mov rcx, r14
call qword [fcn.140899688]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret