joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002b2e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x4d8
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r15d, dword [rsp + 0x528]
mov rsi, rcx
mov rcx, qword [rsp + 0x520]
lea ebp, [r9 + 1]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x530]
shr ebp, 1
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x58], rcx
mov r12d, edx
cmp ebp, 0x100
jbe 0x18002b34a
mov eax, 0xffffff7c
jmp 0x18002b4d6
mov qword [rsp + 0x4c0], r13
mov qword [rsp + 0x4b8], r14
mov r14d, dword [rsp + 0x538]
lea r13d, [r15 + r14]
cmp r13d, 0x80
ja 0x18002b378
cmp r12d, 0xe0
jbe 0x18002b382
mov eax, 0xffffff7c
jmp 0x18002b4c6
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x4d0], rbx
mov r8, r12
xor edx, edx
mov qword [rsp + 0x4c8], rdi
mov rdi, r12
call fcn.180030f50
lea rcx, [rsp + 0x1c0]
mov r8, r12
xor edx, edx
call fcn.180030f50
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x2a0]
mov r8d, ebp
call fcn.18002d8c0
mov r11d, dword [rsp + 0x40]
mov edx, ebp
and r11d, 1
lea rcx, [rsp + 0x3a0]
mov r8d, ebp
sub rdx, r11
add rdx, qword [rsp + 0x48]
call fcn.18002d8c0
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov r8, r15
call fcn.18002d8c0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + r15 + 0x60]
mov r8, r14
call fcn.18002d8c0
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x2a0]
lea rcx, [rsp + 0xe0]
mov r9d, ebp
mov edx, r12d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.18002ace0
mov rbx, qword [rsp + 0x4d0]
mov r11d, eax
test eax, eax
jne 0x18002b4bb
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x3a0]
lea rcx, [rsp + 0x1c0]
mov r9d, ebp
mov edx, r12d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.18002ace0
mov r11d, eax
test eax, eax
jne 0x18002b4bb
test r12d, r12d
je 0x18002b4bb
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x1c0]
inc rcx
xor al, byte [rsp + rcx + 0xdf]
dec rdi
mov byte [rcx + rsi - 1], al
jne 0x18002b4a0
mov rdi, qword [rsp + 0x4c8]
mov eax, r11d
mov r13, qword [rsp + 0x4c0]
mov r14, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x4d8
pop r15
pop r12
pop rsi
pop rbp
ret
Function at 0x18002c770
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18002c7b5
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x68
ret
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18002c809
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x68
ret

Function at 0x18002cb30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov r9, qword [0x1800978a0]
xor eax, eax
lea r8, [0x18002c940]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18002cb6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x18002cd60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rbp + 0x790], rax
lea rcx, [rbp - 0x6e]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rbp - 0x70], bx
call fcn.180030f50
cmp qword [0x1800978a0], rbx
je 0x18002cf09
mov eax, WSAStartup
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x8b0], rdi
mov word [rsp + 0x6c], ax
mov eax, reloc.WLDAP32.dll_Ordinal_50
mov dword [rsp + 0x30], 0x4d746547
mov word [rsp + 0x76], ax
mov eax, reloc.WLDAP32.dll_Ordinal_46
mov dword [rsp + 0x34], 0x6c75646f
mov dword [rsp + 0x38], 0x6c694665
mov dword [rsp + 0x3c], 0x6d614e65
mov word [rsp + 0x40], 0x5765
mov word [rsp + 0x78], ax
mov byte [rsp + 0x42], bl
mov dword [rsp + 0x48], 0x65657246
mov dword [rsp + 0x4c], 0x7262694c
mov dword [rsp + 0x50], 0x41797261
mov dword [rsp + 0x54], 0x7845646e
mov dword [rsp + 0x58], 0x68547469
mov dword [rsp + 0x5c], 0x64616572
mov byte [rsp + 0x60], bl
mov dword [rsp + 0x20], 0x64616f4c
mov dword [rsp + 0x24], 0x7262694c
mov dword [rsp + 0x28], 0x57797261
mov byte [rsp + 0x2c], bl
mov dword [rsp + 0x68], 0x65006b
mov dword [rsp + 0x6e], 0x65006e
mov dword [rsp + 0x72], 0x33006c
mov dword [rsp + 0x7a], 0x6c0064
mov dword [rsp + 0x7e], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18002cf01
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800978a0]
lea rdx, [rbp - 0x70]
mov r8d, 0x400
mov qword [0x1800978a8], rax
call rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x70]
mov qword [0x1800978b8], rax
call rax
test rax, rax
je 0x18002cefb
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18002cefb
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800978b0], rax
call rbx
jmp 0x18002cf01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x8b0]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.18002cf50
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rbp
invalid
Function at 0x18002efab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180093030]
jne 0x18002cf6a
rol rcx, 0x10
test cx, 0xffff
jne 0x18002cf66
repz ret
ror rcx, 0x10
jmp 0x18002ef04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180095040]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180095138]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1800706c4
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002ef89
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180095040]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call fcn.1800706be
jmp 0x18002efab
mov rax, qword [rsp + 0x88]
mov qword [0x180095138], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800950d8], rax
mov rax, qword [0x180095138]
mov qword [0x180094fb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800950c0], rax
mov dword [0x180094fa0], 0xc0000409
mov dword [0x180094fa4], 1
mov rax, qword [0x180093030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180093038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180095038], eax
mov ecx, 1
call fcn.180036ccc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18007a608]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180095038], 0
jne 0x18002f032
mov ecx, 1
call fcn.180036ccc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180038d44
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18002fc14
xor ebx, ebx
cmp qword [0x180096050], rbx
mov rdi, rax
jne 0x180038e57
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180038f2e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180038f2e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180096050], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180096058], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180096060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180096070], rax
test rax, rax
je 0x180038e4e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180096068], rax
jmp 0x180038e5e
mov rax, qword [0x180096068]
jmp 0x180038e65
mov rax, qword [0x180096068]
mov r11, qword [0x180096070]
cmp rax, rdi
je 0x180038ecc
cmp r11, rdi
je 0x180038ecc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180096070]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180038ecc
test rax, rax
je 0x180038ecc
call rsi
test rax, rax
je 0x180038ec6
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180038ec6
test byte [rsp + 0x40], 1
jne 0x180038ecc
bts ebp, 0x15
jmp 0x180038f0c
mov rcx, qword [0x180096058]
cmp rcx, rdi
je 0x180038f0c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180038f0c
call rax
mov rbx, rax
test rax, rax
je 0x180038f0c
mov rcx, qword [0x180096060]
cmp rcx, rdi
je 0x180038f0c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180038f0c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180096050]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180038f2e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180038f30
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003c0d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180093030]
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 0x18003c12e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x18003c128
shr ax, 8
cmp al, 2
jne 0x18003c128
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002cf50
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.18002cf50
add rsp, 0x1d8
ret
Function at 0x18003d470
Capabilities:
Encrypt data using rc4 prga

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

Function at 0x1800469f0
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 0x180046a2b
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 0x180046ba0
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 0x180046be3
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 0x180046c2a
cmp edx, 2
jg 0x180046c2a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x18007d828]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.18002e7f8
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18002e7f8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180047000
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 0x1800470ab
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180047079
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.18004cdc0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180046e10
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x88b4], ebx
mov dword [rbp], gethostname
jmp 0x180047064
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1800494b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x6ac], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18004951f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180046d60
jmp 0x1800495ae
mov ecx, dword [rbx + 0x6b0]
mov dword [rsp + 0x58], 1
call fcn.180062ae0
mov ecx, dword [rbx + 0x6b4]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.180062ae0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
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 0x1800495ae
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.180046d60
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002cf50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180049cf0
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 [0x180093030]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x180049ed4
cmp dword [rcx + 0x284], 0
jne 0x180049ecc
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180049d85
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18004cdc0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180046e10
jmp 0x180049ed4
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x20], pe_nt_image_headers64
call fcn.180030f50
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180049de2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18004cdc0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180046e10
jmp 0x180049ed4
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.180049c70
test eax, eax
jne 0x180049e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18004cdc0
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180046e10
jmp 0x180049ed4
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.180049c70
test eax, eax
jne 0x180049ecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18004cdc0
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180046e10
jmp 0x180049ed4
mov rcx, rdi
call fcn.180049b80
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18002cf50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180049f00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180049f6b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.18004cdc0
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180046d60
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180046d60
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180049f90
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x180096150]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x18004a068
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call fcn.180030f50
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x40], 0x9c
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 0x18004a05c
mov dword [0x180096150], 2
jmp 0x18004a0bf
mov dword [0x180096150], 1
jmp 0x18004a06d
cmp eax, 2
je 0x18004a0bf
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 0x18004a09e
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x18004a0bf
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.18002cf50
add rsp, 0xf0
pop rbx
ret
Function at 0x18004a100
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x848]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x18004a17c
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x18004a133
cmp qword [rcx + 0x78], rax
je 0x18004a17c
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
test rax, rax
je 0x18004a14e
lea rcx, [rax + 0xc0]
jmp 0x18004a159
mov rcx, qword [rcx + 0x78]
add rcx, 0xc0
lea r8, [0x18004a0e0]
lea rdx, [rsp + 0x20]
call fcn.180068670
cmp dword [rsp + 0x28], 0
jne 0x18004a190
mov qword [rbx + 0x848], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x18004a198
mov qword [rsi], rdi
cmp dword [rdi + 0x1f0], 0
mov rbx, qword [rdi + 0x1a8]
jne 0x18004a17c
cmp rbx, 0xffffffffffffffff
je 0x18004a1ca
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x18004a17c
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18004a320
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x180093030]
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.18004a250
mov edi, eax
test eax, eax
je 0x18004a370
xor eax, eax
jmp 0x18004a5a5
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.180049c70
test eax, eax
jne 0x18004a3cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.18004cdc0
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.180046e10
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.18004a1e0
jmp 0x18004a59b
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.180046d60
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x18004a41a
cmp dword [rsp + 0x34], 1
jne 0x18004a41a
mov r12d, 1
cmp dword [rbp + 0x4d4], r14d
je 0x18004a41d
mov rdx, rbx
mov rcx, rsi
call fcn.180049f00
jmp 0x18004a41d
xor r12d, r12d
mov rcx, rbx
call fcn.180049f90
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x18004a446
cmp dword [rbp + 0x6ac], r14d
je 0x18004a446
mov rdx, rbx
mov rcx, rbp
call fcn.1800494b0
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x18004a46a
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x18004a4b1
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x18004a4ca
lea rcx, [rsp + 0x40]
call sym.wuapi.dll_SpInitInstance
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.1800496b0
mov edi, eax
test eax, eax
je 0x18004a4ca
mov rdx, rbx
mov rcx, rsi
call fcn.18004a1e0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x18004a59d
test eax, eax
je 0x18004a46a
mov rdx, rbx
mov rcx, rsi
call fcn.18004a1e0
mov eax, Ordinal_46
jmp 0x18004a59d
mov edx, 1
mov rcx, rbx
call fcn.180069b30
call fcn.180046820
cmp dword [rsi + 0x2ec], 1
mov qword [rsi + 0x2e4], rax
jle 0x18004a4fa
mov edx, dword [rsi + 0x2f0]
mov rcx, rbp
call fcn.180045150
test r14d, r14d
jne 0x18004a597
cmp dword [rsi + 0xa4], 1
jne 0x18004a597
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18004a58b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x18004a581
cmp eax, 0x2732
jle 0x18004a543
cmp eax, 0x2734
jle 0x18004a581
mov edx, eax
mov rcx, rsi
call fcn.18004cdc0
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180046d60
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x88b4], edi
call fcn.18004a1e0
mov edi, 7
mov eax, edi
jmp 0x18004a59d
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x18004a59d
test edi, edi
jne 0x18004a593
mov qword [r13], rbx
mov eax, edi
jmp 0x18004a59d
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret