joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180063f7f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180109f10]
jne 0x1800576ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1800576b6
repz ret
ror rcx, 0x10
jmp 0x180063ed8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18010ca30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18010cb28]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180063f5d
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, [0x18010ca30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180063f7f
mov rax, qword [rsp + 0x88]
mov qword [0x18010cb28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18010cac8], rax
mov rax, qword [0x18010cb28]
mov qword [0x18010c9a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18010cab0], rax
mov dword [0x18010c990], 0xc0000409
mov dword [0x18010c994], 1
mov rax, qword [0x180109f10]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180109f18]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18010ca28], eax
mov ecx, 1
call fcn.180064704
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800da378]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18010ca28], 0
jne 0x180064006
mov ecx, 1
call fcn.180064704
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 0x180064f4c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180064db4
Function at 0x18007e8f8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180064714
xor ebx, ebx
mov rdi, rax
cmp qword [0x18010d7f8], rbx
jne 0x18007e9fe
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18007ead3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007ead3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18010d7f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18010d800], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18010d808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18010d818], rax
test rax, rax
je 0x18007e9f5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18010d810], rax
jmp 0x18007ea05
mov rax, qword [0x18010d810]
jmp 0x18007ea0c
mov rax, qword [0x18010d810]
mov r11, qword [0x18010d818]
cmp rax, rdi
je 0x18007ea74
cmp r11, rdi
je 0x18007ea74
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18010d818]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18007ea74
test rax, rax
je 0x18007ea74
call rsi
test rax, rax
je 0x18007ea6e
lea rcx, [rsp + 0x88]
mov r9d, recvfrom
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18007ea6e
test byte [rsp + 0x38], 1
jne 0x18007ea74
bts ebp, 0x15
jmp 0x18007eab2
mov rcx, qword [0x18010d800]
cmp rcx, rdi
je 0x18007eab2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007eab2
call rax
mov rbx, rax
test rax, rax
je 0x18007eab2
mov rcx, qword [0x18010d808]
cmp rcx, rdi
je 0x18007eab2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007eab2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18010d7f8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007ead3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18007ead5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18008a9d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180109f10]
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 0x18008aa2e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x18008aa28
shr ax, 8
cmp al, 2
jne 0x18008aa28
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800576a0
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.1800576a0
add rsp, 0x1d8
ret

Function at 0x18008cde0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x18008ce2a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x18008ce1a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x18008ce72
cmp qword [rbx + 0x10], 0
jne 0x18008ce5e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1800ddb50]
call fcn.1800c3400
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18008ce5e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1800c32a8
mov rdi, rax
test rax, rax
jne 0x18008ce95
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18008ce8c
call fcn.1800595a0
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18008e650
Capabilities:
Encrypt data using rc4 prga

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

Function at 0x1800980f0
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 0x18009812b
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 0x1800982a0
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 0x1800982e3
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 0x18009832a
cmp edx, 2
jg 0x18009832a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800de908]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.180058ef8
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.180058ef8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180098700
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 0x1800987ab
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180098779
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.18008bd00
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180098510
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x889c], ebx
mov dword [rbp], gethostname
jmp 0x180098764
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18009a9a0
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 0x18009aa0e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180098460
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.1800b4830
mov ecx, dword [rbx + 0x6ac]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.1800b4830
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, recvfrom
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 0x18009aaa0
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.180098460
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x18009b210
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 [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x18009b3f4
cmp dword [rcx + 0x27c], 0
jne 0x18009b3ec
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 0x18009b2a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008bd00
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180098510
jmp 0x18009b3f4
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.18005dcd0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18009b302
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008bd00
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180098510
jmp 0x18009b3f4
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.18009b190
test eax, eax
jne 0x18009b34d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008bd00
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180098510
jmp 0x18009b3f4
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.18009b190
test eax, eax
jne 0x18009b3ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008bd00
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180098510
jmp 0x18009b3f4
mov rcx, rdi
call fcn.18009b0a0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800576a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18009b420
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 0x18009b48d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.18008bd00
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180098460
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180098460
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18009b4b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x18010d898]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x18009b588
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call fcn.18005dcd0
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 0x18009b57c
mov dword [0x18010d898], 2
jmp 0x18009b5df
mov dword [0x18010d898], 1
jmp 0x18009b58d
cmp eax, 2
je 0x18009b5df
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 0x18009b5be
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x18009b5df
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.1800576a0
add rsp, 0xf0
pop rbx
ret
Function at 0x18009b620
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 0x18009b693
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x18009b653
cmp qword [rdi + 0x78], rcx
je 0x18009b693
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
test rcx, rcx
jne 0x18009b669
mov rcx, qword [rdi + 0x78]
lea r8, [0x18009b600]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.1800ba5c0
cmp dword [rsp + 0x28], 0
jne 0x18009b6a7
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 0x18009b6af
mov qword [rsi], rbx
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
jne 0x18009b693
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 0x18009b840
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x180109f10]
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.18009b770
mov edi, eax
test eax, eax
je 0x18009b890
xor eax, eax
jmp 0x18009bac5
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.18009b190
test eax, eax
jne 0x18009b8ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.18008bd00
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.180098510
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.18009b700
jmp 0x18009babb
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.180098460
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x18009b93a
cmp dword [rsp + 0x34], 1
jne 0x18009b93a
mov r12d, 1
cmp dword [rbp + 0x4d4], r14d
je 0x18009b93d
mov rdx, rbx
mov rcx, rsi
call fcn.18009b420
jmp 0x18009b93d
xor r12d, r12d
mov rcx, rbx
call fcn.18009b4b0
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x18009b966
cmp dword [rbp + 0x6a4], r14d
je 0x18009b966
mov rdx, rbx
mov rcx, rbp
call fcn.18009a9a0
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x18009b98a
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x18009b9d1
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x18009b9ea
lea rcx, [rsp + 0x40]
call fcn.1800bbac0
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.18009aba0
mov edi, eax
test eax, eax
je 0x18009b9ea
mov rdx, rbx
mov rcx, rsi
call fcn.18009b700
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x18009babd
test eax, eax
je 0x18009b98a
mov rdx, rbx
mov rcx, rsi
call fcn.18009b700
mov eax, Ordinal_46
jmp 0x18009babd
mov edx, 1
mov rcx, rbx
call fcn.1800bbaf0
call fcn.180097f10
cmp dword [rsi + 0x2e4], 1
mov qword [rsi + 0x2dc], rax
jle 0x18009ba1a
mov edx, dword [rsi + 0x2e8]
mov rcx, rbp
call fcn.180096380
test r14d, r14d
jne 0x18009bab7
cmp dword [rsi + 0xa4], 1
jne 0x18009bab7
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18009baab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x18009baa1
cmp eax, 0x2732
jle 0x18009ba63
cmp eax, 0x2734
jle 0x18009baa1
mov edx, eax
mov rcx, rsi
call fcn.18008bd00
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180098460
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x889c], edi
call fcn.18009b700
mov edi, 7
mov eax, edi
jmp 0x18009babd
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x18009babd
test edi, edi
jne 0x18009bab3
mov qword [r13], rbx
mov eax, edi
jmp 0x18009babd
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x18009da40
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x20
xor r14d, r14d
mov r13, r9
mov qword [r9], r14
lea r9, [rsp + 0x68]
mov rsi, r14
mov r12, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x18009dbce
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x18009dbb6
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x18009db4d
cmp qword [rbx + 0x20], r14
je 0x18009db4d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18009db4d
cmp rax, 0x10
jb 0x18009db4d
mov ecx, Ordinal_50
call qword [fcn.180064074]
mov rdi, rax
test rax, rax
je 0x18009db86
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x28], r14
call qword [fcn.180064074]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x18009db76
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18009db39
call qword [fcn.18008a660]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18009db5c
test rsi, rsi
cmove rsi, rdi
test r12, r12
je 0x18009db4a
mov qword [r12 + 0x28], rdi
mov r12, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18009da90
jmp 0x18009db8b
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.180058548]
mov rcx, rdi
call qword [fcn.180058548]
jmp 0x18009db8b
mov rcx, rdi
mov ebp, 8
call qword [fcn.180058548]
jmp 0x18009db8b
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x18009dba0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x18009dbb1
mov rcx, rsi
call fcn.18009d9f0
mov rsi, r14
jmp 0x18009dbc3
test rsi, rsi
jne 0x18009dbc3
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r13], rsi
mov eax, ebp
add rsp, 0x20
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x18009df90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1800c3d44
test rax, rax
je 0x18009dfb9
cmp rax, 0xffffffffffffffff
jne 0x18009dfbb
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800a7570
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x520]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1800a7612
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180061140
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x1800a7660
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180098510
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800576a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [rbx + 0x168]
call fcn.1800a6220
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x1800a7703
sub r8d, 1
je 0x1800a777a
sub r8d, 1
je 0x1800a76d3
cmp r8d, 1
je 0x1800a76af
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1800e5dd8]
mov rcx, rdi
call fcn.180098510
jmp 0x1800a777a
mov rdx, qword [rbx + 0x168]
lea r8d, [r9 - 2]
mov rcx, rbx
add rdx, 2
call fcn.1800a6320
test eax, eax
je 0x1800a777a
jmp 0x1800a7637
lea rcx, [rbx + 0x168]
call fcn.1800a6230
lea rdx, [0x1800deb48]
mov rcx, rdi
movzx r8d, ax
mov dword [rbx + 8], r8d
mov r8, qword [rbx + 0x168]
add r8, 4
call fcn.180098460
jmp 0x1800a777a
cmp r9d, 4
jle 0x1800a777a
lea rcx, [rbx + 0x168]
call fcn.1800a6230
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x1800a777a
mov r8, qword [rbx + 0x168]
lea eax, [r9 - 4]
mov edx, 1
add r8, 4
movsxd r9, eax
mov rcx, rbp
call fcn.180098ac0
mov esi, eax
test eax, eax
je 0x1800a7759
mov edx, 5
mov rcx, rbx
call fcn.1800a74f0
mov eax, esi
jmp 0x1800a7637
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.1800b7ab0
mov rcx, rbp
call fcn.1800b7b30
test eax, eax
je 0x1800a7635
mov edx, 5
mov rcx, rbx
call fcn.1800a74f0
mov eax, Ordinal_46
jmp 0x1800a7637