joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140141850
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rcx, qword [rcx + 0x9f8]
shr rdx, 6
lea rsi, [rsp + 0x20]
mov rbx, r8
mov r8d, edx
mov rdx, rsi
call method.randomx.initDatasetItem_randomx_cache__unsigned_char__unsigned_long_long_
xor eax, eax
movdqu xmm0, xmmword [rbx + rax]
pxor xmm0, xmmword [rsi + rax]
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x140141876
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140141980
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rcx, qword [rcx + 0x9f8]
shr rdx, 6
lea rsi, [rsp + 0x20]
mov rbx, r8
mov r8d, edx
mov rdx, rsi
call method.randomx.initDatasetItem_randomx_cache__unsigned_char__unsigned_long_long_
xor eax, eax
movdqu xmm0, xmmword [rbx + rax]
pxor xmm0, xmmword [rsi + rax]
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x1401419a6
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140141ab0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rcx, qword [rcx + 0x9f8]
shr rdx, 6
lea rsi, [rsp + 0x20]
mov rbx, r8
mov r8d, edx
mov rdx, rsi
call method.randomx.initDatasetItem_randomx_cache__unsigned_char__unsigned_long_long_
xor eax, eax
movdqu xmm0, xmmword [rbx + rax]
pxor xmm0, xmmword [rsi + rax]
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x140141ad6
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140141be0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rcx, qword [rcx + 0x9f8]
shr rdx, 6
lea rsi, [rsp + 0x20]
mov rbx, r8
mov r8d, edx
mov rdx, rsi
call method.randomx.initDatasetItem_randomx_cache__unsigned_char__unsigned_long_long_
xor eax, eax
movdqu xmm0, xmmword [rbx + rax]
pxor xmm0, xmmword [rsi + rax]
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x140141c06
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140142150
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
mov rcx, rdx
mov edx, 0x200000
mov r8, qword [rax + 0x9f0]
jmp sym.void_fillAes1Rx4_false__void__unsigned_long_long__void_

Function at 0x140142170
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rcx
mov rcx, rdx
mov edx, 0x880
add r8, 0x40
jmp sym.void_fillAes4Rx4_false__void__unsigned_long_long__void_
Function at 0x140142190
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x9f8], 0
mov rbx, rcx
je 0x1401421cf
movdqu xmm0, xmmword [0x140269760]
mov ecx, 0x200000
aesenc xmm0, xmm0
movups xmmword [0x140269760], xmm0
call method.randomx::AlignedAllocator_64ull_.allocMemory_unsigned_long_long_
mov qword [rbx + 0x9f0], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 0x10
call sym.__cxa_allocate_exception
lea rdx, str.Cache_Dataset_not_set
mov rcx, rax
mov rbx, rax
call sym.std::invalid_argument::invalid_argument_char_const_
lea r8, [fcn.1400fa448]
lea rdx, sym.imp.libstdc_6.dll_vtable_for_std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___
mov rcx, rbx
call sym.__cxa_throw
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rcx, rsi
call sym._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1401426a0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
mov rcx, rdx
mov edx, 0x200000
mov r8, qword [rax + 0x9f0]
jmp sym.void_fillAes1Rx4_false__void__unsigned_long_long__void_

Function at 0x1401426c0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rcx
mov rcx, rdx
mov edx, 0x880
add r8, 0x40
jmp sym.void_fillAes4Rx4_false__void__unsigned_long_long__void_

Function at 0x1401426e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x9f8], 0
mov rbx, rcx
je 0x14014271f
movdqu xmm0, xmmword [0x140269760]
mov ecx, 0x200000
aesenc xmm0, xmm0
movups xmmword [0x140269760], xmm0
call method.randomx::LargePageAllocator.allocMemory_unsigned_long_long_
mov qword [rbx + 0x9f0], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 0x10
call sym.__cxa_allocate_exception
lea rdx, str.Cache_Dataset_not_set
mov rcx, rax
mov rbx, rax
call sym.std::invalid_argument::invalid_argument_char_const_
lea r8, [fcn.1400fa448]
lea rdx, sym.imp.libstdc_6.dll_vtable_for_std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___
mov rcx, rbx
call sym.__cxa_throw
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rcx, rsi
call sym._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14016a4d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x14023b4a0]
mov qword [rsp + 0x50], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x20], r8
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
call dbg.__mingw_vfprintf
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbx]
jne 0x14016a50f
add rsp, 0x30
pop rbx
ret
call dbg.__stack_chk_fail
nop
nop word cs:[rax + rax]
Function at 0x14016a520
Capabilities:
Generate random numbers via winapi

Disassembly:
endbr64
push rbx
sub rsp, 0x40
mov rbx, qword [0x14023b4a0]
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14016a598
mov rcx, qword [rsp + 0x30]
lea r8, [0x1402694a0]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14016a5e5
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x14016a5c1
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x14016a5bc
add rsp, 0x40
pop rbx
ret
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.Failed:_CryptAcquireContext_prov__NULL__NULL__PROV_RSA_FULL__CRYPT_VERIFYCONTEXT__CRYPT_SILENT_
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym._exit
call dbg.__stack_chk_fail
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.Failed:_CryptReleaseContext_prov__0_
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym._exit
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.Failed:_CryptGenRandom_prov___DWORD_n__result_
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym._exit
nop
nop
nop
nop
nop
nop
nop
Function at 0x14016d6d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov edx, 0x128
mov rsi, rcx
mov ecx, 1
call sym.calloc
mov rbx, rax
test rax, rax
je 0x14016d738
mov dword [rax + 0x24], 0x7e
mov rax, qword [0x14023a398]
pcmpeqd xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x2c], rax
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [rsi], rbx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
ret
mov eax, 0xc
jmp 0x14016d731
Function at 0x140004730
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000478e
cmp dword [0x1400164d0], 2
je 0x140004770
call fcn.14015a000
mov ecx, 0x12
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
mov eax, 0xff
jmp 0x140004995
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400047bf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x140004995
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x1400047f1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x140016aa4], r13d
mov dword [0x140016aac], eax
mov dword [0x140016ab0], esi
mov dword [0x140016ab4], r12d
mov dword [0x140016aa8], edi
cmp word [0x140000000], 0x5a4d
jne 0x140004877
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140004845
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
cmp word [rax + 0x18], 0x20b
je 0x140004855
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
cmp dword [rax + 0x84], 0xe
ja 0x140004866
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140006df0
test eax, eax
jne 0x1400048ad
cmp dword [0x1400164d0], 2
je 0x140004899
call fcn.140006d00
mov ecx, 0x1c
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
call fcn.1400060c0
test eax, eax
jne 0x1400048d8
cmp dword [0x1400164d0], 2
je 0x1400048c4
call fcn.140006d00
mov ecx, 0x10
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
call fcn.1400090b0
nop
call fcn.140008d80
test eax, eax
jns 0x1400048f1
mov ecx, 0x1b
call fcn.140006690
call fcn.140008c60
mov qword [0x140018e58], rax
call fcn.140008a60
mov qword [0x1400164c8], rax
call fcn.1400087f0
test eax, eax
jns 0x14000491c
mov ecx, 8
call fcn.140006690
call fcn.1400084c0
test eax, eax
jns 0x14000492f
mov ecx, 9
call fcn.140006690
mov ecx, 1
call fcn.140006800
test eax, eax
je 0x140004944
mov ecx, eax
call fcn.140006690
mov r8, qword [0x140016ae0]
mov qword [0x140016ae8], r8
mov rdx, qword [0x140016ac8]
mov ecx, dword [0x140016ab8]
call fcn.140001b60
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140004975
mov ecx, eax
call fcn.140006a10
call fcn.140006a30
jmp 0x140004993
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.140009130
add rsp, 0x28
jmp 0x140004730
Function at 0x140006d00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14000bcd0
cmp eax, 1
je 0x140006d32
mov ecx, 3
call fcn.14000bcd0
test eax, eax
jne 0x140006de6
cmp dword [section..data], 1
jne 0x140006de6
mov qword [rsp + 0x48], rbx
lea rbx, [0x140015880]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140006d5e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140006d48
jmp 0x140006dd2
cmp edi, 0x17
jae 0x140006dd2
mov ecx, 3
call fcn.14000bcd0
cmp eax, 1
je 0x140006d89
mov ecx, 3
call fcn.14000bcd0
test eax, eax
jne 0x140006dd2
cmp dword [section..data], 1
jne 0x140006dd2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140006dd2
cmp rax, 0xffffffffffffffff
je 0x140006dd2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140006ac0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x18000f220
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18000f248
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000f26e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000f270
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000f2c9
test ecx, ecx
jle 0x18000f2a9
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 0x18000f2c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000f2c9
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
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x18000f2f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000f312
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000f328
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000f344
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000f346
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000f382
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000f41e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000f3bd
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
cmp rbx, 0xfff
jbe 0x18000f3fe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000f41e
cmp rbx, rax
ja 0x18000f3d0
test rbx, rbx
je 0x18000f41e
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18000f850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800d2028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000f87d
xor eax, eax
jmp 0x18000f9e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000f8b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000f8b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18000f9e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000f9dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000f8fa
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 0x18000f925
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000f9e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x18000f994
sub eax, 1
je 0x18000f994
cmp eax, 2
jne 0x18000f9dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000f9e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000f9c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000f9dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000f9e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180086d20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800100b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800d2028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180010183
cmp byte [rcx + 0x71], 0
je 0x180010183
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18001017f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180010144
sub eax, 1
je 0x180010148
cmp eax, 2
jne 0x18001017f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180086d20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180010176
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18001017f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001012c
xor al, al
jmp 0x18001012c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180086d20
add rsp, 0x60
pop rbx
ret
Function at 0x18001f640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800d2028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rcx, qword [rcx + 0x10]
add rcx, 0x18
lea rdx, [rsp + 0x30]
call fcn.18001f1c0
nop
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 0x10
cmovae rdx, rsi
movabs r9, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x18001f6d3
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x18001f6c0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.180014e60
mov rcx, qword [rax + 8]
mov rdi, qword [0x1800d3618]
test rcx, rcx
cmovne rdi, rcx
cmp rdi, qword [0x1800d3618]
je 0x18001f76a
cmp qword [rdi + 0x40], r13
je 0x18001f76a
lea r9, [rdi + 0x30]
cmp rbx, r9
je 0x18001f754
mov rdx, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x18001f71a
mov r9, qword [r9]
mov rax, qword [rbx + 0x18]
cmp rdx, rax
ja 0x18001f74c
mov rbp, rbx
cmp rax, 8
jb 0x18001f72f
mov rbp, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rbp], r13w
jmp 0x18001f754
mov rcx, rbx
call fcn.180020ce0
mov rax, qword [rdi + 0x50]
mov qword [r15], rax
mov rax, qword [rdi + 0x58]
movzx ecx, byte [rax]
mov byte [r12], cl
mov bl, 1
jmp 0x18001f76c
xor bl, bl
cmp r14, 0x10
jb 0x18001f7a6
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18001f79e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001f79e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.180087380
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180086d20
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180030540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18003059d
lea rbx, [0x1800b95e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180030584
cmp r10, 2
jb 0x180030584
cmp byte [r9], r8b
jne 0x180030584
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180030560
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800305df
lea rbx, [0x1800b95e0]
cmp r8b, 0x23
jne 0x1800305c3
cmp byte [r9], r8b
jne 0x1800305c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800305b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800307a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1800307cf
mov r8d, 0x804
lea rdx, str.D:SourceTishSelchimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x1800307db
mov qword [rdi], 0
lea rdx, [0x1800b8df8]
mov rcx, rbx
call fcn.1800305f0
mov rbx, rax
test rax, rax
jne 0x1800307fd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800308d4
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 0x1800308d4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1800308d4
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 0x1800308d4
cmp rsi, 0xffffffffffffffff
je 0x1800308d4
mov rax, qword [0x1800d34b0]
test rax, rax
je 0x180030871
inc dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1800308d4
mov r9, rbx
mov r8, rsi
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, rsi
je 0x1800308c1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800d34b0]
test rax, rax
je 0x1800308b6
dec dword [rax + 0xec]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800308dd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1800308cf
mov qword [rdi], rsi
mov rax, rbp
jmp 0x1800308df
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret