joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053c20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.1400f67f0
sub rsp, rax
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
call fcn.1400f8c20
mov dword [rsp + 0x44], eax
mov edx, 1
mov dword [rsp + 0x13c4], 0xffffffff
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x140053c60
mov dword [rsp + 0x40], 0x270
mov ebx, 0xa
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.140008800
mov ecx, eax
imul rax, rcx, 0x191
cmp eax, 0xfe
ja 0x140053cca
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140008800
mov ecx, eax
imul rax, rcx, 0x191
cmp eax, 0xff
jb 0x140053cb0
shr rax, 0x20
lea rcx, [rsp + 0x40]
add eax, 0x80000000
xor eax, 0x80000000
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140008800
mov ecx, eax
imul rax, rcx, 0x2bd
cmp eax, 0x245
ja 0x140053d1a
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.140008800
mov ecx, eax
imul rax, rcx, 0x2bd
cmp eax, 0x246
jb 0x140053d00
mov rdx, qword [0x140244f78]
shr rax, 0x20
add eax, 0x80000000
movss dword [rsp + 0x28], xmm1
xor eax, 0x80000000
cmp rdx, qword [0x140244f80]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x24], xmm0
je 0x140053d62
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x140244f78], 8
movsd qword [rsp + 0x24], xmm0
jmp 0x140053d73
lea r8, [rsp + 0x24]
lea rcx, [0x140244f70]
call fcn.140053ff0
lea rcx, [rsp + 0x40]
call fcn.140008800
sar eax, 0x1f
lea rcx, [rsp + 0x40]
and eax, 2
dec eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140008800
mov rdx, qword [0x140244f90]
sar eax, 0x1f
and eax, 2
dec eax
movss dword [rsp + 0x30], xmm1
cmp rdx, qword [0x140244f98]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
je 0x140053dd8
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x140244f90], 8
movsd qword [rsp + 0x2c], xmm0
jmp 0x140053de9
lea r8, [rsp + 0x2c]
lea rcx, [0x140244f88]
call fcn.140053ff0
lea rcx, [rsp + 0x40]
call fcn.140008800
mov rdx, qword [0x140244fa8]
shr eax, 0x1f
add eax, 0x80000003
btc eax, 0x1f
cmp rdx, qword [0x140244fb0]
mov dword [rsp + 0x20], eax
je 0x140053e1f
mov dword [rdx], eax
add qword [0x140244fa8], 4
jmp 0x140053e30
lea r8, [rsp + 0x20]
lea rcx, [0x140244fa0]
call fcn.140053e60
sub rbx, 1
jne 0x140053c90
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0x13e0
pop rbx
ret
Function at 0x140056730
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140056754
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400567e2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400567b0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400567b0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14012d7f0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400567cd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400567d5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140056771
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400568c0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400567f9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400567fb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14005682d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14012d7f0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400568bd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140056868
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14005689e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140104c24
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400568bd
cmp rsi, rax
ja 0x140056871
test rsi, rsi
je 0x1400568bd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140104c24
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14006c310
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14006c39b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.140089c20
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14006c33d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140081b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140081bdb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x2733
jne 0x140081b8e
mov dword [rsp + 0x30], 1
jmp 0x140081b96
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x140081ba7
mov dword [rsp + 0x34], 0
jmp 0x140081baf
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x2c], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140081bd4
mov eax, 0x51
jmp 0x140081bea
mov eax, gethostname
jmp 0x140081bea
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x20]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
test eax, eax
jne 0x140081df6
xor eax, eax
test eax, eax
jne 0x140081dfc
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x188]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax*8 + 0x1e8]
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x180]
call fcn.140082430
test eax, eax
je 0x140081e65
mov rax, qword [rsp + 0x1a0]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140081f1d
xor r9d, r9d
mov r8d, dword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140081f18
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x2733
jne 0x140081ecd
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0x51
jmp 0x140081f18
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
call fcn.1400a5e90
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x180]
call fcn.140081860
mov rax, qword [rsp + 0x180]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xdec], ecx
mov rax, qword [rsp + 0x1a0]
mov dword [rax], gethostname
mov rax, qword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f66ec
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0x170
pop rdi
ret
Function at 0x140082430
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1e8]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x230]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x418]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x140082600
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x140081c00]
cmp qword [rcx + rax*8 + 0x210], rdx
jne 0x140082600
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400824e3
cmp qword [rsp + 0x30], 0
je 0x140082600
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14009eb50
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
je 0x140082600
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x140082600
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140082593
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x734]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [section..data]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14008256b
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140082602
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400825f3
xor eax, eax
test eax, eax
jne 0x14008259e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x1400825f1
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x140082600
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140083ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov eax, Ordinal_27
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x280]
test eax, eax
je 0x140083f1e
mov rcx, qword [rsp + 0x50]
call fcn.140074d70
test eax, eax
jne 0x140083f1c
xor al, al
jmp 0x140083f74
jmp 0x140083f72
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x1e8], 0xffffffffffffffff
jne 0x140083f3d
xor al, al
jmp 0x140083f74
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140083f72
xor al, al
jmp 0x140083f74
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f66ec
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x140083fa0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_27
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x140243310], 0
jne 0x140084021
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400dc290
movzx eax, al
test eax, eax
je 0x140084017
mov dword [0x140243310], 2
jmp 0x140084021
mov dword [0x140243310], 1
cmp dword [0x140243310], 2
jne 0x14008402c
jmp 0x14008408a
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140084064
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x140084064
jmp 0x14008408a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f66ec
add rsp, 0x90
pop rdi
ret
Function at 0x140084360
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
lea rdi, [rsp + 0x20]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x220]
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov dword [rsp + 0x1e4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.14012d430
lea r8, [rsp + 0x1e4]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14008442e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x1f4], eax
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x1f4]
call fcn.1400a5e90
mov r9, rax
mov r8d, dword [rsp + 0x1f4]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.140081860
jmp 0x14008449f
mov r9, qword [rsp + 0x238]
mov r8, qword [rsp + 0x230]
mov edx, dword [rsp + 0x1e4]
lea rcx, [rsp + 0x150]
call fcn.140083d20
movzx eax, al
test eax, eax
jne 0x14008449f
call fcn.140101e08
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rax]
call fcn.1400a5e90
mov qword [rsp + 0x200], rax
call fcn.140101e08
mov rcx, qword [rsp + 0x200]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.140081860
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f66ec
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0x210
pop rdi
ret
Function at 0x140084be0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xb44]
test eax, eax
je 0x140084c3d
mov dword [rsp + 0xc0], 1
jmp 0x140084c48
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140084c9e
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0xe0]
call fcn.140081720
jmp 0x140084d76
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa4]
call fcn.140086340
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa8]
call fcn.140086340
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ntohs
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140084d76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0xe0]
call fcn.140081720
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f66ec
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0xd0
pop rdi
ret
Function at 0x140086120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400861c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400a5e90
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.140081720
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f66ec
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0x180
pop rdi
ret

Function at 0x1400864b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140086310
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.1401159e0
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140086a10
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x140086ae7
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x140086a8d
mov eax, 2
jmp 0x140086b9f
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140086ad7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140086ae7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x140086b9f
call fcn.1400ddda0
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x140086b09
mov eax, dword [rsp + 0x1f8]
jmp 0x140086b9f
lea rcx, str.iphlpapi.dll
call fcn.140086c40
mov qword [0x140243320], rax
cmp qword [0x140243320], 0
je 0x140086b5c
lea rdx, str.if_nametoindex
mov rcx, qword [0x140243320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x140086b5c
mov rax, qword [rsp + 0x200]
mov qword [0x140243318], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400dc290
movzx eax, al
test eax, eax
je 0x140086b89
mov byte [0x140245078], 1
jmp 0x140086b90
mov byte [0x140245078], 0
lea rcx, [0x140245080]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f66ec
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400f5cb0
add rsp, 0x220
pop rdi
ret
Function at 0x140086c40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140086c7d
xor eax, eax
jmp 0x140086e19
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x140235814]
mov rcx, qword [rsp + 0x70]
call fcn.14010f030
test rax, rax
je 0x140086ce9
cmp qword [rsp + 0x28], 0
je 0x140086cca
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x140086cda
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x140086e14
cmp qword [rsp + 0x28], 0
je 0x140086d23
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140086d23
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x140086e14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140086e14
mov rcx, qword [rsp + 0x70]
call fcn.14010e470
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [section..data]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140086e09
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140086e09
mov rcx, qword [rsp + 0x48]
call fcn.14010e470
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x140235838]
mov rcx, rax
call fcn.14010e920
mov rcx, qword [rsp + 0x48]
call fcn.14010e470
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.14010e920
cmp qword [rsp + 0x28], 0
je 0x140086def
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x140086dff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [fcn.1401020f8]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x14008e190
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14008e231
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f66ec
add rsp, 0xa0
pop rdi
ret