joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a24a0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x670
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x650], rbx
mov qword [rbp + 0x660], rsi
mov qword [rbp + 0x668], rdi
mov rax, qword [0x14028b7c8]
xor rax, rbp
mov qword [rbp + 0x630], rax
mov rsi, rdx
mov r8, rdx
lea rdx, [0x14021ca60]
xor edi, edi
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
ja 0x1401a26ac
lea rax, [rbp + 8]
lea r9d, [rdi + 1]
lea rdx, [0x14021ca70]
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401a26a9
mov rcx, qword [rbp + 8]
lea r9, [rbp]
lea r8, [rbp + 0x420]
xor edx, edx
mov dword [rbp], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rdx, [rbp + 0x420]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x14021ca80]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rbp + 8]
lea r9d, [rdi + 1]
lea rdx, [rbp + 0x10]
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401a26a9
mov rcx, qword [rbp + 8]
lea r9, [rbp]
lea r8, [rbp + 0x420]
xor edx, edx
mov dword [rbp], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rdx, [rbp + 0x420]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x14021caa8]
lea rcx, [rbp + 0x10]
call fcn.140157bac
mov rbx, rax
test rax, rax
jne 0x1401a2623
lea rdx, [0x14021cab4]
lea rcx, [rbp + 0x10]
call fcn.140157bac
mov rbx, rax
test rax, rax
jne 0x1401a2623
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbx, [rbp + rcx*2 + 0xe]
jmp 0x1401a2626
mov word [rax], di
lea rdx, [0x14021cabc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x1401a2697
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1401a2671
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401b8d00
sub rsp, rcx
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
mov r9d, 3
call fcn.140002770
mov rdi, rax
mov edx, 5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WinExec]
mov eax, eax
jmp 0x1401a26ac
mov rax, rbx
mov rcx, qword [rbp + 0x630]
xor rcx, rbp
call fcn.140156fd0
mov rbx, qword [rbp + 0x650]
mov rsi, qword [rbp + 0x660]
mov rdi, qword [rbp + 0x668]
lea rsp, [rbp + 0x640]
pop rbp
ret
Function at 0x1401a7090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], r12
mov rbp, rcx
mov qword [rsp + 0x48], r13
nop dword [rax]
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x1401a714c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.140159620
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop dword [rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x1401a7110
sub eax, edi
jmp 0x1401a7112
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x1401a7100
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x1401a7140
sub eax, edi
jmp 0x1401a7142
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x1401a7130
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x1401a7210
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x1401a71b8
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x2c], 1
jne 0x1401a71a0
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.1401a5400
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.140159620
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x1401a71f9
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbp + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x1401a7210
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x1401a70b0
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401ab750
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x148], 0
mov rbx, rcx
je 0x1401ab76b
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x1401ab650]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x148], rax
test rax, rax
je 0x1401ab763
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x148]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1401ac850
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rcx, rdx
mov rdi, r8
call fcn.1400024c0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov rcx, rax
mov rbp, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1401ac9d7
mov rcx, rsi
mov qword [rsp + 0x100], rbx
call fcn.14013f170
mov r8d, esi
xor edx, edx
mov r9, rax
mov rcx, rbp
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401ac9c7
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x38]
lea rdx, [0x140223d6c]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401ac9c7
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401ac9a7
mov rax, qword [rsp + 0x30]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rsp + 0x50]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401ac956
mov r8, qword [rsp + 0x28]
lea rcx, [rdi + 0x10]
mov edx, 0x100
call fcn.140044464
mov rax, qword [rsp + 0x30]
lea rdx, str.StringFileInfo_04x_04xCompanyName
lea rcx, [rsp + 0x50]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401ac9a7
mov r8, qword [rsp + 0x28]
lea rcx, [rdi + 0x110]
mov edx, 0x100
call fcn.140044464
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + 0xa]
mov dword [rdi], eax
movzx eax, word [rcx + 8]
mov dword [rdi + 4], eax
movzx eax, word [rcx + 0xe]
mov dword [rdi + 8], eax
movzx eax, word [rcx + 0xc]
mov dword [rdi + 0xc], eax
mov rcx, rbx
call fcn.14013f178
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140156fd0
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b2db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
test r8, r8
jne 0x1401b2dd2
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
je 0x1401b2dc5
movzx ecx, byte [r8 + 0xe]
mov qword [rsp + 0x40], rbx
mov eax, 0x4d42
mov ebx, 1
mov word [rsp + 0x20], ax
shl ebx, cl
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [rsi]
mov r9, rdi
add eax, 0xe
lea edx, [rcx + rbx*4 + 0xe]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x22], eax
xor eax, eax
mov dword [rsp + 0x2a], edx
lea edx, [rax + 1]
lea r8d, [rax + 0xe]
mov word [rsp + 0x26], ax
mov word [rsp + 0x28], ax
call fcn.140157b08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r9, rdi
mov edx, 1
mov r8, rax
mov rcx, rsi
call fcn.140157b08
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1401b6220
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x1401b61a0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x1401b6285
mov edx, dword [rbx + 0x14]
test edx, edx
je 0x1401b626d
sub edx, 1
je 0x1401b626d
cmp edx, 2
jne 0x1401b627b
xor edx, edx
jmp 0x1401b6272
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x30
pop rbx
ret
Function at 0x1401b8340
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x980]
cmp dword [rcx + 0xa68], 1
je 0x1401b8557
cmp dword [rcx + 0xa6c], 0
je 0x1401b8557
call fcn.14017a750
xor esi, esi
cmp dword [rbx + 0xe58], esi
jne 0x1401b8493
cmp dword [rbx + 0xe5c], esi
jne 0x1401b8493
mov rcx, qword [rbx + 0xe70]
test rcx, rcx
je 0x1401b83f2
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
je 0x1401b83d0
mov rax, qword [rbx + 0xe70]
mov dword [rax + 0x10], 7
mov rcx, qword [rbx + 0xe70]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov edx, 0x17016400
mov rcx, qword [rbx + 0xe70]
call fcn.1401b6690
mov r11, qword [rbx + 0xe70]
mov dword [r11 + 0x14], 3
jmp 0x1401b8443
mov ecx, 0x98
call fcn.14013f12c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401b8410
mov rcx, rax
call fcn.1401b6860
jmp 0x1401b8413
mov rax, rsi
mov qword [rbx + 0xe70], rax
mov edx, 0x17016400
mov rcx, rax
call fcn.1401b6690
mov r11, qword [rbx + 0xe70]
mov dword [r11 + 0x14], 3
mov rcx, qword [rbx + 0xe70]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x20], rsi
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x28], rsi
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x30], rsi
mov rax, qword [rbx + 0xe70]
mov dword [rax + 0x10], 1
mov rcx, qword [rbx + 0xe70]
nop dword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0xe70]
cmp dword [rcx + 0x10], 6
jne 0x1401b8480
mov rax, qword [rbx + 0x980]
mov word [rax + 0x408], si
test rdi, rdi
je 0x1401b84c1
mov rcx, qword [rbx + 0x980]
add rcx, 0x408
mov r8, rdi
mov edx, 0x100
call fcn.1400444d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, qword [rbx + 0x980]
lea r8, [0x1401b8270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x150], rax
test rax, rax
je 0x1401b8512
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1401b8557
xor edx, edx
mov rcx, qword [rbx + 0x980]
call fcn.14017a6e0
mov rdx, qword [rbx + 0x980]
mov dword [rdx + 0xa6c], 1
mov rcx, qword [0x1402a0ba0]
test rcx, rcx
je 0x1401b8557
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1401b8557
xor r9d, r9d
xor r8d, r8d
mov edx, 0x42a
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1401b8640
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x980]
cmp dword [rcx + 0xa68], 0
je 0x1401b8681
xor eax, eax
jmp 0x1401b8881
cmp dword [rcx + 0xa6c], 0
jne 0x1401b8691
xor eax, eax
jmp 0x1401b8881
call fcn.14017a750
cmp dword [rbx + 0xe58], 0
jne 0x1401b87a8
cmp dword [rbx + 0xe5c], 0
jne 0x1401b87a8
mov rcx, qword [rbx + 0xe70]
test rcx, rcx
je 0x1401b8703
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
je 0x1401b86e1
mov rax, qword [rbx + 0xe70]
mov dword [rax + 0x10], 7
mov rcx, qword [rbx + 0xe70]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov edx, 0x17016400
mov rcx, qword [rbx + 0xe70]
call fcn.1401b6690
mov r11, qword [rbx + 0xe70]
mov dword [r11 + 0x14], 3
jmp 0x1401b8753
mov ecx, 0x98
call fcn.14013f12c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401b8721
mov rcx, rax
call fcn.1401b6860
jmp 0x1401b8723
xor eax, eax
mov qword [rbx + 0xe70], rax
mov edx, 0x17016400
mov rcx, rax
call fcn.1401b6690
mov r11, qword [rbx + 0xe70]
mov dword [r11 + 0x14], 3
mov rcx, qword [rbx + 0xe70]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x20], 0
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x28], 0
mov rax, qword [rbx + 0xe70]
mov qword [rax + 0x30], 0
mov rax, qword [rbx + 0xe70]
mov dword [rax + 0x10], 1
mov rcx, qword [rbx + 0xe70]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0xe70]
cmp dword [rcx + 0x10], 6
jne 0x1401b8795
mov rcx, qword [rbx + 0x980]
add rcx, 0x608
mov r8, rbp
mov edx, 0x200
call fcn.1400444d0
mov rcx, qword [rbx + 0x980]
add rcx, 8
mov r8, rsi
mov edx, 0x200
call fcn.1400444d0
mov r11, qword [rbx + 0x980]
mov dword [r11 + 0xa60], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, qword [rbx + 0x980]
lea r8, [0x1401b8570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x150], rax
test rax, rax
je 0x1401b883a
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1401b887f
xor edx, edx
mov rcx, qword [rbx + 0x980]
call fcn.14017a6e0
mov rdx, qword [rbx + 0x980]
mov dword [rdx + 0xa6c], 1
mov rcx, qword [0x1402a0ba0]
test rcx, rcx
je 0x1401b887f
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1401b887f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x42a
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140006830
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 0x140006858
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 0x14000687e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006880
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400068d9
test ecx, ecx
jle 0x1400068b9
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 0x1400068d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400068d9
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 0x140006900
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 0x140006922
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006938
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 0x140006954
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006956
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006992
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 0x140006a2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400069cd
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 0x140006a0e
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 0x140006a2e
cmp rbx, rax
ja 0x1400069e0
test rbx, rbx
je 0x140006a2e
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 0x140006e90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c4040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140006ebd
xor eax, eax
jmp 0x140007029
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006ef7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006ef7
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 0x140007029
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000701c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006f3a
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 0x140006f65
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 0x140007021
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 0x140006fd4
sub eax, 1
je 0x140006fd4
cmp eax, 2
jne 0x14000701c
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 0x140007021
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007002
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 0x14000701c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007021
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400844d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140007fd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400080a3
cmp byte [rcx + 0x71], 0
je 0x1400080a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000809f
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 0x140008064
sub eax, 1
je 0x140008068
cmp eax, 2
jne 0x14000809f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400844d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008096
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 0x14000809f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000804c
xor al, al
jmp 0x14000804c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400844d0
add rsp, 0x60
pop rbx
ret