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

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140071200]
mov r9, qword [r9 + 8]
jmp fcn.140062d50

Function at 0x1400711d8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140071210]
mov r9, qword [r9 + 8]
jmp fcn.140062d50

Function at 0x140072af4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xa8]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x140072b3c
mov dl, r8b
and dl, 3
cmp dl, 1
jne 0x140072b3c
and r8, 0xfffffffffffffffe
je 0x140072b3c
mov rax, qword [rbx + 0x80]
cmp r8, rax
jne 0x140072b3c
and qword [r8 + 0x20], 0
jmp 0x140072b7b
and dword [rsp + 0x20], 0
lea rax, [0x14005b558]
and dword [rsp + 0x24], 0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
jmp 0x140072b6f
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x140072b7b
lea rcx, [rsp + 0x20]
call fcn.14005a61c
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x140072b59
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x40]
add rsp, 0x40
pop rbx
jmp qword [case.0x140061736.0]

Function at 0x14007616c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400761b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400761b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400761b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400761b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400761b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400761b8
xor al, al
add rsp, 0x28
ret

Function at 0x1400764c0
Capabilities:
Access peb ldr_data

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, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140076e60
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.140076e60
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.140076e60
mov ecx, dword [0x1400b1410]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x14
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.1400781f0
call fcn.140076e60
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x140079480
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1400ab140]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400794bc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140075fd8
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140079578
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400795de
test ebx, ebx
jne 0x1400795de
lea ecx, [rax + 2]
call fcn.140075fd8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1400753b0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x14007e590
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x1400ab140]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x14007e5fc
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14007e5fc
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14007e64f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x14007e5e0
mov rcx, qword [0x1400b1a10]
test rcx, rcx
jne 0x14007e632
call fcn.140080340
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x1400b1a10], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x14007e733
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x14007e735
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14007e75a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14007e5fc
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14007e5fc
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14007e5fc
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x14007e723
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x14007e701
jmp 0x14007e5fc
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x14007e5fc
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400753b0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140075e38
int3

Function at 0x14007eba0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007ec02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007ec02
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14007ec02
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14007ec02
cmp dword [rdx + 0x84], 0xe
jbe 0x14007ec02
cmp dword [rdx + 0xf8], 0
je 0x14007ec02
mov ecx, ebx
call fcn.14007ea60
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400b1a28]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14007e8f0
cmp dword [rsp + 0x60], 0
jne 0x14007ec45
mov ecx, ebx
call fcn.14007ea20
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14007ec90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007ecec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007ecec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007ecec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007ecec
cmp dword [rcx + 0x84], 0xe
jbe 0x14007ecec
cmp dword [rcx + 0xf8], 0
je 0x14007ecec
mov ecx, ebx
call fcn.14007ea60
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400b1a28]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14007e8f0
cmp dword [rsp + 0x60], 0
jne 0x14007ed2f
mov ecx, ebx
call fcn.14007ea20
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140001970
Capabilities:
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
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x24]
add rsi, rcx
mov r10d, dword [r8 + 0x20]
add rbp, rcx
mov ebx, dword [r8 + 0x18]
add r10, rcx
test ebx, ebx
je 0x1400019f3
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400019e3
inc rax
test ecx, ecx
jne 0x1400019d0
test edx, edx
je 0x140001a0a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x1400019c0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x1400019f5
Function at 0x14000a4ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14000c0d0]
test rax, rax
je 0x14000a536
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a536
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a536
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a536
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a536
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a538
xor al, al
add rsp, 0x28
ret
Function at 0x140001ee0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x48]
mov rbx, rcx
mov dword [rsp + 0x48], 0x101
lea rcx, [rsp + 0x70]
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r8d, r8d
test eax, eax
jne 0x140001f6d
xorps xmm0, xmm0
lea rdx, [0x140013870]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x18], rsi
mov rcx, rbx
mov qword [rbx + 0x10], rsi
call fcn.14000ed20
jmp 0x140002098
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x140001fa5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
jmp 0x140001f4b
mov rcx, rax
mov qword [rsp + 0x2a8], rdi
call fcn.140010ab4
mov r9d, dword [rsp + 0x34]
mov rdi, rax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140002016
mov rcx, rdi
call fcn.140010760
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, [0x140013870]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
xor r8d, r8d
mov rcx, rbx
mov qword [rbx + 0x18], rsi
call fcn.14000ed20
jmp 0x140002090
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov rcx, rdi
test eax, eax
je 0x140001fe1
call fcn.140010760
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x68], rsi
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140002060
lea rcx, [rsp + 0x50]
call fcn.14000ed20
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rdi, qword [rsp + 0x2a8]
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140010740
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400064a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.140010768
lea rcx, [0x140006550]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000feb0]
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 0x14000653b
cmp dword [rsp + 0x38], 0
je 0x14000652f
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000652f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140010740
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14000c530
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1d], 0
je 0x14000c553
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x5c]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x1c
jb 0x14000c540
mov byte [rcx + 0x1d], 0
mov rax, rcx
ret

Function at 0x14000c970
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 0x14000c998
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 0x14000c9be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000c9c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000ca19
test ecx, ecx
jle 0x14000c9f9
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 0x14000ca19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ca19
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 0x14000ca40
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 0x14000ca62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000ca78
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 0x14000ca94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ca96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000cad2
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 0x14000cb6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000cb0d
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 0x14000cb4e
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 0x14000cb6e
cmp rbx, rax
ja 0x14000cb20
test rbx, rbx
je 0x14000cb6e
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 0x14000cfd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000cffd
xor eax, eax
jmp 0x14000d169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d037
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 0x14000d169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d15c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d07a
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 0x14000d0a5
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 0x14000d161
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 0x14000d114
sub eax, 1
je 0x14000d114
cmp eax, 2
jne 0x14000d15c
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 0x14000d161
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d142
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 0x14000d15c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010740
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000d2c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x42], al
je 0x14000d2f5
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x20
jb 0x14000d2e0
mov byte [rdx + 0x42], 0
lea r8, [rdx + 0x40]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14000d310
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2a], 0
mov rdx, rcx
je 0x14000d336
xor eax, eax
mov r8d, 0x4ba4
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x14
jb 0x14000d321
mov byte [rdx + 0x2a], 0
ret

Function at 0x14000d340
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x2a], al
je 0x14000d375
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x14
jb 0x14000d360
mov byte [rdx + 0x2a], 0
lea r8, [rdx + 0x28]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d390
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x2e], al
je 0x14000d3c5
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x16
jb 0x14000d3b0
mov byte [rdx + 0x2e], 0
lea r8, [rdx + 0x2c]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d3e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x3c], al
je 0x14000d415
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x1d
jb 0x14000d400
mov byte [rdx + 0x3c], 0
lea r8, [rdx + 0x3a]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d430
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x20], al
je 0x14000d465
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0xf
jb 0x14000d450
mov byte [rdx + 0x20], 0
lea r8, [rdx + 0x1e]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d480
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x1e], al
je 0x14000d4b5
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0xe
jb 0x14000d4a0
mov byte [rdx + 0x1e], 0
lea r8, [rdx + 0x1c]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d4d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x14], al
je 0x14000d505
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 9
jb 0x14000d4f0
mov byte [rdx + 0x14], 0
lea r8, [rdx + 0x12]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000d520
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x10], al
je 0x14000d555
mov r8d, 0x4ba4
nop dword [rax]
lea ecx, [r8 + rax]
xor word [rdx + rax*2], cx
inc rax
cmp rax, 7
jb 0x14000d540
mov byte [rdx + 0x10], 0
lea r8, [rdx + 0xe]
mov rcx, rbx
call fcn.14000eaf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret