joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b0b4
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x22]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov rbx, r9
mov word [rsp + 0x20], bp
call fcn.18005c800
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp bp, word [rsp + 0x20]
jne 0x18001b11e
lea rdx, [0x180089800]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rdi + 0x32c], ebp
je 0x18001b160
lea rcx, str.Archive
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
cmp rax, rbp
jne 0x18001b146
mov ecx, 0x8007000e
call fcn.180002f70
int3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x18001b2d5
mov rcx, qword [rdi + 0x80]
movabs rbx, 0x6666666666666667
sub rcx, qword [rdi + 0x78]
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x18001b278
cmp qword [rdi + 0x28], 8
jb 0x18001b1a0
mov rcx, qword [rdi + 0x10]
jmp 0x18001b1a4
lea rcx, [rdi + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp qword [rdi + 0x28], 8
mov rdx, rax
jb 0x18001b1ba
mov rax, qword [rdi + 0x10]
jmp 0x18001b1be
lea rax, [rdi + 0x10]
cmp rdx, rax
jne 0x18001b264
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001b1ed
call fcn.18005e62c
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001b1fe
mov rdx, qword [rax + 8]
jmp 0x18001b202
lea rdx, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001b231
call fcn.18005e62c
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001b242
mov rcx, qword [rax + 8]
jmp 0x18001b246
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18001b2d5
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp rax, rbp
je 0x18001b2d5
jmp 0x18001b2d2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x18001b2d5
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001b29e
call fcn.18005e62c
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001b2af
mov rdx, qword [rax + 8]
jmp 0x18001b2b3
lea rdx, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18001b2d5
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov word [rax], bp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002281c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r8d, r9d
xor edx, edx
mov rcx, rsi
call fcn.18005c800
mov rcx, qword [rdi]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rbx, eax
test eax, eax
je 0x18002288d
mov ecx, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
cmp dword [rsp + 0x68], ecx
cmovb ecx, dword [rsp + 0x68]
mov r8d, ecx
mov rcx, rsi
call fcn.18005e7d0
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800228ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r8d, r9d
xor edx, edx
mov rcx, rbx
call fcn.18005c800
mov rcx, qword [rsi]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x18002294c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
add rsp, 0x48
ret
Function at 0x180023904
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x890
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x880], rax
xor ebx, ebx
mov word [rsp + 0x80], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x82]
call fcn.18005c800
lea r11, str.Update
mov qword [rsp + 0x20], r11
lea r9, [0x18008a240]
lea r8, str.KuaiZip
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
call fcn.180002020
nop
lea rcx, [rsp + 0x30]
call fcn.1800017a0
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1800239bc
mov ebx, 1
jmp 0x180023a54
mov dword [rsp + 0x40], ebx
xor eax, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x38], 8
lea rcx, [rsp + 0x30]
call fcn.18000204c
mov rcx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.kernel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x60]
cmp word [rsp + 0x48], r11w
jbe 0x180023a34
mov ebx, 1
jmp 0x180023a54
movzx eax, word [rsp + 0x62]
cmp word [rsp + 0x4a], ax
jbe 0x180023a47
mov ebx, 1
jmp 0x180023a54
movzx ecx, word [rsp + 0x66]
cmp word [rsp + 0x4e], cx
seta bl
lea rcx, [rsp + 0x30]
call fcn.180002028
mov eax, ebx
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x890
pop rbx
ret
Function at 0x180023af4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xae0
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xad0], rax
call fcn.18000fd44
xor esi, esi
lea rcx, [0x18008a298]
cmp eax, esi
lea rdi, [0x18008a2a0]
lea r8d, [rsi + 0x6c]
cmovne rdi, rcx
lea rcx, [rsp + 0x54]
xor edx, edx
mov dword [rsp + 0x50], reloc.WS2_32.dll_WSASetLastError
call fcn.18005c800
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call fcn.18005c800
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x2d0], si
call fcn.18005c800
mov rcx, qword [0x1800aa2c8]
lea rdx, [rsp + 0xc0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
call fcn.18007e8a0
mov rcx, rbx
lea rdx, str.X64_
cmp al, sil
jne 0x180023bcc
lea rdx, str.X86_
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.KZMount2.exe
lea rcx, [rsp + 0x20]
call fcn.18007e8e0
cmp qword [rax + 0x20], 8
jb 0x180023bf0
mov rdx, qword [rax + 8]
jmp 0x180023bf4
lea rdx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp qword [rsp + 0x40], 8
jb 0x180023c0f
mov rcx, qword [rsp + 0x28]
call fcn.18005c410
lea rax, [rsp + 0xc0]
lea r8, [0x18008a2d8]
lea rdx, [0x18008a2e0]
lea rcx, [rsp + 0x2d0]
mov r9, rdi
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x2d0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], r11
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x54], 0x400
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180024698
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [rsp + 0x22]
xor edx, edx
lea r8d, [rbx + 0x3e]
mov word [rsp + 0x20], bx
call fcn.18005c800
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
movzx ecx, ax
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
jne 0x1800246ed
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x1800246f7
lea rcx, [rsp + 0x20]
call fcn.18005fb78
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x70
pop rbx
ret

Function at 0x180026340
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18002639e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180026398
shr ax, 8
cmp al, 2
jne 0x180026398
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005cb30
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.18005cb30
add rsp, 0x1d8
ret
Function at 0x1800277a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x1800277ac
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.1800377e0

Function at 0x180030c30
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 0x180030c6b
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 0x180030de0
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 + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x180030e23
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x180030e6a
cmp edx, 2
jg 0x180030e6a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x18008b838]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.18005f668
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18005f668
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180031240
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rsi, rcx
mov rcx, qword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_send]
mov rbp, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rbp], 0
cmp rdi, 0xffffffffffffffff
jne 0x1800312eb
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800312b9
mov dword [rbp], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, eax
mov rcx, rsi
call fcn.180036e70
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180031050
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x889c], ebx
mov dword [rbp], gethostname
jmp 0x1800312a4
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1800334d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x6a4], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18003353e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180030fa0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x6a8]
mov dword [rsp + 0x50], 1
call fcn.18004cf10
mov ecx, dword [rbx + 0x6ac]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.18004cf10
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, ntohs
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1800335d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.180030fa0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x180033d40
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 [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x180033f24
cmp dword [rcx + 0x27c], 0
jne 0x180033f1c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180033dd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036e70
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180031050
jmp 0x180033f24
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.18005c800
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180033e32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036e70
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180031050
jmp 0x180033f24
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.180033cc0
test eax, eax
jne 0x180033e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036e70
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180031050
jmp 0x180033f24
mov rax, qword [rdi + 0xf0]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x78], rax
mov rax, qword [rdi + 0x100]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x108]
mov qword [rdi + 0x88], rax
mov rax, qword [rdi + 0x110]
mov qword [rdi + 0x90], rax
mov eax, dword [rdi + 0x118]
mov dword [rdi + 0x98], eax
movzx eax, word [rdi + 0x11c]
mov word [rdi + 0x9c], ax
call fcn.180033cc0
test eax, eax
jne 0x180033f1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036e70
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180031050
jmp 0x180033f24
mov rcx, rdi
call fcn.180033bd0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180033f50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r10, rdx
mov edx, 6
mov eax, dword [rbx + 0x4d4]
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, r10
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180033fbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.180036e70
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180030fa0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180030fa0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180033fe0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1800aa3c0]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1800340b8
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, LoadRegTypeLib
call fcn.18005c800
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x40], QueryPathOfRegTypeLib
mov dword [rsp + 0x44], 6
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]
lea rcx, [rsp + 0x40]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1800340ac
mov dword [0x1800aa3c0], 2
jmp 0x18003410f
mov dword [0x1800aa3c0], 1
jmp 0x1800340bd
cmp eax, 2
je 0x18003410f
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800340ee
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x18003410f
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0xf0
pop rbx
ret
Function at 0x180034150
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 + 0x830]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1800341c3
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x180034183
cmp qword [rdi + 0x78], rcx
je 0x1800341c3
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
test rcx, rcx
jne 0x180034199
mov rcx, qword [rdi + 0x78]
lea r8, [0x180034130]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.180052d80
cmp dword [rsp + 0x28], 0
jne 0x1800341d7
mov qword [rdi + 0x830], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1800341df
mov qword [rsi], rbx
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
jne 0x1800341c3
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rdi, rcx
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180034370
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
mov r13, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
call fcn.1800342a0
mov edi, eax
test eax, eax
je 0x1800343c0
xor eax, eax
jmp 0x1800345f5
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.180033cc0
test eax, eax
jne 0x18003441c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.180036e70
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.180031050
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.180034230
jmp 0x1800345eb
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.180030fa0
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x18003446a
cmp dword [rsp + 0x34], 1
jne 0x18003446a
mov r12d, 1
cmp dword [rbp + 0x4d4], r14d
je 0x18003446d
mov rdx, rbx
mov rcx, rsi
call fcn.180033f50
jmp 0x18003446d
xor r12d, r12d
mov rcx, rbx
call fcn.180033fe0
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x180034496
cmp dword [rbp + 0x6a4], r14d
je 0x180034496
mov rdx, rbx
mov rcx, rbp
call fcn.1800334d0
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x1800344ba
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x180034501
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x18003451a
lea rcx, [rsp + 0x40]
call fcn.180027600
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.1800336d0
mov edi, eax
test eax, eax
je 0x18003451a
mov rdx, rbx
mov rcx, rsi
call fcn.180034230
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1800345ed
test eax, eax
je 0x1800344ba
mov rdx, rbx
mov rcx, rsi
call fcn.180034230
mov eax, Ordinal_46
jmp 0x1800345ed
mov edx, 1
mov rcx, rbx
call fcn.1800542b0
call fcn.180030a60
cmp dword [rsi + 0x2e4], 1
mov qword [rsi + 0x2dc], rax
jle 0x18003454a
mov edx, dword [rsi + 0x2e8]
mov rcx, rbp
call fcn.18002f230
test r14d, r14d
jne 0x1800345e7
cmp dword [rsi + 0xa4], 1
jne 0x1800345e7
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800345db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1800345d1
cmp eax, 0x2732
jle 0x180034593
cmp eax, 0x2734
jle 0x1800345d1
mov edx, eax
mov rcx, rsi
call fcn.180036e70
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180030fa0
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x889c], edi
call fcn.180034230
mov edi, 7
mov eax, edi
jmp 0x1800345ed
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x1800345ed
test edi, edi
jne 0x1800345e3
mov qword [r13], rbx
mov eax, edi
jmp 0x1800345ed
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret