joyce8/EMBER2024-capa huggingface dataset:
Function at 0xeaff40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xeaff4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xeaff5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xeaff45
lea eax, [rcx + 1]
jmp 0xeaff6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xeaff7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xeaff64
sub eax, 3
jb 0xeaff9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xeaffed
sar eax, 1
movsxd rbp, eax
jb 0xeaffd4
jmp 0xeaffac
add ebx, ebx
jne 0xeaffaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xeaffd4
inc ecx
add ebx, ebx
jne 0xeaffba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xeaffd4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xeaffcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xeaffbc
add ecx, 2
jmp 0xeaffd9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00eaff02
jmp 0xeaff4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x353800
mov dl, 0x5f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xeb0039
cmp rsi, rcx
jae 0xeb0041
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xeb0020
cmp al, 0x8f
ja 0xeb0020
cmp byte [rsi - 2], 0xf
je 0xeb0026
sub al, 0xe8
cmp al, 1
ja 0xeb000a
cmp rsi, rcx
jae 0xeb0041
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xeb0010
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xeb0041
lodsb al, byte [rsi]
jmp 0xeb0020
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xaa6000]
mov eax, dword [rdi]
or eax, eax
je 0xeb009e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xab0000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xeb004e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xeb0098
mov qword [rbx], rax
add rbx, 8
jmp 0xeb006e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xeb00e2
cmp al, 0xef
ja 0xeb00ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xeb00aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xeb00b9
mov eax, dword [rdi]
add rdi, 4
jmp 0xeb00b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xeb0136
sub rsp, 0xffffffffffffff80
jmp 0x46d600
Function at 0x180002ae0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002b08
xor eax, eax
lea r8, [0x1800029f0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180005480
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x98
cmp byte [0x1800951e1], 0
je 0x1800056c6
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800056c6
mov qword [rsp + 0xa0], rbx
movabs rbx, 0xd80958fc74e988a6
mov qword [rsp + 0x90], rdi
xor edi, edi
mov dword [0x180085c08], edi
mov dword [0x180085c18], edi
mov qword [0x180096498], rbx
call fcn.18001c910
mov qword [rsp + 0xa8], rdi
mov ecx, dword [rax]
movabs rax, 0x997abd671d25ca0b
mov dword [rsp + 0xa8], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], rdi
mov qword [0x180085ce0], rax
mov dword [rsp + 0xa8], 1
mov rax, qword [rsp + 0xa8]
mov qword [0x180085ce8], rax
mov dword [0x180085c18], edi
mov dword [0x180085c08], 2
call fcn.18001c910
cmp dword [rax], edi
je 0x1800056b6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
mov dword [0x180085c08], edi
mov dword [0x180085c18], edi
mov qword [0x180096498], rbx
call fcn.18001c910
mov qword [rsp + 0xa8], rdi
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0xa8], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0xa8]
mov qword [0x180085ce0], rax
mov dword [0x180085c18], edi
mov qword [0x180085ce8], rdi
mov dword [0x180085c08], 2
call fcn.18001c910
mov qword [rsp + 0xa8], rdi
mov ebx, dword [rax]
movabs rax, 0x866a4a5fae349510
mov qword [0x180096498], rax
mov dword [rsp + 0xa8], ebx
mov rax, qword [rsp + 0xa8]
mov qword [0x180085ce0], rax
mov dword [0x180085c18], edi
mov dword [0x180085c08], 1
call fcn.18001c910
mov qword [rsp + 0xa8], rdi
xorps xmm6, xmm6
mov dword [rsp + 0xa8], ebx
movss xmm7, dword [rax]
movabs rax, 0x8bb4ef4214e0e6d5
mov qword [0x180096498], rax
addss xmm7, xmm6
mov rax, qword [rsp + 0xa8]
mov qword [0x180085ce0], rax
mov dword [0x180085c18], edi
mov dword [0x180085c08], 1
call fcn.18001c910
movss xmm0, dword [0x180059d5c]
movaps xmm3, xmm7
mov dword [rsp + 0x68], 1
mov ecx, ebx
mov dword [rsp + 0x60], 1
movss xmm2, dword [rax]
mov dword [rsp + 0x50], 1
addss xmm2, xmm6
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 1
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm6
movss dword [rsp + 0x20], xmm0
call fcn.18000f0c0
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
add rsp, 0x98
ret
Function at 0x180006230
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x1800951d8], 0
je 0x1800063a0
mov ecx, 0xa0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebx, ebx
movabs rcx, 0xd80958fc74e988a6
mov qword [0x180096498], rcx
mov dword [0x180085c08], ebx
mov dword [0x180085c18], ebx
test ax, ax
je 0x180006305
call fcn.18001c910
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0x38], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180085ce0], rax
mov dword [0x180085c18], ebx
mov qword [0x180085ce8], rbx
mov dword [0x180085c08], 2
call fcn.18001c910
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x222ff6a823d122e2
mov dword [rsp + 0x38], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x38], 1
mov qword [0x180085ce0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180085ce8], rax
jmp 0x18000637d
call fcn.18001c910
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x9a9112a0fe9a4713
mov dword [rsp + 0x38], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180085ce0], rax
mov dword [0x180085c18], ebx
mov qword [0x180085ce8], rbx
mov dword [0x180085c08], 2
call fcn.18001c910
mov qword [rsp + 0x38], rbx
mov ecx, dword [rax]
movabs rax, 0x222ff6a823d122e2
mov dword [rsp + 0x38], ecx
mov qword [0x180096498], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180085ce0], rax
mov qword [0x180085ce8], rbx
mov dword [0x180085c18], ebx
mov dword [0x180085c08], 2
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.18001c910
add rsp, 0x28
ret
Function at 0x18000d2d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xc50
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x440]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x1a
xor ebp, ebp
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x18000d412
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 [0x180096600], 0xf
lea rcx, [0x1800965e8]
cmova rcx, qword [0x1800965e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
xorps xmm0, xmm0
lea rsi, [0x180094960]
mov rbx, rax
lea r8, [0x1800502a8]
xor eax, eax
mov edx, 0x45
mov rcx, rsi
mov dword [0x1800949a0], eax
mov byte [0x1800949a4], al
movups xmmword [0x180094960], xmm0
movups xmmword [0x180094970], xmm0
movups xmmword [0x180094980], xmm0
movups xmmword [0x180094990], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x40]
mov edx, 0x45
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, rbx
mov edx, 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
inc r8
cmp byte [rsi + r8], bpl
jne 0x18000d3f4
mov rdx, rsi
mov rcx, rdi
call fcn.18000ef70
mov rsi, qword [rsp + 0xc70]
jmp 0x18000d427
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bpl
mov rax, rdi
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.1800471b0
mov rbp, qword [rsp + 0xc78]
add rsp, 0xc50
pop rdi
ret
Function at 0x180012710
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
lea rdx, [0x180051028]
lea rcx, [rsp + 0xa0]
call fcn.18000f080
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.18000d2d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180013090
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800130b0
nop
lea rcx, [rsp + 0x60]
call fcn.18000eef0
nop
lea rcx, [rsp + 0x80]
call fcn.18000eef0
nop
lea rcx, [rsp + 0xa0]
call fcn.18000eef0
lea rcx, [rsp + 0x40]
call fcn.18000e3f0
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.180013130
nop
lea rcx, [rsp + 0x20]
call fcn.180015790
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.1800154f0
test bl, bl
je 0x1800127df
lea rcx, [rsp + 0x40]
call fcn.18000e3f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.180015b10
lea rcx, str.Cleaning_up_hooks
call fcn.1800166b0
call fcn.180012920
mov rsi, rax
call fcn.180012930
mov rbx, rax
cmp rax, rsi
je 0x180012844
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.180043ae0
test eax, eax
jne 0x180012822
lea rcx, str.Successfully_disabled_hooks
call fcn.1800166b0
jmp 0x18001283b
mov ecx, eax
call fcn.180043cc0
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_disable_hookS__p___s_
call fcn.1800166b0
add rbx, 8
cmp rbx, rsi
jne 0x180012805
mov dword [rsp + 0xd0], 0x32
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd8]
call fcn.180002c70
mov rcx, rax
call fcn.180002c80
call fcn.180012920
mov rsi, rax
call fcn.180012930
mov rbx, rax
cmp rax, rsi
je 0x1800128cc
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.1800439d0
test eax, eax
jne 0x1800128aa
lea rcx, str.Successfully_Cleaning_up_hooks
call fcn.1800166b0
lea rcx, str.NOVA_Successfully_____unloaded.
call fcn.1800166b0
jmp 0x1800128c3
mov ecx, eax
call fcn.180043cc0
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_unhook__p___s_
call fcn.1800166b0
add rbx, 8
cmp rbx, rsi
jne 0x180012881
mov dword [rsp + 0xd0], 0x190
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd8]
call fcn.180002c70
mov rcx, rax
call fcn.180002c80
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 [0x1800952a8]
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1800136a0
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 0x1800136d1
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 [0x180096698]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1800966a8]
lea rdx, [rdi + rdi]
call fcn.1800019a0
mov rax, qword [0x180096698]
lea r9, [rdi - 1]
mov qword [0x1800966c0], r9
mov qword [0x1800966c8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180013872
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 [0x1800966a8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800137bc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180013833
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1800137f9
mov r10, qword [rdx]
cmp r10, rax
je 0x1800137f3
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 0x180013833
cmp r9, rdx
je 0x18001380f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180013847
cmp r9, rdx
jne 0x180013800
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 0x18001386d
mov r9, qword [0x1800966c0]
jmp 0x180013741
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 0x180013833
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180016ea0
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 0x180016ec8
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 0x180016eee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180016ef0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180016f49
test ecx, ecx
jle 0x180016f29
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 0x180016f49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180016f49
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 0x180016f70
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 0x180016fa1
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 0x180016fbf
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 0x180016fdb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180016fdd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180017019
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 0x1800170ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180017054
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 0x18001708e
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 0x1800170ae
cmp rbx, rax
ja 0x180017060
test rbx, rbx
je 0x1800170ae
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 0x180017510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18001753d
xor eax, eax
jmp 0x1800176a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180017577
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180017577
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 0x1800176a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18001769c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800175ba
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 0x1800175e5
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 0x1800176a1
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 0x180017654
sub eax, 1
je 0x180017654
cmp eax, 2
jne 0x18001769c
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 0x1800176a1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180017682
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 0x18001769c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800176a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800471b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180017a40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180017b13
cmp byte [rcx + 0x71], 0
je 0x180017b13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180017b0f
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 0x180017ad4
sub eax, 1
je 0x180017ad8
cmp eax, 2
jne 0x180017b0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800471b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180017b06
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 0x180017b0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180017abc
xor al, al
jmp 0x180017abc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800471b0
add rsp, 0x60
pop rbx
ret
Function at 0x180018fc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x20]
call fcn.18000ef70
nop
movabs r9, 0xcbf29ce484222325
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rax, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
cmova rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rdx
cmp rax, rcx
je 0x180019053
movabs r8, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
imul r9, r8
movsx rdx, byte [rax]
xor r9, rdx
inc rax
cmp rax, rcx
jne 0x180019040
mov qword [rsi + 0x40], r9
mov byte [rsi + 0x68], 0
lea r8, [rsi + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180018b30
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x48], rax
mov rbx, qword [0x1800965c0]
mov rcx, qword [rbx + 8]
mov rax, rcx
mov rdi, rbx
cmp byte [rcx + 0x19], 0
jne 0x1800190b8
mov r8, qword [rsi + 0x40]
nop
mov rdx, qword [rax + 0x20]
cmp rdx, r8
jae 0x18001909f
mov rax, qword [rax + 0x10]
jmp 0x1800190b2
cmp byte [rdi + 0x19], 0
je 0x1800190ac
cmp r8, rdx
cmovb rdi, rax
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180019090
cmp byte [rdi + 0x19], 0
jne 0x1800190c1
mov rcx, qword [rdi]
cmp byte [rcx + 0x19], 0
jne 0x1800190e8
mov rax, qword [rsi + 0x40]
nop dword [rax + rax]
cmp rax, qword [rcx + 0x20]
jae 0x1800190de
mov rdi, rcx
mov rcx, qword [rcx]
jmp 0x1800190e2
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1800190d0
cmp rbx, rdi
je 0x180019169
nop dword [rax]
mov rdx, qword [rbx + 0x28]
mov rcx, rsi
call fcn.1800191c0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180019128
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180019123
cmp rbx, qword [rax + 0x10]
jne 0x180019123
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180019110
mov rbx, rax
jmp 0x18001914f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x18001914f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180019140
cmp rbx, rdi
jne 0x1800190f0
mov rax, qword [rsi + 0x58]
sub rax, qword [rsi + 0x50]
sar rax, 3
test rax, rax
je 0x180019169
mov byte [rsi + 0x68], 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1800191a9
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800191a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800191a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047540
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800471b0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret