joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400506d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
cmp dword [0x140291ba0], 0xffffffff
movzx ebp, dl
mov rsi, rcx
jne 0x1400506fb
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140291ba0], eax
cmp eax, 0xffffffff
je 0x140050808
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r14
call fcn.140050010
lea rcx, [0x14029cbe8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
lea r14, [0x14029cc10]
mov edi, ebx
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x14005075b
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x14005074d
cmp dword [rsp + 0x50], 0x103
je 0x14005075b
mov rcx, qword [rdi + r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + r14], rbx
add rdi, 8
cmp rdi, 0x400
jb 0x140050727
lea rcx, [0x14029cbe8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x48]
test bpl, bpl
je 0x1400507ef
test rsi, rsi
je 0x1400507d4
call fcn.140050010
lea rcx, [0x14029cbe8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [r14 + rbx*8], 0
je 0x1400507c1
inc rbx
cmp rbx, 0x80
jb 0x140050796
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14029cbe8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400507ef
lea rcx, [0x14029cbe8]
mov qword [r14 + rbx*8], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400507ef
mov ecx, dword [0x140291ba0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400507ef
xor edx, edx
mov rcx, rax
call fcn.14004f3c0
mov ecx, dword [0x140291ba0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x1400509b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov r9, qword [rcx]
lea rax, [0x14029d028]
mov rdi, rdx
mov rsi, rcx
xor r8d, r8d
cmp qword [rax], r9
je 0x1400509ef
add r8, 0x90
add rax, 0x90
cmp r8, 0x4800
jb 0x1400509d2
jmp 0x1400509f3
mov qword [rax + 0x10], rdi
mov ecx, dword [0x1402a1a94]
test ecx, ecx
jne 0x140050a32
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
mov dword [0x1402a1a94], ecx
mov ebx, 1
shl rbx, cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov rcx, qword [rsi]
test eax, eax
cmovne rbx, qword [rsp + 0x68]
and rbx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140053ee0
Capabilities:
Hash data using fnv

Disassembly:
cmp rdx, r8
je 0x1400540e6
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, 0x40
mov r12, r8
mov rdi, rdx
mov rbx, rcx
lea r15, [rcx + 8]
movabs r9, 0x492492492492492
xor r13d, r13d
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
movzx ebp, byte [rdi]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [rdi + 1]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [rdi + 2]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [rdi + 3]
xor rbp, rax
imul rbp, rcx
mov r8, rbp
and r8, qword [rbx + 0x30]
lea rcx, [r8 + r8]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + rcx*8 + 8]
mov rsi, qword [r15]
cmp rdx, rsi
je 0x140053fa6
add r8, r8
mov rcx, qword [rax + r8*8]
mov eax, dword [rdi]
cmp eax, dword [rdx + 0x10]
je 0x1400540bc
nop dword [rax]
cmp rdx, rcx
je 0x140053fa3
mov rdx, qword [rdx + 8]
cmp eax, dword [rdx + 0x10]
jne 0x140053f90
jmp 0x1400540bc
mov rsi, rdx
cmp qword [rbx + 0x10], r9
je 0x1400540ee
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x38], r13
mov ecx, 0x38
call fcn.14012fc1c
mov r14, rax
mov qword [rsp + 0x38], rax
lea rdx, [rax + 0x10]
mov qword [rsp + 0x78], rdx
mov ecx, dword [rdi]
mov dword [rdx], ecx
lea rcx, [rdx + 8]
lea rdx, [rdi + 8]
call fcn.140019bb0
nop
mov rcx, qword [rbx + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x140054000
cvtsi2ss xmm0, rcx
jmp 0x140054015
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbx + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140054028
cvtsi2ss xmm1, rcx
jmp 0x14005403d
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbx]
jbe 0x14005409b
mov rcx, rbx
call fcn.14005dda0
mov r8, rbp
and r8, qword [rbx + 0x30]
lea rcx, [r8 + r8]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + rcx*8 + 8]
mov rax, qword [r15]
cmp rdx, rax
je 0x140054091
add r8, r8
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + r8*8]
mov eax, dword [r14 + 0x10]
cmp eax, dword [rdx + 0x10]
je 0x14005408e
nop
cmp rdx, rcx
je 0x1400540e7
mov rdx, qword [rdx + 8]
cmp eax, dword [rdx + 0x10]
jne 0x140054080
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x20]
mov qword [rsp + 0x38], r13
mov r9, r14
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14005d600
nop
movabs r9, 0x492492492492492
add rdi, 0x28
cmp rdi, r12
jne 0x140053f1f
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
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 qword [rsp + 0x20], rdx
jmp 0x140054096
lea rcx, str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x14005d430
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14005d5f2
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [rsi + 8]
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
mov r8, rbx
call fcn.14002be10
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14005d5b0
movabs rbp, 0x100000001b3
movabs r14, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r8d, byte [rcx + 0x10]
xor r8, r14
imul r8, rbp
movzx eax, byte [rcx + 0x11]
xor r8, rax
imul r8, rbp
movzx eax, byte [rcx + 0x12]
xor r8, rax
imul r8, rbp
movzx eax, byte [rcx + 0x13]
xor r8, rax
imul r8, rbp
and r8, qword [rsi + 0x30]
mov r11, r8
shl r11, 4
add r11, qword [rsi + 0x18]
add r8, r8
mov rax, qword [rsi + 0x18]
lea rdi, [rax + r8*8]
cmp qword [r11], rbx
jne 0x14005d528
mov qword [r11], rcx
mov qword [rdi + 8], rcx
jmp 0x14005d5a4
mov rax, qword [rdi + 8]
mov r8d, dword [rax + 0x10]
cmp dword [rcx + 0x10], r8d
jne 0x14005d565
mov r8, qword [rax]
cmp r8, rcx
je 0x14005d55f
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov rax, qword [rdx + 8]
mov qword [rax], r8
mov r9, qword [r8 + 8]
mov qword [r9], rcx
mov qword [r8 + 8], rax
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
mov qword [rdi + 8], rcx
jmp 0x14005d5a4
cmp qword [r11], rax
je 0x14005d580
mov r9d, dword [rcx + 0x10]
mov r8, qword [r11]
mov rax, qword [rax + 8]
cmp r9d, dword [rax + 0x10]
je 0x14005d5cc
cmp r8, rax
jne 0x14005d571
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov qword [rax + 8], r8
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x14005d4d0
mov qword [rsp + 0x48], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov qword [rax + 8], r8
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
jmp 0x14005d5a4
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x14005e0d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, r8
mov r14, rdx
mov rdx, rcx
cmp r14, r8
je 0x14005e1fb
mov r13, qword [rcx + 8]
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x20], r8
lea rbp, [rcx + 8]
mov qword [rsp + 0x38], rbp
mov rax, qword [r14 + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov rax, qword [r14 + 8]
mov qword [rsp + 0xb8], rax
movzx ecx, byte [r14 + 0x10]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r9, 0x100000001b3
imul rcx, r9
movzx eax, byte [r14 + 0x11]
xor rcx, rax
imul rcx, r9
movzx eax, byte [r14 + 0x12]
xor rcx, rax
imul rcx, r9
movzx eax, byte [r14 + 0x13]
xor rcx, rax
imul rcx, r9
mov rax, qword [rdx + 0x30]
and rax, rcx
mov r12, rax
shl r12, 4
add r12, r8
add rax, rax
inc rax
lea rax, [r8 + rax*8]
mov qword [rsp + 0xb0], rax
cmp qword [r12], r14
sete byte [rsp + 0xa8]
mov r15, qword [rax]
cmp r14, r15
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x48], r14
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rcx
add rcx, 8
call fcn.14001b600
mov edx, 0x38
mov rcx, rdi
call fcn.14012fc60
dec qword [rbp + 8]
test sil, sil
jne 0x14005e20f
cmp r14, rbx
jne 0x14005e1a2
cmp byte [rsp + 0xa8], sil
je 0x14005e1ef
mov qword [r12], r14
mov rax, qword [rsp + 0x28]
mov qword [rax], r14
mov qword [r14 + 8], rax
mov rax, rbx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0xb0]
cmp byte [rsp + 0xa8], 0
je 0x14005e22a
mov qword [r12], r13
mov qword [rax], r13
jmp 0x14005e235
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
cmp r14, rbx
je 0x14005e1ef
movzx ecx, byte [r14 + 0x10]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r14 + 0x11]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r14 + 0x12]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r14 + 0x13]
xor rcx, rax
imul rcx, rdx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x30]
and rax, rcx
mov r12, rax
shl r12, 4
mov rcx, qword [rsp + 0x20]
add r12, rcx
add rax, rax
inc rax
lea rax, [rcx + rax*8]
mov qword [rsp + 0xa8], rax
mov r15, qword [rax]
cmp r14, r15
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x48], r14
lea rcx, [rdi + 0x10]
mov qword [rsp + 0xb0], rcx
add rcx, 8
call fcn.14001b600
mov edx, 0x38
mov rcx, rdi
call fcn.14012fc60
dec qword [rbp + 8]
test sil, sil
jne 0x14005e2f9
cmp r14, rbx
je 0x14005e1eb
jmp 0x14005e2b1
mov qword [r12], r13
mov rax, qword [rsp + 0xa8]
mov qword [rax], r13
jmp 0x14005e235
Function at 0x14006faa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006fb1e
cmp byte [rcx + 0x71], 0
je 0x14006fb1e
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14006faea
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x60
pop rbx
ret
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 0x14006fb33
sub eax, 1
je 0x14006fb37
cmp eax, 2
jne 0x14006fad5
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
sub rdi, rax
je 0x14006fb6e
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
je 0x14006fb6e
xor al, al
jmp 0x14006fb75
cmp byte [rbx + 0x71], 0
sete al
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x60
pop rbx
ret
Function at 0x140070b90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x40]
mov rcx, r15
call fcn.14006e750
mov edi, 2
mov dword [rsp + 0x20], edi
movzx ebp, byte [r12]
mov r14d, 1
not ebp
nop dword [rax + rax]
movzx ebx, bpl
xor bl, byte [r14 + r12]
lea r14, [r14 + 1]
mov rdx, rsi
mov rcx, r15
call fcn.14006f0e0
or byte [rax], bl
movzx eax, bl
xor eax, ebp
imul ebp, eax, 0x1000193
inc rsi
cmp rsi, 0x40
jb 0x140070be0
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
or edi, 1
mov dword [rsp + 0x20], edi
mov rax, r15
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x20]
mov rcx, r15
call fcn.14006e750
mov edi, 2
mov dword [rsp + 0x20], edi
movzx ebp, byte [r12]
mov r14d, 1
not ebp
nop dword [rax + rax]
movzx ebx, bpl
xor bl, byte [r14 + r12]
lea r14, [r14 + 1]
mov rdx, rsi
mov rcx, r15
call fcn.14006f0e0
or byte [rax], bl
movzx eax, bl
xor eax, ebp
imul ebp, eax, 0x1000193
inc rsi
cmp rsi, 0x20
jb 0x140070c90
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
or edi, 1
mov dword [rsp + 0x20], edi
mov rax, r15
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400731b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400731dd
xor eax, eax
jmp 0x140073346
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140073206
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x140073206
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140073346
cmp qword [rcx + 0x80], 0
jne 0x14007321a
mov eax, 0xffffffff
jmp 0x140073346
mov rcx, qword [rcx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [rcx], rax
jne 0x140073249
mov rdx, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rcx], rdx
sub r8d, edx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
mov rax, qword [rbx + 0x50]
mov dword [rax], r8d
cmp qword [rbx + 0x68], 0
jne 0x140073272
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 0x140073346
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400732e9
sub eax, 1
je 0x1400732e9
cmp eax, 2
jne 0x140073210
movsx ecx, byte [rsp + 0x40]
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 0x140073346
mov qword [rsp + 0xa0], rsi
lea rax, [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
sub rsi, rax
je 0x140073326
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
je 0x140073326
mov eax, 0xffffffff
jmp 0x14007333e
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14012fd90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140073c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140073cc1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140073cdf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
cmp qword [rax], 0
je 0x140073cf9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140073cfb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140073d48
mov rdx, qword [rsi + 0x38]
cmp rax, rbp
mov qword [rsp + 0x38], rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
mov rdi, rbx
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
mov rbx, rbp
sub rbx, rdi
mov ecx, dword [rax]
sub ecx, edi
mov dword [rax], ecx
mov rax, qword [rsi + 0x38]
movsxd rcx, edi
mov rdi, qword [rsp + 0x38]
add rcx, qword [rax]
mov qword [rax], rcx
cmp qword [rsi + 0x80], 0
je 0x140073dde
mov rcx, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [rcx], rax
jne 0x140073d85
mov rdx, qword [rsi + 0x88]
mov r8, qword [rsi + 0x90]
mov qword [rcx], rdx
sub r8d, edx
mov rax, qword [rsi + 0x38]
mov qword [rax], rdx
mov rax, qword [rsi + 0x50]
mov dword [rax], r8d
cmp rbx, 0xfff
jbe 0x140073dbe
nop
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 0x140073dde
cmp rbx, rax
ja 0x140073d90
test rbx, rbx
je 0x140073dde
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140073e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140073e37
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
cmp qword [rax], 0
je 0x140073e56
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140073e58
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140073ec1
test ecx, ecx
jle 0x140073e97
mov rcx, qword [rdi + 0x40]
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, qword [rcx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
mov ecx, dword [rax]
sub ecx, ebp
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
movsxd rcx, ebp
add rcx, qword [rax]
mov qword [rax], rcx
test rbx, rbx
jle 0x140073ec1
cmp qword [rdi + 0x80], 0
je 0x140073ec1
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140078410
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
xor ebx, ebx
nop word [rax + rax]
mov r9, qword [r11]
cmp dword [r9], 0x270
jne 0x140078482
lea r8, [r9 + 8]
mov r10d, 0x270
nop word [rax + rax]
mov edx, dword [r8 - 4]
mov eax, dword [r8]
lea r8, [r8 + 4]
btr eax, 0x1f
and edx, 0x80000000
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140078440
jmp 0x14007856a
cmp dword [r9], 0x4e0
jb 0x14007856a
lea r8, [r9 + 0x9c4]
mov r10d, 0xe3
nop dword [rax]
mov edx, dword [r8 + 4]
mov eax, dword [r8]
lea r8, [r8 + 4]
and eax, 0x80000000
btr edx, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
xor ecx, edx
mov dword [r8 - 0x9c4], ecx
sub r10, 1
jne 0x1400784a0
lea rax, [r9 + 0xd50]
mov r10d, 0x18c
nop dword [rax]
mov r8d, dword [rax + 4]
mov ecx, dword [rax]
lea rax, [rax + 4]
and ecx, 0x80000000
btr r8d, 0x1f
or r8d, ecx
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax - 0xd50]
xor edx, r8d
mov dword [rax - 0x9c4], edx
sub r10, 1
jne 0x1400784f0
mov edx, dword [r9 + 0x1380]
mov eax, dword [r9 + 4]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov dword [r9], ebx
mov eax, dword [r9]
mov edx, dword [r9 + rax*4 + 4]
mov ecx, edx
mov eax, dword [r9 + 0x1384]
inc dword [r9]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, 0xffffffff
ja 0x140078420
mov rbx, qword [rsp + 8]
ret
Function at 0x1400881f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140088215
cvtsi2ss xmm0, rdx
jmp 0x14008822a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140190d40]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140088258
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140088258
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov rcx, qword [reloc.OLEAUT32.dll_VariantClear]
cmp rax, 8
cmova rcx, rax
cmp rbx, rcx
jae 0x140088295
cmp rbx, 0x200
jae 0x140088292
lea rax, [rbx*8]
lea rbx, [rbx*8]
cmp rax, rcx
jae 0x140088295
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14002c420