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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.C:Toolsmimi.exe
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140003350]
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001040
jmp 0x140001dfa
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140001d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003380]
mov r8d, eax
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001dfa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001d7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003390]
jmp 0x140001d30
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001dc1
cmp esi, dword [rsp + 0x40]
jne 0x140001dc1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140001dfa
mov rcx, rbx
call fcn.140001580
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x140001dff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400033a0]
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001e80
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140002860
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400028aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028ac
xor al, al
add rsp, 0x28
ret
Function at 0x180009cb0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor esi, esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov r8d, 8
lea rdx, str.FC__1.0_
call fcn.180006660
nop
lea rdi, [rbx + 0x20]
lea rdx, str.FUCK_CURL__V1_
mov rcx, rdi
call fcn.180005820
nop
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
lea rcx, [rbx + 0x58]
mov rdx, rbx
call fcn.180005ac0
mov qword [rbx + 0x78], rsi
mov byte [rbx + 0x80], sil
xorps xmm0, xmm0
movups xmmword [rbx + 0x88], xmm0
mov qword [rbx + 0x98], rsi
mov qword [rbx + 0xa0], 7
mov word [rbx + 0x88], si
movups xmmword [rbx + 0xa8], xmm0
mov qword [rbx + 0xb8], rsi
mov qword [rbx + 0xc0], 7
mov word [rbx + 0xa8], si
movups xmmword [rbx + 0xc8], xmm0
mov qword [rbx + 0xd8], rsi
mov qword [rbx + 0xe0], 7
mov word [rbx + 0xc8], si
cmp qword [rdi + 0x18], 7
jbe 0x180009d8e
mov rdi, qword [rdi]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx + 0x78], rax
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000c1b8
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r9
movaps xmm7, xmm2
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov ebx, r14d
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x18017b9d8]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rcx, qword [rcx + 0x4000]
cmp byte [rcx + 0xc3], r14b
je 0x18000c221
xor al, al
jmp 0x18000c32a
xor r8d, r8d
mov rdx, rsi
call fcn.18008cb94
movss xmm6, dword [0x1800d1604]
movss dword [rsp + 0x20], xmm6
mov r9b, 1
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.18008951c
xor edx, edx
mov rcx, rsi
call fcn.1800b9d8c
movaps xmm1, xmm6
movaps xmm0, xmm7
call fcn.180096b14
mov edx, dword [rdi]
test edx, edx
jne 0x18000c271
lea rax, [0x1800d1564]
jmp 0x18000c28f
lea rcx, [rsp + 0x38]
call fcn.18000d748
nop
mov ebx, 1
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x18000c28f
mov rax, qword [rax]
mov rdx, rbp
mov rcx, rax
call fcn.1800b31dc
nop
test bl, 1
je 0x18000c2fa
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x18000c2e7
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c2e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c2e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c3608
movdqa xmm0, xmmword [0x18014a000]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], r14b
xor ecx, ecx
call fcn.18008e68c
test al, al
je 0x18000c328
mov ebx, 4
cmp ebx, 0x1b
je 0x18000c31e
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18000c31e
mov dword [rdi], ebx
inc ebx
cmp ebx, 0xe7
jle 0x18000c30a
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800c3bb0
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18001ace4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
and dword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
mov ebx, 1
mov ecx, ebx
call fcn.1800c35cc
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180020228]
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 0x18001ad7c
and qword [rsp + 0x38], 0
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
and dword [rsi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x18001ff20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x18001ff50
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x18001ff32
mov rax, r8
ret

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

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x18001ff61
mov rax, rdx
ret

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

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 2
jb 0x18001ff91
mov rax, rdx
ret

Function at 0x180020f78
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
and dword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
mov ecx, 8
call fcn.1800c35cc
test rax, rax
je 0x180020fb9
mov qword [rax], rbx
mov qword [rsp + 0x38], rax
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rdi, [rsi + 8]
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800201d8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x18002101b
and qword [rsp + 0x38], 0
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x18002102c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
and dword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
mov ecx, 8
call fcn.1800c35cc
mov r9, rax
test rax, rax
je 0x180021075
mov rax, qword [rbx]
mov qword [r9], rax
jmp 0x180021078
xor r9d, r9d
mov qword [rsp + 0x38], r9
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rdi, [rsi + 8]
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
lea r8, [0x1800202e4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x1800210d7
and qword [rsp + 0x38], 0
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x18003c7f4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x18003c847
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
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 r9, 1
jne 0x18003c80c
jmp 0x18003c854
cmp dword [rcx], 0x4e0
jb 0x18003c854
call fcn.1800696c4
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
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
add rsp, 0x20
pop rbx
ret

Function at 0x18004b3fc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13d0
call fcn.1800c3cf0
sub rsp, rax
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov ebx, edx
mov edi, ecx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
or dword [rsp + 0x13b4], 0xffffffff
mov ecx, 0x270
mov dword [rsp + 0x34], eax
mov r9d, 1
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x34], eax
inc r9
cmp r9, rcx
jb 0x18004b441
mov dword [rsp + 0x30], ecx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r9d, ebx
mov r8d, edi
call fcn.18001fa7c
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x13e0]
add rsp, 0x13d0
pop rdi
ret

Function at 0x18004bf7c
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov rax, qword gs:[0x60]
mov rsi, r9
mov rbp, r8
mov r14d, edx
mov r15, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r11, qword [rax + 0x30]
movsxd r10, dword [r11 + 0x3c]
mov r10d, dword [r10 + r11 + 0x88]
add r10, r11
cmp r10, r11
je 0x18004c013
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x18004c013
mov ebx, dword [r10 + 0x20]
dec r8d
mov r9d, 0x811c9dc5
lea rcx, [rbx + r8*4]
mov edx, dword [rcx + r11]
add rdx, r11
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x18004c00e
movsx ecx, cl
xor ecx, r9d
imul r9d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x18004bfef
cmp r9d, 0x8fb39146
je 0x18004c018
test r8d, r8d
jne 0x18004bfd2
mov rax, qword [rax]
jmp 0x18004bfad
mov ecx, dword [r10 + 0x24]
mov r9, rsi
add rcx, r11
movzx edx, word [rcx + r8*2]
mov r8, rbp
mov ecx, dword [r10 + 0x1c]
add rcx, r11
mov r10d, dword [rcx + rdx*4]
mov edx, r14d
add r10, r11
mov rcx, r15
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop rdi
jmp r10
Function at 0x180051d70
Capabilities:
Log keystrokes

Disassembly:
sub rsp, 0x28
xor edx, edx
mov ecx, 0xb0
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb0
mov edx, eax
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, 0xb0
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb0
mov edx, eax
lea r8d, [r9 + 3]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_keybd_event]

Function at 0x180053bc4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180053c5d
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rsi, [rbx + 0x10]
mov ecx, 2
mov rdx, qword [rsi]
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x180053c57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x180053c24
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x180053c5d
cmp qword [rbx + 0x18], 0xf
jbe 0x180053c2e
mov rbx, qword [rbx]
mov rdx, qword [rsi]
mov r8, rbx
inc rdx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800549e4
Capabilities:
Log keystrokes

Disassembly:
sub rsp, 0x28
xor edx, edx
mov ecx, 0xb3
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb3
mov edx, eax
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, 0xb3
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb3
mov edx, eax
lea r8d, [r9 + 3]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_keybd_event]

Function at 0x180055fb4
Capabilities:
Log keystrokes

Disassembly:
sub rsp, 0x28
xor edx, edx
mov ecx, 0xb1
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb1
mov edx, eax
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, 0xb1
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov cl, 0xb1
mov edx, eax
lea r8d, [r9 + 3]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_keybd_event]
Function at 0x180067ea0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180067f0f
cmp byte [rcx + 0x71], 0
je 0x180067f0f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180067f64
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 0x180067f29
sub eax, 1
je 0x180067f2d
cmp eax, 2
jne 0x180067f64
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180067f5b
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 0x180067f64
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180067f11
xor al, al
jmp 0x180067f11

Function at 0x1800696c4
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800696db
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180069728
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x180071de4
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 [0x1801754c0]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180071e1d
xor eax, eax
jmp 0x180071f2c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180071e46
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x180071e46
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], sil
mov eax, esi
jmp 0x180071f2c
cmp qword [rcx + 0x80], 0
je 0x180071f2a
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180071e81
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x180071ea2
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 0x180071f27
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 0x180071ef0
sub eax, 1
je 0x180071ef0
cmp eax, 2
jne 0x180071f2a
movsx ecx, byte [rbp - 0x30]
jmp 0x180071e8e
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180071f1b
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 0x180071f2a
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.1800c3bb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180074d70
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 0x180074d90
xor eax, eax
jmp 0x180074e74
cmp qword [rcx + 0x68], 0
je 0x180074da2
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 0x180074e74
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180074db9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180074dbb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180074de8
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
je 0x180074e6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180074e1f
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 0x180074e49
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 0x180074e6e
cmp rdi, rbx
ja 0x180074e26
test rdi, rdi
je 0x180074e6e
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 0x180074e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180074eaa
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 0x180074f1d
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180074ec1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180074ec3
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180074f17
test ecx, ecx
jle 0x180074ef7
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x180074f17
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180074f17
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret