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

Disassembly:
mov eax, dword [rbp + 0x12c]
add byte [rax], al
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
test ax, ax
je 0x180001181
add dword [rbp + 0x12c], 1
jmp 0x18000115c
mov eax, dword [rbp + 0x12c]
mov dword [rbp + 0x128], eax
mov eax, dword [rbp + 0x128]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0x5c
je 0x1800011d1
mov eax, dword [rbp + 0x128]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov word [rax], 0
sub dword [rbp + 0x128], 1
jmp 0x18000118d
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x18000122e
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
mov edx, dword [rbp + 0x128]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp + 0x100]
add rdx, rcx
cbw
mov word [rdx], ax
add dword [rbp + 0x128], 1
add dword [rbp + 0x124], 1
jmp 0x1800011db
lea rax, [rbp + 0x10]
mov edx, 0x68
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
lea rax, [rbp - 0x10]
mov edx, 0x18
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0xffffffffffffffff
je 0x1800016ac
mov rax, qword [rbp + 0xf0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp + 0xec], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov dword [rbp - 0x14], 0
lea rcx, [rbp - 0x14]
mov r8d, dword [rbp + 0xec]
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
sete al
test al, al
jne 0x1800016af
mov eax, dword [rbp - 0x14]
mov edx, eax
mov rax, qword [rbp + 0xe0]
add rax, rdx
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x18]
mov eax, eax
add qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp - 0x20]
add rax, 4
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
nop
jmp 0x1800016b9
nop
jmp 0x1800016b9
Function at 0x1800012b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [rbp + 0x12c]
add byte [rax], al
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
test ax, ax
je 0x180001181
add dword [rbp + 0x12c], 1
jmp 0x18000115c
mov eax, dword [rbp + 0x12c]
mov dword [rbp + 0x128], eax
mov eax, dword [rbp + 0x128]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0x5c
je 0x1800011d1
mov eax, dword [rbp + 0x128]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov word [rax], 0
sub dword [rbp + 0x128], 1
jmp 0x18000118d
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x18000122e
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
mov edx, dword [rbp + 0x128]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp + 0x100]
add rdx, rcx
cbw
mov word [rdx], ax
add dword [rbp + 0x128], 1
add dword [rbp + 0x124], 1
jmp 0x1800011db
lea rax, [rbp + 0x10]
mov edx, 0x68
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
lea rax, [rbp - 0x10]
mov edx, 0x18
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0xffffffffffffffff
je 0x1800016ac
mov rax, qword [rbp + 0xf0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp + 0xec], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov dword [rbp - 0x14], 0
lea rcx, [rbp - 0x14]
mov r8d, dword [rbp + 0xec]
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
sete al
test al, al
jne 0x1800016af
mov eax, dword [rbp - 0x14]
mov edx, eax
mov rax, qword [rbp + 0xe0]
add rax, rdx
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x18]
mov eax, eax
add qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp - 0x20]
add rax, 4
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
nop
jmp 0x1800016b9
nop
jmp 0x1800016b9
Function at 0x180008950
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0xa8
cmp byte [0x18011b234], 0
je 0x180008b9f
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180008b9f
mov qword [rsp + 0xb0], rbx
movabs rbx, 0xd80958fc74e988a6
mov qword [rsp + 0xa0], rdi
xor edi, edi
mov dword [0x1800cd698], edi
mov dword [0x1800cd6a8], edi
mov qword [0x18011d858], rbx
call fcn.18002ce10
mov qword [rsp + 0xb8], rdi
mov ecx, dword [rax]
movabs rax, 0x997abd671d25ca0b
mov dword [rsp + 0xb8], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], rdi
mov qword [0x1800cd770], rax
mov dword [rsp + 0xb8], 1
mov rax, qword [rsp + 0xb8]
mov qword [0x1800cd778], rax
mov dword [0x1800cd6a8], edi
mov dword [0x1800cd698], 2
call fcn.18002ce10
cmp dword [rax], edi
je 0x180008b8f
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
mov dword [0x1800cd698], edi
mov dword [0x1800cd6a8], edi
mov qword [0x18011d858], rbx
call fcn.18002ce10
mov qword [rsp + 0xb8], rdi
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0xb8], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0xb8]
mov qword [0x1800cd770], rax
mov dword [0x1800cd6a8], edi
mov qword [0x1800cd778], rdi
mov dword [0x1800cd698], 2
call fcn.18002ce10
mov qword [rsp + 0xb8], rdi
mov ebx, dword [rax]
movabs rax, 0x866a4a5fae349510
mov qword [0x18011d858], rax
mov dword [rsp + 0xb8], ebx
mov rax, qword [rsp + 0xb8]
mov qword [0x1800cd770], rax
mov dword [0x1800cd6a8], edi
mov dword [0x1800cd698], 1
call fcn.18002ce10
mov qword [rsp + 0xb8], rdi
xorps xmm6, xmm6
mov dword [rsp + 0xb8], ebx
movss xmm7, dword [rax]
movabs rax, 0x8bb4ef4214e0e6d5
mov qword [0x18011d858], rax
addss xmm7, xmm6
mov rax, qword [rsp + 0xb8]
mov qword [0x1800cd770], rax
mov dword [0x1800cd6a8], edi
mov dword [0x1800cd698], 1
call fcn.18002ce10
movss xmm0, dword [0x1800967cc]
mov edx, ebx
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x68], 1
movss xmm3, dword [rax]
mov dword [rsp + 0x58], 1
addss xmm3, xmm6
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], 1
movss dword [rsp + 0x40], xmm6
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm7
call fcn.18001f130
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
add rsp, 0xa8
ret
Function at 0x180009700
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x18011b22b], 0
je 0x180009867
mov ecx, 0xa0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebx, ebx
movabs rcx, 0xd80958fc74e988a6
mov qword [0x18011d858], rcx
mov dword [0x1800cd698], ebx
mov dword [0x1800cd6a8], ebx
test ax, ax
je 0x1800097d5
call fcn.18002ce10
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0x38], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800cd770], rax
mov dword [0x1800cd6a8], ebx
mov qword [0x1800cd778], rbx
mov dword [0x1800cd698], 2
call fcn.18002ce10
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x222ff6a823d122e2
mov dword [rsp + 0x38], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x38], 1
mov qword [0x1800cd770], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800cd778], rax
jmp 0x18000984d
call fcn.18002ce10
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0x38], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800cd770], rax
mov dword [0x1800cd6a8], ebx
mov qword [0x1800cd778], rbx
mov dword [0x1800cd698], 2
call fcn.18002ce10
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x222ff6a823d122e2
mov dword [rsp + 0x38], ecx
mov qword [0x18011d858], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800cd770], rax
mov qword [0x1800cd778], rbx
mov dword [0x1800cd6a8], ebx
mov dword [0x1800cd698], 2
call fcn.18002ce10
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x18001c4f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xc50
mov rax, qword [0x1800b3408]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x440]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rbp + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x18001c62e
mov qword [rsp + 0xc68], rbx
lea rdx, [rsp + 0x440]
mov r8d, 0x3ff
mov qword [rsp + 0xc70], rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
cmp qword [0x18011d7c8], 0x10
lea rcx, [0x18011d7b0]
cmovae rcx, qword [0x18011d7b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
xorps xmm0, xmm0
lea rsi, [0x18011a950]
mov rbx, rax
lea r8, [0x18007e4f8]
xor eax, eax
lea edx, [rbp + 0x45]
mov rcx, rsi
mov dword [0x18011a990], eax
mov byte [0x18011a994], al
movups xmmword [0x18011a950], xmm0
movups xmmword [0x18011a960], xmm0
movups xmmword [0x18011a970], xmm0
movups xmmword [0x18011a980], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x40]
mov rcx, rsi
lea edx, [rbp + 0x45]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, rbx
lea edx, [rbp + 0x45]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rbx, qword [rsp + 0xc68]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rbp
nop dword [rax]
inc r8
cmp byte [rsi + r8], bpl
jne 0x18001c610
mov rdx, rsi
mov rcx, rdi
call fcn.18001ec80
mov rsi, qword [rsp + 0xc70]
jmp 0x18001c640
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov rax, rdi
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.180071ff0
mov rbp, qword [rsp + 0xc78]
add rsp, 0xc50
pop rdi
ret
Function at 0x1800227f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
lea rdx, [0x1800891f8]
lea rcx, [rsp + 0xa0]
call fcn.18001ed90
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.18001c4f0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180023350
nop
lea r8, [0x1800cfa68]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18001d390
nop
lea rcx, [rsp + 0x60]
call fcn.1800032c0
nop
lea rcx, [rsp + 0x80]
call fcn.1800032c0
nop
lea rcx, [rsp + 0xa0]
call fcn.1800032c0
lea rcx, [rsp + 0x40]
call fcn.18001e120
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.180023370
nop
lea rcx, [rsp + 0x20]
call fcn.180025770
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.1800254d0
test bl, bl
je 0x1800228c6
lea rcx, [rsp + 0x40]
call fcn.18001e120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.180025c00
lea rcx, str.Cleaning_up_hooks
call fcn.180026780
call fcn.180022a20
mov rsi, rax
call fcn.180022a30
mov rbx, rax
cmp rax, rsi
je 0x18002292f
nop dword [rax]
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.180069348
test eax, eax
jne 0x18002290d
lea rcx, str.Successfully_disabled_hooks
call fcn.180026780
jmp 0x180022926
mov ecx, eax
call fcn.180069350
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_disable_hookS__p___s_
call fcn.180026780
add rbx, 8
cmp rbx, rsi
jne 0x1800228f0
mov dword [rsp + 0xd0], 0x32
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd8]
call fcn.1800033e0
mov rcx, rax
call fcn.1800033f0
call fcn.180022a20
mov rsi, rax
call fcn.180022a30
mov rbx, rax
cmp rax, rsi
je 0x1800229c0
nop dword [rax]
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.180069104
test eax, eax
jne 0x18002299e
call fcn.18006bf70
lea rcx, str.Successfully_Cleaning_up_hooks
call fcn.180026780
lea rcx, str.Atomix_Successfully_unloaded.
call fcn.180026780
jmp 0x1800229b7
mov ecx, eax
call fcn.180069350
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_unhook__p___s_
call fcn.180026780
add rbx, 8
cmp rbx, rsi
jne 0x180022970
mov dword [rsp + 0xd0], 0x190
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd8]
call fcn.1800033e0
mov rcx, rax
call fcn.1800033f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
mov rcx, qword [0x18011b320]
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1800238e0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180023911
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 + 0x30], rbx
mov rbx, qword [0x18011d868]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18011d878]
lea rdx, [rdi + rdi]
call fcn.180001ff0
mov rax, qword [0x18011d868]
lea r9, [rdi - 1]
mov qword [0x18011d890], r9
mov qword [0x18011d898], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180023ab2
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18011d878]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800239fc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180023a73
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180023a39
mov r10, qword [rdx]
cmp r10, rax
je 0x180023a33
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 0x180023a73
cmp r9, rdx
je 0x180023a4f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180023a87
cmp r9, rdx
jne 0x180023a40
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
je 0x180023aad
mov r9, qword [0x18011d890]
jmp 0x180023981
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 0x180023a73
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180026f60
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 0x180026f88
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 0x180026fae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180026fb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180027009
test ecx, ecx
jle 0x180026fe9
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 0x180027009
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180027009
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
Function at 0x180027030
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 0x180027061
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 0x18002707f
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 0x18002709b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002709d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800270d9
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 0x18002716e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180027114
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 0x18002714e
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 0x18002716e
cmp rbx, rax
ja 0x180027120
test rbx, rbx
je 0x18002716e
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 0x180027580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800b3408]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800275ad
xor eax, eax
jmp 0x18002770a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1800275d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1800275d8
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 0x18002770a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800276fd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18002761b
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 0x180027646
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 0x180027702
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1800276b5
sub eax, 1
je 0x1800276b5
cmp eax, 2
jne 0x1800276fd
movsx ecx, byte [rsp + 0x40]
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 0x180027702
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800276e3
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 0x1800276fd
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180027702
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180071ff0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180027aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800b3408]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180027b73
cmp byte [rcx + 0x71], 0
je 0x180027b73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180027b6f
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 0x180027b34
sub eax, 1
je 0x180027b38
cmp eax, 2
jne 0x180027b6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180071ff0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180027b66
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 0x180027b6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180027b1c
xor al, al
jmp 0x180027b1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180071ff0
add rsp, 0x60
pop rbx
ret