joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401380cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14011465c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140138156
cmp byte [rbp - 0x21], r15b
je 0x140138151
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14013818c
call fcn.140126184
test eax, eax
jne 0x140138178
cmp byte [rbp - 0x21], r15b
je 0x140138170
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14013818c
cmp byte [rbp - 0x21], r15b
je 0x140138189
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14012189c
test eax, eax
jne 0x14013822c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14011465c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401381cb
cmp byte [rbp - 0x21], r15b
je 0x140138200
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140138200
call fcn.140126184
test eax, eax
jne 0x1401381ec
cmp byte [rbp - 0x21], r15b
je 0x1401381e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140138200
cmp byte [rbp - 0x21], r15b
je 0x1401381fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14012189c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14013822c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013822f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14013823d
mov rcx, rdi
call fcn.140125d78
cmp byte [rbp + 0x3f], r15b
je 0x14013824c
mov rcx, qword [rbp + 0x27]
call fcn.140125d78
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140138b00
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140128910
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140128910
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140138c50
cmp rax, 0xffffffffffffffff
je 0x140138c50
xor edi, edi
test rbp, rbp
jle 0x140138bfb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140125d00
mov rbx, rax
test rax, rax
jne 0x140138b88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140138bf1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401230e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14012acf0
cmp eax, 0xffffffff
je 0x140138bd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140138b98
mov edx, r15d
mov ecx, r14d
call fcn.1401230e8
jmp 0x140138bf1
cmp byte [rsi + 0x38], dil
je 0x140138be8
cmp dword [rsi + 0x34], 5
jne 0x140138be8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140138bf1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140125d78
jmp 0x140138c64
jns 0x140138c64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140128910
cmp rax, 0xffffffffffffffff
jne 0x140138c1c
cmp byte [rsi + 0x30], dil
je 0x140138c64
mov edi, dword [rsi + 0x2c]
jmp 0x140138c64
mov ecx, r14d
call fcn.140131810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140138c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140138c64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140138c5d
mov eax, dword [rsi + 0x2c]
jmp 0x140138c62
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140128910
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140038a00
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140038a35
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140038a10
and r10, 0xf
je 0x140038a65
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x140038a40
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140038a59
mov rax, r8
repz ret

Function at 0x140038a70
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140038aad
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140038a80
pxor xmm1, xmm1
and r10, 0xf
je 0x140038ae3
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x140038abb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140038ad7
mov rax, r8
repz ret
Function at 0x14008dc70
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x38
ret

Function at 0x14008dec0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1400acc50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400a5300
nop
mov rax, qword [rsp + 0x80]
lea rcx, vtable.asio::detail::win_iocp_io_context.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
add rax, 0x28
mov rcx, rax
call fcn.1400a3370
nop
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], 0
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x34], 0
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x3c], 0
call fcn.1400da9f0
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x80]
add rax, 0x48
xor edx, edx
mov rcx, rax
call fcn.1400ab380
nop
mov rax, qword [rsp + 0x80]
add rax, 0x50
mov rcx, rax
call fcn.1400a3370
nop
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x58], 0
mov rax, qword [rsp + 0x80]
add rax, 0x60
mov rcx, rax
call fcn.1400ad040
nop
mov rax, qword [rsp + 0x80]
add rax, 0x88
mov rcx, rax
call fcn.1400a3370
mov rax, qword [rsp + 0x80]
add rax, 0x90
mov rcx, rax
call fcn.1400a5ef0
nop
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0xa0], ecx
mov rax, qword [rsp + 0x80]
add rax, 0xa8
xor edx, edx
mov rcx, rax
call fcn.1400ab380
nop
cmp dword [rsp + 0x90], 0
jl 0x1400acdcb
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x1400acdd3
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x28], 0
jne 0x1400ace45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x50]
call fcn.1400c8640
call fcn.1400daf60
mov r8, rax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x50]
call fcn.1400aadd0
lea rdx, str.iocp
lea rcx, [rsp + 0x50]
call fcn.1400ea1e0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x1400acee2
mov rax, qword [rsp + 0x80]
add rax, 0x30
lock inc dword [rax]
mov ecx, 0x18
call fcn.14020fa34
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400aceb3
mov edx, 0x18
mov rcx, qword [rsp + 0x28]
call fcn.1400c8640
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400ab380
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x28]
call fcn.140076830
mov qword [rsp + 0x30], rax
jmp 0x1400acebc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
add rax, 0xa8
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.1400e4220
nop
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x78
ret
Function at 0x1400b15f0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

Function at 0x1400b3140
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x140270818]
mov qword [rsp + 0x58], rax
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x88]
mov word [rsp + rax + 0x58], cx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400b31ef
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
jmp 0x1400b31f1
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x78
ret
Function at 0x1400b3d10
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400b3d6c
xor al, al
jmp 0x1400b3e7d
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x6c], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1400b3dc3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400b3e7d
mov eax, dword [rsp + 0x58]
mov ecx, eax
call fcn.14020fa80
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400b3e2a
xor al, al
jmp 0x1400b3e7d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
call fcn.1400b1130
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14020fa78
cmp qword [rsp + 0x38], 0
jne 0x1400b3e68
mov qword [rsp + 0x50], 0
jmp 0x1400b3e7b
mov qword [rsp + 0x30], 0x8123
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x80
pop rdi
ret
Function at 0x1400b3ea0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov byte [rsp + 0xa0], 0
lea rax, [rsp + 0xa1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x3e
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400b3f5a
movsxd rax, dword [rsp + 0x1e0]
lea r8, [0x140270744]
mov rdx, rax
mov rcx, qword [rsp + 0x1d8]
call fcn.14021eb7c
xor eax, eax
jmp 0x1400b4041
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x1400b403d
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x1400b3fb8
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rsp + 0x1e0]
sub rcx, 0x20
cmp rax, rcx
jb 0x1400b3fe6
jmp 0x1400b403d
mov r9d, 0x20
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14009af80
lea rdx, [0x14027074c]
lea rcx, [rsp + 0x60]
call fcn.1400a2280
movsxd rax, dword [rsp + 0x1e0]
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x1d8]
call fcn.14021eafc
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400b3f62
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400ba5c0
Capabilities:
Resolve dns

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400d4060
movzx eax, al
test eax, eax
jne 0x1400ba615
cmp dword [rsp + 0xd0], 0
jne 0x1400ba631
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0xc8]
call fcn.1400ada60
movzx eax, byte [rsp + 0x30]
jmp 0x1400ba770
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x6c]
mov rdi, rax
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, gethostbyname
rep stosb byte [rdi], al
mov dword [rsp + 0x6c], 2
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0xc8]
call fcn.1400cc460
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400ba6b6
mov byte [rsp + 0x31], 0
mov rcx, qword [rsp + 0xc8]
call fcn.1400ada60
movzx eax, byte [rsp + 0x31]
jmp 0x1400ba770
mov byte [rsp + 0x98], 0
lea rax, [rsp + 0x99]
mov rdi, rax
xor eax, eax
mov ecx, select
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
add rax, 4
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x98]
mov rdx, rax
mov ecx, 2
call sub.WS2_32.dll_inet_ntop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.1400a3c90
nop
mov rax, qword [rsp + 0xc0]
add rax, 0x3b8
mov rcx, rax
call fcn.1400b2180
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rcx
movzx r9d, byte [rsp + 0xd8]
movzx r8d, word [rsp + 0xd0]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400cf090
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x40]
call fcn.1400ada60
nop
mov rcx, qword [rsp + 0xc8]
call fcn.1400ada60
movzx eax, byte [rsp + 0x32]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0xb0
pop rdi
ret
Function at 0x1400ce6a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0xa0], 0xffffffffffffffff
je 0x1400ce868
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x1400ce767
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax]
and eax, 8
test eax, eax
je 0x1400ce767
xor eax, eax
mov word [rsp + 0x68], ax
xor eax, eax
mov word [rsp + 0x6a], ax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x70]
call fcn.1400c8640
lea rcx, [rsp + 0x70]
call fcn.1400aada0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
mov r8d, 0xffff
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400e7a20
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400ce787
mov byte [rsp + 0x40], 1
jmp 0x1400ce78c
mov byte [rsp + 0x40], 0
movzx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400dab00
cmp dword [rsp + 0x44], 0
je 0x1400ce868
mov edx, 0x2733
lea rcx, [rsp + 0x48]
call fcn.140079e00
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
call fcn.1400b1a30
movzx eax, al
test eax, eax
jne 0x1400ce7f9
mov edx, 0x4d5
lea rcx, [rsp + 0x58]
call fcn.140079e00
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
call fcn.1400b1a30
movzx eax, al
test eax, eax
je 0x1400ce868
mov dword [rsp + 0x6c], 0
lea r8, [rsp + 0x6c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0xa8]
mov byte [rcx], al
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400ce851
mov byte [rsp + 0x41], 1
jmp 0x1400ce856
mov byte [rsp + 0x41], 0
movzx edx, byte [rsp + 0x41]
mov rcx, qword [rsp + 0xb8]
call fcn.1400dab00
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x98
ret
Function at 0x1400dc0c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400dc0f6
mov edx, 0x2719
mov rcx, qword [rsp + 0x60]
call fcn.14007a060
mov eax, 0xffffffff
jmp 0x1400dc175
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x1400dc11c
mov byte [rsp + 0x20], 1
jmp 0x1400dc121
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.1400dab00
cmp dword [rsp + 0x24], 0
jl 0x1400dc171
cmp dword [rsp + 0x50], 0x8004667e
jne 0x1400dc171
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
je 0x1400dc15f
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
or eax, 1
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
jmp 0x1400dc171
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1400dc410
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400ea180
movzx eax, al
test eax, eax
je 0x1400dc48b
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400dc4b8
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [fcn.1400db7c0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x48
ret