joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e410
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ecx, ecx
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x88]
lea r8d, [rbp + 1]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rsp + 0x90]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
mov qword [rdi + 8], rbx
mov ecx, dword [rdi]
cmp ecx, 0x40
jne 0x14001e4ac
mov dword [rsp + 0x40], 0x2746
jmp 0x14001e4bc
cmp ecx, 0x4d2
jne 0x14001e4cd
mov dword [rsp + 0x40], 0x274d
call fcn.14006cb10
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
test esi, esi
je 0x14001e4e1
or eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x40], ebp
call fcn.14006cb10
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov eax, dword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001e510
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebp, ecx
xor ecx, ecx
mov rsi, r9
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov r8d, ebx
mov edx, edi
mov ecx, ebp
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rdi, rax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
cmp rdi, 0xffffffffffffffff
jne 0x14001e582
or rax, rdi
jmp 0x14001e5c8
cmp ebp, 0x17
jne 0x14001e5ac
lea r9, [rsp + 0x68]
lea edx, [rbp + 0x12]
lea r8d, [rbp + 4]
mov rcx, rdi
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.14006cb10
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001e5e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001e62e
mov dword [rsp + 0x20], 0x2719
call fcn.14006cb10
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
or eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8, rbp
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14d, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
test r14d, r14d
js 0x14001e6a3
mov dword [rsp + 0x20], 0
call fcn.14006cb10
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
cmp dword [rbp], 0
je 0x14001e6a0
or byte [rdi], 1
jmp 0x14001e6a3
and byte [rdi], 0xfc
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, r14d
mov r14, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e6c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebp, ecx
xor ecx, ecx
mov rbx, r9
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test rsi, rsi
jne 0x14001e74a
test rdi, rdi
jne 0x14001e74a
test rbx, rbx
jne 0x14001e74a
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14001e76f
mov eax, 0x10624dd3
imul dword [r8 + 4]
mov eax, dword [r8]
imul eax, eax, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x30], ebx
call fcn.14006cb10
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
xor eax, eax
jmp 0x14001e7c9
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14001e76f
cmp dword [r8], 0
jne 0x14001e76f
mov eax, dword [r8 + 4]
dec eax
cmp eax, 0x3e6
ja 0x14001e76f
mov dword [r8 + 4], 0x3e8
mov qword [rsp + 0x20], r8
mov r9, rbx
mov rdx, rsi
mov r8, rdi
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x30]
mov qword [rdi], rcx
mov qword [rdi + 8], rbx
test esi, esi
js 0x14001e7c7
mov dword [rsp + 0x30], 0
call fcn.14006cb10
mov rcx, qword [rsp + 0x30]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001f590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x20], 0
call fcn.14006cb10
mov rcx, qword [rbx]
mov byte [rsp + 0x40], 2
mov qword [rsp + 0x28], rax
cmp rcx, 0xffffffffffffffff
je 0x14001f5cb
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14001dfb0
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14001f5e7
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14001dfb0
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x30
pop rbx
jmp fcn.14001ec20
cmp edx, 2
jne 0x14001fc6e
add rcx, 0x58
jmp 0x14001f590
repz ret

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

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x60]
mov rbx, rcx
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
call fcn.14006cb10
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea r8d, [rax + 1]
mov rcx, rbx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.14006cb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14001f685
cmp eax, 0x4d2
jne 0x14001f68a
call fcn.14006cb10
test ebx, ebx
jne 0x14001f693
call fcn.14006cb10
add rsp, 0x50
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rax, [rsp + 0x70]
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0x400
mov dword [rsp + 0x58], ebp
call fcn.14006cb10
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14001e410
test eax, eax
setg dil
cmp eax, 0x400
jne 0x14001f7c2
mov qword [rsp + 0x498], rbx
nop dword [rax]
mov rbx, qword [rsi]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.14006cb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14001f779
cmp eax, 0x4d2
jne 0x14001f77e
call fcn.14006cb10
test ebx, ebx
jne 0x14001f791
call fcn.14006cb10
cmp dword [rsp + 0x40], 0x400
je 0x14001f720
mov rbx, qword [rsp + 0x498]
movzx eax, dil
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140084a30
lea r11, [rsp + 0x480]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
movzx eax, dil
jmp 0x14001f79d
Function at 0x140020720
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14002075a
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.14001d6e0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140020782
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.14001d6e0
xor eax, eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x50]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x58]
je 0x140020801
cmp eax, 0x3e5
je 0x140020801
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rdi + 8]
mov r8d, eax
mov rdx, rsi
call fcn.14001d6e0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14001d640
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x88], 0
je 0x14002085d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
add rsp, 0x50
pop rbx
jmp fcn.14001d6e0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140020885
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0x2719
add rsp, 0x50
pop rbx
jmp fcn.14001d6e0
mov eax, dword [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x90]
lea r9, [rsp + 0x60]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1400208e1
mov eax, 0x2746
jmp 0x1400208ee
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x68]
je 0x14002091d
cmp eax, 0x3e5
je 0x14002091d
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rbx + 8]
mov r8d, eax
mov rdx, rdi
call fcn.14001d6e0
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14001d640
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
Function at 0x14002e9e0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x14002ea15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084a30
add rsp, 0x68
ret
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rcx, qword [rax]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x60], rdi
or edi, 0xffffffff
test rcx, rcx
je 0x14002ea40
mov edi, dword [rcx]
mov r10d, edi
mov esi, edi
mov ebp, edi
shr r10d, 0x18
shr esi, 0x10
movzx ebx, dil
movzx eax, sil
mov dword [rsp + 0x28], r10d
shr ebp, 8
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x30]
mov r8d, ebx
movzx r9d, bpl
mov dword [rsp + 0x20], eax
call fcn.140085764
cmp ebx, 0xff
mov rbx, qword [rsp + 0x78]
je 0x14002ea9a
movzx r8d, sil
movzx edx, bpl
movzx ecx, dil
call fcn.14002e950
jmp 0x14002ea9c
xor al, al
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084a30
add rsp, 0x68
ret

Function at 0x14002ead0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
mov rbx, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x58]
mov rcx, rbx
mov edx, 0x98000004
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0xc350
mov dword [rsp + 0x60], 0xc350
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140084a30
add rsp, 0x70
pop rbx
ret
Function at 0x14002ef00
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
mov rdi, rcx
lea rdx, str.send:__s_n
mov ecx, 2
call fcn.140014e30
or r8, 0xffffffffffffffff
cmp dword [rdi + 0x1000c], 0
je 0x14002ef50
inc r8
cmp byte [rbx + r8], 0
jne 0x14002ef31
mov rcx, qword [rdi + 0x10010]
mov rdx, rbx
call fcn.140528ff1
int3
inc r8
cmp byte [rbx + r8], 0
jne 0x14002ef50
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14002efac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002efac
lea r8, str.Stratum___socket_send_failed__d__disconnect_n
mov r9d, eax
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov qword [rdi], rax
mov dword [rdi + 8], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f170
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
movzx r14d, dl
mov rbx, rcx
mov esi, edi
mov ebp, edi
mov dword [rsp + 0x30], edi
cmp qword [rcx], rsi
je 0x14002f20e
nop dword [rax]
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x14002f249
test r14b, r14b
je 0x14002f36c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x12c
jg 0x14002f233
cmp qword [rbx], rdi
jne 0x14002f1b0
mov ebp, dword [rsp + 0x30]
mov r8d, dword [rbx + 8]
lea eax, [r8 + rbp]
cmp eax, 0x2000
jbe 0x14002f289
lea rdx, str.buf_overflow:__d__d_n
mov r9d, ebp
mov ecx, 2
call fcn.140014e30
jmp 0x14002f273
lea rdx, str.checkread_timeout_n
mov ecx, 2
call fcn.140014e30
jmp 0x14002f36c
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebp, dword [rsp + 0x30]
test ebp, ebp
jne 0x14002f20e
lea rdx, str.socket_was_closed_remotely_n
lea ecx, [rbp + 2]
call fcn.140014e30
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
xor al, al
jmp 0x14002f36e
mov ecx, ebp
call fcn.140085e1c
mov r8d, ebp
mov rsi, rax
mov rdx, rax
cmp dword [rbx + 0x1000c], edi
je 0x14002f2b0
mov rcx, qword [rbx + 0x10010]
push rax
call 0x14055c843
jmp 0x14002f2bc
mov rcx, qword [rbx]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jg 0x14002f2ef
mov rcx, rsi
call fcn.140085b44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002f282
lea r8, str.Stratum___reading_socket_failed__d__disconnect_n
mov r9d, eax
mov edx, 3
xor ecx, ecx
call fcn.140015030
jmp 0x14002f273
movsxd rax, dword [rbx + 8]
lea rcx, [rbx + 0xc]
movsxd r8, ebp
add rcx, rax
mov rdx, rsi
call fcn.140084c70
add dword [rbx + 8], ebp
mov rcx, rsi
call fcn.140085b44
lea rdx, str.got__d_bytes_n
mov r8d, ebp
mov ecx, 2
call fcn.140014e30
movsxd rax, dword [rbx + 8]
lea rsi, [rbx + 0xc]
lea rdx, str.buf:__s_n
mov r8, rsi
mov ecx, 2
mov byte [rax + rbx + 0xc], dil
call fcn.140014e30
mov ecx, edi
cmp dword [rbx + 8], ecx
jle 0x14002f369
mov rax, rsi
nop
movzx edx, byte [rax]
cmp dl, 0x20
je 0x14002f35f
mov byte [rsi], dl
inc edi
inc rsi
inc ecx
inc rax
cmp ecx, dword [rbx + 8]
jl 0x14002f350
mov dword [rbx + 8], edi
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140084a30
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140034d60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
cmp dword [0x140130528], 0
mov r9, rdx
jne 0x140034e6c
cmp dword [0x14012f700], 0
jne 0x140034e6c
cmp qword [0x140128570], 0
jne 0x140034da0
lea rdx, str.df_has_empty_pool__skip_n
mov ecx, 2
add rsp, 0x28
jmp fcn.140014e30
cmp qword [0x140128578], 0x10
lea rax, [0x140128560]
cmovae rax, qword [0x140128560]
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140034dd3
inc rax
test ecx, ecx
jne 0x140034dc0
test edx, edx
jne 0x140034df5
cmp dword [0x140128580], r8d
jne 0x140034df5
lea rdx, str.df_has_same_pool__skip_n
mov ecx, 2
add rsp, 0x28
jmp fcn.140014e30
lea rdx, str.df_has_different_pool__disconnect_n
mov ecx, 2
mov qword [rsp + 0x20], rbx
call fcn.140014e30
xor ebx, ebx
cmp dword [0x140128550], ebx
je 0x140034e31
mov rcx, qword [0x1401182d8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x1401182d8], rbx
mov dword [0x1401182e0], ebx
jmp 0x140034e3d
lea rcx, [0x1401285c8]
call fcn.140026150
cmp byte [0x1401182d0], bl
je 0x140034e5b
mov byte [0x140130514], bl
mov dword [0x14012f704], ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov byte [0x14012f6fa], bl
mov dword [0x14012f6e4], ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140034f90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [0x140133a38]
mov dword [0x14012f8f4], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088d28
int3
Function at 0x140035330
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140034f30
mov rcx, qword [0x140107c10]
cmp rcx, 0xffffffffffffffff
je 0x14003534c
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088d28
int3

Function at 0x140035370
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
cmp dword [0x14012f7fc], 1
je 0x14003549b
mov rdi, qword [0x140133a38]
xor esi, esi
mov dword [0x14012f8f4], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140107c10]
cmp rcx, 0xffffffffffffffff
je 0x1400353dc
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
test rax, rax
je 0x140035486
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14008d370
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14003550c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Restarting_failed:_error__d_n
xor ecx, ecx
mov r8d, eax
call fcn.140014e30
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.Rebooting_n
xor ecx, ecx
call fcn.140014e30
call fcn.140035000
mov rdi, qword [0x140133a38]
lea rcx, [rdi + 0x38]
xor esi, esi
mov dword [0x14012f8f4], 1
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088d28
int3
lea rdx, str.Restarting_OK__exit..._n_n_n
xor ecx, ecx
call fcn.140014e30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140088d28
int3
Function at 0x140066710
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 8]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140066700]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call fcn.140089528
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14006674c
add rsp, 0x30
pop rbx
ret
mov edx, dword [rbx + 0x10]
test edx, edx
je 0x14006675c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp byte [rbx + 0xc], 0
jne 0x14006676c
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
add rsp, 0x30
pop rbx
ret