joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f6480
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800f649c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800f64f0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800f6615
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800f6615
test rax, rax
je 0x1800f6615
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800f6615
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800f658a
lea rax, [0x1800f6670]
jmp 0x1800f65e3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800f6615
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800f6603
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800f65b0
lea rax, [0x1800f6640]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800f662a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800f7c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800f7c0b
xor eax, eax
ret
lea r11, [0x18011c4e0]
not ecx
cmp r8d, 8
jb 0x1800f7ce1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800f7c30
test r8d, r8d
je 0x1800f7d0d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800f7cf0
not ecx
mov eax, ecx
ret
Function at 0x1800fcb20
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 0x1800fcba4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1800fcba4
dec r8
sub rdx, 1
jne 0x1800fcb8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400024d0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x30]
lea edx, [rsi + 6]
lea r8d, [rsi + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov ebx, esi
test eax, eax
setne bl
test eax, eax
je 0x140002585
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [rsi + 2]
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000258f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
setns bl
test eax, eax
js 0x1400026b0
movdqa xmm0, xmmword [0x140041580]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400025e0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140002c80
nop
mov r8d, 0xf
lea rdx, str.NitroSpoolDir_
lea rcx, [rsp + 0x48]
call fcn.1400029b0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000263f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000263f
xor bl, bl
jmp 0x14000266a
mov bl, 1
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x14000266a
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140002c80
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400026b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035a38
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400026c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140035b50
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400184f0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov edx, dword [r8]
movzx r8d, dl
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs r9, 0x100000001b3
imul r8, r9
mov eax, edx
shr eax, 8
movzx ecx, al
xor r8, rcx
imul r8, r9
mov eax, edx
shr eax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, r9
mov eax, edx
shr rax, 0x18
xor r8, rax
imul r8, r9
mov r9, qword [rsi + 0x30]
and r9, r8
add r9, r9
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rsi + 8]
mov rax, qword [rcx + r9*8]
cmp rbx, rax
je 0x1400185cc
mov rbx, qword [rcx + r9*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x1400185cc
mov rbx, qword [rbx + 8]
cmp edx, dword [rbx + 0x10]
jne 0x140018587
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [rsi + 0x10]
mov edx, 0x18
mov rcx, rdi
call fcn.140035a38
nop
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x1400186fb
mov qword [rsp + 0x80], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140018609
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r9*8]
cmp rax, qword [rsi + 8]
jne 0x140018626
mov qword [rdx + r9*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r9*8 + 8], rdi
jmp 0x140018655
cmp rax, rbx
jne 0x140018631
mov qword [rdx + r9*8], rdi
jmp 0x140018655
mov rax, qword [rdx + r9*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r9*8 + 8], rcx
cmp rcx, rdi
je 0x140018655
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r9*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r9*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x140046f1c]
test rax, rax
jns 0x140018676
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x140018687
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x1400186f0
cmp rdx, 0x200
jae 0x1400186a3
lea rdx, [rdx*8]
jmp 0x1400186b5
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x1400186b5
add rdx, rdx
mov rcx, rsi
call fcn.14002a600
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x1400186f0
mov r15, qword [rax + 8]
nop word [rax + rax]
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400184f0
cmp rbx, r15
jne 0x1400186d0
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019590
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, rdx
mov rdi, rcx
mov r10d, dword [r8 + 0x10]
movzx r11d, r10b
movabs rax, 0xcbf29ce484222325
xor r11, rax
movabs rdx, 0x100000001b3
imul r11, rdx
mov eax, r10d
shr eax, 8
movzx r9d, al
xor r11, r9
imul r11, rdx
mov eax, r10d
shr eax, 0x10
movzx ecx, al
xor r11, rcx
imul r11, rdx
shr r10, 0x18
xor r11, r10
imul r11, rdx
mov rdx, qword [rdi + 0x30]
and rdx, r11
shl rdx, 4
mov rcx, qword [rdi + 0x18]
add rcx, rdx
cmp qword [rcx + 8], r8
jne 0x14001963b
cmp qword [rcx], r8
jne 0x140019631
mov rax, qword [rdi + 8]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rdi + 0x18]
mov qword [rdx + rcx + 8], rax
jmp 0x140019646
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x140019646
cmp qword [rcx], r8
jne 0x140019646
mov rax, qword [r8]
mov qword [rcx], rax
mov rbx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov rcx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
dec qword [rdi + 0x10]
mov edx, 0x18
mov rcx, r8
call fcn.140035a38
nop
mov qword [rsi], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140027ff0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov r10d, dword [rdx]
mov rbp, rcx
mov eax, r10d
mov qword [rsp + 0x70], rsi
shr eax, 8
movabs rcx, 0xcbf29ce484222325
movzx r9d, al
mov rbx, rdx
mov r8, qword [rbp + 0x30]
movabs rdx, 0x100000001b3
movzx eax, r10b
xor rax, rcx
imul rax, rdx
xor r9, rax
mov eax, r10d
imul r9, rdx
shr eax, 0x10
movzx ecx, al
mov eax, r10d
xor r9, rcx
shr rax, 0x18
mov rcx, qword [rbp + 0x18]
imul r9, rdx
xor r9, rax
imul r9, rdx
mov rdx, qword [rbp + 8]
and r8, r9
add r8, r8
mov r9, qword [rcx + r8*8]
lea r11, [rcx + r8*8]
mov rax, r9
cmp r9, rdx
jne 0x14002807b
mov rcx, rdx
jmp 0x140028082
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140028097
cmp dword [rax + 0x10], r10d
je 0x140028092
mov rax, qword [rax]
jmp 0x140028071
cmp rax, rdx
jne 0x140028112
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x60]
mov rbx, qword [rdx]
lea r9, [0x140045ab7]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 8]
lea rax, [rsp + 0x68]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rsi, qword [rbx + 8]
mov r8, rsi
call fcn.140017970
mov rdx, rax
movabs rcx, 0xaaaaaaaaaaaaaa9
mov rax, qword [rbp + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x140028123
inc rax
mov rcx, rbp
mov qword [rbp + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rsi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [rbp + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.1400184f0
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
add rax, 0x14
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea rcx, str.list_T__too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x1400296b0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x670
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rsp + 0x660], rax
cmp qword [rcx + 0x18], 8
mov rdi, rcx
mov rax, rcx
jb 0x1400296db
mov rax, qword [rcx]
xor ecx, ecx
xor edx, edx
mov qword [rdi + 0x10], rcx
mov r8d, 0x408
mov word [rax], cx
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rax, [rsp + 0x250]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140029723
xor al, al
jmp 0x140029834
lea rdx, str.Nitro
mov qword [rsp + 0x688], rbx
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x140045d58]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x140045d60]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x250]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140029780
lea rdx, [rsp + 0x250]
mov rcx, rdi
call fcn.140002c80
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x1400297a8
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140029290
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x1400297ea
mov rcx, qword [rdi]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, 0x102
ja 0x14002982a
lea rax, [rsp + 0x40]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140029810
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140002c80
mov rbx, qword [rsp + 0x688]
mov al, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.140035b50
add rsp, 0x670
pop rdi
ret
Function at 0x14002c330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r11, [r8 + 0x10]
mov rbx, qword [r11 + 0x10]
mov rsi, rdx
mov rdi, rcx
jb 0x14002c357
mov r11, qword [r11]
xor r9d, r9d
movabs r10, 0xcbf29ce484222325
test rbx, rbx
je 0x14002c394
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + r11]
inc r9
xor r10, rax
imul r10, rcx
cmp r9, rbx
jb 0x14002c380
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x18]
and rdx, r10
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x14002c3d4
cmp rax, r8
jne 0x14002c3ca
mov rax, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x14002c3df
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x14002c3df
cmp rax, r8
jne 0x14002c3df
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
lea rcx, [rdi + 8]
mov rbx, qword [r8]
mov qword [rax], rbx
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov rdx, r8
dec qword [rcx + 8]
call fcn.14002a550
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r11, qword [r8 + 0x18]
mov rdi, r8
mov r14, qword [r8 + 0x10]
mov r12, rdx
mov rsi, rcx
mov r10, r8
cmp r11, 0x10
jb 0x14002c8fe
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r14, r14
je 0x14002c934
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r14
jb 0x14002c920
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rcx, r9
shl rcx, 4
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r15
mov r13, qword [rcx + rax]
add rax, 8
add rax, rcx
mov rbx, r13
mov qword [rsp + 0x50], rax
cmp r13, rsi
jne 0x14002c96e
mov rax, rsi
jmp 0x14002c974
mov rax, qword [rax]
mov rax, qword [rax]
cmp rbx, rax
je 0x14002c9ed
lea rcx, [rbx + 0x10]
mov rdx, rdi
cmp r11, 0x10
jb 0x14002c989
mov rdx, qword [rdi]
mov r15, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
cmp r15, 0x10
jb 0x14002c99a
mov rcx, qword [rcx]
cmp rbp, r14
jne 0x14002c9af
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002c9b9
mov r11, qword [rdi + 0x18]
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x50]
jmp 0x14002c964
lea rdx, [rbx + 0x10]
cmp r15, 0x10
jb 0x14002c9c6
mov rdx, qword [rdx]
cmp qword [rdi + 0x18], 0x10
jb 0x14002c9d0
mov rdi, qword [rdi]
cmp r14, rbp
jne 0x14002c9e4
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002c9e7
mov rbx, rsi
mov qword [r12], rbx
jmp 0x14002c9f1
mov qword [r12], rsi
mov r15, qword [rsp + 0x60]
mov rax, r12
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140031840
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x690
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x408
lea rcx, [r11 - 0x428]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdi, [rsi - 1]
test eax, eax
js 0x1400318ed
lea rax, [rsp + 0x270]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400318e0
jmp 0x14003193b
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400318fa
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
lea r9, str.USERPROFILE
mov r8d, 0x204
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
nop
test eax, eax
jne 0x140031999
lea rax, [rsp + 0x270]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140031930
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140002c80
mov r8d, 0xc
lea rdx, str..nitro_test
mov rcx, rbx
call fcn.1400029b0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003196d
mov rcx, qword [rbx]
cmp si, word [rcx]
je 0x140031a37
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031985
test al, 0x10
jne 0x140031999
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140031992
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
cmp qword [rbx + 0x10], 0
jne 0x1400319a8
mov rcx, rbx
call fcn.1400296b0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.1400175d0
mov r8d, 1
lea rdx, [0x140046274]
mov rcx, rbx
call fcn.1400029b0
lea rax, [rsp + 0x60]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400319e0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400029b0
mov r8d, 9
lea rdx, [0x140046278]
mov rcx, rbx
call fcn.1400029b0
mov rax, rbx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140035b50
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rsp + 0x48]
call fcn.140004450
lea rdx, [0x140057da0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140034da0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov rdi, rcx
mov qword [rsp + 0x40], 0
lea rsi, vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xfa
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
call qword [rax + 8]
mov rcx, qword [rdi + 0x70]
mov rbx, qword [rsp + 0x40]
add rcx, rbx
mov qword [rdi + 0x70], rcx
cmp rcx, qword [rdi + 0x60]
jbe 0x140034e2f
mov rcx, rdi
call fcn.140034060
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x70], rbx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140034eba
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x140034e95
mov rdx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034e8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140034e8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035a38
nop
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140035b50
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0x88]
lea rcx, [rsp + 0x188]
call fcn.14002c680
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x1a8]
call fcn.140015780
nop
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.1400262c0
lea rdx, [0x1400580a0]
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14003a520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
jb 0x14003a53f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14003a56e
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14003a3f0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x14003a588
lea rax, [0x140041130]
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov byte [rdi + 4], 0
bt ebx, 0xa
jae 0x14003a5cf
mov rcx, rsi
call fcn.14003a190
test al, al
je 0x14003a5ba
test bl, 0x10
mov eax, 4
mov ecx, 0xb
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret