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

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

Function at 0x140005f14
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 0x140005f5d
test bl, 7
je 0x140005f5d
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 0x140005f38
cmp r10, 8
jb 0x14000600a
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 0x140005f78
test r10, r10
je 0x14000602f
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 0x14000600f
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x140006394
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 0x140006406
lea rcx, [rax - 0x88]
call fcn.140013b60
lea rcx, [rsp + 0x180]
mov r8, rbx
mov rdx, rsi
call fcn.140013e3c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x180]
call fcn.140013f00
lea rsi, [rsp + 0x80]
lea ebx, [r13 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140006432
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 0x14000641d
cmp rbx, r13
jae 0x140006447
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020a40
lea rcx, [rsp + 0xa0]
call fcn.140013b60
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
mov r8, r13
call fcn.140013e3c
lea rcx, [rsp + 0xa0]
mov r8, rbp
mov rdx, r12
call fcn.140013e3c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.140013f00
lea rcx, [rsp + 0x110]
call fcn.140013b60
mov dl, 0x5c
cmp rbx, rdi
jbe 0x1400064be
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 0x1400064aa
cmp rbx, r13
jae 0x1400064d3
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020a40
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x110]
mov r8, r13
call fcn.140013e3c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x110]
mov r8d, 0x20
call fcn.140013e3c
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x110]
call fcn.140013f00
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 0x140006534
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.140020e30
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.140006394
mov r14d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov r8, r14
call fcn.140020e30
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 0x140006681
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.140006394
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov r8, r14
call fcn.140020e30
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x40]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x140006668
sub rbx, 1
jne 0x14000662d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140020e30
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x140006626
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14000f584
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14000f584
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000f584
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14000f584
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 0x1400066fc
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 0x140006959
xor ebx, ebx
lea rdi, [rcx + 0x4b4]
cmp dword [rdi + 0x134], esi
jne 0x140006775
mov rdx, r13
mov rcx, rdi
call fcn.14000f6b4
test al, al
je 0x140006775
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8d, 0x10
call fcn.140021180
test eax, eax
je 0x140006975
inc ebx
add rdi, 0x178
cmp ebx, 4
jb 0x14000673c
mov rcx, qword [rsp + 0x2e8]
mov edi, 0x200
lea rdx, [rsp + 0xa0]
mov r8, rdi
call fcn.14001542c
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rsp + 0xa0]
call fcn.140020d70
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.140006534
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14000f584
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.140020e30
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8, rbx
call fcn.140020e30
lea esi, [rbx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x112]
mov r8, rsi
call fcn.140020e30
lea rcx, [rdi + 0x138]
lea rdx, [rsp + 0x60]
mov r8, rsi
call fcn.140020e30
lea rcx, [rdi + 0x158]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020e30
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f430
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x1400068d5
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020e30
mov rbx, qword [rsp + 0x310]
test rbx, rbx
je 0x14000691f
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140020a40
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 0x1400068fb
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.14000f584
mov rax, qword [rsp + 0x2f8]
test rax, rax
je 0x14000694c
lea rcx, [r12 + 0xa9c]
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov dl, r15b
mov qword [rsp + 0x20], rax
call fcn.14000ed70
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000f584
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.14000f430
lea rdx, [rdi + 0x112]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140020e30
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f430
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140020e30
lea rdx, [rdi + 0x158]
lea rcx, [rsp + 0x80]
mov r8, rsi
call fcn.140020e30
jmp 0x1400068b8
Function at 0x140006aac
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 0x140006b1c
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.140006394
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 0x140006afd
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006b4e
lea rax, [rsp + 0x30]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140006394
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 4]
mov r8, rsi
call fcn.140020e30
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400098a8
Capabilities:
Move file

Disassembly:
push r12
mov eax, 0x5060
call fcn.14002e7c0
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 0x140009ac2
cmp eax, r12d
jae 0x140009ac2
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140009abe
cmp eax, r12d
jae 0x140009abe
lea rcx, [rsp + 0x4060]
call fcn.14000bdd0
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.14000bdd0
mov rdi, rax
cmp word [rax], bp
je 0x140009aba
mov rdx, rax
mov rcx, rsi
call fcn.1400156c4
cmp eax, ebp
je 0x140009aba
mov rcx, rbx
call fcn.14000bdd0
mov rcx, rax
mov rdx, rdi
call fcn.1400156c4
cmp eax, ebp
jne 0x140009aba
mov ax, bp
mov word [rsp + 0x30], ax
mov edi, ebp
cmp ax, bp
jne 0x1400099fb
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400140d0
lea rcx, [rsp + 0x30]
call fcn.14000bdd0
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.140001d64
lea rcx, [rsp + 0x30]
call fcn.14000a9ac
cmp al, bpl
je 0x1400099df
mov eax, ebp
mov word [rsp + 0x30], ax
jmp 0x1400099e4
mov ax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140009993
cmp ax, bp
jne 0x1400099fb
xor al, al
jmp 0x140009ac4
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.1400140d0
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14000bf84
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140009a3f
xor al, al
jmp 0x140009ac4
lea rcx, [rsp + 0x1030]
call fcn.140009c1c
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000a9ac
cmp al, bpl
jne 0x140009a76
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x1030]
call fcn.140009e14
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140009aa9
lea rcx, [rsp + 0x1030]
call fcn.140009f70
lea rcx, [rsp + 0x1030]
call fcn.140009fd8
nop
lea rcx, [rsp + 0x1030]
call fcn.14000a244
mov al, 1
jmp 0x140009ac4
xor al, al
jmp 0x140009ac4
xor al, al
jmp 0x140009ac4
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 0x14000a00c
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x14000a144
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
jne 0x14000a045
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r13d, 0x4000
and dword [rsp + 0x60], 0
cmp dword [rdi + 0x14], 0
je 0x14000a09e
xor ebx, ebx
test rsi, rsi
je 0x14000a0c3
mov eax, esi
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + rbp]
cmp rcx, r13
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 al
test al, al
je 0x14000a0c3
add rbx, r13
cmp rbx, rsi
jb 0x14000a05d
jmp 0x14000a0bf
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x14000a12e
cmp byte [rdi + 0x1c], 0
je 0x14000a12e
cmp dword [rdi + 0x14], 0
jne 0x14000a12e
lea rdx, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor r8d, r8d
call fcn.140007054
test al, al
je 0x14000a11c
mov ecx, dword [rsp + 0x60]
cmp rcx, rsi
jae 0x14000a04b
test ecx, ecx
je 0x14000a04b
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 0x14000a04b
lea r8, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor edx, edx
call fcn.1400072a8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov byte [rdi + 0x10], 1
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret

Function at 0x14000a1f8
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 0x14000a278
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 0x14000a2a5
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 0x14000a324
mov rcx, rbx
call fcn.14000a214
test al, al
je 0x14000a2e8
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000a2e8
mov rdx, rsi
mov rcx, rbx
call fcn.14000a278
jmp 0x14000a328
cmp dword [rbx + 0x14], 1
jne 0x14000a2fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a2fd
xor eax, eax
jmp 0x14000a328
cmp dword [rbx + 0x14], 0
jne 0x14000a31f
cmp rdi, 0x8000
jbe 0x14000a31f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000a31f
mov r8d, 0x8000
jmp 0x14000a2db
or eax, 0xffffffff
jmp 0x14000a328
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a638
Capabilities:
Clear file content

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

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

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002e7c0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000a7d0
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000c428
test al, al
je 0x14000a7d0
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 0x14000a9c8
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.14002e7c0
sub rsp, rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.14000ba00
cmp word [rax], 0x2e
je 0x14000aa09
cmp word [rax], 0x20
je 0x14000aa09
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000aa3e
mov rcx, rbx
call fcn.14000a6bc
cmp eax, 0xffffffff
jne 0x14000aa51
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.14000c428
test al, al
je 0x14000aa51
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000aa51
test dil, dil
je 0x14000aa4d
mov edx, esi
mov rcx, rbx
call fcn.14000a718
xor eax, eax
jmp 0x14000aa6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000aa66
cmp eax, 3
mov eax, 1
jne 0x14000aa6b
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 0x14000abe0
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.14002e7c0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000ac8a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000acb4
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.14000c428
test al, al
je 0x14000ac61
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000acb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ac7d
cmp eax, 3
je 0x14000ac7d
cmp eax, 0x12
je 0x14000ac7d
mov eax, 1
jmp 0x14000ac7f
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x14000ad4a
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000acaa
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x14000ad4a
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.1400140d0
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14000bf84
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.140014a90
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140014a90
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140014a90
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 0x14000c428
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.14002e7c0
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x14000c5f8
call fcn.14000bcdc
mov rcx, rbx
call fcn.1400209c4
mov rcx, rbx
mov rbp, rax
call fcn.14000c318
cmp al, dil
je 0x14000c514
mov rcx, rbx
call fcn.14000bcdc
cmp al, dil
je 0x14000c4c0
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x14000c5f8
lea r8d, [rdi + 4]
lea rdx, [0x140030f20]
mov rcx, r12
call fcn.1400214ec
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.140020a0c
mov al, 1
jmp 0x14000c5fa
mov edi, 0x5c
cmp word [rbx], di
jne 0x14000c5f8
cmp word [rbx + 2], di
jne 0x14000c5f8
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c5f8
lea r8d, [rdi - 0x58]
lea rdx, [0x140030f20]
mov rcx, r12
call fcn.1400214ec
lea rcx, [r12 + 8]
lea rdx, [0x140030f18]
call fcn.140020a0c
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x14000c4b4
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x14000c5f8
cmp eax, 0x7ff
ja 0x14000c5f8
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x14000c5bb
cmp eax, 0x2f
je 0x14000c5bb
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.14000ba68
lea rcx, [rsp + 0x20]
call fcn.1400209c4
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x14000c5f8
lea r8d, [rdi - 0x58]
lea rdx, [0x140030f20]
mov rcx, r12
call fcn.1400214ec
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.140020a0c
cmp word [rbx], 0x2e
jne 0x14000c5a8
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x14000c5a4
cmp eax, 0x2f
jne 0x14000c5a8
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14001410c
jmp 0x14000c4b9
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c5f8
lea rdx, [0x140030f20]
mov r8d, 4
mov rcx, r12
call fcn.1400214ec
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400214ec
lea rcx, [r12 + 0xc]
jmp 0x14000c4b1
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