joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b6e18
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800b6e29
xor eax, eax
jmp 0x1800b6e57
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800b6fec
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800b6ffd
xor eax, eax
jmp 0x1800b7021
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800b7028
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1800b706a
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1800b717c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1800b71a7
call fcn.18000d130
int3
test rbx, rbx
jne 0x1800b71b2
call fcn.18000d130
int3
test r9, r9
jne 0x1800b71bd
call fcn.18000d130
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b7240
cmp dword [rsp + 0x48], 3
jne 0x1800b7240
test eax, eax
jne 0x1800b7240
cmp dword [rdi], eax
je 0x1800b7240
mov ecx, dword [rdi]
call fcn.180007ff0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b7234
cmp dword [rsp + 0x48], 3
jne 0x1800b7234
test eax, eax
jne 0x1800b7234
mov eax, 1
jmp 0x1800b7242
mov rcx, qword [rbx]
call fcn.180008034
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800b734c
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180117d8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x180117db5
mov rdi, qword [rdx + 0x10]
jmp 0x180117e06
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180117dd6
call fcn.18000e348
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x180117df0
call fcn.18000e348
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180117e06
call fcn.18000e348
call fcn.18000b138
cmp qword [rax + 0x68], 0
je 0x180117e20
mov rdx, rdi
mov rcx, rbp
call fcn.180116514
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.180117bcc
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x180117e47
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x180117e56
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18014fe47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1802080f0]
jne 0x180149eaa
rol rcx, 0x10
test cx, 0xffff
jne 0x180149ea6
repz ret
ror rcx, 0x10
jmp 0x18014fda0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180214640]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180214738]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18014fe25
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180214640]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18014fe47
mov rax, qword [rsp + 0x88]
mov qword [0x180214738], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1802146d8], rax
mov rax, qword [0x180214738]
mov qword [0x1802145b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1802146c0], rax
mov dword [0x1802145a0], 0xc0000409
mov dword [0x1802145a4], 1
mov rax, qword [0x1802080f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1802080f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180214638], eax
mov ecx, 1
call fcn.18015cdb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1801c8f78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180214638], 0
jne 0x18014fece
mov ecx, 1
call fcn.18015cdb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18015ff14
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1802080f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180150290
xor ebx, ebx
cmp qword [0x180215678], rbx
mov rdi, rax
jne 0x180160027
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1801600fe
lea rdx, [0x1801cb470]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1801600fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801cb460]
mov rcx, rsi
mov qword [0x180215678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801cb448]
mov rcx, rsi
mov qword [0x180215680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180215688], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180215698], rax
test rax, rax
je 0x18016001e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180215690], rax
jmp 0x18016002e
mov rax, qword [0x180215690]
jmp 0x180160035
mov rax, qword [0x180215690]
mov r11, qword [0x180215698]
cmp rax, rdi
je 0x18016009c
cmp r11, rdi
je 0x18016009c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180215698]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18016009c
test rax, rax
je 0x18016009c
call rsi
test rax, rax
je 0x180160096
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180160096
test byte [rsp + 0x40], 1
jne 0x18016009c
bts ebp, 0x15
jmp 0x1801600dc
mov rcx, qword [0x180215680]
cmp rcx, rdi
je 0x1801600dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1801600dc
call rax
mov rbx, rax
test rax, rax
je 0x1801600dc
mov rcx, qword [0x180215688]
cmp rcx, rdi
je 0x1801600dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1801600dc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180215678]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1801600fe
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180160100
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180149e90
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006768
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
mov r15, r8
mov qword [rdx], r12
mov rbx, rdx
mov qword [rdx + 8], r12
mov r14d, r12d
mov dword [rdx + 0x10], r12d
movsxd rsi, dword [r8 + 0x3c]
add rsi, r8
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x18]
add rdi, rax
cmp r12w, word [rsi + 6]
jae 0x14000689d
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x1400067d6
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140003554
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x18], 5
jne 0x14000685a
cmp dword [rax], 0x7865742e
jne 0x14000685a
cmp byte [rax + 4], 0x74
jne 0x14000685a
mov r9d, dword [rdi + 0xc]
mov r8d, r12d
mov r11d, dword [rdi + 8]
add r9, r15
mov qword [rbp - 0x40], rdi
mov r10, r12
mov qword [rbp - 0x38], r9
test r11, r11
je 0x140006845
movzx eax, byte [r9 + r10]
inc r10
crc32 r8d, eax
cmp r10, r11
jb 0x140006832
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp rdx, 0xf
jbe 0x140006889
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006884
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400068c5
call fcn.140074084
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jl 0x1400067c3
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140074020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140006b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140074040
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140006c08]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140006bda
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400097d4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14000983c
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x14000986c
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000981c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140074020
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x140147a38], eax
jmp 0x14000984b
Function at 0x140009d70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x40], 0x2f
lea rdx, [rbp - 0x40]
call fcn.140003b20
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x22
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x20], rcx
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400805b8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400805c8]
mov word [rax + 0x20], cx
xor edi, edi
mov byte [rax + 0x22], dil
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140002d7c
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140009ef2
mov byte [rbp - 0x50], 1
lea ebx, [rdi + 4]
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009ef2
mov byte [rbp - 0x4f], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009ef2
mov byte [rbp - 0x4e], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x4e]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009ef2
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140009ebb
mov rsi, qword [rsi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009ef2
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete dil
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140009f30
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009f2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140074084
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140074020
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d19c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
mov rbx, rdx
add rcx, 0x48
mov qword [rsp + 0x28], rdx
call fcn.14000f7bc
test rax, rax
je 0x14000d1d7
mov rdx, rax
mov rcx, rbx
call fcn.14000d0c8
jmp 0x14000d239
movdqa xmm0, xmmword [0x14008d2c0]
xor ecx, ecx
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x40], 0x1e5b
mov byte [rsp + 0x42], 0
mov al, byte [rsp + 0x30]
xor byte [rsp + rcx + 0x31], al
inc rcx
cmp rcx, 0x11
jb 0x14000d1f3
xorps xmm0, xmm0
mov byte [rsp + 0x42], 0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
lea rax, [rsp + 0x31]
and qword [rbx + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000d222
lea rdx, [rsp + 0x31]
mov rcx, rbx
call fcn.140003554
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140074020
add rsp, 0x50
pop rbx
ret

Function at 0x14000dce8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000dd18
call 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]
jmp 0x14000dd90
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000dd2f
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000dd31
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000dd8a
test ecx, ecx
jle 0x14000dd6a
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 0x14000dd8a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000dd8a
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000ddac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000ddda
xor eax, eax
jmp 0x14000dec3
cmp qword [rcx + 0x68], 0
je 0x14000ddec
call 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]
jmp 0x14000dec3
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000de03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000de05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000de37
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000debd
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000de6e
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000de98
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000debd
cmp rsi, rbx
ja 0x14000de75
test rsi, rsi
je 0x14000debd
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000e2a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14000e2e1
xor eax, eax
jmp 0x14000e401
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000e31b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000e31b
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14000e401
cmp qword [rbx + 0x80], 0
je 0x14000e3ff
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000e356
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 0x14000e377
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x14000e3fc
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x14000e3c5
sub eax, 1
je 0x14000e3c5
cmp eax, 2
jne 0x14000e3ff
movsx ecx, byte [rbp - 0x40]
jmp 0x14000e363
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000e3f0
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14000e3ff
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140074020
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000f00c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f07b
cmp byte [rcx + 0x71], 0
je 0x14000f07b
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000f0d0
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 0x14000f095
sub eax, 1
je 0x14000f099
cmp eax, 2
jne 0x14000f0d0
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140074020
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f0c7
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 0x14000f0d0
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000f07d
xor al, al
jmp 0x14000f07d