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

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
cmp byte [0x140074c90], 0
lea rbp, [0x14006b090]
mov edi, edx
mov esi, ecx
jne 0x14004d768
mov byte [0x140074c90], 1
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r9, rax
cmp rbx, 0x989680
jne 0x14004d708
imul rax, r9, 0x64
jmp 0x14004d72e
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov r8, rax
mov rax, r9
cqo
idiv rbx
imul rax, rax, 0x3b9aca00
add rax, r8
mov rdx, rax
mov dword [0x14006b094], eax
mov eax, 1
nop dword [rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 + 4], edx
inc rax
cmp rax, 0x270
jb 0x14004d740
mov dword [0x14006b090], 0x270
mov r15d, 0x80000000
lea eax, [rsi - 0x80000000]
cmp esi, r15d
lea r14d, [rsi + r15]
cmovae r14d, eax
lea ebx, [rdi + r15]
cmp edi, r15d
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, r14d
cmp ebx, 0xffffffff
jne 0x14004d7a3
mov rcx, rbp
call fcn.1400461f0
mov edx, eax
jmp 0x14004d7e7
lea edi, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
test ebx, ebx
je 0x14004d7c1
mov rcx, rbp
call fcn.1400461f0
mov r9d, eax
mov r8d, 0xffffffff
xor edx, edx
mov eax, r8d
div edi
xor edx, edx
mov ecx, eax
mov eax, r9d
div edi
cmp eax, ecx
jb 0x14004d7e0
xor edx, edx
mov eax, r8d
div edi
cmp edx, ebx
jne 0x14004d7a6
xor edx, edx
mov eax, r9d
div edi
mov rbx, qword [rsp + 0x40]
add edx, r14d
mov rbp, qword [rsp + 0x48]
cmp edx, r15d
mov rsi, qword [rsp + 0x50]
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r15]
cmovae eax, ecx
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14004df98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004e01c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14004e01c
dec r8
sub rdx, 1
jne 0x14004e002
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004efe0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004f02a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004f02a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004f02a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004f02a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004f02a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004f02c
xor al, al
add rsp, 0x28
ret
Function at 0x140003bcc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140003c26
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1400c4f20]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x140003c10
cmp rdx, 2
jb 0x140003c10
cmp byte [r10], r11b
jne 0x140003c10
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x140003bee
jmp 0x140003c67
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140003c67
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1400c4f20]
cmp dl, r11b
jne 0x140003c4b
cmp byte [r10], r11b
jne 0x140003c4b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x140003c39
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140003d9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140003dbc
and qword [r8], 0
lea rdx, [0x14012d1f8]
call fcn.140003c78
mov rbx, rax
test rax, rax
je 0x140003ead
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003ea4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003ea4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003ea4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003ea4
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140003ea4
mov rax, qword [0x1402ce378]
test rax, rax
je 0x140003e41
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140003ea4
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140003e91
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402ce378]
test rax, rax
je 0x140003e86
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003ead
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140003e9f
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140003eaf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005d68
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1400c4f20]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140005d91
not r8d
mov ecx, r8d
call fcn.140005ec8
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14000fa98
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14013d0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402ce378]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1400c4f20]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14000fade
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14001dc44
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b0380
add rsp, 0x38
ret

Function at 0x14001476c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x1402ce378]
cmp byte [rbx + 0x3000], 0
je 0x14001482d
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x14001481f
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x1400147d7
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001df84
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.1400044d8
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1402ce370]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14001482d
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.1400044d8
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x140014e88
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1402ce378]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x140014ef1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140014efc
lea rdx, [0x14012d1fc]
mov rcx, rbx
mov rdi, rax
call fcn.140003c78
mov rbx, rax
test rax, rax
je 0x140014ef1
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140040fe4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14013d0c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400b03a0
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004121c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140041057
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b0380
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140041a84
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140041aa9
mov rdx, qword [r8]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
cmp qword [r8 + 0x10], rcx
jbe 0x140041ad9
movzx eax, byte [rdx + rcx]
xor rbx, rax
movabs r8, 0x100000001b3
imul rbx, r8
inc rcx
cmp rcx, qword [rdi + 0x10]
jb 0x140041abb
mov r9, rbx
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.140042214
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140041b00
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x140041cc7
movabs rax, 0x333333333333333
cmp qword [0x1402ce810], rax
jne 0x140041b21
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x1402ce808]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x50
call fcn.1400b03a0
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rax + 0x10]
call fcn.1400407cc
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
and qword [rsi + 0x40], 0
mov qword [rsi + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x30], 0
mov r8, qword [0x1402ce810]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140041b83
cvtsi2ss xmm0, rcx
jmp 0x140041b98
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rdi, qword [0x1402ce838]
xorps xmm2, xmm2
test rdi, rdi
js 0x140041bae
cvtsi2ss xmm2, rdi
jmp 0x140041bc6
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x1402ce800]
comiss xmm1, xmm3
jbe 0x140041c63
divss xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
xor ecx, ecx
movss xmm1, dword [0x14012de84]
comiss xmm0, xmm1
jb 0x140041c0c
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140041c0c
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdi, rcx
jae 0x140041c3a
cmp rdi, 0x200
jae 0x140041c37
shl rdi, 3
cmp rdi, rcx
jae 0x140041c3a
mov rdi, rcx
mov rdx, rdi
call fcn.140041d30
mov r9, rbx
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.140042214
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov r8, qword [0x1402ce810]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x1402ce810], r8
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
mov rax, qword [0x1402ce818]
and rbx, qword [0x1402ce830]
add rbx, rbx
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x1402ce808]
jne 0x140041ca8
mov qword [rax + rbx*8], rsi
jmp 0x140041cba
cmp r8, rcx
jne 0x140041cb3
mov qword [rax + rbx*8], rsi
jmp 0x140041cbf
cmp qword [rax + rbx*8 + 8], rdx
jne 0x140041cbf
mov qword [rax + rbx*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140041d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x140041d75
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbp, qword [0x1402ce808]
lea rax, [rdx - 1]
or rax, 1
mov ebx, 1
bsr rcx, rax
mov r8, rbp
inc ecx
shl rbx, cl
lea rcx, [0x1402ce818]
lea rdx, [rbx + rbx]
call fcn.140041970
lea rdx, [rbx - 1]
mov qword [0x1402ce838], rbx
mov rbx, qword [0x1402ce808]
mov qword [0x1402ce830], rdx
mov rbx, qword [rbx]
mov rdi, rbx
cmp rbx, rbp
je 0x140041f37
mov rdi, qword [rdi]
lea r15, [rbx + 0x10]
mov rax, qword [r15 + 0x18]
mov r8, r15
mov r13, qword [r15 + 0x10]
cmp rax, 0xf
jbe 0x140041de8
mov r8, qword [r15]
xor ecx, ecx
movabs r14, 0xcbf29ce484222325
test r13, r13
je 0x140041e1b
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor r14, rax
inc rcx
imul r14, r9
cmp rcx, r13
jb 0x140041df9
mov rax, qword [r15 + 0x18]
mov r12, qword [0x1402ce818]
and r14, rdx
add r14, r14
cmp qword [r12 + r14*8], rbp
jne 0x140041e3c
mov qword [r12 + r14*8], rbx
mov qword [r12 + r14*8 + 8], rbx
jmp 0x140041efd
mov rsi, qword [r12 + r14*8 + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0xf
mov r8, qword [rdx + 0x10]
jbe 0x140041e53
mov rdx, qword [rdx]
mov rcx, r15
cmp rax, 0xf
jbe 0x140041e5f
mov rcx, qword [r15]
cmp r13, r8
jne 0x140041ed2
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140041ece
mov r8, qword [rsi]
cmp r8, rbx
je 0x140041e32
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x140041e32
mov rsi, qword [rsi + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0xf
mov r8, qword [rdx + 0x10]
jbe 0x140041eb1
mov rdx, qword [rdx]
mov rcx, r15
cmp rax, 0xf
jbe 0x140041ebd
mov rcx, qword [r15]
cmp r13, r8
jne 0x140041ed2
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140041f11
mov rax, qword [r15 + 0x18]
cmp qword [r12 + r14*8], rsi
jne 0x140041e9b
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rsi
mov rax, qword [rsi + 8]
mov qword [rax], rbx
mov qword [rsi + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8], rbx
mov rbx, rdi
cmp rdi, rbp
je 0x140041f37
mov rdx, qword [0x1402ce830]
jmp 0x140041dcd
mov r8, qword [rsi]
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x140041efd
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.140041f64
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140042038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov qword [rsp + 0x20], rcx
mov rbp, r8
mov rdx, rcx
cmp r14, r8
je 0x1400421d8
mov rax, qword [rcx + 8]
mov rsi, r14
mov r12, qword [rcx + 0x18]
lea rcx, [r14 + 0x10]
cmp qword [rcx + 0x18], 0xf
mov r15, qword [r14 + 8]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
jbe 0x140042091
mov rcx, qword [rcx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r10, r10
je 0x1400420c1
movzx eax, byte [rcx + r8]
inc r8
xor r9, rax
imul r9, r11
cmp r8, r10
jb 0x1400420ad
mov r13, qword [rdx + 0x30]
and r13, r9
add r13, r13
mov rax, qword [r12 + r13*8]
mov qword [rsp + 0x28], rax
mov rax, qword [r12 + r13*8 + 8]
mov qword [rsp + 0x38], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x10]
call fcn.14004115c
mov edx, 0x50
mov rcx, rbx
call fcn.1400b03dc
mov rdx, qword [rsp + 0x20]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x38]
je 0x140042126
cmp rsi, rbp
jne 0x1400420de
cmp qword [rsp + 0x28], r14
jne 0x1400421d1
mov qword [r12 + r13*8], rsi
jmp 0x1400421d1
cmp qword [rsp + 0x28], r14
jne 0x14004213b
mov r8, qword [rsp + 0x30]
mov qword [r12 + r13*8], r8
mov rax, r8
jmp 0x14004213e
mov rax, r15
mov qword [r12 + r13*8 + 8], rax
jmp 0x140042207
lea rcx, [rsi + 0x10]
cmp qword [rcx + 0x18], 0xf
mov r9, qword [rcx + 0x10]
jbe 0x14004215a
mov rcx, qword [rcx]
xor r8d, r8d
movabs r14, 0xcbf29ce484222325
test r9, r9
je 0x14004218f
movabs rdx, 0x100000001b3
movzx eax, byte [r8 + rcx]
inc r8
xor r14, rax
imul r14, rdx
cmp r8, r9
jb 0x140042176
mov rdx, qword [rsp + 0x20]
and r14, qword [rdx + 0x30]
add r14, r14
mov r13, qword [r12 + r14*8 + 8]
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x10]
call fcn.14004115c
mov edx, 0x50
mov rcx, rbx
call fcn.1400b03dc
mov rdx, qword [rsp + 0x20]
dec qword [rdx + 0x10]
cmp rbx, r13
je 0x1400421f9
cmp rsi, rbp
jne 0x14004219b
mov qword [r12 + r14*8], rsi
mov qword [r15], rsi
mov qword [rsi + 8], r15
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0x30]
mov qword [r12 + r14*8], rax
mov qword [r12 + r14*8 + 8], rax
cmp rsi, rbp
jne 0x140042148
jmp 0x1400421d1
Function at 0x1400426f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140042724
call 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]
jmp 0x14004279c
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14004273b
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004273d
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140042796
test ecx, ecx
jle 0x140042776
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140042796
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140042796
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400427b8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400427d8
xor eax, eax
jmp 0x1400428c1
cmp qword [rcx + 0x68], 0
je 0x1400427ea
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400428c1
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140042801
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140042803
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140042835
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400428bb
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004286c
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140042896
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x1400428bb
cmp rdi, rbx
ja 0x140042873
test rdi, rdi
je 0x1400428bb
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140042c98
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14013d0c0]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140042cd1
xor eax, eax
jmp 0x140042df1
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140042d0b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140042d0b
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140042df1
cmp qword [rbx + 0x80], 0
je 0x140042def
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140042d46
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140042d67
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140042dec
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140042db5
sub eax, 1
je 0x140042db5
cmp eax, 2
jne 0x140042def
movsx ecx, byte [rbp - 0x30]
jmp 0x140042d53
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140042de0
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140042def
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b0380
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret