joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400885e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov r12, qword [rdx + 0x10]
movabs rax, 0xff00ff00ff00ff00
cmp r12, rax
jae 0x140088652
mov ecx, 0x20000
sub rcx, r12
shr rcx, 0xb
mov eax, esi
cmp r12, 0x20000
cmovb rax, rcx
mov r14, r12
shr r14, 8
add r14, rax
add r14, r12
jne 0x140088659
mov r14, 0xffffffffffffffb8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
lea rbp, [r14 + 8]
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
test rbp, rbp
je 0x1400886e3
movabs rax, 0x7fffffffffffffff
cmp rbp, rax
ja 0x140088820
cmp rbp, 0x1000
jb 0x1400886bb
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x140088826
call fcn.140139d28
test rax, rax
je 0x1400886b4
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x1400886c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.140139d28
mov rcx, rax
mov qword [rdi], rcx
lea rax, [rcx + rbp]
mov qword [rdi + 0x10], rax
lea rbx, [rcx + rbp]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rdi + 8], rbx
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
mov byte [rax], 0x52
mov rax, qword [rdi]
mov byte [rax + 1], 0x53
mov rax, qword [rdi]
mov byte [rax + 2], 0x42
mov rax, qword [rdi]
mov byte [rax + 3], 0x31
mov rax, qword [rdi]
mov qword [rax + 4], r12
cmp qword [r15 + 0x18], 0xf
jbe 0x140088717
mov r15, qword [r15]
mov rcx, qword [rdi]
add rcx, 8
mov dword [rsp + 0x20], socket
mov r9, r12
mov r8, r15
mov rdx, r14
call fcn.140045e40
cmp rax, 0xffffffffffffff88
ja 0x1400887fd
lea rbx, [rax + 8]
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.14003ace0
mov dword [rsp + 0x58], eax
test rbx, rbx
je 0x140088782
mov r8, rsi
nop dword [rax]
mov rdx, qword [rdi]
add rdx, r8
and r8d, 3
movsx eax, sil
imul ecx, eax, 0x29
add cl, byte [rsp + r8 + 0x58]
xor byte [rdx], cl
inc esi
mov r8d, esi
cmp r8, rbx
jb 0x140088760
mov qword [r13], rbx
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
cmp rbx, rcx
jae 0x1400887a2
lea rax, [rdx + rbx]
mov qword [rdi + 8], rax
jmp 0x1400887d5
jbe 0x1400887d5
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbx, rax
jbe 0x1400887bd
mov rdx, rbx
mov rcx, rdi
call fcn.1400926e0
jmp 0x1400887d5
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + rsi]
mov qword [rdi + 8], rcx
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140139630
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Failed_to_compress_.
lea rcx, [rsp + 0x40]
call fcn.1400863c0
lea rdx, [0x140189340]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140002ef0
int3
call fcn.140002980
int3
Function at 0x140088a20
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
mov edx, ecx
lea rcx, [0x1400889c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x140191488]
add rsp, 0x28
ret
Function at 0x140089500
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
xor edi, edi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140089589
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140089580
lea rdx, str.RobloxPlayerBeta.exe
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14008957b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140089551
jmp 0x140089580
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140139630
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x1400895b0
Capabilities:
Open clipboard

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400895cc
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
add rsp, 0x28
ret
Function at 0x140089ff0
Capabilities:
Clear windows event logs
Execute command

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov r8, rcx
lea rdx, [0x1401725a8]
lea rcx, [rsp + 0x28]
call fcn.140090dd0
nop
mov r8d, 1
lea rdx, [0x1401725a4]
mov rcx, rax
call fcn.14008f9f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14008a0a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a0a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a0a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140139a10
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14008a104
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a0fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a0fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140139a10
nop
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140139630
add rsp, 0x70
pop rbx
ret
Function at 0x14008a120
Capabilities:
Delete registry value
Get installed programs
Query or enumerate registry key

Disassembly:
sub rsp, 0x298
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x60]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a278
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x290], rdi
xor r9d, r9d
xor edi, edi
xor r8d, r8d
mov qword [rsp + 0x58], rdi
xor edx, edx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14008a265
mov qword [rsp + 0x2a0], rbx
mov ebx, edi
cmp dword [rsp + 0x70], ebx
jbe 0x14008a25d
nop
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x74]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], rdi
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x74], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14008a251
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a251
mov rcx, qword [rsp + 0x68]
lea rdx, str.PowerShellCommandHistory
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x14008a1d0
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140139630
add rsp, 0x298
ret
Function at 0x14008a290
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x60]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARERoblox
mov rcx, 0xffffffff80000001
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a3ad
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x298], rsi
xor r9d, r9d
xor esi, esi
xor r8d, r8d
mov qword [rsp + 0x58], rsi
xor edx, edx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14008a39a
mov qword [rsp + 0x290], rbx
mov ebx, esi
cmp dword [rsp + 0x68], ebx
jbe 0x14008a392
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x6c], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14008a38a
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dil, 1
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x14008a340
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x298]
movzx eax, dil
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140139630
add rsp, 0x280
pop rdi
ret
Function at 0x14008a3d0
Capabilities:
Clear windows event logs
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor r14d, r14d
xor dil, dil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x37], xmm0
mov qword [rbp + 0x47], rax
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x59], xmm1
mov r8d, recv
lea rdx, str.Application
lea rcx, [rbp - 0x69]
call fcn.140091ca0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x39], xmm1
mov r8d, 6
lea rdx, str.System
lea rcx, [rbp - 0x49]
call fcn.140091ca0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x19], xmm1
mov r8d, 8
lea rdx, str.Security
lea rcx, [rbp - 0x29]
call fcn.140091ca0
nop
lea rax, [rbp - 0x69]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 9]
mov qword [rbp + 0x1f], rax
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x37]
call fcn.14008f760
nop
lea r9, [fcn.140087180]
mov edx, 0x20
mov r8d, 3
lea rcx, [rbp - 0x69]
call fcn.140139a18
mov rbx, qword [rbp + 0x37]
mov rsi, qword [rbp + 0x3f]
cmp rbx, rsi
je 0x14008a5d7
nop dword [rax]
nop dword [rax + rax]
mov r8, rbx
lea rdx, [0x1401725a8]
lea rcx, [rbp - 9]
call fcn.140090dd0
nop
mov r8d, 1
lea rdx, [0x1401725a4]
mov rcx, rax
call fcn.14008f9f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x17], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x27], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14008a577
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a60d
call fcn.140139a10
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov dil, 1
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14008a5ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a5c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a614
call fcn.140139a10
add rbx, 0x20
cmp rbx, rsi
jne 0x14008a4e0
lea rcx, [rbp + 0x37]
call fcn.140090400
movzx eax, dil
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140139630
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14008a620
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rcx + 0x18]
mov r11, rdx
mov rdx, qword [rcx + 0x10]
mov r8, rcx
mov r10, rcx
cmp rbx, 7
jbe 0x14008a655
mov r10, qword [rcx]
cmp rdx, 0xc
jne 0x14008a690
lea rcx, str.LocalMachine
mov r9, rdx
sub r10, rcx
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
cmp ax, word [rcx]
jne 0x14008a690
add rcx, 2
sub r9, 1
jne 0x14008a670
mov rcx, 0xffffffff80000002
jmp 0x14008a70f
mov r9, r8
cmp rbx, 7
jbe 0x14008a69c
mov r9, qword [r8]
cmp rdx, 0xb
jne 0x14008a6cd
lea rcx, str.CurrentUser
sub r9, rcx
nop dword [rax]
movzx eax, word [r9 + rcx]
cmp ax, word [rcx]
jne 0x14008a6cd
add rcx, 2
sub rdx, 1
jne 0x14008a6b0
mov rcx, 0xffffffff80000001
jmp 0x14008a70f
mov rdx, qword [r8 + 0x10]
cmp rbx, 7
jbe 0x14008a6da
mov r8, qword [r8]
cmp rdx, 5
jne 0x14008a7f0
lea rcx, str.Users
sub r8, rcx
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14008a7f0
add rcx, 2
sub rdx, 1
jne 0x14008a6f0
mov rcx, 0xffffffff80000003
cmp qword [r11 + 0x18], 7
jbe 0x14008a719
mov r11, qword [r11]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a7f0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x270], rdi
lea r8, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ebx, 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14008a7d9
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov edx, ebx
mov qword [rsp + 0x28], rdi
inc ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x48], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14008a790
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x270]
mov al, 1
jmp 0x14008a7f2
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140139630
add rsp, 0x260
pop rbx
ret
Function at 0x14008b400
Capabilities:
Empty the recycle bin

Disassembly:
sub rsp, 0x28
xor edx, edx
mov r8d, 7
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
shr eax, 0x1f
xor al, 1
add rsp, 0x28
ret
Function at 0x14008e5e0
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 0x14008e608
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 0x14008e62e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14008e630
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14008e689
test ecx, ecx
jle 0x14008e669
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 0x14008e689
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14008e689
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 0x14008e6b0
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 0x14008e6d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14008e6e8
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 0x14008e704
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14008e706
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14008e742
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 0x14008e7de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14008e77d
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 0x14008e7be
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 0x14008e7de
cmp rbx, rax
ja 0x14008e790
test rbx, rbx
je 0x14008e7de
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 0x14008ec50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14008ec7d
xor eax, eax
jmp 0x14008ede9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14008ecb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14008ecb7
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 0x14008ede9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14008eddc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14008ecfa
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 0x14008ed25
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 0x14008ede1
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 0x14008ed94
sub eax, 1
je 0x14008ed94
cmp eax, 2
jne 0x14008eddc
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 0x14008ede1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14008edc2
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 0x14008eddc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14008ede1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140139630
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400900d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14018ef00]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400901a3
cmp byte [rcx + 0x71], 0
je 0x1400901a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14009019f
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 0x140090164
sub eax, 1
je 0x140090168
cmp eax, 2
jne 0x14009019f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140139630
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140090196
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 0x14009019f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14009014c
xor al, al
jmp 0x14009014c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140139630
add rsp, 0x60
pop rbx
ret