joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180a1f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a1f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a1f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a1f06f
add dl, dl
jne 0x180a1f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a1f0f6
xor eax, eax
add dl, dl
jne 0x180a1f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a1f1ad
add dl, dl
jne 0x180a1f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a1f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a1f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a1f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a1f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a1f07e
mov eax, 1
add dl, dl
jne 0x180a1f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a1f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a1f0fb
sub eax, ebx
mov ebx, 1
jne 0x180a1f14c
mov ecx, 1
add dl, dl
jne 0x180a1f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a1f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a1f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a1f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a1f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a1f15d
cmp eax, 0x7d00
jae 0x180a1f19b
cmp eax, 0x500
jb 0x180a1f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1f07e
cmp eax, 0x7f
ja 0x180a1f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a1f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a1f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d70a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d7aa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d7b3a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7b1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7b12
cmp qword [rbp - 0x10], 0
je 0x2fc4d7b12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7ad8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7b3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7c40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7c68
mov eax, 0
jmp 0x2fc4d7cb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7c91
mov eax, 0
jmp 0x2fc4d7cb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7cb1
mov eax, 0
jmp 0x2fc4d7cb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x18001d280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r15, rcx
lea rax, vtable.YimMenu::Command.0
mov qword [rcx], rax
add rcx, 8
call fcn.18001cb30
nop
lea rcx, [r15 + 0x28]
mov rdx, rsi
call fcn.18001cb30
nop
lea rcx, [r15 + 0x48]
mov rdx, rdi
call fcn.18001cb30
nop
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18001d2e7
mov r9, qword [rbx]
mov r11, qword [rbx + 0x10]
xor r10d, r10d
add r11, r9
lea r14, [rbx + 0x18]
cmp r9, r11
je 0x18001d33a
nop word [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x18001d300
lea r14, [rbx + 0x18]
lea eax, [r10 + r10*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [r15 + 0x68], eax
mov eax, dword [rsp + 0xa0]
mov dword [r15 + 0x6c], eax
mov ecx, dword [0x1801d31f0]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1801d38b8], eax
jg 0x18001d4ac
mov eax, dword [r15 + 0x68]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], r15
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [0x1801d3860]
call fcn.18001e6a0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x18001d3e3
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18001d3da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d497
mov rcx, r8
call fcn.1800ffa38
lea r14, [rbx + 0x18]
mov qword [rbx + 0x10], 0
mov qword [r14], 0xf
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x18001d42b
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18001d426
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d49e
mov rcx, r8
call fcn.1800ffa38
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18001d474
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18001d46f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d4a5
mov rcx, r8
call fcn.1800ffa38
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, r15
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x1801d38b8]
call fcn.1800ff9c0
cmp dword [0x1801d38b8], 0xffffffff
jne 0x18001d381
call fcn.18001d5b0
lea rcx, [0x180119600]
call fcn.1800ff900
nop
lea rcx, [0x1801d38b8]
call fcn.1800ff954
jmp 0x18001d381
Function at 0x180020570
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov ecx, dword [0x1801d31f0]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1801e3288], eax
jg 0x1800206b0
xor ebp, ebp
mov ebx, ebp
nop word [rax + rax]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180020640
cmp ebx, 1
je 0x180020640
mov rax, qword [0x1801e3290]
mov rcx, qword [0x1801e3298]
cmp rax, rcx
je 0x1800205f2
cmp dword [rax], ebx
je 0x180020640
add rax, 4
cmp rax, rcx
jne 0x1800205e5
mov dword [rsi], ebx
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002063c
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x18002062c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800206a9
mov rcx, r8
call fcn.1800ffa38
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov al, 1
jmp 0x180020694
inc ebx
cmp ebx, 0xfe
jl 0x1800205c0
mov rcx, qword [rdi]
test rcx, rcx
je 0x180020692
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180020682
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800206a9
mov rcx, r8
call fcn.1800ffa38
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x1801e3288]
call fcn.1800ff9c0
cmp dword [0x1801e3288], 0xffffffff
jne 0x1800205b6
mov rdx, rdi
lea rcx, [0x1801e3290]
call fcn.180020700
lea rcx, [0x180119690]
call fcn.1800ff900
nop
lea rcx, [0x1801e3288]
call fcn.1800ff954
jmp 0x1800205b6
Function at 0x1800219e0
Capabilities:
Hash data using fnv

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, dword [0x1801d31f0]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
mov eax, dword [rcx + rax]
cmp dword [0x1801d38b8], eax
jg 0x180021ac3
nop dword [rax]
nop word [rax + rax]
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x31]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x32]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x33]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1801d3890]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1801d3878]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1801d3868]
cmp rax, rdx
je 0x180021aa0
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x180021aa2
nop
cmp rax, rcx
je 0x180021aa0
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x180021a90
jmp 0x180021aa2
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
je 0x180021abb
mov rax, qword [rcx + 0x18]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, [0x1801d38b8]
call fcn.1800ff9c0
cmp dword [0x1801d38b8], 0xffffffff
jne 0x180021a20
call fcn.18001d5b0
lea rcx, [0x180119600]
call fcn.1800ff900
nop
lea rcx, [0x1801d38b8]
call fcn.1800ff954
jmp 0x180021a20
Function at 0x180027dc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push r13
sub rsp, 0x20
mov qword [rsp + 0x40], rsi
mov r13, rcx
mov rsi, qword [rdx + 0x10]
mov qword [rsp + 0x48], rdi
mov rdi, rdx
mov qword [rsp + 0x58], r15
mov r15, qword [rdx + 0x18]
cmp r15, 0xf
jbe 0x180027def
mov rdx, qword [rdx]
xor ecx, ecx
movabs rbp, 0xcbf29ce484222325
test rsi, rsi
je 0x180027e23
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbp, rax
imul rbp, r8
cmp rcx, rsi
jb 0x180027e10
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, rbp
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
jne 0x180027e40
xor ebx, ebx
jmp 0x180027e91
mov qword [rsp + 0x50], r14
mov r14, qword [rax + rcx*8]
nop dword [rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x180027e62
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x180027e6e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x180027e7f
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180027e8c
cmp rbx, r14
je 0x180027e8a
mov rbx, qword [rbx + 8]
jmp 0x180027e50
xor ebx, ebx
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
test rbx, rbx
je 0x180027f7c
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x30]
and rax, rbp
add rax, rax
lea r8, [rcx + rax*8]
lea rdx, [rcx + rax*8]
mov rax, qword [rcx + rax*8]
cmp qword [r8 + 8], rbx
jne 0x180027ee5
cmp rax, rbx
jne 0x180027edb
mov rax, qword [r13 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x180027ef0
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
jmp 0x180027ef0
cmp rax, rbx
jne 0x180027ef0
mov rax, qword [rbx]
mov qword [rdx], rax
mov rcx, qword [rbx]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x30]
call fcn.180025d70
mov rdx, qword [rbx + 0x28]
cmp rdx, 0xf
jbe 0x180027f46
mov rcx, qword [rbx + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x180027f41
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180027f75
mov rcx, r8
call fcn.1800ffa38
mov edx, 0xf0
mov qword [rbx + 0x20], 0
mov rcx, rbx
mov qword [rbx + 0x28], 0xf
mov byte [rbx + 0x10], 0
call fcn.1800ffa38
mov eax, 1
add rsp, 0x20
pop r13
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
add rsp, 0x20
pop r13
pop rbp
pop rbx
ret
Function at 0x180030550
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x180030581
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rdi
mov rdi, qword [0x1801e32c8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
inc ecx
shl rbx, cl
lea rcx, [0x1801e32d8]
lea rdx, [rbx + rbx]
call fcn.18001e550
mov rcx, qword [0x1801e32c8]
lea r9, [rbx - 1]
mov qword [0x1801e32f0], r9
mov qword [0x1801e32f8], rbx
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x180030722
mov qword [rsp + 0x30], rsi
mov rax, rcx
movabs rsi, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, r9
shl r11, 4
add r11, qword [0x1801e32d8]
mov r9, qword [r11]
cmp r9, rdi
jne 0x18003066c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800306e3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1800306a9
mov r10, qword [rdx]
cmp r10, rax
je 0x1800306a3
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 0x1800306e3
cmp r9, rdx
je 0x1800306bf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x1800306f7
cmp r9, rdx
jne 0x1800306b0
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, rdi
je 0x18003071d
mov r9, qword [0x1801e32f0]
jmp 0x1800305f1
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 0x1800306e3
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180030930
Capabilities:
Set console window title

Disassembly:
mov byte [rsp + 0x20], r9b
push rdi
sub rsp, 0x70
movaps xmm0, xmmword [rdx]
mov r9, r8
mov qword [rsp + 0x60], rsi
mov rdi, rcx
lea rsi, [rcx + 0x130]
movups xmmword [rcx + 8], xmm0
cmp rsi, r8
je 0x1800309bb
cmp qword [r8 + 0x18], 7
mov rdx, qword [r8 + 0x10]
jbe 0x180030966
mov r9, qword [r8]
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x1800309b3
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x68], rbp
mov rbp, rsi
cmp rax, 7
jbe 0x180030988
mov rbp, qword [rsi]
lea rbx, [rdx + rdx]
mov qword [rsi + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rbp], ax
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
jmp 0x1800309bb
mov rcx, rsi
call fcn.180024e30
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
setne cl
mov byte [rdi + 1], cl
test eax, eax
jne 0x1800309de
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x180030a3a
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rdi + 0x20]
mov dword [rdi + 0x18], edx
and edx, 0xffffffbf
or edx, 0xc
mov dword [rsp + 0x98], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rdi], 0
je 0x180030a48
lea rcx, [rdi + 0x28]
call fcn.180030bf0
cmp qword [rsi + 0x18], 7
jbe 0x180030a52
mov rsi, qword [rsi]
lea rcx, [rdi + 0x158]
mov r8d, 0x12
mov rdx, rsi
call fcn.180030d60
mov rcx, qword [rdi + 0x150]
xor r8d, r8d
mov rsi, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea rcx, [rdi + 0x150]
add rcx, rdx
test rax, rax
je 0x180030a93
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x180030a9e
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
call fcn.1800fc430
lea rax, [0x18013e5f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
call fcn.1800fbe10
lea rax, [0x18013e5b8]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
call fcn.1800fbe10
mov al, 1
add rsp, 0x70
pop rdi
ret
Function at 0x180031900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180031931
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x18003194f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003196b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003196d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800319a9
mov qword [rsp + 0x38], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180031a3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800319e4
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
cmp rbx, 0xfff
jbe 0x180031a1e
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180031a3e
cmp rbx, rax
ja 0x1800319f0
test rbx, rbx
je 0x180031a3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180031a60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180031a88
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180031aae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180031ab0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180031b09
test ecx, ecx
jle 0x180031ae9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180031b09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180031b09
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret