joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009d660
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14009d696
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x14008eac0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140030760
ud2

Function at 0x1400a2780
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400ed518]
test ecx, ecx
je 0x1400a289e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a27b7
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400a27b7
add rcx, 0x10
jmp 0x1400a2894
mov ecx, dword [0x1400ed518]
test ecx, ecx
je 0x1400a28b1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a2877
mov rdi, rax
test rax, rax
jne 0x1400a282a
movzx eax, byte [0x140167410]
mov ecx, 0x20
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x1400a28d7
mov rdi, rax
lea rax, [0x1400ed500]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400ed518]
test ecx, ecx
je 0x1400a28c4
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x1400a2847
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400a2880
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400a287b
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400a2880
xor ecx, ecx
jmp 0x1400a2894
call fcn.14009d660
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400ed500]
call fcn.14006cd10
mov ecx, eax
jmp 0x1400a2799
lea rcx, [0x1400ed500]
call fcn.14006cd10
mov ecx, eax
jmp 0x1400a27c7
lea rcx, [0x1400ed500]
call fcn.14006cd10
mov ecx, eax
jmp 0x1400a2822
mov ecx, 8
mov edx, 0x20
call fcn.140007450
ud2

Function at 0x1400dba80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400dc850
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400dc850
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400dbaf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140167494]
mov rbx, rcx
test esi, esi
jle 0x1400dbc20
mov rax, qword [0x140167498]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400dbb3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400dbbc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400dbb20
mov rcx, rbx
call fcn.1400dc570
mov rdi, rax
test rax, rax
je 0x1400dbc42
mov rax, qword [0x140167498]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400dc6b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140167498]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400dbc27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400dbbbe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400dbbd0
add dword [0x140167494], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140167498]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400dbbbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400dba80
nop dword [rax]
xor esi, esi
jmp 0x1400dbb48
mov rax, qword [0x140167498]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400dba80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400dba80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400dc1e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140167500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401674e0]
test rbx, rbx
je 0x1400dc23c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400dc233
test eax, eax
jne 0x1400dc233
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dc218
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400dc570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140159540]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400dc590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400dc598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400dc590
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400dc5ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400dc5e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400dc590
add rax, 0x28
cmp rax, r9
jne 0x1400dc5d0
xor eax, eax
ret

Function at 0x1400dc5f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140159540]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400dc60f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400dc618
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400dc60f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400dc6b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140159540]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400dc6cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400dc6d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400079e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140007a41
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140007a00
mov ecx, dword [r9]
jmp 0x140007b2b
cmp ecx, 0x4e0
jb 0x140007b2b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007a60
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007ab0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140008938
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008982
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008982
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008982
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008982
cmp dword [rcx + 0x84], 0xe
jbe 0x140008982
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008984
xor al, al
add rsp, 0x28
ret
Function at 0x140002c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [0x1413a1888]
call fcn.14005ed10
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140002cc6
mov rdx, rax
mov rcx, rbx
call fcn.140004000
nop
lea rcx, [rbx + 0x20]
call fcn.1400031d0
nop
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002cfe
mov rcx, qword [rbx]
lea rdx, [0x1413a189c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140002e3a
mov r9, rax
mov edx, 1
mov r8d, 8
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
jne 0x140002e27
cmp qword [rsp + 0x28], 0
jbe 0x140002e14
nop word [rax + rax]
mov r9, rdi
mov edx, 1
mov r8d, 8
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
jne 0x140002e27
mov r8, qword [rsp + 0x20]
cmp r8, 0x400
jae 0x140002e27
mov r9, rdi
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, qword [rsp + 0x20]
jne 0x140002e27
mov r9, rdi
mov edx, 1
mov r8d, 8
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
jne 0x140002e27
lea r8, [rsp + 0x80]
add r8, qword [rsp + 0x20]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400037e0
nop
lea r9, [rsp + 0x30]
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 0x20]
call fcn.140003920
nop
lea rcx, [rsp + 0x60]
call fcn.1400035f0
inc rsi
cmp rsi, qword [rsp + 0x28]
jb 0x140002d50
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call fcn.140002ff0
jmp 0x140002e3a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbx + 0x20]
call fcn.140003250
nop
mov rax, rbx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1413a18f8]
call fcn.14005ed10
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
xor edi, edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140005650
mov rdx, rax
mov rcx, rbx
call fcn.140004000
nop
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x60], rsi
mov qword [rsi + 0x100], rdi
mov qword [rsi + 0x108], rdi
mov byte [rsi], 0
mov dword [rsi + 0x110], edi
mov r8d, 0xff
lea rdx, [0x1413a1907]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rsi + 0xff], 0
mov rcx, rsi
call fcn.1401e25a0
nop
lea r14, [rbx + 0x138]
mov qword [rsp + 0x60], r14
mov qword [r14 + 0x100], rdi
mov qword [r14 + 0x108], rdi
mov byte [r14], 0
mov dword [r14 + 0x110], edi
mov r8d, 0xff
lea rdx, [0x1413a1907]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [r14 + 0xff], 0
mov rcx, r14
call fcn.1401e25a0
nop
lea r15, [rbx + 0x250]
mov qword [rsp + 0x60], r15
mov qword [r15 + 0x100], rdi
mov qword [r15 + 0x108], rdi
mov byte [r15], 0
mov dword [r15 + 0x110], edi
mov r8d, 0xff
lea rdx, [0x1413a1907]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [r15 + 0xff], 0
mov rcx, r15
call fcn.1401e25a0
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140005750
mov rcx, qword [rbx]
lea rdx, [0x1413a189c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140005812
mov r9, rax
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx r8d, byte [rsp + 0x58]
mov r9, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
call fcn.1401e25a0
mov r9, rdi
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx r8d, byte [rsp + 0x58]
mov r9, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r14
call fcn.1401e25a0
mov r9, rdi
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx r8d, byte [rsp + 0x58]
mov r9, rdi
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r15
call fcn.1401e25a0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rax, rbx
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbx, rcx
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140006915
vpxor xmm0, xmm0, xmm0
lea rdx, [0x1413a189c]
mov rcx, rbx
vmovups xmmword [rax], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x140006903
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r8d, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rbp
movsxd rdi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea rcx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi], rax
mov r9, rbp
mov r8, rdi
mov byte [rdi + rax], 0
mov rcx, qword [rsi]
lea rdx, [rcx + rdi]
mov qword [rsi + 8], rdx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, edi
mov rdi, qword [rsp + 0x30]
je 0x140006927
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
call fcn.1400064e0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
mov rax, rsi
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140008e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
and r11d, 7
je 0x140008e4f
cmp eax, r11d
jge 0x140008e3f
call fcn.1400085b0
shrx eax, dword [rcx + 0x18], r11d
sub dword [rcx + 0x10], r11d
mov dword [rcx + 0x18], eax
mov eax, dword [rcx + 0x10]
xor r8d, r8d
mov r9d, eax
test eax, eax
jle 0x140008e92
mov ecx, dword [rcx + 0x18]
lea rdx, [rsp + 0x30]
movzx r10d, cl
nop word [rax + rax]
shr ecx, 8
lea eax, [r9 - 8]
mov byte [rdx], r10b
lea rdx, [rdx + 1]
inc r8d
mov dword [rbx + 0x18], ecx
mov r9d, eax
movzx r10d, cl
test eax, eax
jg 0x140008e70
mov dword [rbx + 0x10], eax
jns 0x140008eb8
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, [0x1413a1b30]
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x140008ee7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x140008ed1
xor dl, dl
jmp 0x140008eda
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140008ec5
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140008e94
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140008f51
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, [0x1413a1b40]
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x20]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x30]
jbe 0x140008f6b
mov rcx, rbx
call fcn.1400086f0
test eax, eax
je 0x140008f44
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001d1b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rbx, rdx
lea rdx, [0x1413a189c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x14001b10c
mov ecx, 0x68
call fcn.1403f4d70
mov qword [rsp + 0x70], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140011a60
mov rdi, rax
jmp 0x14001b10e
xor edi, edi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x70], rdi
mov ecx, 0x18
call fcn.1403f4d70
mov rbx, rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_class_tracy::FileRead_.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
test rdi, rdi
je 0x14001b1e9
lock inc dword [rbx + 8]
mov qword [rsp + 0x50], rdi
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rbx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1403f4d70
mov qword [rax], rdi
mov qword [rax + 8], rbx
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14001eab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001b22f
cmp dword [0x1414469b8], 0
jne 0x14001b228
vpxor xmm1, xmm1, xmm1
vmovups xmmword [rsp + 0x50], xmm1
vmovups xmm0, xmmword [rsp + 0x40]
vmovups xmmword [rsp + 0x50], xmm0
vmovdqa xmmword [rsp + 0x40], xmm1
vmovups xmmword [0x1414469b0], xmm0
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001b21d
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14001b21d
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + htons]
nop
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
jmp 0x14001b21d
mov rdx, qword [rdx]
jmp 0x14001b0c0
Function at 0x14001da20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
cmp qword [rdx + 0x18], 0xf
mov r8, rdx
mov r11, qword [rdx + 0x10]
jbe 0x14001da36
mov r8, qword [rdx]
movabs rbx, 0xc6a4a7935bd1e995
mov rax, r11
imul rax, rbx
mov ecx, 0xe17a1465
mov r10, r11
xor rax, rcx
shr r10, 3
xor r9d, r9d
test r10, r10
je 0x14001da85
nop
mov rcx, qword [r8 + r9*8]
inc r9
imul rcx, rbx
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rbx
xor rax, rdx
imul rax, rbx
cmp r9, r10
jb 0x14001da60
and r11d, 7
dec r11
cmp r11, 6
ja case.default.0x14001daa4
lea rdx, [0x140000000]
mov ecx, dword [rdx + r11*4 + 0x1db10]
add rcx, rdx
jmp rcx
movzx ecx, byte [r8 + r10*8 + 6]
shl rcx, 0x30
xor rax, rcx
movzx ecx, byte [r8 + r10*8 + 5]
shl rcx, 0x28
xor rax, rcx
movzx ecx, byte [r8 + r10*8 + 4]
shl rcx, 0x20
xor rax, rcx
movzx ecx, byte [r8 + r10*8 + 3]
shl rcx, 0x18
xor rax, rcx
movzx ecx, byte [r8 + r10*8 + 2]
shl rcx, 0x10
xor rax, rcx
movzx ecx, byte [r8 + r10*8 + 1]
shl rcx, 8
xor rax, rcx
movzx ecx, byte [r8 + r10*8]
xor rax, rcx
imul rax, rbx
mov rbx, qword [rsp + 8]
mov rcx, rax
shr rcx, 0x2f
xor rax, rcx
ret
Function at 0x14001f9e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
add rcx, 0x18
cmp qword [rdi + 0x30], 0xf
jbe 0x14001fa10
mov rcx, qword [rdi + 0x18]
lea rdx, [0x1413a18a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x14001fa69
mov edx, dword [rdi + 8]
mov r9, rax
mov ecx, dword [rdi]
mov r8d, socket
mov dword [rsp + 0x28], edx
mov edx, dword [rdi + 0xc]
mov dword [rsp + 0x2c], edx
mov edx, dword [rdi + 0x10]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x30], edx
mov edx, 1
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rdi + 0x18]
call fcn.1400035f0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1403f4b10
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret