joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d3f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rbp
mov r8d, ebx
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x78], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x14003d47c
mov dword [rsp + 0x40], 0x2746
jmp 0x14003d48c
cmp ecx, 0x4d2
jne 0x14003d49e
mov dword [rsp + 0x40], 0x274d
call fcn.140198620
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test edi, edi
je 0x14003d4a7
or eax, 0xffffffff
jmp 0x14003d4c1
mov dword [rsp + 0x40], ebp
call fcn.140198620
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x78]
movups xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14003d5f0
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 esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x14003d664
or rax, rdi
jmp 0x14003d6ac
cmp esi, 0x17
jne 0x14003d68e
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.140198620
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003d6d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14003d71f
mov dword [rsp + 0x20], 0x2719
call fcn.140198620
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
or eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x40], rbp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8, rsi
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebp, eax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test ebp, ebp
js 0x14003d78e
mov dword [rsp + 0x20], 0
call fcn.140198620
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
cmp dword [rsi], 0
je 0x14003d78b
or byte [rdi], 1
jmp 0x14003d78e
and byte [rdi], 0xfc
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003d7b0
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
mov rbx, r9
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test rsi, rsi
jne 0x14003d83c
test rdi, rdi
jne 0x14003d83c
test rbx, rbx
jne 0x14003d83c
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14003d861
mov eax, 0x10624dd3
imul dword [r8 + 4]
imul eax, dword [r8], 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.140198620
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
xor eax, eax
jmp 0x14003d8bd
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14003d861
cmp dword [r8], 0
jne 0x14003d861
mov eax, dword [r8 + 4]
dec eax
cmp eax, 0x3e6
ja 0x14003d861
mov dword [r8 + 4], 0x3e8
mov qword [rsp + 0x20], r8
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x78]
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test edi, edi
js 0x14003d8bb
mov dword [rsp + 0x30], 0
call fcn.140198620
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003d8e0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14003d929
mov dword [rsp + 0x30], 0x2719
call fcn.140198620
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x14003d9bd
mov qword [rsp + 0x298], rbp
xor ecx, ecx
xor ebp, ebp
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x14003d995
jle 0x14003d9ab
mov dword [rsp + 0x30], ebp
call fcn.140198620
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x14003d9e0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14003da29
mov dword [rsp + 0x30], 0x2719
call fcn.140198620
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x14003dabc
mov qword [rsp + 0x298], rbp
xor ecx, ecx
xor ebp, ebp
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.140198620
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x14003da94
jle 0x14003daaa
mov dword [rsp + 0x30], ebp
call fcn.140198620
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x278
pop rdi
pop rbx
ret
Function at 0x14003e510
Capabilities:
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.140198620
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x40], 2
cmp rcx, 0xffffffffffffffff
je 0x14003e54b
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14003cc50
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003e567
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14003cc50
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x30
pop rbx
jmp fcn.14003dc30
cmp edx, 2
jne 0x14003ec2e
add rcx, 0x58
jmp 0x14003e510
ret

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

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x60]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x40], 1
call fcn.140198620
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
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.140198620
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14003e605
cmp eax, 0x4d2
jne 0x14003e60a
call fcn.140198620
test ebx, ebx
jne 0x14003e613
call fcn.140198620
add rsp, 0x50
pop rbx
ret
Function at 0x14003e620
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, 0x470
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x50], rax
mov rsi, rcx
call fcn.140198620
mov rbx, qword [rsi]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rbp
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x40], ebp
lea r8d, [rbp + 1]
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.140198620
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14003e6bc
cmp eax, 0x4d2
jne 0x14003e6c1
call fcn.140198620
test ebx, ebx
je 0x14003e6ca
or eax, 0xffffffff
jmp 0x14003e6d3
call fcn.140198620
mov eax, dword [rsp + 0x40]
test eax, eax
setg dil
cmp eax, 0x400
jne 0x14003e751
mov rbx, qword [rsi]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea r9, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x40], ebp
mov rcx, rbx
mov dword [rsp + 0x44], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.140198620
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14003e739
cmp eax, 0x4d2
jne 0x14003e73e
call fcn.140198620
test ebx, ebx
jne 0x14003e751
call fcn.140198620
cmp dword [rsp + 0x40], 0x400
je 0x14003e6e0
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401aad60
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003ec20
Capabilities:
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.140198620
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x40], 2
cmp rcx, 0xffffffffffffffff
je 0x14003e54b
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14003cc50
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003e567
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14003cc50
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x30
pop rbx
jmp fcn.14003dc30
cmp edx, 2
jne 0x14003ec2e
add rcx, 0x58
jmp 0x14003e510
ret
Function at 0x14003f7c0
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 0x14003f7fa
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.14003c750
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14003f822
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.14003c750
xor eax, eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x80]
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]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x58]
je 0x14003f8a1
cmp eax, 0x3e5
je 0x14003f8a1
mov r9d, dword [rsp + 0x50]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14003c750
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14003c6b0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14003f8c0
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 0x14003f8fd
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x50
pop rbx
jmp fcn.14003c750
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14003f925
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x50
pop rbx
jmp fcn.14003c750
mov eax, dword [rsp + 0x80]
lea r9, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], edx
mov r8d, r10d
mov qword [rsp + 0x68], rsi
mov rdx, r11
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x90]
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 0x14003f981
mov eax, 0x2746
jmp 0x14003f98e
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x68]
je 0x14003f9bd
cmp eax, 0x3e5
je 0x14003f9bd
mov r9d, dword [rsp + 0x60]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14003c750
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14003c6b0
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
Function at 0x14003feb0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14003c650
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x14003ff23
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003ffa0
cmp eax, 0xb7
jne 0x14003ff36
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x14003ff6f
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14003ff6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14003ffa0
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14003ffa0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401aad60
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x14005e5d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14005e604
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14005e5f0
ret
Function at 0x1400681b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x100
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, r9
mov rbx, r8
mov rbp, rcx
test rcx, rcx
je 0x140068341
test rbx, rbx
jne 0x1400681ed
test r9, r9
jne 0x140068341
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xc8
call sub.VCRUNTIME140.dll_memset
cmp rdi, 0x88
jb 0x140068304
mov qword [rsp + 0x128], rsi
movabs rax, 0xf0f0f0f0f0f0f0f1
mul rdi
mov rsi, rdx
shr rsi, 7
nop dword [rax + rax]
xor eax, eax
lea rcx, [rbx + 0x87]
lea rdx, [rsp + 0x20]
cmp rdx, rcx
ja 0x140068250
lea rcx, [rsp + 0xa7]
cmp rcx, rbx
jae 0x1400682a8
lea rcx, [rsp + 0x20]
mov rdx, rbx
sub rdx, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rsp + rax + 0x20]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rsp + rcx + 0x20]
lea rcx, [rdx + rax]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax + 0x20], xmm1
movdqu xmm0, xmmword [rsp + rax + 0x30]
movdqu xmm1, xmmword [rsp + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax + 0x30], xmm1
add rax, 0x20
cmp rax, 0x80
jb 0x140068260
cmp rax, 0x88
jae 0x1400682da
lea rcx, [rsp + 0x20]
mov r8, rbx
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor byte [rdx], cl
cmp rax, 0x88
jb 0x1400682c0
lea rcx, [rsp + 0x20]
call fcn.140067c00
add rbx, 0x88
sub rdi, 0x88
sub rsi, 1
jne 0x140068230
mov rsi, qword [rsp + 0x128]
xor byte [rsp + rdi + 0x20], 1
lea rcx, [rsp + 0x20]
xor byte [rsp + 0xa7], 0x80
mov r8, rdi
mov rdx, rbx
call fcn.14003c3b0
lea rcx, [rsp + 0x20]
call fcn.140067c00
movaps xmm0, xmmword [rsp + 0x20]
xor eax, eax
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm1
jmp 0x140068344
or eax, 0xffffffff
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x100
pop rdi
pop rbp
pop rbx
ret
Function at 0x140083510
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140083571
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14008356b
shr ax, 8
cmp al, 2
jne 0x14008356b
call fcn.140088520
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401aad60
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.1401aad60
add rsp, 0x1d8
ret

Function at 0x140087f50
Capabilities:
Convert ip address from string

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea r8, [rsp + 0x20]
mov rdx, rcx
mov ecx, 2
call sub.WS2_32.dll_inet_pton
test eax, eax
jne 0x140087fa5
lea r8, [rsp + 0x28]
mov rdx, rbx
lea ecx, [rax + 0x17]
call sub.WS2_32.dll_inet_pton
test eax, eax
jne 0x140087fa5
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x40
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x40
pop rbx
ret
Function at 0x140091690
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x498], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400917c1
test rax, rax
je 0x1400917c1
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400917c1
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x14009171b
sub ecx, 1
je 0x14009170b
sub ecx, 1
je 0x140091722
cmp ecx, 1
je 0x140091712
jmp 0x1400917c1
lea r9, str.Header
lea rax, [0x1401c0ee8]
jmp 0x140091729
lea r9, str.Header
lea rax, [0x1401c0ee0]
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.14009c9a0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140091752
mov r10, qword [rdi + 0x2b8]
test r10, r10
je 0x140091789
mov rax, qword [rdi + 0x208]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1400917c1
jmp 0x1400917d1
mov r9, qword [rdi + 0x200]
lea rcx, [0x1401c0e10]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x200]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140091ff0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
movsxd rcx, ecx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140091afe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
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 0x140091d00
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x1d8]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x1d0]
call fcn.140091ef0
movsxd rcx, ebx
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140091da0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140091d74
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x140091daa
mov edx, ebx
mov rcx, r14
call fcn.1400a3900
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400917f0
mov rax, qword [r14]
mov dword [rax + 0x889c], ebx
mov eax, 0x37
jmp 0x140091da2
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret