joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e01c
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm1, xmm1
mov rdi, rcx
cvtss2sd xmm1, xmm2
lea rcx, [rsp + 0x38]
mov rbx, r9
mov rsi, rdx
call fcn.140065d48
cmp qword [rsp + 0x50], 0xf
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x58]
cmova r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14005e0bf
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e0ba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e0ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x14005e0e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov dword [rbp - 0x40], 0xe8ece2cb
mov ecx, ebx
mov dword [rbp - 0x3c], 0xe8fac4e6
mov dword [rbp - 0x38], 0xe8f1e3fc
mov word [rbp - 0x34], 0x100
lea eax, [rcx - 0x7a]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0xc
jb 0x14005e125
movdqa xmm0, xmmword [0x1400dd390]
mov rcx, rbx
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x33], bl
mov word [rbp - 0x20], 0xe5
mov byte [rbp - 0x1e], 1
lea eax, [rcx - 0x7a]
xor byte [rbp + rcx - 0x30], al
inc rcx
cmp rcx, 0x11
jb 0x14005e152
lea rdx, [rbp - 0x40]
mov byte [rbp - 0x1e], bl
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140104ff0], rax
test rax, rax
je 0x14005e1f4
movdqa xmm0, xmmword [0x1400dd170]
lea rdx, [rbp - 0x18]
mov rcx, rax
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [0x140104ff0]
xor r9d, r9d
mov dword [rsp + 0x30], 0x40
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140104ff0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140104ff0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d0880
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x14005e214
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [0x140104ff0]
xor edi, edi
mov qword [rbp + 7], rax
xor r9d, r9d
lea rax, [0x140105000]
mov qword [rbp - 0x15], rdi
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rbp - 0x39]
mov qword [rbp - 1], 2
mov qword [rsp + 0x50], rax
lea edx, [rdi + 1]
lea rax, [0x140104ff8]
mov qword [rbp + 0x17], 2
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [0x140105008]
mov qword [rbp - 0x29], rdi
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x49]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x19], Ordinal_30
mov dword [rbp - 0x21], reloc.WLDAP32.dll_Ordinal_60
mov dword [rbp - 0x1d], 1
mov dword [rbp - 5], reloc.WLDAP32.dll_Ordinal_32
mov qword [rbp - 0xd], 1
mov qword [rbp + 0xf], 1
mov dword [rbp - 0x49], 0xb000
mov dword [rbp - 0x45], 0xa000
call sub.d3d11.dll_D3D11CreateDeviceAndSwapChain
mov rcx, qword [0x140105008]
lea r9, [rbp - 0x41]
lea r8, [0x1400dbda8]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [0x140104ff8]
lea r9, [0x140105010]
mov rdx, qword [rbp - 0x41]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x30], 2
lea r9d, [rdi + 8]
mov qword [rsp + 0x28], reloc.WS2_32.dll_sendto
lea rcx, str.1.89.7_WIP
mov edx, 0x37c8
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r8d, 0x42c
call fcn.140024500
xor ecx, ecx
call fcn.1400242c8
call fcn.140027330
mov edx, 0x3f800000
mov ecx, 0x40400000
mov dword [rax + 0x48], edx
mov qword [rax + 0x40], rdi
mov dword [rax + 0x3c], 0x40800000
mov dword [rax + 0x80], ecx
mov dword [rax + 0x88], edi
mov dword [rax + 0x8c], edx
mov dword [rax + 0x74], ecx
mov dword [rax + 0x20], 0x3f000000
call fcn.140026be4
movdqa xmm0, xmmword [0x1400dd380]
mov edx, edi
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 0x37], 0xebfdc1ca
mov rcx, qword [rax + 0x50]
mov dword [rbp + 0x3b], 0xfcf2fafe
mov dword [rbp + 0x3f], 0xc7d4ebb0
mov word [rbp + 0x43], 0x100
lea eax, [rdx - 0x7a]
xor byte [rbp + rdx + 0x27], al
inc rdx
cmp rdx, 0x1c
jb 0x14005e3da
movss xmm2, dword [0x1400d6ee0]
lea rdx, [rbp + 0x27]
xor r9d, r9d
mov byte [rbp + 0x44], dil
mov qword [rsp + 0x20], rdi
call fcn.140037770
mov rcx, qword [0x140104ff0]
mov qword [0x1401053f0], rax
call fcn.140045a68
mov rdx, qword [0x140105000]
mov rcx, qword [0x140104ff8]
call fcn.140044b58
mov rcx, qword [0x140104ff8]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400d0880
mov rdi, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret
Function at 0x14005ec30
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.14005f64c
xor r8d, r8d
mov dword [rsp + 0x20], 0xa8b9b8
mov byte [rsp + 0x24], 1
lea eax, [r8 - 0x7a]
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 3
jb 0x14005ec5d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x24], 0
call fcn.140058358
call fcn.14005f694
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.140058358
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x30
pop rbx
ret

Function at 0x14005ecac
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.14005f628
xor r8d, r8d
mov dword [rsp + 0x20], 0xa8b9b8
mov byte [rsp + 0x24], 1
lea eax, [r8 - 0x7a]
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 3
jb 0x14005ecd9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x24], 0
call fcn.140058358
call fcn.14005f694
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.140058358
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x30
pop rbx
ret

Function at 0x14005ed28
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.14005f670
xor r8d, r8d
mov dword [rsp + 0x20], 0xa8b9b8
mov byte [rsp + 0x24], 1
lea eax, [r8 - 0x7a]
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 3
jb 0x14005ed55
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x24], 0
call fcn.140058358
call fcn.14005f694
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.140058358
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x30
pop rbx
ret
Function at 0x14005eda4
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
sub rsp, 0x60
xorps xmm0, xmm0
xor esi, esi
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
mov rcx, qword [0x140104ff0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140104ff0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [0x140104ff0]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14005ee1a
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.140026be4
mov rcx, qword [0x140104ff0]
mov rbx, rax
mov qword [rax + 0xc8], rcx
lea rcx, [rsp + 0x70]
mov dword [rax + 0x10], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x70]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe00], xmm0
movd xmm0, dword [rsp + 0x74]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe04], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14005ee90
mov byte [rbx + 0xe08], 1
mov eax, dword [rbx + 0xe04]
mov dword [rbx + 0x36f0], eax
mov byte [rbx + 0x3740], 1
jmp 0x14005ee97
mov byte [rbx + 0xe08], sil
call fcn.14005c4c4
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x38], 0x12
jne 0x14005edc1
call fcn.14004597c
call fcn.140045e6c
xor ecx, ecx
call fcn.140024b9c
mov rcx, qword [0x140104ff0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rbx, qword [rsp + 0x78]
mov al, 1
add rsp, 0x60
pop rsi
ret
Function at 0x14005f6b8
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x20], 0xc6c4c6d0
xor ecx, ecx
mov dword [rbp - 0x1c], 0xd9c2cad8
mov dword [rbp - 0x18], 0x100afae
lea eax, [rcx - 0x7a]
xor byte [rbp + rcx - 0x20], al
inc rcx
cmp rcx, 0xa
jb 0x14005f6e6
lea rdx, [rbp - 0x20]
mov byte [rbp - 0x15], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140104fe8], rax
test rax, rax
jne 0x14005f719
mov eax, 4
jmp 0x14005f734
call fcn.14005e0e8
test al, al
jne 0x14005f726
xor eax, eax
jmp 0x14005f734
call fcn.14005e214
neg al
sbb eax, eax
and eax, 2
inc eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x40
pop rbp
ret

Function at 0x14005fc60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, r9
mov dword [rsp + 0x20], 0x100e1a3
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea eax, [r8 - 0x7a]
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 2
jb 0x14005fc91
cvtss2sd xmm2, xmm2
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x30]
movq r8, xmm2
call fcn.140036b20
mov r9, rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret

Function at 0x14005fcf0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, r9
mov dword [rsp + 0x20], 0x100e3a3
mov rdi, rdx
mov rbx, rcx
xor r10d, r10d
lea eax, [r10 - 0x7a]
xor byte [rsp + r10 + 0x20], al
inc r10
cmp r10, 2
jb 0x14005fd21
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x30]
call fcn.140036b20
mov r9, rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret
Function at 0x140060124
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140060193
cmp byte [rcx + 0x71], 0
je 0x140060193
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400601e8
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 0x1400601ad
sub eax, 1
je 0x1400601b1
cmp eax, 2
jne 0x1400601e8
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d0880
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 0x1400601df
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 0x1400601e8
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140060195
xor al, al
jmp 0x140060195

Function at 0x140060d80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x140060d9b
xor edx, edx
lea eax, [rdx - 0x7a]
xor byte [rcx + rdx], al
inc rdx
cmp rdx, 0x1d
jb 0x140060d88
mov byte [rcx + 0x1e], 0
mov rax, rcx
ret
Function at 0x140063c7c
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rbp - 8], rax
lea rcx, [0x14005f748]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.14006aeb8
test al, al
je 0x140063cfe
movdqa xmm0, xmmword [0x1400dd220]
xor ecx, ecx
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x18], 1
lea eax, [rcx - 0x7a]
xor byte [rbp + rcx - 0x28], al
inc rcx
cmp rcx, 0xf
jb 0x140063cbf
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x28]
mov byte [rbp - 0x18], 0
call fcn.140058358
lea rdx, [0x14005a238]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14006af08
and dword [rbp - 0x30], 0
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov byte [rsp + 0x30], 0
xor edx, edx
mov byte [rsp + 0x28], 0
mov rcx, rax
mov byte [rsp + 0x20], 1
mov qword [0x140105018], rax
call fcn.14006c548
test rax, rax
jne 0x140063db5
movdqa xmm0, xmmword [0x1400dd3d0]
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], 0xf1ecb7e6
mov dword [rbp - 0x14], 0xeff8bbff
mov dword [rbp - 0x10], 0xd3c5e9f7
mov word [rbp - 0xc], 0x83
mov byte [rbp - 0xa], 1
call fcn.140060d80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rax
call fcn.140058358
lea rdx, [0x14005a238]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140105018]
call fcn.14006bc60
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140105018]
call fcn.14006bc60
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x80
pop rbp
ret
Function at 0x140063f94
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 [0x140104700]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x140063fce
xor eax, eax
jmp 0x1400640ed
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140064007
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140064007
mov rcx, rdi
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], r14b
mov eax, r14d
jmp 0x1400640ed
cmp qword [rdi + 0x80], 0
je 0x1400640eb
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140064041
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140064062
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
jmp 0x1400640e7
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x1400640b0
sub eax, 1
je 0x1400640b0
cmp eax, 2
jne 0x1400640eb
movsx ecx, byte [rbp - 0x40]
jmp 0x14006404e
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x1400640db
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400640eb
lea rax, [rbp - 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne esi, r14d
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d0880
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 0x140065800
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x37
sub r8d, ecx
lea rcx, [0x1400dbf51]
movsxd rax, r8d
mov cl, byte [rax + rcx]
add byte [rsp + rbx + 0x20], cl
inc rbx
cmp rbx, 0xf
jne 0x14006581f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d0880
add rsp, 0x40
pop rbx
ret

Function at 0x140066554
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140066582
xor eax, eax
jmp 0x140066669
cmp qword [rcx + 0x68], 0
je 0x140066594
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 0x140066669
mov rdi, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400665d4
cmp rax, rsi
mov rbx, rsi
mov rcx, rbp
cmovb rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, r14
mov rdx, rax
call fcn.1400d1bce
mov edx, ebx
mov rcx, rbp
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 [rbp + 0x80], 0
je 0x140066663
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp + 0x70]
cmp rax, rcx
jne 0x14006660e
mov rdx, qword [rbp + 0x88]
mov rcx, rbp
mov r9, qword [rbp + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, rdi
mov ebx, 0xfff
jmp 0x14006663e
mov r9, qword [rbp + 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 rdi, rax
add r14, rax
mov rcx, rdi
cmp rax, rbx
jne 0x140066663
cmp rdi, rbx
ja 0x140066618
test rcx, rcx
je 0x140066663
mov r9, qword [rbp + 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 rsi, rdi
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140066684
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 0x1400666ae
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 0x14006671e
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140066718
test rax, rax
jle 0x1400666f8
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.1400d1bce
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 0x140066718
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140066718
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