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

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

Function at 0x140005ef0
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, [0x1400368a0]
test r8, r8
je 0x140005f39
test bl, 7
je 0x140005f39
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 0x140005f14
cmp r10, 8
jb 0x140005fe6
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 0x140005f54
test r10, r10
je 0x14000600b
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 0x140005feb
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x1400063f8
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 0x14000646a
lea rcx, [rax - 0x88]
call fcn.140013eb0
lea rcx, [rsp + 0x180]
mov r8, rbx
mov rdx, rsi
call fcn.14001418c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x180]
call fcn.140014250
lea rsi, [rsp + 0x80]
lea ebx, [r13 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140006496
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 0x140006481
cmp rbx, r13
jae 0x1400064ab
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020800
lea rcx, [rsp + 0xa0]
call fcn.140013eb0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
mov r8, r13
call fcn.14001418c
lea rcx, [rsp + 0xa0]
mov r8, rbp
mov rdx, r12
call fcn.14001418c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.140014250
lea rcx, [rsp + 0x110]
call fcn.140013eb0
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140006522
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 0x14000650e
cmp rbx, r13
jae 0x140006537
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020800
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x110]
mov r8, r13
call fcn.14001418c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x110]
mov r8d, 0x20
call fcn.14001418c
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x110]
call fcn.140014250
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 0x140006598
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.140020bc0
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.1400063f8
mov r14d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov r8, r14
call fcn.140020bc0
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 0x1400066e5
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.1400063f8
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov r8, r14
call fcn.140020bc0
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x40]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x1400066cc
sub rbx, 1
jne 0x140006691
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140020bc0
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14000668a
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14000f63c
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14000f63c
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000f63c
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14000f63c
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 0x140006760
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 0x1400069b0
xor ebx, ebx
mov rdi, rcx
cmp dword [rdi + 0x114], esi
jne 0x1400067d5
mov rdx, r13
mov rcx, rdi
call fcn.14000f758
test al, al
je 0x1400067d5
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8d, 0x10
call fcn.140020f10
test eax, eax
je 0x1400069cc
inc ebx
add rdi, 0x178
cmp ebx, 4
jb 0x14000679c
mov rcx, qword [rsp + 0x2e8]
mov edi, 0x200
lea rdx, [rsp + 0xa0]
mov r8, rdi
call fcn.1400151e0
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rsp + 0xa0]
call fcn.140020b00
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.140006598
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14000f63c
mov eax, dword [r12 + 0x5e0]
mov rdx, r13
mov rdi, rax
mov r8d, 0x102
and edi, 3
imul rdi, rdi, 0x178
add rdi, r12
inc eax
mov dword [r12 + 0x5e0], eax
mov rcx, rdi
mov dword [rdi + 0x114], esi
call fcn.140020bc0
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8, rbx
call fcn.140020bc0
lea esi, [rbx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x118]
mov r8, rsi
call fcn.140020bc0
lea rcx, [rdi + 0x138]
lea rdx, [rsp + 0x60]
mov r8, rsi
call fcn.140020bc0
lea rcx, [rdi + 0x158]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020bc0
lea rcx, [rdi + 0x118]
mov r8b, 1
mov rdx, rsi
call fcn.14000f4fc
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x14000692c
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020bc0
mov rbx, qword [rsp + 0x310]
test rbx, rbx
je 0x140006976
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140020800
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 0x140006952
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.14000f63c
mov rax, qword [rsp + 0x2f8]
test rax, rax
je 0x1400069a3
lea rcx, [r12 + 0x5e8]
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov dl, r15b
mov qword [rsp + 0x20], rax
call fcn.14000f2f4
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000f63c
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 r8d, r8d
lea rcx, [rdi + 0x118]
lea esi, [r8 + 0x20]
mov rdx, rsi
call fcn.14000f4fc
lea rdx, [rdi + 0x118]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140020bc0
lea rcx, [rdi + 0x118]
mov r8b, 1
mov rdx, rsi
call fcn.14000f4fc
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140020bc0
lea rdx, [rdi + 0x158]
lea rcx, [rsp + 0x80]
mov r8, rsi
call fcn.140020bc0
jmp 0x14000690f
Function at 0x140006ac0
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 0x140006b4d
mov r8d, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
mov rdx, rsi
mov eax, r8d
mov byte [r11 + 8], r8b
mov rcx, rdi
shr eax, 8
mov byte [rsp + 0x61], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [rsp + 0x62], al
mov byte [r11 + 0xb], r8b
lea rax, [r11 - 0x28]
lea r8, [r11 + 8]
mov qword [r11 - 0x38], rax
call fcn.1400063f8
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 0x140006b2e
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006b7f
lea rax, [rsp + 0x30]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400063f8
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 4]
mov r8, rsi
call fcn.140020bc0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140006fb4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002af30
sub rsp, rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14000702f
mov rcx, rdi
call fcn.140020788
mov rcx, rdi
mov rbx, rax
call fcn.14000c594
test al, al
jne 0x14000700b
lea rdx, [rsp + 0x20]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x20]
call fcn.140020788
lea rbx, [rbx + rax + 1]
mov edi, 0x104
cmp rbx, rdi
jbe 0x14000702f
lea ecx, [rdi - 0x41]
call fcn.14000e7a4
lea rcx, [0x14002dc28]
mov r8d, edi
mov rdx, rax
call fcn.140011100
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x1400072dc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0x78
mov rsi, r8
mov rbx, rdx
call fcn.14000e7a4
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.140011100
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140006fb4

Function at 0x1400073d8
Capabilities:
Get common file path

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.1400072dc
Function at 0x140009a4c
Capabilities:
Move file

Disassembly:
push r12
mov eax, 0x5060
call fcn.14002af30
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 0x140009c66
cmp eax, r12d
jae 0x140009c66
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140009c62
cmp eax, r12d
jae 0x140009c62
lea rcx, [rsp + 0x4060]
call fcn.14000c04c
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.14000c04c
mov rdi, rax
cmp word [rax], bp
je 0x140009c5e
mov rdx, rax
mov rcx, rsi
call fcn.140015478
cmp eax, ebp
je 0x140009c5e
mov rcx, rbx
call fcn.14000c04c
mov rcx, rax
mov rdx, rdi
call fcn.140015478
cmp eax, ebp
jne 0x140009c5e
mov ax, bp
mov word [rsp + 0x30], ax
mov edi, ebp
cmp ax, bp
jne 0x140009b9f
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014420
lea rcx, [rsp + 0x30]
call fcn.14000c04c
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.140009948
lea rcx, [rsp + 0x30]
call fcn.14000ac60
cmp al, bpl
je 0x140009b83
mov eax, ebp
mov word [rsp + 0x30], ax
jmp 0x140009b88
mov ax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140009b37
cmp ax, bp
jne 0x140009b9f
xor al, al
jmp 0x140009c68
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.140014420
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14000c200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140009be3
xor al, al
jmp 0x140009c68
lea rcx, [rsp + 0x1030]
call fcn.140009ee4
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000ac60
cmp al, bpl
jne 0x140009c1a
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x1030]
call fcn.14000a0bc
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140009c4d
lea rcx, [rsp + 0x1030]
call fcn.14000a208
lea rcx, [rsp + 0x1030]
call fcn.14000a270
nop
lea rcx, [rsp + 0x1030]
call fcn.14000a4ec
mov al, 1
jmp 0x140009c68
xor al, al
jmp 0x140009c68
xor al, al
jmp 0x140009c68
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 0x14000a2a4
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x14000a3ee
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
mov rdi, rcx
mov ecx, dword [rcx + 0x14]
mov rsi, r8
mov rbp, rdx
test ecx, ecx
je 0x14000a2ef
sub ecx, 1
je 0x14000a2e0
cmp ecx, 1
jne 0x14000a2ef
mov ecx, 0xfffffff4
jmp 0x14000a2e5
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 0x14000a348
xor ebx, ebx
test rsi, rsi
je 0x14000a36d
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 0x14000a36d
add rbx, r13
cmp rbx, rsi
jb 0x14000a307
jmp 0x14000a369
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 0x14000a3d8
cmp byte [rdi + 0x1c], 0
je 0x14000a3d8
cmp dword [rdi + 0x14], 0
jne 0x14000a3d8
lea rdx, [rdi + 0x26]
lea rcx, [0x140038d88]
xor r8d, r8d
call fcn.14000716c
test al, al
je 0x14000a3c6
mov ecx, dword [rsp + 0x60]
cmp rcx, rsi
jae 0x14000a2f5
test ecx, ecx
je 0x14000a2f5
mov rbx, qword [rdi]
mov rcx, rdi
call qword [rbx + 0x18]
mov ecx, dword [rsp + 0x60]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
call qword [rbx + 0x10]
jmp 0x14000a2f5
lea r8, [rdi + 0x26]
lea rcx, [0x140038d88]
xor edx, edx
call fcn.140007398
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 0x14000a4a0
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 0x14000a520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x14000a55e
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
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 0x14000a5d3
mov rcx, rbx
call fcn.14000a4bc
test al, al
je 0x14000a59e
cmp rdi, rbp
jbe 0x14000a59e
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14000a520
jmp 0x14000a5d7
cmp dword [rbx + 0x14], 1
jne 0x14000a5b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a5b3
xor eax, eax
jmp 0x14000a5d7
cmp dword [rbx + 0x14], 0
jne 0x14000a5ce
mov ebp, 0x8000
cmp rdi, rbp
jbe 0x14000a5ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x14000a58e
or eax, 0xffffffff
jmp 0x14000a5d7
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a8ec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000a870
test al, al
je 0x14000a91a
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 + 0x10]
add rsp, 0x20
pop rbx
ret

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

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

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002af30
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000aa84
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000c6a4
test al, al
je 0x14000aa84
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 0x14000ac7c
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.14002af30
sub rsp, rax
mov dil, dl
xor edx, edx
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000acfc
mov rcx, rbx
call fcn.14000a970
cmp eax, 0xffffffff
jne 0x14000acde
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.14000c6a4
test al, al
je 0x14000acde
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000acfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000acf5
cmp eax, 3
je 0x14000acf5
mov eax, 1
jmp 0x14000ad0d
mov eax, 2
jmp 0x14000ad0d
test dil, dil
je 0x14000ad0b
mov edx, esi
mov rcx, rbx
call fcn.14000a9cc
xor eax, eax
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000ae7c
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.14002af30
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000af26
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000af50
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.14000c6a4
test al, al
je 0x14000aefd
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000af50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000af19
cmp eax, 3
je 0x14000af19
cmp eax, 0x12
je 0x14000af19
mov eax, 1
jmp 0x14000af1b
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x14000afe6
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000af46
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x14000afe6
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140014420
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14000c200
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.140014d90
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140014d90
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140014d90
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 0x14000c6a4
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.14002af30
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x14000c874
call fcn.14000bf58
mov rcx, rbx
call fcn.140020788
mov rcx, rbx
mov rbp, rax
call fcn.14000c594
cmp al, dil
je 0x14000c790
mov rcx, rbx
call fcn.14000bf58
cmp al, dil
je 0x14000c73c
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x14000c874
lea r8d, [rdi + 4]
lea rdx, [0x14002e000]
mov rcx, r12
call fcn.1400213b0
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.1400207d0
mov al, 1
jmp 0x14000c876
mov edi, 0x5c
cmp word [rbx], di
jne 0x14000c874
cmp word [rbx + 2], di
jne 0x14000c874
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c874
lea r8d, [rdi - 0x58]
lea rdx, [0x14002e000]
mov rcx, r12
call fcn.1400213b0
lea rcx, [r12 + 8]
lea rdx, [0x14002dff8]
call fcn.1400207d0
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x14000c730
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x14000c874
cmp eax, 0x7ff
ja 0x14000c874
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x14000c837
cmp eax, 0x2f
je 0x14000c837
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.14000bca4
lea rcx, [rsp + 0x20]
call fcn.140020788
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x14000c874
lea r8d, [rdi - 0x58]
lea rdx, [0x14002e000]
mov rcx, r12
call fcn.1400213b0
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.1400207d0
cmp word [rbx], 0x2e
jne 0x14000c824
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x14000c820
cmp eax, 0x2f
jne 0x14000c824
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14001445c
jmp 0x14000c735
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c874
lea rdx, [0x14002e000]
mov r8d, 4
mov rcx, r12
call fcn.1400213b0
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400213b0
lea rcx, [r12 + 0xc]
jmp 0x14000c72d
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