joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014280
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400143e0
sub rsp, rax
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003fb10]
test eax, eax
je 0x1400142b5
test eax, eax
jg 0x1400142fd
jmp 0x140014332
lea rdx, [0x140034426]
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400123e0
test al, al
je 0x1400143ba
lea rcx, [rsp + 0x20]
call fcn.14001a650
movsxd rcx, dword [0x14003fb10]
lea rdx, [0x140044b90]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003fb10], eax
test eax, eax
jle 0x140014332
lea rdi, [0x140044b90]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001b290
test eax, eax
je 0x14001439b
inc rbx
movsxd rax, dword [0x14003fb10]
add rdi, 8
cmp rbx, rax
jl 0x140014310
mov rcx, rsi
call fcn.14001b2c8
cmp rax, 2
jne 0x140014349
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001439d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014368
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001439d
cmp dword [0x14003fb10], 0x3ff
jg 0x14001439d
mov rcx, rsi
call fcn.14001a650
movsxd rcx, dword [0x14003fb10]
lea rdx, [0x140044b90]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003fb10], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014440
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140034426]
call fcn.1400137d0
int3

Function at 0x140014bb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014bfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014bfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014bfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014bfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140014bfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014bfc
xor al, al
add rsp, 0x28
ret
Function at 0x140019410
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019564
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400195d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400195d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400195d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400195d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400195d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400195d3
cmp dword [rcx + 0xf8], 0
je 0x1400195d3
mov ecx, ebx
call fcn.140019490
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400196f8
nop
cmp dword [rbp + 0x20], 0
je 0x140019621
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019530
int3

Function at 0x140019564
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019564
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400195d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400195d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400195d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400195d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400195d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400195d3
cmp dword [rcx + 0xf8], 0
je 0x1400195d3
mov ecx, ebx
call fcn.140019490
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400196f8
nop
cmp dword [rbp + 0x20], 0
je 0x140019621
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019530
int3

Function at 0x14001b750
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b778
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b778
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020fa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021027
mov rsi, rbx
cmp word [rax], bp
je 0x140020fe6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140020fd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140020fcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e528
mov rdi, rax
test rax, rax
je 0x140021014
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a0f0
mov rbp, rdi
xor ecx, ecx
call fcn.14001d5e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005494
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov ebp, ecx
mov r14, qword [rax + 0x18]
add r14, 0x10
mov rsi, qword [r14]
jmp 0x140005542
test rsi, rsi
je 0x14000553f
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov rdi, qword [rsi + 0x60]
xor edx, edx
and qword [rsp + 0x30], 0
mov r8, rdi
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.140005640
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14000554b
mov rcx, r15
call fcn.1400013f8
cmp eax, ebp
je 0x140005566
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x1400054c4
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsi + 0x30]
jmp 0x14000554d

Function at 0x14000556c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r15d, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x1400055e3
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400055e3
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
je 0x1400055e3
mov ebp, dword [rcx + 0x20]
xor ebx, ebx
mov edi, dword [rcx + 0x24]
add rbp, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov r14d, dword [rcx + 0x18]
add rsi, r11
test r14, r14
je 0x1400055e3
mov ecx, dword [rbp + rbx*4]
add rcx, r11
call fcn.1400013f8
cmp eax, r15d
je 0x1400055fe
inc rbx
cmp rbx, r14
jb 0x1400055ca
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [rdi + rbx*2]
mov eax, dword [rsi + rax*4]
add rax, r11
jmp 0x1400055e5

Function at 0x1400061a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400061ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400061ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400061ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400061ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400061ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400061ec
xor al, al
add rsp, 0x28
ret
Function at 0x140130000
Capabilities:
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, r12
mov qword [rsp + 0x20], r12
xchg ebp, eax
invalid
mov dword [rsp + 0x58], esi
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x118]
mov rcx, 0xffffffffffffffff
jmp 0x140131041
je 0x140130c66
nop dword [rax + rax]
movzx eax, byte [r9]
test al, al
je 0x140130f7b
movzx eax, byte [r9]
jmp 0x140130f76
xchg rsi, r12
call rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rax
xchg rcx, rbp
mov rbp, qword [rsp + 0x30]
jmp 0x140130c4b
mov r9d, 0x8000
mov qword [rbp + 0x118], rsi
lea r8, [rbp + 0x118]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x120]
call r12
mov rax, qword gs:[0x60]
jne 0x140130b5a
je 0x140130b5a
jmp rcx
jmp 0x140130f2c
movsxd rcx, dword [r10 + 0x3c]
mov r8, rax
xchg r11, rbx
mov rax, rbx
xchg r11, rbx
xchg ebx, ebx
mul r8
xchg rcx, r14
je 0x140130bdd
jne 0x140130bdd
test r13d, 0x928440c5
lea ecx, [rbp - 0x8a33]
cmp ebx, 0x5a6b5aa
popf
ror r15d, 0x74
mov r8d, 0x658b2295
rol edx, 0x41
popfq
jge 0x140130ba3
xor r8d, 0x47194e1
movabs r11, 0x4633b00000024de9
ror r11d, 0x76
lea edi, [rdx - 0x205f]
dec rbp
lea ecx, [rdi + 0xa41b]
sub ebx, 0x8f8e9aad
jmp 0x1401302da
jmp 0x140130e2f
Function at 0x14001a0a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1402d3924]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a0d9
mov rcx, qword [rax + 8]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001a020
xor ecx, ecx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001a020

Function at 0x14001a0f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1402d3924]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a11d
mov r8, qword [rax + 8]
jmp 0x14001a120
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x14001a144
test r8, r8
je 0x14001a144
cmp qword [r8], 0
jne 0x14001a144
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1401e5074
Function at 0x14001a5e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x14001a643
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400a9490
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14001a746
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14001a690
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400a9490
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14001a758
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x14001a770]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14001a705
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14001a6e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14001a6f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.1400a9490
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14001a734
test rdi, rdi
je 0x14001a721
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140019e50
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140019e50
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140019e50
int3
Function at 0x14001b450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call fcn.1400a9490
mov qword [rsp + 0x38], rax
mov rdi, qword [rdi + 0x10]
mov eax, ebx
lock xadd dword [rdi + 0x30], eax
test eax, eax
jne 0x14001b4ac
mov rcx, rdi
call fcn.14001acd0
mov dword [rsp + 0x30], ebx
call fcn.1400a9490
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x14001b542
mov qword [rsp + 0x70], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1402d3924]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402d3924]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.14001aed0
test rax, rax
je 0x14001b521
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.14001aed0
test rax, rax
jne 0x14001b500
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402d3924]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001b542
call fcn.1401e5074
cmp dword [rsp + 0x30], 0
jne 0x14001b557
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.140019e00
int3
mov rcx, qword [rcx + 0x18]
jmp 0x14001b450
Function at 0x14001b5c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x14001b6f6
test r8b, r8b
je 0x14001b648
test byte [rdx], 8
je 0x14001b648
mov dword [rsp + 0x60], r15d
call fcn.1400a9490
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.1400a9490
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14001b648
call fcn.1400a9490
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400a9490
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 0x14001b6f6
call fcn.1400a9490
cmp qword [rdi + 8], rax
jne 0x14001b691
cmp dword [rdi], 0x2733
je 0x14001b6a4
call fcn.1400a9490
cmp qword [rdi + 8], rax
jne 0x14001b6f2
cmp dword [rdi], 0x4d5
jne 0x14001b6f2
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400a9490
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x14001b70d
mov dword [rsp + 0x30], r15d
call fcn.1400a9490
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001b730
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.1400a9490
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 0x14001b7bc
mov dword [rsp + 0x40], 0x2746
jmp 0x14001b7cc
cmp ecx, 0x4d2
jne 0x14001b7de
mov dword [rsp + 0x40], 0x274d
call fcn.1400a9490
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test edi, edi
je 0x14001b7e9
mov eax, 0xffffffff
jmp 0x14001b803
mov dword [rsp + 0x40], ebp
call fcn.1400a9490
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 0x14001bba0
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.1400a9490
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.1400a9490
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14001bc15
cmp eax, 0x4d2
jne 0x14001bc1a
call fcn.1400a9490
test ebx, ebx
jne 0x14001bc23
call fcn.1400a9490
add rsp, 0x50
pop rbx
ret
Function at 0x14001c990
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
xor r14d, r14d
test rax, rax
mov rbp, rcx
mov ecx, dword [0x1402d3924]
mov rbx, r8
mov rdi, rdx
lea rsi, [rax + 0x28]
cmove rsi, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c9e4
cmp qword [rax], rsi
je 0x14001ca17
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001c9d6
mov rsi, r14
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x14001ca1d
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x14001ca1d
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x14001ca94
mov rsi, qword [rax + 8]
jmp 0x14001c9e7
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x14001ca50
mov qword [rbx + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14001ca39
mov qword [rcx + 0x20], rbx
jmp 0x14001ca3d
mov qword [rax + 0x68], rbx
mov qword [rax + 0x70], rbx
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001ca92
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
add rax, 0x78
mov qword [rbx + 0x20], r14
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001ca7b
mov qword [rcx + 0x20], rbx
jmp 0x14001ca7e
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x28]
lock inc dword [rcx + 0x30]
call fcn.14001ad40
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140028120
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402c94a0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1402d3020], eax
inc eax
cmp eax, 1
jne 0x14002816d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1402d3024], eax
test dil, dil
je 0x140028180
xor eax, eax
lock xadd dword [0x1402d3024], eax
test eax, eax
jne 0x1400281a4
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401e4940
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.1400a9490
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140019e50
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140028d54
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140028d40
ret

Function at 0x1400296d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140029707
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140029728
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002972a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140029783
test ecx, ecx
jle 0x14002975e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140029783
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140029783
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret