joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180091950
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18021e828]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800919b3
mov qword [rsp], rbx
lea rbx, [0x180103800]
nop dword [rax]
cmp r9b, 0x23
jne 0x180091993
cmp byte [r8], r9b
jne 0x180091993
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180091980
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1800919df
cmp dword [r8 + 8], eax
je 0x1800919e6
add r8, 0x48
cmp r8, rcx
jne 0x1800919d0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1800a7a10
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [0x18021e828]
mov rdi, rcx
test rbx, rbx
jne 0x1800a7a55
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800d8748
mov rbx, qword [0x18021e828]
cmp qword [rbx + 0x90], 0
je 0x1800a7a75
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.io.BackendPlatformUserData__nullptr___Already_initialized_a_platform_backend__
call fcn.1800d8748
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800a7be4
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800a7be4
mov ecx, 0x30
mov qword [rsp + 0x60], rsi
call fcn.1800d8854
mov r9, qword [0x18021e828]
xor esi, esi
mov r8, rax
test r9, r9
je 0x1800a7b1a
movsx rdx, word [r9 + 0x60f0]
lea rax, [r9 + 0x60f4]
mov r10d, dword [r9 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r10d
je 0x1800a7b0f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r9 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r9
mov dword [rax], r10d
mov dword [rax + 4], esi
inc word [rax + 4]
inc dword [r9 + 0x60e8]
test r8, r8
je 0x1800a7b32
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
jmp 0x1800a7b35
mov r8, rsi
or dword [rbx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x90], r8
mov qword [r8], rdi
mov rax, qword [rsp + 0x30]
mov qword [r8 + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [r8 + 0x18], rax
mov dword [r8 + 0x28], 9
test r9, r9
je 0x1800a7b79
mov rbx, qword [r9 + 0x90]
jmp 0x1800a7b7c
mov rbx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1800a7ba7
mov dword [rbx + 0x2c], esi
mov rbx, qword [0x18021e828]
mov rsi, qword [rsp + 0x60]
cmp dword [rbx + 0x4b08], 0
jg 0x1800a7bd2
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.i___0__i___Size
call fcn.1800d8748
mov rax, qword [rbx + 0x4b10]
mov rcx, qword [rax]
mov al, 1
mov qword [rcx + 0x28], rdi
jmp 0x1800a7be6
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c3d90
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1800a7e70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18021e828]
mov edx, 0x210
call fcn.180085d90
cmp byte [rax], 0
je 0x1800a7f11
mov rcx, qword [0x18021e828]
mov edx, 0x210
call fcn.180076240
cmp byte [rax + 8], 0
jne 0x1800a7f11
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a7f11
cmp qword [0x18021e828], 0
jne 0x1800a7ed9
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800d8748
mov rbx, qword [0x18021e828]
cmp byte [rbx + 0x38d1], 0
je 0x1800a7efd
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180076810
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x18021e828]
mov edx, 0x214
call fcn.180085d90
cmp byte [rax], 0
je 0x1800a7fac
mov rcx, qword [0x18021e828]
mov edx, 0x214
call fcn.180076240
cmp byte [rax + 8], 0
jne 0x1800a7fac
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a7fac
cmp qword [0x18021e828], 0
jne 0x1800a7f74
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800d8748
mov rbx, qword [0x18021e828]
cmp byte [rbx + 0x38d1], 0
je 0x1800a7f98
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180076810
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x18021e828]
mov edx, 0x212
call fcn.180085d90
cmp byte [rax], 0
je 0x1800a8047
mov rcx, qword [0x18021e828]
mov edx, 0x212
call fcn.180076240
cmp byte [rax + 8], 0
jne 0x1800a8047
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a8047
cmp qword [0x18021e828], 0
jne 0x1800a800f
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800d8748
mov rbx, qword [0x18021e828]
cmp byte [rbx + 0x38d1], 0
je 0x1800a8033
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180076810
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x18021e828]
mov edx, 0x216
call fcn.180085d90
cmp byte [rax], 0
je 0x1800a80e4
mov rcx, qword [0x18021e828]
mov edx, 0x216
call fcn.180076240
cmp byte [rax + 8], 0
jne 0x1800a80e4
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a80e4
mov rbx, qword [0x18021e828]
test rbx, rbx
jne 0x1800a80b3
xor r8d, r8d
lea rdx, [0x1800fda18]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800d8748
mov rbx, qword [0x18021e828]
cmp byte [rbx + 0x38d1], 0
je 0x1800a80d0
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180076810
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1800ca150
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800ca1bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800ca1bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800ca1bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800ca1bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800ca1bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1800ca1bf
cmp dword [rcx + 0xf8], 0
je 0x1800ca1bf
mov ecx, ebx
call fcn.1800ca270
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800ca04c
nop
cmp dword [rbp + 0x20], 0
je 0x1800ca20d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800ca218
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800ca150

Function at 0x1800ca30c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800ca1bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800ca1bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800ca1bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800ca1bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800ca1bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1800ca1bf
cmp dword [rcx + 0xf8], 0
je 0x1800ca1bf
mov ecx, ebx
call fcn.1800ca270
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800ca04c
nop
cmp dword [rbp + 0x20], 0
je 0x1800ca20d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800ca218
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800ca150
Function at 0x1800ddcbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ddcd2
mov al, 1
jmp 0x1800ddd32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ddce3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800ddd30
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800e2f28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800ddd30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800ddd30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800ddd30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800ddd32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800e06c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800e06f4
xor eax, eax
jmp 0x1800e07b7
mov rbp, rbx
cmp word [rax], si
je 0x1800e0719
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800e0700
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800e06fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800e05e4
movsxd r14, eax
test eax, eax
jne 0x1800e0757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800e06ed
mov rcx, r14
call fcn.1800da4e8
mov rdi, rax
test rax, rax
jne 0x1800e0770
xor ecx, ecx
call fcn.1800da4ac
jmp 0x1800e074c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800e05e4
test eax, eax
jne 0x1800e07a1
mov rcx, rdi
call fcn.1800da4ac
jmp 0x1800e07ab
xor ecx, ecx
call fcn.1800da4ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800e5120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800e5148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800e5148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140010020
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
movzx eax, byte [0x140143398]
mov rdi, rcx
test al, al
jne 0x14001005c
movsxd rax, dword [rcx]
lea rcx, [0x140105cb0]
mov rcx, qword [rcx + rax*8]
call fcn.1400654b0
test al, al
je 0x14001010b
mov byte [0x140143398], 1
add rsp, 0x20
pop rdi
ret
cmp al, 1
jne 0x14001010b
mov qword [rsp + 0x30], rbx
lea rcx, [0x140105194]
mov qword [rsp + 0x38], rsi
call fcn.1400654b0
lea rcx, [rsp + 0x40]
call fcn.140007950
mov rax, qword [rsp + 0x40]
movabs r8, 0x7ffffffffbd3e27f
mov qword [rsp + 0x40], rax
cmp rax, r8
je 0x1400100b6
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400100b6
add rax, 0x42c1d80
jmp 0x1400100c0
movabs rax, 0x7fffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14001de70
lea rbx, [0x140105770]
lea rsi, [0x140105a08]
nop dword [rax]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400100f8
mov eax, dword [rbx]
mov dword [rdi], eax
mov byte [0x140143398], 0
add rbx, 4
cmp rbx, rsi
jne 0x1400100e0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140018a30
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 0x140018a58
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 0x140018a7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140018a80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140018ad9
test ecx, ecx
jle 0x140018ab9
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 0x140018ad9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140018ad9
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 0x140018b00
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 0x140018b22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140018b38
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 0x140018b54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018b56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018b92
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140018c2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140018bcd
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 0x140018c0e
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140018c2e
cmp rbx, rax
ja 0x140018be0
test rbx, rbx
je 0x140018c2e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140019090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140127840]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400190bd
xor eax, eax
jmp 0x140019229
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400190f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400190f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140019229
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001921c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001913a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140019165
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 0x140019221
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 0x1400191d4
sub eax, 1
je 0x1400191d4
cmp eax, 2
jne 0x14001921c
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 0x140019221
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140019202
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 0x14001921c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140019221
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e75a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001a710
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140127840]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a7e3
cmp byte [rcx + 0x71], 0
je 0x14001a7e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001a7df
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 0x14001a7a4
sub eax, 1
je 0x14001a7a8
cmp eax, 2
jne 0x14001a7df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e75a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001a7d6
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 0x14001a7df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001a78c
xor al, al
jmp 0x14001a78c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e75a0
add rsp, 0x60
pop rbx
ret
Function at 0x140020120
Capabilities:
Hash data using fnv

Disassembly:
push rsi
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
mov r9d, 1
bsr r8, rax
mov rsi, rcx
shlx rax, r9, r8
cmp rdx, rax
jbe 0x140020155
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 + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, r9
bsr rcx, rax
mov qword [rsp + 0x28], rdi
mov r8, rbx
inc ecx
mov qword [rsp + 0x20], r14
shlx rdi, r9, rcx
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14001ad00
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 0x1400202a4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
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
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14002021d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140020293
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14002025a
mov r10, qword [rdx]
cmp r10, rax
je 0x140020254
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 0x140020293
cmp r9, rdx
je 0x14002026f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400202b9
cmp r9, rdx
jne 0x140020260
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 0x1400201d0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
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 0x140020293