joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005d18
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140005d5f
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
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140005d2d
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x140005d24
repz ret

Function at 0x140005dd8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x14003be80]
test r8, r8
je 0x140005e21
test bl, 7
je 0x140005e21
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140005dfc
cmp r10, 8
jb 0x140005ece
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x140005e3c
test r10, r10
je 0x140005ef3
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140005ed3
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x140006258
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x1f0
mov r13d, 0x40
mov rbp, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r13
jbe 0x1400062ca
lea rcx, [rax - 0x88]
call fcn.140013ce4
lea rcx, [rsp + 0x180]
mov r8, rbx
mov rdx, rsi
call fcn.140013fc0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x180]
call fcn.140014084
lea rsi, [rsp + 0x80]
lea ebx, [r13 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x1400062f6
lea rax, [rsp + 0x20]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x20]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x1400062e1
cmp rbx, r13
jae 0x14000630b
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140021b90
lea rcx, [rsp + 0xa0]
call fcn.140013ce4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
mov r8, r13
call fcn.140013fc0
lea rcx, [rsp + 0xa0]
mov r8, rbp
mov rdx, r12
call fcn.140013fc0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.140014084
lea rcx, [rsp + 0x110]
call fcn.140013ce4
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140006382
lea rax, [rsp + 0x20]
sub rsi, rax
lea rcx, [rsp + rdi + 0x20]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x14000636e
cmp rbx, r13
jae 0x140006397
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140021b90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x110]
mov r8, r13
call fcn.140013fc0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x110]
mov r8d, 0x20
call fcn.140013fc0
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x110]
call fcn.140014084
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400063f8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x110
mov rax, r8
mov r8d, 0x40
mov r13, rcx
cmp r9, r8
mov r12, rdx
lea rcx, [r11 - 0x88]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.140021f80
lea rax, [rsp + 0x40]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140006258
mov r14d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov r8, r14
call fcn.140021f80
mov r11d, dword [rsp + 0x168]
lea eax, [r14 - 0x10]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x158]
dec r11d
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x160]
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x60]
lea rdi, [rsp + 0x30]
lea ebp, [r14 - 0x1d]
mov qword [rsp + 0x70], rax
cmp dword [rdi], 0
jbe 0x140006545
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x40]
mov r9, r14
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140006258
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov r8, r14
call fcn.140021f80
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x40]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x14000652c
sub rbx, 1
jne 0x1400064f1
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140021f80
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x1400064ea
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14000f6e4
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14000f6e4
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000f6e4
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14000f6e4
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400065c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x2a0
mov esi, dword [rsp + 0x300]
mov r13, r8
mov r15b, dl
mov r12, rcx
cmp esi, 0x18
ja 0x14000681d
xor ebx, ebx
lea rdi, [rcx + 0x4b4]
cmp dword [rdi + 0x134], esi
jne 0x140006639
mov rdx, r13
mov rcx, rdi
call fcn.14000f814
test al, al
je 0x140006639
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8d, 0x10
call fcn.1400222d0
test eax, eax
je 0x140006839
inc ebx
add rdi, 0x178
cmp ebx, 4
jb 0x140006600
mov rcx, qword [rsp + 0x2e8]
mov edi, 0x200
lea rdx, [rsp + 0xa0]
mov r8, rdi
call fcn.140015e50
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rsp + 0xa0]
call fcn.140021ec0
mov r8, qword [rsp + 0x2f0]
mov dword [rsp + 0x38], ebx
mov rdx, rax
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.1400063f8
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14000f6e4
mov ecx, dword [r12 + 0xa94]
mov rdx, r13
mov rax, rcx
mov r8d, 0x102
and eax, 3
imul rax, rax, 0x178
lea rdi, [rax + r12 + 0x4b4]
lea eax, [rcx + 1]
mov dword [r12 + 0xa94], eax
mov rcx, rdi
mov dword [rdi + 0x134], esi
call fcn.140021f80
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8, rbx
call fcn.140021f80
lea esi, [rbx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x112]
mov r8, rsi
call fcn.140021f80
lea rcx, [rdi + 0x138]
lea rdx, [rsp + 0x60]
mov r8, rsi
call fcn.140021f80
lea rcx, [rdi + 0x158]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140021f80
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f590
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x140006799
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140021f80
mov rbx, qword [rsp + 0x310]
test rbx, rbx
je 0x1400067e3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140021b90
xor r11d, r11d
lea rdx, [rsp + 0x60]
mov r8, rsi
mov al, byte [rdx]
mov rcx, r11
inc r11
and ecx, 7
inc rdx
xor byte [rcx + rbx], al
sub r8, 1
jne 0x1400067bf
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.14000f6e4
mov rax, qword [rsp + 0x2f8]
test rax, rax
je 0x140006810
lea rcx, [r12 + 0xa9c]
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov dl, r15b
mov qword [rsp + 0x20], rax
call fcn.14000eed0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000f6e4
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
lea rcx, [rdi + 0x112]
xor r8d, r8d
lea esi, [r9 + 0x20]
mov rdx, rsi
call fcn.14000f590
lea rdx, [rdi + 0x112]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140021f80
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f590
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140021f80
lea rdx, [rdi + 0x158]
lea rcx, [rsp + 0x80]
mov r8, rsi
call fcn.140021f80
jmp 0x14000677c
Function at 0x140006970
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x1400069e0
mov eax, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
lea r8, [r11 + 8]
mov dword [rsp + 0x60], eax
lea rax, [r11 - 0x28]
mov rdx, rsi
mov rcx, rdi
mov qword [r11 - 0x38], rax
call fcn.140006258
xor r11d, r11d
lea r8, [rsp + 0x30]
mov dword [rbx + 4], r11d
mov edx, r11d
movzx eax, byte [r8]
mov ecx, r11d
inc r11d
and ecx, 3
inc r8
shl ecx, 3
shl eax, cl
xor edx, eax
cmp r11d, esi
jb 0x1400069c1
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006a12
lea rax, [rsp + 0x30]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140006258
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 4]
mov r8, rsi
call fcn.140021f80
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140009968
Capabilities:
Move file

Disassembly:
push r12
mov eax, 0x5060
call fcn.14002f8d0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5070], rbx
mov qword [rsp + 0x5078], rbp
mov qword [rsp + 0x5080], rsi
mov qword [rsp + 0x5088], rdi
mov rbx, rcx
mov r12d, 0x800
mov r8d, r12d
lea rdx, [rsp + 0x4060]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ebp, ebp
cmp eax, ebp
je 0x140009b82
cmp eax, r12d
jae 0x140009b82
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140009b7e
cmp eax, r12d
jae 0x140009b7e
lea rcx, [rsp + 0x4060]
call fcn.14000c180
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.14000c180
mov rdi, rax
cmp word [rax], bp
je 0x140009b7a
mov rdx, rax
mov rcx, rsi
call fcn.1400160e8
cmp eax, ebp
je 0x140009b7a
mov rcx, rbx
call fcn.14000c180
mov rcx, rax
mov rdx, rdi
call fcn.1400160e8
cmp eax, ebp
jne 0x140009b7a
mov ax, bp
mov word [rsp + 0x30], ax
mov edi, ebp
cmp ax, bp
jne 0x140009abb
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014278
lea rcx, [rsp + 0x30]
call fcn.14000c180
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.14000dcb8
lea rcx, [rsp + 0x30]
call fcn.14000aa80
cmp al, bpl
je 0x140009a9f
mov eax, ebp
mov word [rsp + 0x30], ax
jmp 0x140009aa4
mov ax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140009a53
cmp ax, bp
jne 0x140009abb
xor al, al
jmp 0x140009b84
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.140014278
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14000c334
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140009aff
xor al, al
jmp 0x140009b84
lea rcx, [rsp + 0x1030]
call fcn.140009cd4
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000aa80
cmp al, bpl
jne 0x140009b36
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x1030]
call fcn.140009ecc
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140009b69
lea rcx, [rsp + 0x1030]
call fcn.14000a028
lea rcx, [rsp + 0x1030]
call fcn.14000a090
nop
lea rcx, [rsp + 0x1030]
call fcn.14000a318
mov al, 1
jmp 0x140009b84
xor al, al
jmp 0x140009b84
xor al, al
jmp 0x140009b84
xor al, al
lea r11, [rsp + 0x5060]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000a0c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rsi, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
jne 0x14000a0f1
mov al, 1
jmp 0x14000a200
cmp dword [rcx + 0x14], 1
jne 0x14000a106
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r14d, 0x4000
and dword [rsp + 0x60], 0
xor bpl, bpl
cmp dword [rdi + 0x14], 0
je 0x14000a164
xor ebx, ebx
test rsi, rsi
je 0x14000a18b
mov eax, esi
mov r8d, r14d
mov rcx, rsi
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r12]
cmp rcx, r14
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x60]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
je 0x14000a18b
add rbx, r14
cmp rbx, rsi
jb 0x14000a121
jmp 0x14000a186
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x14000a1f9
cmp byte [rdi + 0x1c], 0
je 0x14000a1f9
cmp dword [rdi + 0x14], 0
jne 0x14000a1f9
lea rdx, [rdi + 0x26]
lea rcx, [0x14003de98]
xor r8d, r8d
call fcn.140006f14
test al, al
je 0x14000a1e7
mov ecx, dword [rsp + 0x60]
mov rax, rcx
cmp rcx, rsi
jae 0x14000a10c
test ecx, ecx
je 0x14000a10c
mov rbx, qword [rdi]
mov rcx, rdi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x60]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x14000a10c
lea r8, [rdi + 0x26]
lea rcx, [0x14003de98]
xor edx, edx
call fcn.140007144
mov byte [rdi + 0x10], 1
mov al, bpl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret

Function at 0x14000a2cc
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x14000a34c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14000a379
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000a3f8
mov rcx, rbx
call fcn.14000a2e8
test al, al
je 0x14000a3bc
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000a3bc
mov rdx, rsi
mov rcx, rbx
call fcn.14000a34c
jmp 0x14000a3fc
cmp dword [rbx + 0x14], 1
jne 0x14000a3d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a3d1
xor eax, eax
jmp 0x14000a3fc
cmp dword [rbx + 0x14], 0
jne 0x14000a3f3
cmp rdi, 0x8000
jbe 0x14000a3f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000a3f3
mov r8d, 0x8000
jmp 0x14000a3af
or eax, 0xffffffff
jmp 0x14000a3fc
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a70c
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000a690
test al, al
je 0x14000a73a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [r11 + 0x18]
add rsp, 0x20
pop rbx
ret

Function at 0x14000a790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002f8d0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000a7d7
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000bf1c
test al, al
je 0x14000a7d7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000a7ec
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.14002f8d0
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x14000a841
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.14000bf1c
test al, al
je 0x14000a841
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea r11, [rsp + 0x1020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000a858
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002f8d0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000a8a4
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000bf1c
test al, al
je 0x14000a8a4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000aa9c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.14002f8d0
sub rsp, rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.14000bad4
cmp word [rax], 0x2e
je 0x14000aadd
cmp word [rax], 0x20
je 0x14000aadd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ab12
mov rcx, rbx
call fcn.14000a790
cmp eax, 0xffffffff
jne 0x14000ab25
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.14000bf1c
test al, al
je 0x14000ab25
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000ab25
test dil, dil
je 0x14000ab21
mov edx, esi
mov rcx, rbx
call fcn.14000a7ec
xor eax, eax
jmp 0x14000ab3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ab3a
cmp eax, 3
mov eax, 1
jne 0x14000ab3f
mov eax, 2
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000acb4
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
mov eax, 0x1270
call fcn.14002f8d0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000ad5e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad88
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.14000bf1c
test al, al
je 0x14000ad35
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ad51
cmp eax, 3
je 0x14000ad51
cmp eax, 0x12
je 0x14000ad51
mov eax, 1
jmp 0x14000ad53
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x14000ae1e
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000ad7e
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x14000ae1e
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140014278
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14000c334
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.140015480
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140015480
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140015480
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x14000bf1c
Capabilities:
Get common file path

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
mov eax, 0x1020
call fcn.14002f8d0
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x14000c0ec
call fcn.14000bb3c
mov rcx, rbx
call fcn.140021b14
mov rcx, rbx
mov rbp, rax
call fcn.14000bde4
cmp al, dil
je 0x14000c008
mov rcx, rbx
call fcn.14000bb3c
cmp al, dil
je 0x14000bfb4
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x14000c0ec
lea r8d, [rdi + 4]
lea rdx, [0x140031c28]
mov rcx, r12
call fcn.1400225fc
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.140021b5c
mov al, 1
jmp 0x14000c0ee
mov edi, 0x5c
cmp word [rbx], di
jne 0x14000c0ec
cmp word [rbx + 2], di
jne 0x14000c0ec
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c0ec
lea r8d, [rdi - 0x58]
lea rdx, [0x140031c28]
mov rcx, r12
call fcn.1400225fc
lea rcx, [r12 + 8]
lea rdx, [0x140031c20]
call fcn.140021b5c
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x14000bfa8
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x14000c0ec
cmp eax, 0x7ff
ja 0x14000c0ec
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x14000c0af
cmp eax, 0x2f
je 0x14000c0af
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.14000bb70
lea rcx, [rsp + 0x20]
call fcn.140021b14
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x14000c0ec
lea r8d, [rdi - 0x58]
lea rdx, [0x140031c28]
mov rcx, r12
call fcn.1400225fc
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.140021b5c
cmp word [rbx], 0x2e
jne 0x14000c09c
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x14000c098
cmp eax, 0x2f
jne 0x14000c09c
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400142b4
jmp 0x14000bfad
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c0ec
lea rdx, [0x140031c28]
mov r8d, 4
mov rcx, r12
call fcn.1400225fc
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400225fc
lea rcx, [r12 + 0xc]
jmp 0x14000bfa5
xor al, al
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret