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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140005fe3
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 0x140005fb1
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x140005fa8
repz ret

Function at 0x14000605c
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, [0x140039b80]
test r8, r8
je 0x1400060a5
test bl, 7
je 0x1400060a5
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 0x140006080
cmp r10, 8
jb 0x140006152
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 0x1400060c0
test r10, r10
je 0x140006177
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 0x140006157
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x1400064dc
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 0x14000654e
lea rcx, [rax - 0x88]
call fcn.140014010
lea rcx, [rsp + 0x180]
mov r8, rbx
mov rdx, rsi
call fcn.1400142ec
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x180]
call fcn.1400143b0
lea rsi, [rsp + 0x80]
lea ebx, [r13 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x14000657a
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 0x140006565
cmp rbx, r13
jae 0x14000658f
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020f80
lea rcx, [rsp + 0xa0]
call fcn.140014010
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
mov r8, r13
call fcn.1400142ec
lea rcx, [rsp + 0xa0]
mov r8, rbp
mov rdx, r12
call fcn.1400142ec
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.1400143b0
lea rcx, [rsp + 0x110]
call fcn.140014010
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140006606
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 0x1400065f2
cmp rbx, r13
jae 0x14000661b
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020f80
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x110]
mov r8, r13
call fcn.1400142ec
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x110]
mov r8d, 0x20
call fcn.1400142ec
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x110]
call fcn.1400143b0
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 0x14000667c
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.140021370
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.1400064dc
mov r14d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov r8, r14
call fcn.140021370
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 0x1400067c9
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.1400064dc
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov r8, r14
call fcn.140021370
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x40]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x1400067b0
sub rbx, 1
jne 0x140006775
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140021370
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14000676e
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14000f960
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14000f960
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000f960
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14000f960
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 0x140006844
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 0x140006aa1
xor ebx, ebx
lea rdi, [rcx + 0x4b4]
cmp dword [rdi + 0x134], esi
jne 0x1400068bd
mov rdx, r13
mov rcx, rdi
call fcn.14000fa90
test al, al
je 0x1400068bd
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8d, 0x10
call fcn.1400216c0
test eax, eax
je 0x140006abd
inc ebx
add rdi, 0x178
cmp ebx, 4
jb 0x140006884
mov rcx, qword [rsp + 0x2e8]
mov edi, 0x200
lea rdx, [rsp + 0xa0]
mov r8, rdi
call fcn.140015968
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rsp + 0xa0]
call fcn.1400212b0
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.14000667c
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14000f960
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.140021370
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8, rbx
call fcn.140021370
lea esi, [rbx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x112]
mov r8, rsi
call fcn.140021370
lea rcx, [rdi + 0x138]
lea rdx, [rsp + 0x60]
mov r8, rsi
call fcn.140021370
lea rcx, [rdi + 0x158]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140021370
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f80c
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x140006a1d
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140021370
mov rbx, qword [rsp + 0x310]
test rbx, rbx
je 0x140006a67
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140020f80
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 0x140006a43
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.14000f960
mov rax, qword [rsp + 0x2f8]
test rax, rax
je 0x140006a94
lea rcx, [r12 + 0xa9c]
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov dl, r15b
mov qword [rsp + 0x20], rax
call fcn.14000f14c
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000f960
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.14000f80c
lea rdx, [rdi + 0x112]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140021370
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f80c
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140021370
lea rdx, [rdi + 0x158]
lea rcx, [rsp + 0x80]
mov r8, rsi
call fcn.140021370
jmp 0x140006a00
Function at 0x140006bf4
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 0x140006c64
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.1400064dc
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 0x140006c45
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006c96
lea rax, [rsp + 0x30]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400064dc
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 4]
mov r8, rsi
call fcn.140021370
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140009bcc
Capabilities:
Move file

Disassembly:
push r12
mov eax, 0x5060
call fcn.14002ecc0
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 0x140009de6
cmp eax, r12d
jae 0x140009de6
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140009de2
cmp eax, r12d
jae 0x140009de2
lea rcx, [rsp + 0x4060]
call fcn.14000c3e4
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.14000c3e4
mov rdi, rax
cmp word [rax], bp
je 0x140009dde
mov rdx, rax
mov rcx, rsi
call fcn.140015c00
cmp eax, ebp
je 0x140009dde
mov rcx, rbx
call fcn.14000c3e4
mov rcx, rax
mov rdx, rdi
call fcn.140015c00
cmp eax, ebp
jne 0x140009dde
mov ax, bp
mov word [rsp + 0x30], ax
mov edi, ebp
cmp ax, bp
jne 0x140009d1f
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014580
lea rcx, [rsp + 0x30]
call fcn.14000c3e4
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.140001dbc
lea rcx, [rsp + 0x30]
call fcn.14000ace4
cmp al, bpl
je 0x140009d03
mov eax, ebp
mov word [rsp + 0x30], ax
jmp 0x140009d08
mov ax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140009cb7
cmp ax, bp
jne 0x140009d1f
xor al, al
jmp 0x140009de8
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.140014580
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14000c598
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140009d63
xor al, al
jmp 0x140009de8
lea rcx, [rsp + 0x1030]
call fcn.140009f38
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000ace4
cmp al, bpl
jne 0x140009d9a
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x1030]
call fcn.14000a130
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140009dcd
lea rcx, [rsp + 0x1030]
call fcn.14000a28c
lea rcx, [rsp + 0x1030]
call fcn.14000a2f4
nop
lea rcx, [rsp + 0x1030]
call fcn.14000a57c
mov al, 1
jmp 0x140009de8
xor al, al
jmp 0x140009de8
xor al, al
jmp 0x140009de8
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 0x14000a328
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 0x14000a355
mov al, 1
jmp 0x14000a464
cmp dword [rcx + 0x14], 1
jne 0x14000a36a
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 0x14000a3c8
xor ebx, ebx
test rsi, rsi
je 0x14000a3ef
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 0x14000a3ef
add rbx, r14
cmp rbx, rsi
jb 0x14000a385
jmp 0x14000a3ea
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 0x14000a45d
cmp byte [rdi + 0x1c], 0
je 0x14000a45d
cmp dword [rdi + 0x14], 0
jne 0x14000a45d
lea rdx, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor r8d, r8d
call fcn.140007198
test al, al
je 0x14000a44b
mov ecx, dword [rsp + 0x60]
mov rax, rcx
cmp rcx, rsi
jae 0x14000a370
test ecx, ecx
je 0x14000a370
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 0x14000a370
lea r8, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor edx, edx
call fcn.1400073b8
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 0x14000a530
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 0x14000a5b0
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 0x14000a5dd
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 0x14000a65c
mov rcx, rbx
call fcn.14000a54c
test al, al
je 0x14000a620
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000a620
mov rdx, rsi
mov rcx, rbx
call fcn.14000a5b0
jmp 0x14000a660
cmp dword [rbx + 0x14], 1
jne 0x14000a635
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a635
xor eax, eax
jmp 0x14000a660
cmp dword [rbx + 0x14], 0
jne 0x14000a657
cmp rdi, 0x8000
jbe 0x14000a657
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000a657
mov r8d, 0x8000
jmp 0x14000a613
or eax, 0xffffffff
jmp 0x14000a660
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a970
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000a8f4
test al, al
je 0x14000a99e
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 0x14000a9f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002ecc0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000aa3b
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000c180
test al, al
je 0x14000aa3b
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 0x14000aa50
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.14002ecc0
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 0x14000aaa5
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.14000c180
test al, al
je 0x14000aaa5
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 0x14000aabc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002ecc0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000ab08
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000c180
test al, al
je 0x14000ab08
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 0x14000ad00
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.14002ecc0
sub rsp, rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.14000bd38
cmp word [rax], 0x2e
je 0x14000ad41
cmp word [rax], 0x20
je 0x14000ad41
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ad76
mov rcx, rbx
call fcn.14000a9f4
cmp eax, 0xffffffff
jne 0x14000ad89
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.14000c180
test al, al
je 0x14000ad89
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000ad89
test dil, dil
je 0x14000ad85
mov edx, esi
mov rcx, rbx
call fcn.14000aa50
xor eax, eax
jmp 0x14000ada3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ad9e
cmp eax, 3
mov eax, 1
jne 0x14000ada3
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 0x14000af18
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.14002ecc0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000afc2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000afec
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.14000c180
test al, al
je 0x14000af99
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000afec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000afb5
cmp eax, 3
je 0x14000afb5
cmp eax, 0x12
je 0x14000afb5
mov eax, 1
jmp 0x14000afb7
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x14000b082
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000afe2
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x14000b082
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140014580
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14000c598
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.140014f98
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140014f98
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140014f98
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 0x14000c180
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.14002ecc0
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x14000c350
call fcn.14000bda0
mov rcx, rbx
call fcn.140020f0c
mov rcx, rbx
mov rbp, rax
call fcn.14000c048
cmp al, dil
je 0x14000c26c
mov rcx, rbx
call fcn.14000bda0
cmp al, dil
je 0x14000c218
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x14000c350
lea r8d, [rdi + 4]
lea rdx, [0x140030f18]
mov rcx, r12
call fcn.1400219ec
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.140020f54
mov al, 1
jmp 0x14000c352
mov edi, 0x5c
cmp word [rbx], di
jne 0x14000c350
cmp word [rbx + 2], di
jne 0x14000c350
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c350
lea r8d, [rdi - 0x58]
lea rdx, [0x140030f18]
mov rcx, r12
call fcn.1400219ec
lea rcx, [r12 + 8]
lea rdx, [0x140030f10]
call fcn.140020f54
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x14000c20c
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x14000c350
cmp eax, 0x7ff
ja 0x14000c350
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x14000c313
cmp eax, 0x2f
je 0x14000c313
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.14000bdd4
lea rcx, [rsp + 0x20]
call fcn.140020f0c
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x14000c350
lea r8d, [rdi - 0x58]
lea rdx, [0x140030f18]
mov rcx, r12
call fcn.1400219ec
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.140020f54
cmp word [rbx], 0x2e
jne 0x14000c300
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x14000c2fc
cmp eax, 0x2f
jne 0x14000c300
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400145bc
jmp 0x14000c211
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c350
lea rdx, [0x140030f18]
mov r8d, 4
mov rcx, r12
call fcn.1400219ec
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400219ec
lea rcx, [r12 + 0xc]
jmp 0x14000c209
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