joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180073554
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp qword [rdx + 0x18], 8
jb 0x18007355e
mov rdx, qword [rdx]
jmp 0x180073564
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0x60]
mov rsi, rdx
mov edi, ebp
mov rax, qword [rbx + 0x68]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x180073650
mov rdx, qword [rcx + rdi*8]
lea rcx, [rsp + 0x20]
add rdx, 0x28
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
call fcn.180015618
mov rax, qword [rbx + 0x60]
mov rcx, qword [rax + rdi*8]
add rcx, 0x28
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], bp
jne 0x1800735d5
cmp qword [rcx + 0x18], 8
mov rax, qword [rcx + 0x10]
jb 0x1800735ec
mov rcx, qword [rcx]
cmp rax, rdx
jne 0x18007362b
mov r9, rsi
test rax, rax
je 0x180073674
movzx edx, word [rcx]
movzx r8d, word [rsi]
cmp dx, r8w
jb 0x18007362b
sub rcx, rsi
cmp dx, r8w
ja 0x18007362b
cmp rax, 1
je 0x180073674
add r9, 2
dec rax
movzx edx, word [rcx + r9]
movzx r8d, word [r9]
cmp dx, r8w
jae 0x18007360d
lea rcx, [rsp + 0x20]
call fcn.180001c54
mov rcx, qword [rbx + 0x60]
inc rdi
mov rax, qword [rbx + 0x68]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x1800735a9
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180081ff0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rbx + 0x60]
lea rcx, [rsp + 0x20]
mov rbx, qword [rax + rdi*8]
call fcn.180001c54
mov rax, rbx
jmp 0x180073652
Function at 0x180077e80
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rcx
movdqa xmm0, xmmword [0x1800f3ff0]
movdqu xmmword [rsp + 0x58], xmm0
xor ebp, ebp
mov word [rsp + 0x48], bp
test dl, dl
je 0x180077f71
lea rdi, [rcx + 0x120]
cmp qword [rdi + 0x10], rbp
jne 0x180078006
lea rbx, [rcx + 0xf8]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180077ef6
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r8d, eax
cmp eax, 0xffffffff
jne 0x180077f26
cmp qword [rbx + 0x18], 0x10
jb 0x180077f0e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180077f71
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov r8d, dword [rcx]
test r8d, r8d
je 0x180077f71
movzx edx, word [rsi + 0xf4]
mov r10d, r8d
shr r10d, 0x18
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
movzx r9d, al
movzx r8d, r8b
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d:_d
mov rcx, rdi
call fcn.18006c744
jmp 0x180078006
lea rdi, [rsi + 0x20]
cmp qword [rdi + 0x10], rbp
jne 0x180078006
lea rdx, [rsi + 0xf8]
cmp qword [rdx + 0x18], 0x10
jb 0x180077f90
mov rdx, qword [rdx]
lea rcx, [rsp + 0x68]
call fcn.18006a520
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x180077fd3
lea rcx, [rsp + 0x48]
call fcn.180001c54
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1800a0bc0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rcx, [rsp + 0x68]
call fcn.180001c54
movzx r9d, word [rsi + 0xf4]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rdx, str._s:_d
mov rcx, rdi
call fcn.18006c744
nop
lea rcx, [rsp + 0x48]
call fcn.180001c54
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18007ac10
Capabilities:
Connect pipe

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rbx, r8
mov r14, rcx
mov rsi, qword [rdx]
xor edi, edi
test rsi, rsi
jne 0x18007ac49
or eax, 0xffffffff
jmp 0x18007ad77
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8b, 1
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.18006d90c
nop
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rbp - 0x28]
call fcn.1800a10b0
lea rcx, [rbp - 0x48]
call fcn.18006db08
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18007ad67
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18007ad67
cmp eax, 0x3e5
je 0x18007acb6
or edi, 0xffffffff
jmp 0x18007ad6c
test rbx, rbx
je 0x18007aceb
lea rcx, [rbp - 0x48]
call fcn.18006db08
mov qword [rbp - 0x38], rax
mov rcx, rbx
call fcn.18006db08
mov qword [rbp - 0x30], rax
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x18007ad17
mov edx, 7
mov rcx, qword [r14 - 0x70]
call fcn.180073a74
mov rcx, rax
call fcn.180073230
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.18006db08
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
test eax, eax
je 0x18007ad3d
sub eax, 1
je 0x18007ad35
cmp eax, 0x101
je 0x18007ad35
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x18007acae
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x18007ad6c
mov dword [rbp + 0x28], edi
xor r9d, r9d
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18007ad67
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18007ad67
mov rcx, qword [rsi]
jmp 0x18007ad2a
mov edi, 1
lea rcx, [rbp - 0x48]
call fcn.18006dad4
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180085c7c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180085c8f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800862a8
lea rdx, [0x1801126f0]
lea rcx, [rsp + 0x20]
call fcn.1800a12e0
int3

Function at 0x1800906cc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18011b968]
xor edx, edx
jmp fcn.180085c7c

Function at 0x18009109c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18011b968]
jmp fcn.180085c7c

Function at 0x18009d010
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18009d0d0]
mov r9, qword [r9 + 8]
jmp fcn.18008e034
Function at 0x18009d0a4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18009d0e0]
mov r9, qword [r9 + 8]
jmp fcn.18008e034

Function at 0x1800b414c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1800b3fbc

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x80]
cmp rcx, 0xffffffffffffffff
jne 0x1800c5321
mov edx, dword [rbx + 0x78]
xor r8d, r8d
mov ecx, edx
sub ecx, 1
je 0x1800c5300
cmp ecx, 1
jne 0x1800c5306
lea r8d, [rcx + 0x10]
jmp 0x1800c5306
mov r8d, 6
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x80], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1800c5356
cmp byte [rbx + 0x88], 0
je 0x1800c5339
mov rcx, rbx
call fcn.1800c5808
mov rcx, qword [rbx + 0x80]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800c5370
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x7c], eax
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180081ff0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x80]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1800c5356
cmp dword [rbx + 0x78], 2
movups xmm0, xmmword [rsp + 0x28]
movdqu xmmword [rbx + 0x34], xmm0
jne 0x1800c53a8
mov byte [rbx + 0x31], 1
mov al, 1
jmp 0x1800c5358

Function at 0x1800c53ec
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, dl
lea r8, [rsp + 0x38]
xor eax, 1
mov rbx, rcx
mov rcx, qword [rcx + 0x80]
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1800c5428
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x7c], eax
xor al, al
jmp 0x1800c542a
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800c5430
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x170
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx ebp, r8w
mov rsi, rdx
mov rbx, rcx
cmp byte [rcx + 0x30], 0
jne 0x1800c5470
xor al, al
jmp 0x1800c55e1
mov r15d, 2
cmp qword [rcx + 0x80], 0xffffffffffffffff
jne 0x1800c5498
lea edx, [r15 - 1]
lea r8d, [r15 + 4]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x80], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800c556c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1800c5563
call fcn.180070d74
mov r9d, 1
mov r8, qword [rax]
mov edx, r15d
lea rcx, [rsp + 0x28]
call fcn.1800258dc
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtSocket::Connect:_Unknown_hostname_
mov rcx, rbx
call fcn.1800267a0
mov rdx, rsi
lea rcx, [rsp + 0x140]
call fcn.18006a520
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1800c550c
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.18006e008
mov edx, 0x27
mov rcx, rbx
call fcn.180025358
nop
lea rcx, [rsp + 0x140]
call fcn.180001c54
nop
lea rcx, [rsp + 0xd0]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xd0]
call fcn.180080104
nop
jmp 0x1800c5469
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
mov edi, dword [rdx]
mov esi, reloc.WS2_32.dll_recv
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.1800a10b0
mov word [rsp + 0x130], r15w
mov dword [rsp + 0x134], edi
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x132], ax
mov r8d, esi
lea rdx, [rsp + 0x130]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800c55db
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [rbx + 0x80], 0xffffffffffffffff
jmp 0x1800c5469
mov byte [rbx + 0x31], 1
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180081ff0
add rsp, 0x170
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800c5600
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x1d0
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x18011c75c]
mov rdi, rcx
mov r14d, 2
test eax, eax
jne 0x1800c5669
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800c5650
xor al, al
jmp 0x1800c5673
movzx eax, word [rsp + 0x20]
cmp al, r14b
jne 0x1800c567c
shr ax, 8
cmp al, r14b
jne 0x1800c567c
mov eax, dword [0x18011c75c]
inc eax
mov dword [0x18011c75c], eax
mov al, 1
mov byte [rdi + 0x30], al
test al, al
je 0x1800c56ee
jmp 0x1800c5684
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1800c564c
and qword [rdi + 0x10], 0
lea rcx, [rdi + 0x34]
or qword [rdi + 0x80], 0xffffffffffffffff
xor edx, edx
mov byte [rdi + 0x31], 0
lea r8d, [rdx + 0x10]
call fcn.1800a10b0
and dword [rdi + 0x38], 0
mov word [rdi + 0x34], r14w
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
lea rcx, [rdi + 0x44]
mov dword [rdi + 0x8c], eax
lea r8d, [rdx + 0x10]
call fcn.1800a10b0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
call fcn.180070d74
mov rcx, rax
call fcn.1800252d0
mov r9, rax
lea r8, str.Couldnt_initialize_sockets.
mov edx, 1
mov rcx, qword [rax]
mov rax, qword [rcx + 0x38]
mov rcx, r9
call qword [case.0x1800597b4.0]
or ecx, 0xffffffff
call fcn.1800b414c
int3

Function at 0x1800c57a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov r8d, r9d
xor edx, edx
mov rbx, rcx
call fcn.1800c5aa4
test eax, eax
jns 0x1800c57cc
or rax, 0xffffffffffffffff
jmp 0x1800c57f6
jne 0x1800c57d2
xor eax, eax
jmp 0x1800c57f6
lfence
mov rcx, qword [rbx + 0x80]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
or rcx, 0xffffffffffffffff
test eax, eax
cmove eax, ecx
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c5808
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov byte [rcx + 0x88], 1
mov rcx, qword [rcx + 0x80]
mov byte [rsp + 0x40], 1
cmp rcx, 0xffffffffffffffff
je 0x1800c585a
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 1
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1800c585a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x7c], eax
xor al, al
jmp 0x1800c585c
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1800c5864
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
xor edi, edi
lea rcx, [rax - 0x28]
mov ebp, r9d
mov rbx, r8
mov rsi, rdx
call fcn.180071474
mov r14b, 1
jmp 0x1800c591b
jle 0x1800c58a9
add edi, eax
cdqe
sub rbx, rax
add rsi, rax
jmp 0x1800c58ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800c5955
test rbx, rbx
je 0x1800c5939
mov r8d, ebp
test r14b, r14b
jne 0x1800c5905
test ebp, ebp
js 0x1800c5905
lea rcx, [rsp + 0x50]
call fcn.180071474
mov rcx, qword [rsp + 0x50]
movabs rax, 0x346dc5d63886594b
sub rcx, qword [rsp + 0x20]
mov r8d, ebp
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
sub r8d, edx
test r8d, r8d
jle 0x1800c5939
mov dl, 1
mov rcx, r15
call fcn.1800c5aa4
xor r14b, r14b
test eax, eax
js 0x1800c5955
je 0x1800c5939
lfence
mov rcx, qword [r15 + 0x80]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x1800c589b
movsxd rax, edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
or rax, 0xffffffffffffffff
jmp 0x1800c593c

Function at 0x1800c595c
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x1800c5990
mov rcx, qword [rdx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800c59fc
cmp qword [rbx + 0x18], 0x10
jb 0x1800c59a7
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18006a520
lea rbx, [rdi + 0x58]
mov rsi, rax
cmp rbx, rax
je 0x1800c59ea
mov rcx, rbx
call fcn.180001c54
mov r8d, 0x20
mov rdx, rsi
mov rcx, rbx
call fcn.1800a0bc0
xor ebx, ebx
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
lea rcx, [rsp + 0x20]
call fcn.180001c54
mov dword [rdi + 0x38], ebp
jmp 0x1800c5a7e
cmp qword [rbx + 0x18], 0x10
jb 0x1800c5a06
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x1800c5a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x7c], eax
xor al, al
jmp 0x1800c5a80
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.18006a520
lea rbp, [rdi + 0x58]
mov r14, rax
cmp rbp, rax
je 0x1800c5a68
mov rcx, rbp
call fcn.180001c54
mov r8d, 0x20
mov rdx, r14
mov rcx, rbp
call fcn.1800a0bc0
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], 7
mov word [r14], bx
lea rcx, [rsp + 0x20]
call fcn.180001c54
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rdi + 0x38], eax
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800c5aa4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov ebx, r8d
mov dil, dl
mov rsi, rcx
mov r14d, 0x208
mov r8d, r14d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1800a10b0
mov r8d, r14d
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.1800a10b0
mov rax, qword [rsi + 0x80]
lea r9, [rbp + 0x150]
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov qword [rbp + 0x158], rax
mov ecx, ebx
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 1
imul ebx
mov dword [rbp + 0x150], 1
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
lea rdx, [rsp + 0x40]
sub ecx, eax
imul eax, ecx, 0x3e8
lea rcx, [rsp + 0x30]
test ebx, ebx
cmovs rcx, r14
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x34], eax
mov al, dil
neg al
lea rax, [rsp + 0x40]
sbb r8, r8
and r8, rax
test dil, dil
cmovne rdx, r14
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1800c5bcc
cmp eax, 0xffffffff
je 0x1800c5bc9
mov rcx, qword [rsi + 0x80]
lea rdx, [rbp + 0x150]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800c5bc2
mov rcx, qword [rsi + 0x80]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800c5bc9
mov eax, 1
jmp 0x1800c5bcc
or eax, 0xffffffff
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800c60cc
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], 0
mov rcx, rbx
call fcn.180080738
test eax, eax
jne 0x1800c633d
mov byte [rsp + 0x38], 1
mov rax, qword [rdi + 8]
cmp qword [rax + 0x50], 0
je 0x1800c6147
mov rcx, rbx
call fcn.18008075c
test eax, eax
jne 0x1800c6345
jmp 0x1800c6316
add rax, 0x64
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x1800c6370]
xor edx, edx
xor ecx, ecx
call fcn.1800b075c
mov rcx, qword [rdi + 8]
mov qword [rcx + 0x50], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1800c630a
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1800c622f
call fcn.180070d74
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800258dc
nop
lea rsi, [rax + 0x10]
lea rdx, str.SetThreadPriority_failed:
mov rcx, rsi
call fcn.1800267a0
lea rcx, [rsp + 0x158]
call fcn.1800710b0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1800c61de
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.18006e008
nop
lea rcx, [rsp + 0x158]
call fcn.180001c54
nop
lea rcx, [rsp + 0xf8]
call fcn.180025878
nop
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.180080104
nop
jmp 0x1800c6236
lea rsi, vtable.std::ios_base.0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1800c62ea
call fcn.180070d74
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800258dc
nop
lea rdi, [rax + 0x10]
lea rdx, str.ResumeThread_failed:
mov rcx, rdi
call fcn.1800267a0
lea rcx, [rsp + 0x158]
call fcn.1800710b0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1800c6297
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.18006e008
nop
lea rcx, [rsp + 0x158]
call fcn.180001c54
nop
lea rcx, [rsp + 0xf8]
call fcn.180025878
nop
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.180080104
nop
jmp 0x1800c62dc
mov rcx, rbx
call fcn.18008075c
test eax, eax
jne 0x1800c634d
jmp 0x1800c6316
mov rax, qword [rdi + 8]
mov byte [rax + 0x60], 1
mov rax, qword [rdi + 8]
mov byte [rax + 0x61], 0
mov rcx, rbx
call fcn.18008075c
test eax, eax
jne 0x1800c6355
mov al, 1
jmp 0x1800c6318
mov rcx, rbx
call fcn.18008075c
test eax, eax
jne 0x1800c635d
xor al, al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1800802f0
nop
mov ecx, eax
call fcn.1800802f0
nop
mov ecx, eax
call fcn.1800802f0
nop
mov ecx, eax
call fcn.1800802f0
nop
mov ecx, eax
call fcn.1800802f0
int3