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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140098040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140099720]
mov edi, ecx
cmp byte [rbx + 0x4a9d], 0
jne 0x14002f941
cmp byte [rbx + 0x4a9e], 0
jne 0x14002f941
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14001e7b0
test dil, 1
je 0x14002fa6f
jmp 0x14002f9c9
vmovss xmm1, dword [rbx + 0x389c]
vmovss xmm0, dword [0x140088e60]
vfmadd213ss xmm0, xmm1, dword [rbx + 0xe0c]
vmovss xmm2, dword [0x140088e80]
vfmadd213ss xmm2, xmm1, dword [rbx + 0xe08]
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
xor eax, eax
mov dword [rbx + 0x47d4], 1
vmovss dword [rbx + 0x47e0], xmm2
vmovss dword [rbx + 0x47e4], xmm0
mov qword [rbx + 0x47e8], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x3904]
vmulss xmm1, xmm0, dword [0x140088d20]
or dword [rbx + 0x47d0], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x4830], xmm1
call fcn.14001e7b0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002fa20
lea r11, [0x140082100]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002fa03
cmp byte [r8], r9b
jne 0x14002fa03
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002f9f0
not ecx
call fcn.1400268e0
test rax, rax
je 0x14002fa6f
cmp byte [rax + 0xb6], 0
je 0x14002fa6f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bc2]
movsx r9d, word [rbx + 0x5bc2]
call fcn.14001e7b0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140029090
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140075530
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140035950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca8], 0
lea rbx, [rcx + 0x5cb0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400359f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400359aa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140037ea0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001f3d0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140099718]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400359ff
mov rcx, rbx
call fcn.14001f3d0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140035e70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140099720]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140035ed3
mov qword [rsp], rbx
lea rbx, [0x140082100]
nop dword [rax]
cmp r9b, 0x23
jne 0x140035eb3
cmp byte [r8], r9b
jne 0x140035eb3
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 0x140035ea0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c20]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140035f07
mov r10, qword [r10 + 0x5c28]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140035f0e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140035ef4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140063380
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14006340c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400633e0
lea r11, [0x140082100]
nop
cmp r9b, 0x23
jne 0x1400633c3
cmp byte [r8], r9b
jne 0x1400633c3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400633b0
mov rcx, qword [0x140099720]
not eax
cmp dword [rcx + 0x3f58], eax
jne 0x1400633f7
mov dword [rcx + 0x3f5c], eax
cmp dword [rcx + 0x3f88], eax
jne 0x140063469
mov byte [rcx + 0x3f8c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x140099720]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x3ef8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.14001e950
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f40], eax
jne 0x140063462
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.140037140
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140074c0c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140074c46
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140074c4b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140074c94
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007fda0]
cmp byte [rcx + rax], 0
je 0x140074c94
dec r8
sub rdx, 1
jne 0x140074c7a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007622c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140076276
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140076276
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140076276
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140076276
cmp dword [rcx + 0x84], 0xe
jbe 0x140076276
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140076278
xor al, al
add rsp, 0x28
ret
Function at 0x14003e0a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, [0x140438a4b]
mov rdi, r8
mov rsi, rdx
movabs rbx, 0xcbf29ce484222325
call fcn.14027ddb0
xor ecx, ecx
test rdi, rdi
je 0x14003e0f3
movabs rdx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rsi + rcx]
inc rcx
xor rbx, rax
imul rbx, rdx
cmp rcx, rdi
jb 0x14003e0e0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140041570
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rcx, [0x140437c5c]
call fcn.14027ddb0
mov rbx, qword [rbx]
movsxd r8, dword [rdi]
mov edx, 0xfff0b9d8
mov rcx, rbx
call fcn.1400937a0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400930c0
mov rdi, rax
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140092a80
nop
movzx r8d, dil
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs r9, 0x100000001b3
imul r8, r9
mov rcx, rdi
shr rcx, 8
movzx edx, cl
xor r8, rdx
imul r8, r9
mov rax, rdi
shr rax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x18
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x20
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x28
movzx eax, al
xor rax, r8
imul rax, r9
mov rcx, rdi
shr rcx, 0x30
movzx edx, cl
xor rax, rdx
imul rax, r9
shr rdi, 0x38
xor rax, rdi
imul rax, r9
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140043d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
lea rcx, [0x1404361e9]
xor esi, esi
call fcn.14027ddb0
lea rax, [rsp + 0x160]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, reloc.WLDAP32.dll_Ordinal_26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140043e33
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x160]
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140043e33
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
inc rbx
cmp byte [rax + rbx], sil
jne 0x140043e20
mov r8, rbx
lea rdx, [rsp + 0x50]
jmp 0x140043e4b
xorps xmm0, xmm0
lea rdx, [0x14035d759]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
xor r8d, r8d
mov qword [rdi + 0x18], rsi
mov rcx, rdi
call fcn.1400404e0
mov rax, rdi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14027c900
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400492b0
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14027ddb0
lea r14, [0x140413d38]
mov qword [rsp + 0x50], r14
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
nop
mov rdi, qword [0x140413d88]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140049466
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x78], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x80]
call fcn.140054b70
nop
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebp, ax
shr ebp, 0xf
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [0x140413dc0]
call fcn.14005ffb0
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x14]
mov rsi, qword [rsp + 0x88]
and bpl, 1
je 0x1400493c8
test dl, dl
jne 0x14004941e
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140057f70
mov rax, qword [rsi + 0x10]
mov byte [rax + 8], reloc.WS2_32.dll_recvfrom
add qword [rsi + 0x10], 0x10
mov qword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.140061c70
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004941e
mov edx, 0xffffffff
sub edx, dword [rsp + 0x3c]
jmp 0x140049418
test dl, dl
je 0x14004941e
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140057f70
mov rax, qword [rsi + 0x10]
mov byte [rax + 8], 1
add qword [rsi + 0x10], 0x10
mov qword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.140061c70
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004941e
mov edx, 0xffffffff
sub edx, dword [rsp + 0x4c]
call fcn.140092a80
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [0x140413dc0]
call fcn.14005ffb0
mov rcx, qword [rax]
mov byte [rcx + 0x14], bpl
test rsi, rsi
je 0x14004945a
cmp dword [rsp + 0x80], 0xfffffffe
je 0x14004945a
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140041410
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140049313
mov rcx, r14
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14027c900
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14004f1e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc0], rbx
lea rcx, reloc.WS2_32.dll_accept
call fcn.14027ddb0
mov r8, rsi
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.14004f3a0
nop
cmp byte [rsp + 0xd8], 0
je 0x14004f2c4
lea rdx, [rsp + 0xc8]
mov rcx, rdi
call fcn.140054b70
nop
cmp byte [rsp + 0xd8], 0
je 0x14004f28d
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x14004f285
cmp dword [rsp + 0xc8], 0xfffffffe
je 0x14004f285
lea rcx, [rsp + 0xc8]
call fcn.140041410
mov byte [rsp + 0xd8], 0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14004f2a3
cmp dword [rbx], 0xfffffffe
je 0x14004f2a3
mov rcx, rbx
call fcn.140041410
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14027c900
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdi, qword [r14]
movss xmm1, dword [0x14036c42c]
movss dword [rsp + 0x20], xmm1
movss xmm2, dword [0x14036c3c4]
movaps xmm3, xmm2
lea rcx, [rsp + 0x38]
call fcn.14003fd80
mov rbp, rax
lea rdx, [rsp + 0x70]
call fcn.14004f620
lea rdx, [rax + 1]
mov r8, rdx
mov ebx, 0x47
mov r9d, ebx
nop word [rax + rax]
movzx ecx, byte [rax]
xor byte [r8], cl
lea r8, [r8 + 1]
sub r9, 1
jne 0x14004f310
mov byte [rdx + 0x47], r9b
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.140059c50
nop
mov r8, rbp
mov rdx, rax
mov rcx, rdi
call fcn.140044400
nop
lea rcx, [rsp + 0x50]
call fcn.140055fa0
lea rdx, [rsp + 0x70]
call fcn.14004f6c0
lea rdx, [rax + 1]
mov r9, rdx
nop dword [rax]
movzx ecx, byte [rax]
xor byte [r9], cl
lea r9, [r9 + 1]
sub rbx, 1
jne 0x14004f360
mov byte [rdx + 0x47], bl
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.140059c50
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14003e420
lea rdx, [0x1403991d8]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140053580
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x1404375d5]
mov r15, rdx
call fcn.14027ddb0
cmp qword [rdi + 0x68], 0
je 0x1400535bd
mov r8, rbx
mov rdx, r15
mov rcx, rdi
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 [rdi + 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 0x1400535e3
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
jmp 0x1400535e5
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140053641
test ecx, ecx
jle 0x140053621
cmp rbx, rbp
mov rdx, r15
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 0x140053641
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140053641
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 0x140053660
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, rcx
mov rbp, r8
lea rcx, [0x1404375d5]
mov r14, rdx
call fcn.14027ddb0
test rbp, rbp
jg 0x14005368e
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rsi + 0x68], 0
je 0x1400536ad
mov r8, rbp
mov rdx, r14
mov rcx, rsi
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 [rsi + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400536c9
mov rax, qword [rsi + 0x50]
mov ecx, dword [rax]
jmp 0x1400536cb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140053707
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 0x14005379e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140053742
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 0x14005377e
nop dword [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 0x14005379e
cmp rbx, rax
ja 0x140053750
test rbx, rbx
je 0x14005379e
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 0x140053b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov edi, edx
lea rcx, [0x1404375d5]
call fcn.14027ddb0
cmp edi, 0xffffffff
jne 0x140053ba9
xor eax, eax
jmp 0x140053d15
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140053be3
mov rax, qword [rbx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140053be3
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 0x140053d15
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140053d08
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140053c26
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 0x140053c51
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 0x140053d0d
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 0x140053cc0
sub eax, 1
je 0x140053cc0
cmp eax, 2
jne 0x140053d08
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 0x140053d0d
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140053cee
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 0x140053d08
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140053d0d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14027c900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140053fe0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14043850e]
call fcn.14027ddb0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140054059
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 8]
shr rax, 3
cmp rax, rcx
jbe 0x140054022
mov r8, rdx
mov rcx, rbx
mov rdx, qword [rdx]
add rsp, 0x20
pop rbx
jmp 0x140057a30
call fcn.140060df0
mov rax, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 8]
mov qword [rax + 8], rax
mov qword [rbx + 0x10], 0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x30], rax
call fcn.140060540
add rsp, 0x20
pop rbx
ret
push rsi
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
mov r14, r8
lea rcx, [0x14043850e]
mov r15, rdx
call fcn.14027ddb0
cmp r15, r14
je 0x140057b31
mov rax, qword [rsi + 8]
lea rdx, [r15 + 0x10]
mov qword [rsp + 0x78], rbx
mov rcx, rsi
mov qword [rsp + 0x80], rbp
mov rbx, r15
mov qword [rsp + 0x88], rdi
mov rdi, qword [rsi + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], r13
call fcn.140059320
add rax, rax
mov r13, qword [rdi + rax*8 + 8]
lea r12, [rdi + rax*8]
mov rax, qword [rdi + rax*8]
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdi, rbx
mov rbp, rbx
mov rdx, qword [rdi + 0x20]
lea rcx, [rdi + 0x18]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140057ae0
cmp dword [rcx], 0xfffffffe
je 0x140057ae0
call fcn.140041410
mov edx, Ordinal_41
mov rcx, rdi
call fcn.14027c920
dec qword [rsi + 0x10]
cmp rbp, r13
je 0x140057b3e
cmp rbx, r14
jne 0x140057ac0
cmp qword [rsp + 0x28], r15
jne 0x140057b06
mov qword [r12], rbx
mov rax, qword [rsp + 0x20]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r13, qword [rsp + 0x40]
mov qword [rax], rbx
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
mov r13, qword [rsp + 0x30]
cmp qword [rsp + 0x28], r15
jne 0x140057b53
mov qword [r12], r13
mov rax, r13
jmp 0x140057b58
mov rax, qword [rsp + 0x20]
mov qword [r12 + 8], rax
cmp rbx, r14
je 0x140057b06
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r12, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r12, rcx
shl r12, 4
add r12, qword [rsp + 0x38]
mov r15, qword [r12 + 8]
nop word [rax + rax]
mov rdi, rbx
mov rbp, rbx
mov rdx, qword [rdi + 0x20]
lea rcx, [rdi + 0x18]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140057be0
cmp dword [rcx], 0xfffffffe
je 0x140057be0
call fcn.140041410
mov edx, Ordinal_41
mov rcx, rdi
call fcn.14027c920
dec qword [rsi + 0x10]
cmp rbp, r15
je 0x140057c00
cmp rbx, r14
jne 0x140057bc0
jmp 0x140057b02
mov qword [r12], r13
mov qword [r12 + 8], r13
jmp 0x140057b5d
Function at 0x140057870
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea rcx, [0x1404375d5]
call fcn.14027ddb0
cmp qword [rbx + 0x68], 0
je 0x140057952
cmp byte [rbx + 0x71], 0
je 0x140057952
mov rax, qword [rbx]
mov edx, 0xffffffff
mov rcx, rbx
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14005794e
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 0x140057913
sub eax, 1
je 0x140057917
cmp eax, 2
jne 0x14005794e
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14027c900
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140057945
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 0x14005794e
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400578fb
xor al, al
jmp 0x1400578fb
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14027c900
add rsp, 0x60
pop rbx
ret