joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019210
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019310
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001b8d0
cmp esi, dword [rbx + 0x48]
jae 0x140019290
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001b910
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001931d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001931d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001925f
call fcn.140018440
mov rbx, rax
jmp 0x14001924a
mov rcx, r13
call fcn.14001b910
mov eax, 0xc
jmp 0x14001927d

Function at 0x1400193a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400193c8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140018440
test rax, rax
jne 0x1400193ba
add rsp, 0x28
ret

Function at 0x140019430
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019458
add rax, 0x18
add rsp, 0x28
ret
call fcn.140018440
test rax, rax
jne 0x14001944a
jmp 0x14001944e

Function at 0x140019570
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14003dc28]
test eax, eax
jne 0x140019588
xor eax, eax
add rsp, 0x28
ret
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400195b8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001957e
test byte [rax + 0x40], 3
je 0x14001957e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140019580
call fcn.140018440
test rax, rax
jne 0x14001959e
jmp 0x14001957e

Function at 0x1400195d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019610
test ebx, ebx
jle 0x140019600
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140018440
test rax, rax
jne 0x1400195ed
add rsp, 0x20
pop rbx
ret
Function at 0x140019700
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019778
test byte [rbx + 0x40], 0xc
jne 0x14001972f
mov eax, dword [0x14003dc28]
test eax, eax
jne 0x140019740
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400175e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019763
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019763
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001978c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400178d0
call fcn.140018440
mov rbx, rax
test rax, rax
jne 0x14001971f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400197aa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400178d0
call fcn.140019620
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140019830
call fcn.14001a9a0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019868
call fcn.140018390
mov ecx, dword [0x1400204b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400198c0
test esi, esi
je 0x140019846
call fcn.140019700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400198a0
mov edx, edi
call fcn.14001aa70
call fcn.140019700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400198b0
call fcn.140019700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018390
mov ecx, dword [0x1400204b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140019805
call fcn.140018440
mov rbx, rax
jmp 0x140019805
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001981e
call fcn.140018440
jmp 0x140019846
call fcn.140018440
mov rbx, rax
jmp 0x140019801
Function at 0x1400197c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019778
test byte [rbx + 0x40], 0xc
jne 0x14001972f
mov eax, dword [0x14003dc28]
test eax, eax
jne 0x140019740
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400175e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019763
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019763
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001978c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400178d0
call fcn.140018440
mov rbx, rax
test rax, rax
jne 0x14001971f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400197aa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400178d0
call fcn.140019620
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140019830
call fcn.14001a9a0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019868
call fcn.140018390
mov ecx, dword [0x1400204b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400198c0
test esi, esi
je 0x140019846
call fcn.140019700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400198a0
mov edx, edi
call fcn.14001aa70
call fcn.140019700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400198b0
call fcn.140019700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018390
mov ecx, dword [0x1400204b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140019805
call fcn.140018440
mov rbx, rax
jmp 0x140019805
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001981e
call fcn.140018440
jmp 0x140019846
call fcn.140018440
mov rbx, rax
jmp 0x140019801

Function at 0x1400198d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140018390
mov ecx, dword [0x1400204b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019940
test esi, esi
je 0x140019920
call fcn.140019700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019950
mov edx, esi
call fcn.14001aa70
call fcn.140019700
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140019700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019700
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018440
mov rbx, rax
jmp 0x1400198f1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001990a
Function at 0x14001cf80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14001cfb0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
test rcx, rcx
je 0x14001d000
mov rax, qword [0x14003dc60]
test rax, rax
je 0x14001d000
mov edx, 4
call rax
test al, al
je 0x14001d000
xor eax, eax
add rsp, 0x28
ret
mov eax, 0x16
add rsp, 0x28
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
outsd dx, dword [rsi]
xchg esp, eax
fnstcw word [rbx]
stc
div byte [rsi]
push 8
xor ecx, edi
lodsd eax, dword [rsi]
mov eax, dword [rax - 0x25]
invalid
xchg esp, eax
push rbp
sub byte [rsi + 0x45], cl
jrcxz 0x14002323f
jp 0x1400232e7
cmp bh, byte [0x136a18b2b]
mov cl, 0x4f
xor al, 0xfd
xor al, 0xfd
jg 0x1400232a2
push rbp
and al, 0x61
jp 0x1400232af
mov al, byte [rbx]
and eax, 0x7e89fff3
invalid
dec dword [rcx - 0x3a120082]
in eax, dx
scasd eax, dword [rdi]
cmc
add eax, 0x163f16b8
mov cl, 0x68
ret
fild qword [rbx]
xchg edi, eax
xor bh, byte [rdi + rcx*8]
xor bl, byte [0x167d4fcba]
iretq
Function at 0x140f50470
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5047a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f504a3
pop rbp
sub rbp, 0x33
sub rbp, 0xf50470
sub rsp, 0x20
jmp 0x140f504c2
mov rax, 0xf50470
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x44f910cb
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f504e1
jmp 0x140f504f8
add dword [rdx + 0x22], 0x40
test ebx, 0x4a83cbcb
or al, bl
retf 0xcbcb
Function at 0x140001d40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor ebx, ebx
call fcn.1400012b0
nop
jmp 0x140001d70
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140001d8e
imul rax, rax, 0x64
jmp 0x140001da9
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
movabs rcx, 0x7ffffff903dc53ff
movabs rdi, 0x7fffffffffffffff
cmp rax, rcx
jge 0x140001dd6
movabs rcx, 0x6fc23ac00
add rcx, rax
mov qword [rsp + 0x60], rcx
jmp 0x140001ddb
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.140002a30
mov ecx, 1
call fcn.14002eb30
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140002ba0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001f15
cmp dword [rsp + 0x38], 0
je 0x140001f09
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140001f09
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
mov r8d, 0x150
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x70]
call fcn.1400165b0
nop
lea rcx, [rsp + 0x70]
call fcn.1400174b0
nop
lea rcx, [rsp + 0x70]
call fcn.1400021a0
nop
jmp 0x140001e95
movabs rsi, 0x7fffffffc46535ff
nop
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140001ebe
imul rax, rax, 0x64
jmp 0x140001edc
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rsi
jge 0x140001ef8
add rax, 0x3b9aca00
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140002a30
jmp 0x140001ea0
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.140002a30
jmp 0x140001ea0
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140019880
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400198ab
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xorps xmm0, xmm0
xor edi, edi
lea r8d, [rdi + 0x18]
lea rdx, str.TsunamiSDK::File::Delete
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
test eax, eax
jne 0x14001993b
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400198eb
mov r8, qword [rbx]
lea rdx, str.Failed_to_delete__s
lea rcx, [rsp + 0x20]
call fcn.14001dc60
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019937
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140019932
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400199be
mov rcx, r8
call fcn.14002ec3c
xor al, al
jmp 0x140019997
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001994d
mov r8, qword [rbx]
lea rdx, str.Deleted__s
lea rcx, [rsp + 0x20]
call fcn.14001da20
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019995
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140019990
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400199be
mov rcx, r8
call fcn.14002ec3c
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002eb10
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400199d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400199fb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140019a9b
test al, 0x10
jne 0x140019a9b
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 0x18]
lea rdx, str.TsunamiSDK::File::Exists
lea rcx, [rsp + 0x20]
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140019a48
mov r8, qword [rbx]
lea rdx, str.File__s_exists
lea rcx, [rsp + 0x20]
call fcn.14001dae0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019a94
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140019a8f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140019b42
mov rcx, r8
call fcn.14002ec3c
mov al, 1
jmp 0x140019b1b
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 0x18]
lea rdx, str.TsunamiSDK::File::Exists
lea rcx, [rsp + 0x20]
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140019ad1
mov r8, qword [rbx]
lea rdx, str.File__s_does_not_exist
lea rcx, [rsp + 0x20]
call fcn.14001dae0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019b19
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140019b14
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140019b42
mov rcx, r8
call fcn.14002ec3c
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002eb10
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001a240
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 case.default.0x14001a261
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 0x14001a28e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001a290
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001a2e9
test ecx, ecx
jle 0x14001a2c9
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 0x14001a2e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001a2e9
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
cmp byte [rdx], ch
jl 0x140077dfe
in al, 0x1c
invalid
movabs eax, dword [0xdae09b2140f6e3e7]
popfq
invalid
Function at 0x14001a310
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 0x14001a332
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001a341
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 0x14001a364
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a366
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a3a2
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 0x14001a43e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001a3dd
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 0x14001a41e
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 0x14001a43e
cmp rbx, rax
ja 0x14001a3f0
test rbx, rbx
je 0x14001a43e
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
invalid
in eax, dx
jle 0x140077d53
movabs eax, dword [0xe7771dfbe2c683cc]
add cl, dh
jle 0x140077d6d
invalid
cmp ebp, dword [rax + 0x74]
invalid
scasb al, byte [rdi]
jp 0x140077d1e
ror dword [rdi], 0x56
frstor dword [rbp + 0x7fafd573]
movabs dword [0xa63e712594ab1f5c], eax
push rax
insd dword [rdi], dx
stosd dword [rdi], eax
in eax, dx
add dword [rdi], eax
invalid
movsd dword [rdi], dword [rsi]
jae str._ht_n
scasd eax, dword [rdi]
jg 0x140077d16
pop rsp
invalid
Function at 0x14001a860
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001a88d
xor eax, eax
jmp 0x14001a9f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a8c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001a8c7
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 0x14001a9f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001a9ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a90a
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 0x14001a935
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 0x14001a9f1
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 0x14001a9a4
sub eax, 1
je 0x14001a9a4
cmp eax, 2
jne 0x14001a9ec
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 0x14001a9f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001a9d2
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 0x14001a9ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a9f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002eb10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret