joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400955f0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x220
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140111200]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov eax, dword [rcx + 0x40]
cmp eax, 4
setle r12b
movzx edi, byte [rcx + 0xd8]
jle 0x14009564d
test dil, dil
je 0x1400957f3
mov qword [rsp + 0xe0], 0
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0xfa
lea rax, str.Failed_to_create_Custom_layout._Invalid_zone_id
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x2f
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.14002e430
mov r14, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xd8]
lea rcx, [rbx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x1400956d5
mov rcx, qword [rbx + 8]
mov qword [rsp + 0xb0], rcx
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [rsi]
movsd xmm7, qword [rsi + 0x10]
call fcn.14009d484
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov ecx, 0x18
mov eax, dword [rcx + rsi]
mov edx, 0x10
test al, 1
jne 0x140095748
or eax, 1
mov dword [rcx + rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov ecx, 0x10
add rcx, rsi
mov qword [rcx], rax
jmp 0x14009574c
lea rcx, [rsi + rdx]
mov rax, qword [rcx]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
movups xmmword [rsp + 0x88], xmm6
movsd qword [rsp + 0x98], xmm7
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r14
movzx r9d, dil
movzx r8d, r12b
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140030570
nop
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
je 0x1400957f3
mov rdx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400957ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009582b
call fcn.14009ecd8
nop
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14009ea10
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.1400a5cd4
nop
int3
Function at 0x140095840
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x220
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140111200]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov eax, dword [rcx + 0x40]
cmp eax, 4
setle r12b
movzx edi, byte [rcx + 0xd8]
jle 0x14009589d
test dil, dil
je 0x140095a43
mov qword [rsp + 0xe0], 0
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0xfa
lea rax, str.Failed_to_create_Custom_layout._Invalid_zone
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x2c
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.14002e430
mov r14, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xd8]
lea rcx, [rbx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x140095925
mov rcx, qword [rbx + 8]
mov qword [rsp + 0xb0], rcx
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [rsi]
movsd xmm7, qword [rsi + 0x10]
call fcn.14009d484
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov ecx, 0x18
mov eax, dword [rcx + rsi]
mov edx, 0x10
test al, 1
jne 0x140095998
or eax, 1
mov dword [rcx + rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov ecx, 0x10
add rcx, rsi
mov qword [rcx], rax
jmp 0x14009599c
lea rcx, [rsi + rdx]
mov rax, qword [rcx]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
movups xmmword [rsp + 0x88], xmm6
movsd qword [rsp + 0x98], xmm7
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r14
movzx r9d, dil
movzx r8d, r12b
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140030570
nop
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
je 0x140095a43
mov rdx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140095a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140095a7b
call fcn.14009ecd8
nop
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14009ea10
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.1400a5cd4
nop
int3
Function at 0x140097c70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, r8
mov rbx, rcx
xor ebp, ebp
mov dword [rcx], 0x3e8
add rcx, 8
call fcn.1400064f0
nop
mov byte [rbx + 0x30], bpl
lea rsi, [rbx + 0x38]
mov qword [rsp + 0x30], rsi
mov qword [rsi + 0x38], rbp
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140097cc4
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax]
mov qword [rsi + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbx + 0x80], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140097d3b
mov ecx, 8
call fcn.14009ea30
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140097d80]
xor edx, edx
xor ecx, ecx
call fcn.1400ac5c8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140097d6a
cmp dword [rbx + 0x88], 0
jne 0x140097d64
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x80], xmm1
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140097d54
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbp
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ac6a8
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.14009c3ec
int3

Function at 0x14009b35c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14009b3e0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x14009b3e0
dec r8
sub rdx, 1
jne 0x14009b3c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14009fa50
Capabilities:
Parse pe header

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

Function at 0x1400ae2f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ae314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ab310
or eax, 0xffffffff
jmp 0x1400ae316
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400be580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400be5b2
call fcn.1400ab39c
mov dword [rax], 0x16
call fcn.1400a5cb4
jmp 0x1400be6d1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400be6d1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400be6d1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400be5e1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400be6d1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400be5f5
call fcn.1400bec7c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400ad6e0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400bf194
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400be6bf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400be68a
mov rcx, rsi
call fcn.1400ad6e0
cmp eax, edi
je 0x1400be675
mov rcx, rsi
call fcn.1400ad6e0
cmp eax, 0xfffffffe
je 0x1400be675
mov rcx, rsi
call fcn.1400ad6e0
movsxd rbx, eax
lea r14, [0x140118850]
mov rcx, rsi
sar rbx, 6
call fcn.1400ad6e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400be67c
lea rdx, [0x1401115d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400be68a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400be6ae
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400be6ae
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400be6ae
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400be6d4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400be9fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14009f6b0
sub rsp, rax
mov rax, qword [0x140111200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ad6e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400bea4b
mov rax, rbp
jmp 0x1400beb53
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x118850]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400be110
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x118850]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400beb4f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400beb4f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400be110
test rax, rax
js 0x1400beb4f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400beb4f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400beb41
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400beb41
cmp byte [rcx], 0xd
jne 0x1400beb27
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400beb36
cmp byte [rcx + 1], 0xa
jne 0x1400beb36
inc rcx
jmp 0x1400beb36
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1117e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400beb09
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400beb53
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009ea10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bece8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140118850]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400bed46
cmp word [rdx], r12w
jne 0x1400bed46
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400bed4c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400beea7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400bee82
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400bed85
mov rcx, r9
jmp 0x1400beda8
cmp r9, rdx
jae 0x1400bedbf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400bed69
jmp 0x1400beea7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bee7c
cmp dword [rsp + 0x80], edi
je 0x1400bee7c
mov rdx, r14
lea r11, [0x140118850]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400bee55
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400bee28
mov word [rbx], r12w
jmp 0x1400beea3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400bee31
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400beea3
cmp word [rsp + 0x70], r12w
jne 0x1400bee62
cmp rbx, rsi
je 0x1400bee22
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400be118
cmp word [rsp + 0x70], r12w
je 0x1400beea7
mov word [rbx], r13w
jmp 0x1400beea3
lea r11, [0x140118850]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400bee9f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400beea7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c2378
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400c23ff
mov rsi, rbx
cmp word [rax], bp
je 0x1400c23be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c23a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c23a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b8f38
mov rdi, rax
test rax, rax
je 0x1400c23ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a11e0
mov rbp, rdi
xor ecx, ecx
call fcn.1400b8efc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c8fc4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400be118
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400be118
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c9114
cmp rax, 0xffffffffffffffff
je 0x1400c9114
xor edi, edi
test rbp, rbp
jle 0x1400c90bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ba758
mov rbx, rax
test rax, rax
jne 0x1400c904c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c90b5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b6a54
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400bc22c
cmp eax, 0xffffffff
je 0x1400c9095
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c905c
mov edx, r15d
mov ecx, r14d
call fcn.1400b6a54
jmp 0x1400c90b5
cmp byte [rsi + 0x38], dil
je 0x1400c90ac
cmp dword [rsi + 0x34], 5
jne 0x1400c90ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c90b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b8efc
jmp 0x1400c9128
jns 0x1400c9128
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400be118
cmp rax, 0xffffffffffffffff
jne 0x1400c90e0
cmp byte [rsi + 0x30], dil
je 0x1400c9128
mov edi, dword [rsi + 0x2c]
jmp 0x1400c9128
mov ecx, r14d
call fcn.1400ad3cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c9128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400c9128
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c9121
mov eax, dword [rsi + 0x2c]
jmp 0x1400c9126
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400be118
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001410
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rbp, [rcx + 2]
mov qword [rsp + 0x20], 4
mov qword [rsp + 0x18], rbp
nop word [rax + rax]
movzx r9d, byte [rbp - 1]
movzx edx, byte [rbp - 2]
movzx ebx, r9b
movzx r8d, byte [rbp]
movzx eax, dl
shr al, 7
add bl, bl
movzx ecx, byte [rbp + 1]
movzx eax, al
imul eax, eax, 0x1b
mov byte [rsp + 0x78], r9b
mov byte [rsp + 0x88], dl
add dl, dl
mov byte [rsp + 0x80], r8b
xor dl, al
mov dword [rsp + 8], eax
movzx eax, dl
movzx esi, dl
shr al, 7
add sil, sil
movzx eax, al
imul eax, eax, 0x1b
xor sil, al
mov dword [rsp + 4], eax
movzx eax, r9b
movzx r9d, r8b
shr al, 7
add r9b, r9b
movzx eax, al
imul r15d, eax, 0x1b
xor bl, r15b
movzx eax, bl
movzx r10d, bl
shr al, 7
add r10b, r10b
movzx eax, al
imul eax, eax, 0x1b
xor r10b, al
mov dword [rsp + 0x10], eax
movzx eax, r8b
shr al, 7
movzx eax, al
imul r12d, eax, 0x1b
xor r9b, r12b
mov dword [rsp + 0xc], r12d
movzx eax, r9b
movzx r8d, r9b
shr al, 7
xor r9b, dl
movzx eax, al
add r8b, r8b
imul ebp, eax, 0x1b
movzx eax, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor r8b, bpl
xor cl, al
mov dword [rsp + 0x14], eax
movzx eax, cl
movzx r13d, cl
shr al, 7
add r13b, r13b
movzx eax, al
imul r14d, eax, 0x1b
xor r13b, r14b
xor r9b, r13b
movzx eax, r13b
shr al, 7
xor r9b, r8b
movzx eax, al
xor r9b, r10b
imul edi, eax, 0x1b
xor r9b, sil
movzx eax, r8b
mov byte [rsp], r9b
shr al, 7
movzx eax, al
imul r11d, eax, 0x1b
movzx eax, r10b
shr al, 7
xor r13b, cl
movzx eax, al
xor r13b, r8b
imul r9d, eax, 0x1b
xor r13b, r10b
mov r12, qword [rsp + 0x18]
xor r13b, bl
movzx ebx, byte [rsp + 0x80]
xor r13b, sil
mov rcx, qword [rsp + 0x18]
movzx eax, sil
shr al, 7
movzx esi, byte [rsp + 0x78]
mov r8d, dword [rsp + 0x10]
movzx r10d, byte [rcx + 1]
movzx eax, al
imul edx, eax, 0x1b
movzx eax, byte [rsp]
xor al, byte [rsp + 0x78]
xor al, byte [rsp + 0x88]
add al, al
xor al, dl
xor al, r9b
xor al, r11b
xor al, dil
xor al, bpl
xor al, r15b
xor al, byte [rsp + 4]
xor al, byte [rsp + 8]
xor al, byte [r12 + 1]
xor al, byte [rsp + 0x80]
xor al, byte [rsp + 0x78]
mov byte [r12 - 2], al
movzx eax, r13b
mov r12d, dword [rsp + 0xc]
xor al, bl
xor al, sil
xor r13b, r10b
add al, al
xor al, dl
xor al, r9b
xor al, r11b
xor al, dil
xor al, r14b
xor al, r12b
xor al, r8b
xor al, r15b
movzx r15d, byte [rsp + 0x88]
xor r13b, r15b
xor al, r10b
add r13b, r13b
xor al, bl
xor r13b, dl
xor al, r15b
mov byte [rcx - 1], al
xor r13b, r9b
mov eax, dword [rsp + 0x14]
xor r13b, r11b
movzx ecx, byte [rsp]
xor r13b, dil
xor cl, r10b
xor r13b, r14b
xor cl, bl
xor r13b, al
add cl, cl
xor r13b, r8b
xor cl, dl
xor cl, r9b
xor cl, r11b
xor cl, dil
xor cl, al
xor cl, bpl
mov rbp, qword [rsp + 0x18]
xor cl, r12b
xor cl, byte [rsp + 4]
xor cl, r10b
xor cl, sil
xor cl, r15b
xor r13b, byte [rsp + 8]
mov byte [rbp], cl
xor r13b, bl
xor r13b, sil
xor r13b, r15b
mov byte [rbp + 1], r13b
add rbp, 4
sub qword [rsp + 0x20], 1
mov qword [rsp + 0x18], rbp
jne 0x140001440
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400016b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
sub rsi, rcx
mov r9d, 4
nop dword [rax]
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [rsi + rcx + 0xa0]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400016f0
sub r9, 1
jne 0x1400016e0
mov bpl, 9
lea rdi, [rsi + 0x90]
lea r14, [0x140003360]
nop word [rax + rax]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001790
inc r8
sub r9, 1
jne 0x140001780
mov rax, rbx
lea r8d, [rdx + 4]
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x1400017d0
sub r8, 1
jne 0x1400017c0
mov rcx, rbx
call fcn.140001410
sub rdi, 0x10
add bpl, 0xff
jne 0x140001720
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001870
inc r8
sub r9, 1
jne 0x140001860
lea edx, [r9 + 4]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rbx + rsi]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x1400018a0
sub rdx, 1
jne 0x140001892
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