joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ed10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rcx
movsxd rax, dword [0x1414471d8]
mov rsi, rax
shl rsi, 9
lea rcx, [0x141448cf0]
add rsi, rcx
inc eax
and eax, 0x80000007
jge 0x14005ed5e
dec eax
or eax, 0xfffffff8
inc eax
mov dword [0x1414471d8], eax
lea rcx, [0x1413c6fe0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005ed80
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14005edb3
mov rax, rsi
mov rcx, rbx
cmp byte [rax], 0x5c
jne 0x14005edaa
mov byte [rax], 0x2f
inc rax
sub rcx, 1
jne 0x14005eda2
movabs rax, 0x2f79636172742f
mov qword [rbx + rsi], rax
add rbx, 7
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x20], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x30], xmm1
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x14005ede0
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140004000
nop
lea rcx, [rsp + 0x20]
call fcn.14005eb40
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14005ee43
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ee3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ee3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403f4db4
lea rdi, [rdi + 1]
cmp byte [rdi + rbp], 0
jne 0x14005ee43
lea r8, [rdi + 1]
lea rcx, [rbx + rsi]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403f4b10
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14005ee90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx r12d, r9b
mov r14, r8
mov r15, rdx
mov rbx, rcx
movsxd rax, dword [0x1414471d4]
mov rbp, rax
shl rbp, 9
lea rcx, [0x141447cf0]
add rbp, rcx
inc eax
and eax, 0x80000007
jge 0x14005eef0
dec eax
or eax, 0xfffffff8
inc eax
mov dword [0x1414471d4], eax
lea rcx, [0x1413c6fe0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, 0xffffffffffffffff
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x14005ef10
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
test rsi, rsi
je 0x14005ef43
mov rax, rbp
mov rcx, rsi
cmp byte [rax], 0x5c
jne 0x14005ef3a
mov byte [rax], 0x2f
inc rax
sub rcx, 1
jne 0x14005ef32
mov r8, rdi
inc r8
cmp byte [rbx + r8], 0
jne 0x14005ef46
lea rcx, [rsp + 0x50]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14005ef60
xor edx, edx
test r8, r8
je 0x14005efb1
lea r9, [0x140000000]
nop dword [rax]
movsx eax, byte [rsp + rdx + 0x50]
dec eax
cmp eax, 0x7e
ja case.0x14005efa2.2
cdqe
movzx eax, byte [r9 + rax + 0x5f0d8]
mov ecx, dword [r9 + rax*4 + 0x5f0d0]
add rcx, r9
jmp rcx
mov byte [rsp + rdx + 0x50], 0x5f
inc rdx
cmp rdx, r8
jb 0x14005ef80
movabs rax, 0x377aef2669de1559
mul r15
shr rdx, 0x11
movsx r8d, byte [rsp + 0x50]
lea rcx, [rsi + rbp]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
lea rdx, [0x1413c6fc0]
call fcn.140005590
movsxd rbx, eax
add rbx, rsi
test r12b, r12b
je 0x14005f073
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x40], xmm1
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [r8 + rbp], 0
jne 0x14005f010
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.140004000
nop
lea rcx, [rsp + 0x30]
call fcn.14005eb40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14005f073
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f06e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f06e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403f4db4
lea rax, [rbx + rbp]
test r14, r14
je 0x14005f09c
nop dword [rax]
lea rdi, [rdi + 1]
cmp byte [r14 + rdi], 0
jne 0x14005f080
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14005f09f
mov byte [rax], 0
mov rax, rbp
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006eef0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov rsi, rcx
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x14006ef26
call fcn.140004000
nop
mov qword [rsi + 0x20], rbx
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x40], send
mov byte [rsi + 0x28], 0
cmp qword [rsi + 0x10], 0
jne 0x14006ef6e
mov r8d, 1
lea rdx, [0x1413c7bbc]
mov rcx, rsi
call fcn.14001bf00
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14006ef7b
mov rcx, qword [rsi]
xor r9d, r9d
lea r8, [0x1413c7b88]
mov rdx, qword [rsi + 0x20]
call fcn.14005ee90
test rax, rax
je 0x14006f020
lea rdx, [0x1413a189c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x14006f020
xor edx, edx
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]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call fcn.1403f4de8
mov rdi, rax
mov qword [rsp + 0x50], rax
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, rbx
mov rdx, rdi
lea rcx, [rsi + 0x28]
call fcn.14001bf00
nop
mov rcx, rdi
call fcn.1403f4db4
nop
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140070810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbp, rdx
xor r15d, r15d
mov rdx, qword [rcx + 0x20]
cmp qword [rcx + 0x18], 0xf
jbe 0x140070849
mov rcx, qword [rcx]
xor r9d, r9d
lea r8, [0x1413c7b70]
call fcn.14005ee90
test rax, rax
je 0x140070a01
lea rdx, [0x1413a189c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140070a01
mov r9, rax
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, rbx
cmp dword [rsp + 0x28], r15d
jne 0x1400709f8
mov r9, rbx
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov esi, r15d
cmp dword [rsp + 0x24], r15d
jbe 0x1400709f8
nop dword [rax + rax]
mov ecx, 0x40
call fcn.1403f4d70
mov rdi, rax
mov qword [rax + 0x30], r15
mov qword [rax + 0x38], r15
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rax], xmm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], 0
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], r15
mov dword [rax + 0x30], 0
mov byte [rax + 0x34], 0
mov qword [rsp + 0x30], rax
mov r9, r14
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14007095d
mov r8d, eax
mov r9, r14
mov edx, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001bf00
mov r9, r14
mov edx, 1
mov r8d, 8
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rcx, [rdi + 0x28]
mov r9, r14
mov edx, 1
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rcx, [rdi + 0x38]
mov r9, r14
mov edx, 1
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov byte [rdi + 0x30], 1
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp + 0x10]
je 0x1400709c0
mov rbx, r15
mov qword [rdx], rdi
add qword [rbp + 8], 8
jmp 0x1400709d2
lea r8, [rsp + 0x30]
mov rcx, rbp
call fcn.140071de0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400709ec
mov rcx, rbx
call fcn.1400035f0
mov edx, 0x40
mov rcx, rbx
call fcn.1403f4db4
inc esi
cmp esi, dword [rsp + 0x24]
jb 0x1400708d0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1403f4b10
mov rbx, qword [rsp + 0x490]
add rsp, 0x450
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140070a30
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x48], 0
mov rdi, rdx
je 0x140070bea
mov rax, qword [rdi + 8]
mov r10, qword [rcx + 0x20]
mov rdx, qword [rcx + 0x18]
cmp qword [rdi], rax
jne 0x140070a87
cmp rdx, 0xf
jbe 0x140070a5d
mov rcx, qword [rcx]
xor r9d, r9d
lea r8, [0x1413c7b70]
mov rdx, r10
call fcn.14005ee90
test rax, rax
je 0x140070bea
mov rcx, rax
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
cmp rdx, 0xf
jbe 0x140070a90
mov rcx, qword [rcx]
mov r9b, 1
lea r8, [0x1413c7b70]
mov rdx, r10
call fcn.14005ee90
test rax, rax
je 0x140070bea
lea rdx, [0x1413a18a0]
mov qword [rsp + 0x38], rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140070be5
mov r9, rax
mov qword [rsp + 0x48], rsi
mov edx, 1
mov dword [rsp + 0x40], 0
mov r8d, 4
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
sub rax, qword [rdi]
mov r9, rbx
sar rax, 3
mov edx, 1
mov r8d, 4
mov dword [rsp + 0x30], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rsi, qword [rdi + 8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x140070bd7
nop word [rax + rax]
mov rax, qword [rdi]
mov r9, rbx
mov edx, 1
mov r8d, 4
mov ecx, dword [rax + 0x10]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140070b79
mov rcx, qword [rdi]
mov r8d, eax
cmp qword [rcx + 0x18], 0xf
jbe 0x140070b6b
mov rcx, qword [rcx]
mov r9, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi]
mov r9, rbx
add rcx, 0x20
mov edx, 1
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi]
mov r9, rbx
add rcx, 0x28
mov edx, 1
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi]
mov r9, rbx
add rcx, 0x38
mov edx, 1
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rdi, 8
cmp rdi, rsi
jne 0x140070b30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140071250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x48], 0
mov rbx, rdx
je 0x14007140e
mov rax, qword [rbx + 8]
mov r10, qword [rcx + 0x20]
mov rdx, qword [rcx + 0x18]
cmp qword [rbx], rax
jne 0x1400712a7
cmp rdx, 0xf
jbe 0x14007127d
mov rcx, qword [rcx]
xor r9d, r9d
lea r8, [0x1413c7b7c]
mov rdx, r10
call fcn.14005ee90
test rax, rax
je 0x14007140e
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
cmp rdx, 0xf
jbe 0x1400712b0
mov rcx, qword [rcx]
mov r9b, 1
lea r8, [0x1413c7b7c]
mov rdx, r10
call fcn.14005ee90
test rax, rax
je 0x14007140e
lea rdx, [0x1413a18a0]
mov qword [rsp + 0x48], rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140071409
mov r9, rax
mov qword [rsp + 0x38], rsi
mov edx, 1
mov dword [rsp + 0x40], 0
mov r8d, 4
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbx + 8]
movabs rax, 0x4ec4ec4ec4ec4ec5
sub rcx, qword [rbx]
mov r9, rdi
imul rcx
mov r8d, 4
lea rcx, [rsp + 0x30]
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsp + 0x30], edx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rsi, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x1400713fb
mov eax, dword [rbx + 0x10]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov dword [rsp + 0x30], eax
mov edx, 1
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400713a7
cmp qword [rbx + 0x18], 0xf
mov r8d, eax
mov rcx, rbx
jbe 0x140071399
mov rcx, qword [rbx]
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rbx + 0x30]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov dword [rsp + 0x30], eax
mov edx, 1
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400713ee
cmp qword [rbx + 0x38], 0xf
lea rcx, [rbx + 0x20]
mov r8d, eax
jbe 0x1400713e0
mov rcx, qword [rcx]
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rbx, 0x68
cmp rbx, rsi
jne 0x140071361
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140071544
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140071530
ret
Function at 0x140073f20
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140073fe5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140073fe5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140073ffe
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140073fd5
cmp byte [rcx], 0x5c
jne 0x140073fce
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140073fce
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140073fbc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140073fcb
test r8b, 0x10
jne 0x140073fce
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140073fce
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140072790
test edi, edi
jne 0x140073f40
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140072780
int3

Function at 0x140076ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movabs rax, 0x9e3779b185ebca87
lea rdi, [0x140daf540]
mov r9, rdx
mov r11d, edx
imul r9, rax
shr r11d, 4
mov rbx, rdx
xor r8d, r8d
mov r10, rcx
nop word [rax + rax]
mov eax, r8d
inc r8d
shl eax, 4
mov ecx, eax
mov rdx, qword [rax + r10]
mov rax, qword [rax + rdi + 8]
xor rax, qword [rcx + r10 + 8]
mov rcx, qword [rcx + rdi]
xor rcx, rdx
mul rcx
xor rax, rdx
add r9, rax
cmp r8d, 8
jb 0x140076ce0
mov rax, qword [0x140daf5bf]
movabs rsi, 0x165667919e3779f9
xor rax, qword [r10 + rbx - 8]
mov r8d, 8
mov rcx, qword [0x140daf5b7]
xor rcx, qword [r10 + rbx - 0x10]
mul rcx
mov rcx, r9
shr rcx, 0x25
mov rbx, rax
xor rcx, r9
xor rbx, rdx
imul rcx, rsi
mov r9, rcx
shr r9, 0x20
xor r9, rcx
cmp r11d, r8d
jbe 0x140076d96
nop dword [rax]
mov eax, r8d
mov ecx, r8d
shl ecx, 4
inc r8d
shl eax, 4
add ecx, 0xffffff80
mov rdx, qword [rcx + rdi + 0xb]
xor rdx, qword [rax + r10 + 8]
mov rcx, qword [rcx + rdi + 3]
xor rcx, qword [rax + r10]
mov rax, rdx
mul rcx
xor rdx, rax
add rbx, rdx
cmp r8d, r11d
jb 0x140076d60
mov rdi, qword [rsp + 0x18]
lea rax, [rbx + r9]
mov rbx, qword [rsp + 8]
mov rcx, rax
shr rcx, 0x25
xor rcx, rax
imul rcx, rsi
mov rsi, qword [rsp + 0x10]
mov rax, rcx
shr rax, 0x20
xor rax, rcx
ret
Function at 0x140078850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov r10, qword [rcx + 0x18]
mov r9, qword [rcx + 0x20]
sub r9, r10
sar r9, 3
movsxd r8, dword [rcx + 0x14]
movsxd rax, dword [rcx + 0x10]
sub rax, r8
add rax, r9
xor edx, edx
div r9
lea eax, [r8 - 1]
mov dword [rcx + 0x14], eax
movsxd rax, edx
mov rdi, qword [r10 + rax*8]
lea rbx, [rdi + 0x40]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400788be
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x1400788d9
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov byte [rsp + 0x28], 1
cmp byte [rdi + 0x3d], 0
jne 0x140078906
nop dword [rax]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rdi + 0x90]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
cmp byte [rdi + 0x3d], 0
je 0x1400788f0
test rbx, rbx
je 0x14007896b
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov byte [rdi + 0x3d], 0
mov eax, dword [rdi + 0x30]
mov dword [rsp + 0x40], eax
add qword [rbp + 0x40], rax
mov r9, qword [rbp + 0x30]
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r8d, dword [rsp + 0x40]
mov r9, qword [rbp + 0x30]
mov edx, 1
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 1
call fcn.140006dd0
int3
Function at 0x1400949c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rsi, rcx
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 0x14008f817
mov ecx, 0x68
call fcn.1403f4d70
mov qword [rsp + 0x90], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140011a60
mov rdi, rax
jmp 0x14008f819
xor edi, edi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x90], 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 + 0x40], rdi
mov qword [rsp + 0x48], rbx
test rdi, rdi
je 0x14008f919
mov rax, qword [rsi]
mov qword [rsp + 0x50], rax
lock inc dword [rbx + 8]
mov qword [rsp + 0x58], rdi
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov ecx, 0x18
call fcn.1403f4d70
mov r9, rax
mov rax, qword [rsp + 0x50]
mov qword [r9], rax
mov qword [r9 + 8], rdi
mov qword [r9 + 0x10], rbx
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x90], r9
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140094dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008f966
mov rax, qword [rsi]
cmp dword [rax + 0x3908], 0
jne 0x14008f95f
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x50], xmm0
vmovups xmm1, xmmword [rsp + 0x30]
vmovups xmmword [rsp + 0x50], xmm1
vmovdqa xmmword [rsp + 0x30], xmm0
vmovups xmmword [rax + 0x3900], xmm1
cmp dword [rsp + 0x38], 0
jne 0x14008f95f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008f94d
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008f94d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + htons]
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
jmp 0x14008f94d
mov rdx, qword [rdx]
add rcx, 8
jmp 0x14008f7c0
Function at 0x1400e3990
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x50], r12
lea rsi, [r8 - 1]
sar rsi, 1
mov r15, r9
mov qword [rsp + 0x58], r13
mov r12, r8
mov rbx, rdx
mov r14, rcx
mov rbp, rdx
mov r10, rdx
cmp rdx, rsi
jge 0x1400e3a20
nop dword [rax + rax]
lea rdi, [r10 + r10]
lea rax, [rdi + 2]
lea rax, [rax + rax*2]
lea rdx, [r14 + rax*2]
lea r8, [rdx - 6]
lea rcx, [rsp + 0x70]
call fcn.1400d20f0
movzx r10d, al
lea rax, [rbx + rbx*2]
lea rdx, [r14 + rax*2]
xor r10, 1
inc r10
add r10, rdi
mov rbx, r10
lea rcx, [r10 + r10*2]
mov eax, dword [r14 + rcx*2]
mov dword [rdx], eax
movzx eax, word [r14 + rcx*2 + 4]
mov word [rdx + 4], ax
cmp r10, rsi
jl 0x1400e39d0
cmp r10, rsi
jne 0x1400e3a4d
test r12b, 1
jne 0x1400e3a4d
lea rax, [rbx + rbx*2]
lea rdx, [r14 + rax*2]
lea rcx, [r12 + r12*2]
mov eax, dword [r14 + rcx*2 - 6]
lea rbx, [r12 - 1]
mov dword [rdx], eax
movzx eax, word [r14 + rcx*2 - 2]
mov word [rdx + 4], ax
mov rax, qword [rsp + 0x70]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
cmp rbp, rbx
jge 0x1400e3aaf
nop word [rax + rax]
lea rdi, [rbx - 1]
mov r8, r15
sar rdi, 1
lea rcx, [rsp + 0x70]
lea rax, [rdi + rdi*2]
lea rsi, [r14 + rax*2]
mov rdx, rsi
call fcn.1400d20f0
test al, al
je 0x1400e3aaf
lea rax, [rbx + rbx*2]
mov rbx, rdi
lea rcx, [r14 + rax*2]
mov eax, dword [rsi]
mov dword [rcx], eax
movzx eax, word [rsi + 4]
mov word [rcx + 4], ax
cmp rbp, rdi
jl 0x1400e3a70
lea rax, [rbx + rbx*2]
mov rbx, qword [rsp + 0x60]
lea rcx, [r14 + rax*2]
mov eax, dword [r15]
mov dword [rcx], eax
movzx eax, word [r15 + 4]
mov word [rcx + 4], ax
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret