joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017fe0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rbp], rax
mov qword [rsp + 0x20], rcx
xorps xmm1, xmm1
mov r8, qword [rdx + 0x10]
xor edi, edi
cmp qword [rdx + 0x18], 0xf
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x10], 0x67452301
mov rbx, rcx
mov dword [rbp - 0xc], 0xefcdab89
mov dword [rbp - 8], 0x98badcfe
mov dword [rbp - 4], 0x10325476
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
jbe 0x18001806d
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
call fcn.1800105d0
mov rax, qword [rbp - 0x20]
add qword [rbp - 0x18], rax
mov byte [rsp + rax + 0x60], 0x80
mov rax, 0xfffffffffffffff8
mov rcx, qword [rbp - 0x20]
inc rcx
sub rax, rcx
mov qword [rbp - 0x20], rcx
and eax, 0x3f
add rax, 8
je 0x1800180c6
nop dword [rax]
nop word [rax + rax]
mov byte [rsp + rcx + 0x60], dil
mov rcx, qword [rbp - 0x20]
inc rcx
mov qword [rbp - 0x20], rcx
sub rax, 1
jne 0x1800180b0
mov rax, qword [rbp - 0x18]
lea rdx, [rax*8]
mov byte [rsp + rcx + 0x58], dl
mov r8, rdx
mov rax, qword [rbp - 0x20]
mov ecx, edx
shr ecx, 8
shr r8, 0x20
mov byte [rsp + rax + 0x5c], r8b
mov rax, qword [rbp - 0x20]
mov byte [rsp + rax + 0x59], cl
mov ecx, r8d
mov rax, qword [rbp - 0x20]
shr ecx, 8
mov byte [rsp + rax + 0x5d], cl
mov ecx, edx
mov rax, qword [rbp - 0x20]
shr ecx, 0x10
shr edx, 0x18
mov byte [rsp + rax + 0x5a], cl
mov ecx, r8d
mov rax, qword [rbp - 0x20]
shr ecx, 0x10
shr r8d, 0x18
mov byte [rsp + rax + 0x5e], cl
lea rcx, [rsp + 0x60]
mov rax, qword [rbp - 0x20]
mov byte [rsp + rax + 0x5b], dl
lea rdx, [rsp + 0x20]
mov rax, qword [rbp - 0x20]
mov byte [rsp + rax + 0x5f], r8b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.180010b50
xorps xmm0, xmm0
mov qword [rbp - 0x20], rdi
lea rdx, [rsp + 0x38]
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
call fcn.18001cab0
mov rdx, rax
mov rcx, rbx
call fcn.1801e32f0
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1801e4790
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18001c390
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov qword [rsp + 0x20], rcx
xorps xmm1, xmm1
mov r8, qword [rdx + 0x10]
xor edi, edi
cmp qword [rdx + 0x18], 0xf
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x10], 0x6a09e667
mov rbx, rcx
movups xmmword [rbp], xmm0
mov dword [rbp - 0xc], 0xbb67ae85
mov dword [rbp - 8], 0x3c6ef372
mov dword [rbp - 4], 0xa54ff53a
mov dword [rbp], 0x510e527f
mov dword [rbp + 4], 0x9b05688c
mov dword [rbp + 8], 0x1f83d9ab
mov dword [rbp + 0xc], 0x5be0cd19
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
jbe 0x18001c43d
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
call fcn.180010890
mov rax, qword [rbp - 0x20]
add qword [rbp - 0x18], rax
mov byte [rsp + rax + 0x60], 0x80
mov rax, 0xfffffffffffffff8
mov rcx, qword [rbp - 0x20]
inc rcx
sub rax, rcx
mov qword [rbp - 0x20], rcx
and eax, 0x3f
add rax, 8
je 0x18001c496
nop dword [rax]
nop word [rax + rax]
mov byte [rsp + rcx + 0x60], dil
mov rcx, qword [rbp - 0x20]
inc rcx
mov qword [rbp - 0x20], rcx
sub rax, 1
jne 0x18001c480
mov rax, qword [rbp - 0x18]
lea r8, [rax*8]
mov rdx, r8
shr rdx, 0x20
mov eax, edx
shr eax, 0x18
mov byte [rsp + rcx + 0x58], al
mov ecx, r8d
mov rax, qword [rbp - 0x20]
shr ecx, 0x18
mov byte [rsp + rax + 0x5c], cl
mov ecx, edx
mov rax, qword [rbp - 0x20]
shr ecx, 0x10
mov byte [rsp + rax + 0x59], cl
mov ecx, r8d
mov rax, qword [rbp - 0x20]
shr ecx, 0x10
mov byte [rsp + rax + 0x5d], cl
mov ecx, edx
mov rax, qword [rbp - 0x20]
shr ecx, 8
mov byte [rsp + rax + 0x5a], cl
mov ecx, r8d
mov rax, qword [rbp - 0x20]
shr ecx, 8
mov byte [rsp + rax + 0x5e], cl
lea rcx, [rsp + 0x60]
mov rax, qword [rbp - 0x20]
mov byte [rsp + rax + 0x5b], dl
lea rdx, [rsp + 0x20]
mov rax, qword [rbp - 0x20]
mov byte [rsp + rax + 0x5f], r8b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.180011640
xorps xmm0, xmm0
mov qword [rbp - 0x20], rdi
lea rdx, [rsp + 0x38]
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
call fcn.18001cbc0
mov rdx, rax
mov rcx, rbx
call fcn.1801e3220
mov rax, rbx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1801e4790
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180043b30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180043cab
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800438e0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180043c74
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rbp
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x180043bf0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180043c63
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x180043c29
mov r10, qword [rdx]
cmp r10, rax
je 0x180043c23
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180043c63
cmp r8, rdx
je 0x180043c3f
nop
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180043c85
cmp r8, rdx
jne 0x180043c30
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180043bc1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180043c63
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x1800440e0
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 0x180044105
cvtsi2ss xmm0, rdx
jmp 0x18004411a
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 [0x18020d294]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180044148
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180044148
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x18004417a
cmp rbx, 0x200
jae 0x180044177
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x18004417a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180043cc0
Function at 0x180054f50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rdx
mov qword [rbp - 0x61], rdx
xor r9d, r9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov edx, r9d
mov qword [rbp - 0x41], rdx
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x39], r8
mov byte [rbp - 0x51], dl
mov r12b, 1
mov rax, qword [rcx + 8]
mov qword [rbp - 0x61], rax
mov r15, qword [rcx]
cmp r15, rax
je 0x1800550e1
movzx ebx, byte [rbp - 0x69]
movzx edi, byte [rbp - 0x69]
nop
test r12b, r12b
jne 0x180055026
mov rax, r8
sub rax, rdx
cmp rax, 3
jb 0x180055004
lea rax, [rdx + 3]
mov qword [rbp - 0x41], rax
lea rsi, [rbp - 0x51]
cmp r8, 0xf
cmova rsi, qword [rbp - 0x51]
add rsi, rdx
mov r8d, 3
lea rdx, [0x18020da18]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + 3], r12b
jmp 0x180055026
mov qword [rsp + 0x20], 3
lea r9, [0x18020da18]
movzx r8d, bl
mov edx, 3
lea rcx, [rbp - 0x51]
call fcn.180005450
xor r12b, r12b
xor edx, edx
mov ecx, dword [r15]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
mov r8d, 0x40
lea rdx, [rbp - 0x29]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
lea rax, [rbp - 0x29]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], r12b
jne 0x180055054
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x39]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x18005509d
lea rax, [rcx + rsi]
mov qword [rbp - 0x41], rax
lea r14, [rbp - 0x51]
cmp rdx, 0xf
cmova r14, qword [rbp - 0x51]
add r14, rcx
mov r8, rsi
lea rdx, [rbp - 0x29]
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rsi], r12b
jmp 0x1800550b6
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x29]
movzx r8d, dil
mov rdx, rsi
lea rcx, [rbp - 0x51]
call fcn.180005450
add r15, 8
cmp r15, qword [rbp - 0x61]
je 0x1800550cd
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x41]
jmp 0x180054fc0
movups xmm0, xmmword [rbp - 0x51]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [r13 + 0x10], xmm1
jmp 0x180055142
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r9
mov qword [r13 + 0x18], r9
mov r8d, 6
lea rdx, str._None_
mov rcx, r13
call fcn.180002fc0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x180055142
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005513d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005513d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e41e4
mov rax, r13
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1801e4790
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180057300
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18005734a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1803d2528], rax
mov r9, rbx
xor eax, eax
lea r8, [0x180056d90]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18005734a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180060ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, str.ntdll.dll
mov dword [rbp - 0x19], 0xb8d18b4c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x18020f110]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180061076
mov edx, 5
lea r9, [rbp + 0x47]
mov rcx, rax
lea r8d, [rdx + 0x3b]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180061076
mov eax, dword [rbp - 0x19]
lea r9, [rbp + 0x47]
mov dword [rbx], eax
mov edx, 5
mov byte [rbx + 4], 0x50
mov rcx, rbx
mov r8d, dword [rbp + 0x47]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180061076
lea rcx, str.ntdll.dll
mov qword [rsp + 0xa0], rdi
mov dword [rbp - 0x19], 0x28ec8348
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.DbgUiRemoteBreakin
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x180060fe4
lea r9, [rbp + 0x47]
mov rcx, rax
lea edx, [rbx + 5]
lea r8d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180060fe4
mov eax, dword [rbp - 0x19]
lea r9, [rbp + 0x47]
mov dword [rdi], eax
lea edx, [rbx + 5]
mov byte [rdi + 4], 0x65
mov rcx, rdi
mov r8d, dword [rbp + 0x47]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18006103d
call fcn.18004c680
mov qword [rbp - 1], 0x23
lea rcx, str.Failed_to_unhook_DbgUiRemoteBreakin
mov qword [rbp - 9], rcx
lea r9, [rbp - 9]
movaps xmm0, xmmword [rbp - 9]
lea rdx, [rbp + 0x27]
mov rcx, qword [rax + 0x1d8]
mov r8d, 3
movdqa xmmword [rbp - 9], xmm0
mov qword [rbp + 0xf], rbx
mov qword [rbp + 7], rbx
movups xmm1, xmmword [rbp + 7]
mov qword [rbp + 0x17], rbx
movsd xmm0, qword [rbp + 0x17]
movsd qword [rbp + 0x37], xmm0
movaps xmmword [rbp + 0x27], xmm1
call fcn.18005ebe0
lea rdx, [0x180060c90]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov rdi, qword [rsp + 0xa0]
test rax, rax
jne 0x180061072
call fcn.18004c680
lea rcx, str.Failed_to_setup_handler
mov qword [rbp - 1], reloc.WS2_32.dll_socket
jmp 0x18006108c
mov al, 1
jmp 0x1800610d3
call fcn.18004c680
lea rcx, str.Failed_to_unhook_NtProtectVirtualMemory
mov qword [rbp - 1], 0x27
xor ebx, ebx
mov qword [rbp - 9], rcx
lea r9, [rbp - 9]
movaps xmm0, xmmword [rbp - 9]
lea rdx, [rbp + 0x27]
mov rcx, qword [rax + 0x1d8]
mov r8d, 5
movdqa xmmword [rbp - 9], xmm0
mov qword [rbp + 0xf], rbx
mov qword [rbp + 7], rbx
movups xmm1, xmmword [rbp + 7]
mov qword [rbp + 0x17], rbx
movsd xmm0, qword [rbp + 0x17]
movsd qword [rbp + 0x37], xmm0
movaps xmmword [rbp + 0x27], xmm1
call fcn.18005ebe0
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1801e4790
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x180063880
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180063953
cmp byte [rcx + 0x71], 0
je 0x180063953
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18006394f
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 0x180063914
sub eax, 1
je 0x180063918
cmp eax, 2
jne 0x18006394f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e4790
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180063946
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 0x18006394f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800638fc
xor al, al
jmp 0x1800638fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e4790
add rsp, 0x60
pop rbx
ret
Function at 0x1800657e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180280040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18006580d
xor eax, eax
jmp 0x180065976
mov qword [rsp + 0xa0], rbx
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 0x18006584d
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 0x18006584d
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], sil
mov eax, esi
jmp 0x18006596e
cmp qword [rdi + 0x80], 0
je 0x180065969
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 0x180065887
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 0x1800658b2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18006596e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x180065921
sub eax, 1
je 0x180065921
cmp eax, 2
jne 0x180065969
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18006596e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18006594f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180065969
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18006596e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801e4790
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800669b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1800669d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800669e8
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
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 0x180066a32
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, 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, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
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
mov rdi, rbx
je 0x180066aa1
mov rcx, rbp
call fcn.180063c30
cmp rbx, 0xfff
jbe 0x180066a81
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x180066aba
cmp rbx, rax
ja 0x180066a50
test rdi, rdi
je 0x180066aa1
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
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x180066aa4
Function at 0x180066ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180066ae8
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
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 0x180066b5c
test rax, rax
jle 0x180066b3c
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 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 0x180066b5c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180066b5c
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 + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret