joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ef60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x14005efcc
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x14005f070
nop dword [rax + rax]
cmp rdx, r12
je 0x14005f12f
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x14005f09a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x14005f090
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x14005f0b8
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x14005f09a
jmp 0x14005f0c8
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x14005f0a6
jmp 0x14005f100
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x14005f100
xor r13b, 1
mov r14d, esi
test si, si
je 0x14005efe0
jmp 0x14005f070
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x14005f09a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x14005f0a6
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x14005f10f
test r13b, 1
je 0x14005f12b
cmp rdi, qword [rbp - 0x20]
jne 0x14005efc0
lea rcx, [rbp - 0x20]
call fcn.140053960
mov rax, qword [rbp - 0x18]
jmp 0x14005efc0
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x14005f168
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.140056b40
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x14005f182
jmp 0x14005f194
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14005f194
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.14000ff60
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14005fda0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, qword [rcx]
lea rax, [0x14005fe80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14005fe2f
mov rsi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 1
jne 0x14005fe00
mov eax, dword [rbp]
mov esi, dword [rbp + 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x14005fe42
xor eax, eax
jmp 0x14005fe72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x14005fe62
call fcn.1400672a0
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x14005fe72
cmp rcx, 0xb
setne al
xor edx, edx
cmp ecx, 0xb
cmove rsi, rdx
movzx eax, al
mov rdx, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x140066ed0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140093141]
mov ecx, 0x10
mov edx, 8
call fcn.14000ff50
test rax, rax
je 0x140066fbb
invalid
lodsb al, byte [rsi]
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
or byte [rax - 0x39], cl
and al, 0x28
add byte [rax], al
add byte [rax], al
mov dword [rsp + 0x20], 0x10000
lea r8, case.0x140057827.372
add byte [rcx], dh
push qword [rcx]
leave
mov rdx, rsi
mov r9, rax
sar edi, 0x15
mov bh, 0x22
add dword [rax], eax
mov rdx, rax
test rax, rax
jne 0x140066fad
invalid
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
pop rbp
loopne 0x140066f9d
mov eax, dword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
test eax, eax
je 0x140066f6a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
invalid
invalid
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140066f84
mov r8, qword [rax + 0x10]
call fcn.14000ff60
mov edx, 0x10
mov r8d, 8
add byte [rax - 0x75], cl
invalid
invalid
call fcn.14000ff60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
add byte [rax], al
invalid
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rsi
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140077990
add dword [rax], eax
ud2
Function at 0x140068450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x1400684bc
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1400684bc
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1400684bc
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140068568
cmp byte [rdx], 0xed
jne 0x140068571
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140068571
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x140068501
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x14006865b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.14005a760
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140068680
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x14006860e
test rdi, rdi
je 0x140068600
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140068598
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x140068600
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140068590
cmp r10b, 0xe0
jb 0x14006857a
cmp r10b, 0xed
jne 0x1400685cf
cmp r8, rax
je 0x140068600
lea r8, [r9 + 2]
cmp r8, rax
je 0x140068600
cmp byte [r9 + 1], 0x9f
ja 0x1400685fc
add r9, 3
mov r8, r9
jmp 0x140068590
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140068590
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140068590
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x14006862e
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140076ad0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14006860b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140076ad0
mov rdx, r15
jmp 0x14006851c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140076ad0
mov rbx, qword [rsi + 0x10]
jmp 0x140068559
Function at 0x140076358
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400763a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400763a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400763a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400763a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400763a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400763a4
xor al, al
add rsp, 0x28
ret
Function at 0x14000215c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x14003c970]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], si
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
inc rdx
lea rcx, [rsp + 0x20]
call fcn.1400013e4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.14002b34c
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400012e0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000224d
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002247
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000226f
call fcn.140026a5c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140026b70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002b2d4
nop
int3

Function at 0x14000285c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x68], rax
or qword [rcx + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
xor r9d, r9d
mov byte [rcx + 0x30], 1
mov rdi, rdx
mov rbx, rcx
movups xmmword [rcx + 0x20], xmm0
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140002912
mov r8, rdi
lea rdx, str..pipe_
lea rcx, [rsp + 0x48]
call fcn.140002430
mov eax, dword [rbx]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
mov r9d, 1
mov edx, 0x40000003
cmova rcx, qword [rsp + 0x48]
xor r8d, r8d
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov eax, 0x4000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea rcx, [rsp + 0x48]
mov qword [rbx + 8], rax
call fcn.140001b80
cmp qword [rbx + 8], 0xffffffffffffffff
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140002994
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov r8, rsi
lea rdx, str..pipe_
lea rcx, [rsp + 0x50]
call fcn.140002430
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
cmova rcx, qword [rsp + 0x50]
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140002a7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140002a51
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, dword [rdi]
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002a51
lea rcx, [rsp + 0x50]
call fcn.140001b80
jmp 0x1400029c5
lea rcx, [rsp + 0x50]
call fcn.140001b80
xor al, al
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x50]
call fcn.140001b80
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x140002abf
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140002b1b
cmp dword [rsp + 0x44], 0
je 0x140002b1b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x44]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002a5b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140002b1b
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, eax
mov rcx, rbx
call fcn.1400024b0
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
mov eax, dword [rdi + 4]
cmp rcx, rax
jbe 0x140002a89
jmp 0x140002a5b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 4
mov dword [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x140002a5d
Function at 0x140002b50
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [rcx + 0x10]
mov r14, rdx
mov rdi, rcx
mov rdx, rsi
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor ebx, ebx
test eax, eax
jne 0x140002c24
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140002bb3
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002930
test al, al
je 0x140002c24
mov r8, qword [r14 + 8]
lea r9, [rsp + 0x30]
sub r8, qword [r14]
mov rdx, qword [r14]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002be8
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002930
test al, al
je 0x140002c24
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002c1e
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002930
test al, al
je 0x140002c20
mov bl, 1
mov al, bl
jmp 0x140002c26
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret

Function at 0x1400040d8
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400040fe
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14004f960]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x1400040dd
mov eax, ecx
ret

Function at 0x140004104
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x14000414b
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140004119
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140004110
ret

Function at 0x140004fa0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140004fd7
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140004fc3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003c4c8]
cmp byte [rbx + 0x21], 0
je 0x140004fd7
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.14000627c
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140004fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea rsi, [rcx + 0x14]
mov rbp, r8
cmp dword [rsi], 1
mov r15, rdx
mov rbx, rcx
jne 0x14000501f
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
lea r14, [rbx + 0x14]
jmp 0x140005022
mov r14, rsi
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000509e
mov rcx, rbx
call fcn.140005134
test al, al
je 0x140005065
mov r8d, 0x4e20
cmp rbp, r8
jbe 0x140005065
mov rdx, r15
mov rcx, rbx
call fcn.140004fe0
jmp 0x1400050a2
cmp dword [rsi], 1
jne 0x140005079
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140005079
xor eax, eax
jmp 0x1400050a2
cmp dword [r14], 0
jne 0x140005099
mov edi, 0x8000
cmp rbp, rdi
jbe 0x140005099
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140005099
mov r8d, edi
jmp 0x140005058
or eax, 0xffffffff
jmp 0x1400050a2
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400058c0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400058d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jne 0x14000590c
mov al, 1
jmp 0x140005aa3
cmp dword [rcx + 0x14], 1
jne 0x140005921
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r12d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x14000597d
xor ebx, ebx
test rsi, rsi
je 0x1400059a7
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r12d
cmp rcx, r12
cmovb r8d, eax
lea rdx, [r14 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x14000599e
add rbx, r12
cmp rbx, rsi
jb 0x14000593c
jmp 0x14000599e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140005a9c
cmp byte [rdi + 0x22], 0
je 0x140005a9c
cmp dword [rdi + 0x14], 0
jne 0x140005a9c
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x14006bde0]
call fcn.1400044e8
test al, al
je 0x140005a16
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140005927
test ecx, ecx
je 0x140005927
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003c4c8]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x14003c4c8]
jmp 0x140005927
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rcx, [0x14003c984]
call fcn.14002b34c
mov r8, rax
lea rdx, [0x14003c984]
lea rcx, [rsp + 0x38]
call fcn.1400012e0
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x14006bde0]
call fcn.140004c5c
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140005a9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ac4
call fcn.140026a5c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002b2d4
int3
Function at 0x14000618c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400061b7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140006254
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x14003c970]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008a1c
test al, al
je 0x140006216
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140006254
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000624f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006274
call fcn.140026a5c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002b2d4
int3

Function at 0x14000627c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004ee80]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400062a7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140006344
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x14003c970]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008a1c
test al, al
je 0x140006306
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140006344
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000633f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006364
call fcn.140026a5c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026b70
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002b2d4
int3