joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045df0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140177090]
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 0x140045e51
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140045e4b
shr ax, 8
cmp al, 2
jne 0x140045e4b
call fcn.1400561e0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140129b50
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.140129b50
add rsp, 0x1d8
ret

Function at 0x140046080
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov qword [rsp + 0x58], rbp
mov rsi, rcx
mov edi, r15d
mov ebx, r15d
mov qword [rsp + 0x60], r14
test edi, edi
jne 0x140046208
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebp, edx
shr ebp, 6
imul eax, ebp, 0x3e8
sub ecx, eax
imul r14d, ecx, 0x3e8
test rsi, rsi
je 0x1400461f7
lea rcx, [rsp + 0x24]
mov rdx, rsi
call fcn.140046e10
mov edi, eax
test eax, eax
jne 0x1400460a3
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
je 0x140046201
test eax, eax
jne 0x14004619c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
mov r9d, edx
shr r9d, 6
mov dword [rsp + 0x28], r9d
imul ecx, r9d, 0x3e8
sub r8d, ecx
sub r9d, ebp
imul eax, r8d, 0x3e8
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x28]
mov eax, 0x10624dd3
shr rcx, 0x20
sub ecx, r14d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, r9d, 0x3e8
add edx, eax
cmp edx, 0xa
jg 0x14004619c
inc ebx
cmp ebx, 2
jle 0x14004619f
cmp ebx, 0xa
jge 0x14004618d
lea ecx, [rbx - 1]
mov eax, 1
shl eax, cl
test eax, eax
je 0x14004619f
jns 0x140046192
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x14004619f
mov eax, 0x3e8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004619f
mov ebx, r15d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140048200
mov edi, eax
test eax, eax
jne 0x1400460a3
cmp dword [rsp + 0x20], r15d
jne 0x1400460a3
cmp dword [rsi], 0xbab1e
jne 0x1400460a3
mov rcx, qword [rsi + 0x20]
cmp qword [rcx + 0x18], r15
je 0x1400460a3
mov rdx, qword [rcx]
xor r8d, r8d
mov rbp, qword [rdx]
call fcn.14005aad0
test rbp, rbp
je 0x1400460a3
mov eax, dword [rbp + 0x10]
jmp 0x140046218
mov edi, 1
jmp 0x1400460a3
mov eax, 0x38
jmp 0x140046218
mov eax, 0x2b
mov ecx, 0x1b
cmp edi, 3
cmove eax, ecx
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x14004e450
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r9d, dword [rcx + 0x338]
xor edi, edi
mov rbx, rdx
test r9d, r9d
mov rbp, rcx
mov ecx, dword [rcx + 0x33c]
mov edx, edi
mov r15d, 1
mov r14, r8
cmovg edx, r15d
mov esi, 0x493e0
test ecx, ecx
jle 0x14004e49b
or edx, 2
dec edx
je 0x14004e4b6
dec edx
je 0x14004e4b2
dec edx
jne 0x14004e4b9
mov esi, ecx
cmp r9d, ecx
cmovl esi, r9d
jmp 0x14004e4b9
mov esi, ecx
jmp 0x14004e4b9
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov r9d, edx
shr r9d, 6
mov dword [rsp + 0x40], r9d
imul eax, r9d, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [rbp + 0x7d0]
mov dword [rsp + 0x44], eax
mov r8, qword [rsp + 0x40]
mov rax, rcx
shr rax, 0x20
shr r8, 0x20
sub ecx, r9d
sub r8d, eax
mov eax, 0x10624dd3
imul r8d
imul r8d, ecx, 0x3e8
mov rcx, 0xffffffffffffffff
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub r8d, edx
add esi, r8d
cmove esi, ecx
cmp dword [rbx + 0x2ac], edi
je 0x14004e53d
mov dword [r14], edi
jmp 0x14004e67a
mov rax, qword [rbx + 0xb8]
mov qword [rbx + 0xc0], rax
nop dword [rax + rax]
cmp byte [rax + rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14004e550
cmp byte [rax + rcx - 1], 0x2e
jne 0x14004e567
mov byte [rax + rcx - 1], dil
mov rcx, qword [rbx + 0xb8]
movzx eax, byte [rcx]
test al, al
je 0x14004e595
lea rcx, [rcx + 1]
and al, 0x80
jne 0x14004e586
movzx eax, byte [rcx]
test al, al
jne 0x14004e575
jmp 0x14004e595
lea rdx, str.IDN_support_not_present__cant_parse_Unicode_domains_n
mov rcx, rbp
call fcn.140052ba0
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14004e613
cmp byte [rax], dil
je 0x14004e613
lea r8, [rbx + 0xc8]
mov rcx, rbp
call fcn.14004c7b0
mov qword [rsp + 0x40], rdi
test esi, esi
js 0x14004e66c
mov r8d, dword [rbx + 0xe8]
mov rdx, qword [rbx + 0xd8]
lea r9, [rsp + 0x40]
mov rcx, rbx
call fcn.1400515a0
cmp eax, r15d
jne 0x14004e5ea
mov dword [r14], r15d
jmp 0x14004e671
cmp eax, 0xfffffffe
je 0x14004e66c
cmp qword [rsp + 0x40], rdi
jne 0x14004e671
mov r8, qword [rbx + 0xe0]
lea rdx, str.Couldnt_resolve_proxy__s
mov rcx, rbp
call fcn.140052c80
mov edi, 5
jmp 0x14004e671
mov r8d, dword [rbx + 0xec]
mov qword [rsp + 0x40], rdi
mov dword [rbx + 0xe8], r8d
test esi, esi
js 0x14004e66c
mov rdx, qword [rbx + 0xb8]
lea r9, [rsp + 0x40]
mov rcx, rbx
call fcn.1400515a0
cmp eax, r15d
je 0x14004e5e2
cmp eax, 0xfffffffe
je 0x14004e66c
cmp qword [rsp + 0x40], rdi
jne 0x14004e671
mov r8, qword [rbx + 0xc0]
lea rdx, str.Couldnt_resolve_host__s
mov rcx, rbp
call fcn.140052c80
mov edi, 6
jmp 0x14004e671
mov edi, 0x1c
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x50], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14004f1e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
mov dword [rsp + 0x30], edx
imul r8d, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r9d, r8d
imul eax, r9d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400534d0
movsd qword [rdi + 0x798], xmm0
mov rax, qword [rbx + 0x320]
test byte [rax + 0x78], 0x10
je 0x14004f263
mov dword [rsi], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov dword [rsi], ebp
mov dword [rbx + 0x300], ebp
cmp qword [rdi + 0x618], rbp
je 0x14004f2bd
mov rcx, qword [rbx + 0x350]
test rcx, rcx
je 0x14004f294
call qword [case.0x140054204.2]
mov qword [rbx + 0x350], rbp
mov rdx, qword [rdi + 0x618]
lea rcx, str.User_Agent:__s_r_n
call fcn.1400577a0
mov qword [rbx + 0x350], rax
test rax, rax
jne 0x14004f2bd
mov eax, 0x1b
jmp 0x14004f40f
mov dword [rdi + 0xc0], ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x194], rax
cmp qword [rbx + 0x1a8], 0xffffffffffffffff
jne 0x14004f324
mov dword [rbx + 0x2cc], ebp
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
call fcn.140050da0
test eax, eax
je 0x14004f3d5
jmp 0x14004f40f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400534d0
movsd qword [rdi + 0x7a0], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400534d0
mov rcx, rbx
movsd qword [rdi + 0x7a8], xmm0
mov dword [rbx + 0x2cc], 1
mov dword [rsi], 1
mov rdx, qword [rbx + 0x1a8]
call fcn.1400501e0
mov rcx, rbx
call fcn.14004c690
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x194], rax
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f680
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
xor edi, edi
mov dword [rcx + 0x2f8], edi
mov dword [rcx + 0x2c8], edi
mov dword [rbx + 0x8ac8], edi
cmp dword [rbx + 0x4e4], edi
je 0x14004f6b5
mov dword [rbx + 0x3f0], 5
jmp 0x14004f6c8
cmp dword [rbx + 0x3f0], 5
jne 0x14004f6c8
mov dword [rbx + 0x3f0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xd8], 1
mov qword [rbx + 0xb0], rdi
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0xc8], rax
mov qword [rbx + 0xd0], rax
lea rax, [rbx + 0x880]
mov qword [rbx + 0x1b0], rax
lea rax, [rbx + 0x4881]
mov qword [rbx + 0x1b8], rax
mov rax, qword [rbx + 0x870]
mov dword [rbx + 0x1d0], edi
mov qword [rbx + 0xe8], rax
xor eax, eax
mov qword [rbx + 0x85c], rax
mov qword [rbx + 0x760], rdi
mov qword [rbx + 0x758], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004f800
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140177090]
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 + 0x6e4], 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 0x14004f86f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.140052ba0
jmp 0x14004f8f8
mov eax, dword [rbx + 0x6e8]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
btr eax, 0x1f
lea r8, [rsp + 0x58]
mov r9d, recv
mov edx, 0x98000004
mov dword [rsp + 0x58], 1
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx + 0x6ec]
btr eax, 0x1f
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
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 0x14004f8f8
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.140052ba0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140129b50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400501e0
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 [0x140177090]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x14005038e
cmp dword [rcx + 0x2ac], 0
jne 0x140050386
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140050272
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400649c0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140052c80
jmp 0x14005038e
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400502c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400649c0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140052c80
jmp 0x14005038e
lea rbx, [rdi + 0xf0]
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140050130
test eax, eax
jne 0x14005030b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400649c0
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140052c80
jmp 0x14005038e
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
movups xmm1, xmmword [rbx + 0x10]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
lea rcx, [rsp + 0xb0]
movups xmmword [rdi + 0x70], xmm0
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140050130
test eax, eax
jne 0x140050386
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400649c0
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140052c80
jmp 0x14005038e
mov rcx, rdi
call fcn.140050070
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140129b50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140050890
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 + 0x524]
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 0x1400508fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.1400649c0
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.140052ba0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140052ba0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140050920
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1401d1f78]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1400509c1
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call sub.MSVCR120.dll_memset
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]
lea rcx, [rsp + 0x40]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1400509b5
mov dword [0x1401d1f78], 2
jmp 0x140050a18
mov dword [0x1401d1f78], 1
jmp 0x1400509c6
cmp eax, 2
je 0x140050a18
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 0x1400509f7
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x140050a18
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.140129b50
add rsp, 0xf0
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x868]
mov rdi, rcx
test rbx, rbx
je 0x140050fde
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x140050fde
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x60]
lea r8, [0x140050f60]
lea rdx, [rsp + 0x20]
call fcn.14005b210
cmp dword [rsp + 0x28], 0
jne 0x140050fed
mov qword [rdi + 0x868], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140051018
mov rcx, rbx
call fcn.140065f50
test eax, eax
jne 0x140051034
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r9d, 2
lea rdx, [rsp + 0x48]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140050fde
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140051e20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rbx, rcx
lea ecx, [rdx - 0x6f]
mov r12, r9
mov r15d, r8d
call qword [case.0x140054204.1]
mov esi, 8
mov r14, rax
mov qword [rbx + 0x680], rax
test rax, rax
je 0x140051f09
xor edi, edi
mov dword [rbx + 0x668], r15d
mov r9, r12
mov qword [rbx + 0x678], rdi
mov qword [rbx + 0x670], rdi
mov r8d, r15d
mov rdx, rbp
mov rcx, rax
mov qword [rax], rdi
call fcn.140051be0
test eax, eax
je 0x140051f09
mov rcx, qword [rbx + 0x660]
test rcx, rcx
je 0x140051eb8
call qword [case.0x140054204.2]
mov qword [rbx + 0x660], rdi
mov rcx, rbp
call qword [case.0x140054204.0]
mov qword [rbx + 0x660], rax
test rax, rax
je 0x140051f09
lea r9, [r14 + 0x10]
lea r8, [0x140051ca0]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.MSVCR120.dll__beginthreadex]
mov rcx, rax
dec rax
cmp rax, 0xfffffffffffffffd
cmovbe rdi, rcx
mov qword [r14], rdi
test rdi, rdi
jne 0x140051f3e
call qword [sym.imp.MSVCR120.dll__errno]
mov esi, dword [rax]
lea rcx, [rbx + 0x660]
call fcn.140051d80
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov eax, 1
jmp 0x140051f1f
Function at 0x140052d80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, 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 r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x140052e2c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140052dfb
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.1400649c0
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140052c80
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x88d4], ebx
mov dword [r14], 0x37
jmp 0x140052de5
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x140053290
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 + 0x2c8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400532d3
mov rax, qword [rcx + 0x218]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x140053318
mov r9, qword [rbx + 0x210]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14013a510]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.MSVCR120.dll_fwrite]
mov r9, qword [rbx + 0x210]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140053330
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rcx + 0x4a8], 0
mov rax, qword [rsp + 0x130]
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x14005345f
test rax, rax
je 0x14005345f
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x14005345f
mov ecx, esi
lea r9, str.Data
dec ecx
je 0x1400533b7
dec ecx
je 0x1400533a7
dec ecx
je 0x1400533be
dec ecx
je 0x1400533ae
jmp 0x14005345f
lea r9, str.Header
lea rax, [0x140177d94]
jmp 0x1400533c5
lea r9, [0x140177fe4]
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x30]
mov edx, 0xa0
mov qword [rsp + 0x20], rax
call fcn.140057690
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400533f0
mov r10, qword [rdi + 0x2c8]
test r10, r10
je 0x140053427
mov rax, qword [rdi + 0x218]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x14005345f
jmp 0x14005346f
mov r9, qword [rdi + 0x210]
mov edx, 2
lea rcx, [0x14013a510]
lea r8d, [rdx - 1]
call qword [sym.imp.MSVCR120.dll_fwrite]
mov r9, qword [rdi + 0x210]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR120.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140053290
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140129b50
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140061080
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [rsp + 0x70]
xor r14d, r14d
mov rdi, r9
mov rbp, r8
mov r15, rdx
mov r12, rcx
mov qword [r13], r14
mov rsi, qword [r12]
xor eax, eax
mov ecx, 1
mov r8d, dword [rsi + 0x338]
mov edx, dword [rsi + 0x33c]
mov ebx, 0x493e0
test r8d, r8d
cmovg eax, ecx
test edx, edx
jle 0x1400610de
or eax, 2
dec eax
je 0x1400610f9
dec eax
je 0x1400610f5
dec eax
jne 0x1400610fc
mov ebx, edx
cmp r8d, edx
cmovl ebx, r8d
jmp 0x1400610fc
mov ebx, edx
jmp 0x1400610fc
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov r10d, edx
shr r10d, 6
mov dword [rsp + 0x70], r10d
imul eax, r10d, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [rsi + 0x7d0]
mov dword [rsp + 0x74], eax
mov r8, qword [rsp + 0x70]
mov rax, rcx
shr rax, 0x20
shr r8, 0x20
sub ecx, r10d
sub r8d, eax
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, ecx, 0x3e8
sub eax, edx
add ebx, eax
je 0x1400611d6
test ebx, ebx
js 0x1400611d6
mov r9d, ebx
or r8, 0xffffffffffffffff
mov rcx, r15
call fcn.140052450
test eax, eax
jle 0x1400611d1
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400611af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400610b4
mov eax, 0x38
jmp 0x1400611db
cmp rdi, rcx
je 0x1400611c6
test eax, eax
je 0x1400611d1
sub rdi, rcx
add rbp, rcx
add r14, rcx
jmp 0x1400610b4
add rcx, r14
xor eax, eax
mov qword [r13], rcx
jmp 0x1400611db
or eax, 0xffffffff
jmp 0x1400611db
mov eax, 0x1c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret