joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004de8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140057dc8], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140004e44
movaps xmm0, xmmword [0x140030ae0]
movaps xmm1, xmmword [0x140030af0]
movdqa xmmword [0x140039b70], xmm0
movaps xmm0, xmmword [0x140030b00]
movdqa xmmword [0x140039b60], xmm1
movaps xmm1, xmmword [0x140030b10]
movdqa xmmword [0x140039b50], xmm0
movdqa xmmword [0x140039b40], xmm1
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.140020990
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140030a20]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x140004e62
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005d30
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x140005df0
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 0x140005e39
test bl, 7
je 0x140005e39
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 0x140005e14
cmp r10, 8
jb 0x140005ee6
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 0x140005e54
test r10, r10
je 0x140005f0b
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 0x140005eeb
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x140006270
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 0x1400062e2
lea rcx, [rax - 0x88]
call fcn.140013d04
lea rcx, [rsp + 0x180]
mov r8, rbx
mov rdx, rsi
call fcn.140013fe0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x180]
call fcn.1400140a4
lea rsi, [rsp + 0x80]
lea ebx, [r13 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x14000630e
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 0x1400062f9
cmp rbx, r13
jae 0x140006323
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020990
lea rcx, [rsp + 0xa0]
call fcn.140013d04
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
mov r8, r13
call fcn.140013fe0
lea rcx, [rsp + 0xa0]
mov r8, rbp
mov rdx, r12
call fcn.140013fe0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.1400140a4
lea rcx, [rsp + 0x110]
call fcn.140013d04
mov dl, 0x5c
cmp rbx, rdi
jbe 0x14000639a
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 0x140006386
cmp rbx, r13
jae 0x1400063af
mov r8, r13
lea rcx, [rsp + rbx + 0x20]
sub r8, rbx
call fcn.140020990
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x110]
mov r8, r13
call fcn.140013fe0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x110]
mov r8d, 0x20
call fcn.140013fe0
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x110]
call fcn.1400140a4
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 0x140006410
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.140020d80
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.140006270
mov r14d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov r8, r14
call fcn.140020d80
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 0x14000655d
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.140006270
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov r8, r14
call fcn.140020d80
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x40]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x140006544
sub rbx, 1
jne 0x140006509
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140020d80
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x140006502
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14000f6fc
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14000f6fc
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000f6fc
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14000f6fc
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 0x1400065d8
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 0x140006835
xor ebx, ebx
lea rdi, [rcx + 0x4b4]
cmp dword [rdi + 0x134], esi
jne 0x140006651
mov rdx, r13
mov rcx, rdi
call fcn.14000f82c
test al, al
je 0x140006651
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8d, 0x10
call fcn.1400210d0
test eax, eax
je 0x140006851
inc ebx
add rdi, 0x178
cmp ebx, 4
jb 0x140006618
mov rcx, qword [rsp + 0x2e8]
mov edi, 0x200
lea rdx, [rsp + 0xa0]
mov r8, rdi
call fcn.1400156ac
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea rcx, [rsp + 0xa0]
call fcn.140020cc0
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.140006410
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14000f6fc
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.140020d80
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rdi + 0x102]
mov r8, rbx
call fcn.140020d80
lea esi, [rbx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x112]
mov r8, rsi
call fcn.140020d80
lea rcx, [rdi + 0x138]
lea rdx, [rsp + 0x60]
mov r8, rsi
call fcn.140020d80
lea rcx, [rdi + 0x158]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020d80
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f5a8
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x1400067b1
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140020d80
mov rbx, qword [rsp + 0x310]
test rbx, rbx
je 0x1400067fb
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140020990
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 0x1400067d7
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.14000f6fc
mov rax, qword [rsp + 0x2f8]
test rax, rax
je 0x140006828
lea rcx, [r12 + 0xa9c]
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov dl, r15b
mov qword [rsp + 0x20], rax
call fcn.14000eee8
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000f6fc
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.14000f5a8
lea rdx, [rdi + 0x112]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140020d80
lea rcx, [rdi + 0x112]
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
call fcn.14000f5a8
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140020d80
lea rdx, [rdi + 0x158]
lea rcx, [rsp + 0x80]
mov r8, rsi
call fcn.140020d80
jmp 0x140006794
Function at 0x140006988
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 0x1400069f8
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.140006270
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 0x1400069d9
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006a2a
lea rax, [rsp + 0x30]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140006270
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 4]
mov r8, rsi
call fcn.140020d80
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000997c
Capabilities:
Move file

Disassembly:
push r12
mov eax, 0x5060
call fcn.14002e6d0
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 0x140009b96
cmp eax, r12d
jae 0x140009b96
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140009b92
cmp eax, r12d
jae 0x140009b92
lea rcx, [rsp + 0x4060]
call fcn.14000c1ac
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.14000c1ac
mov rdi, rax
cmp word [rax], bp
je 0x140009b8e
mov rdx, rax
mov rcx, rsi
call fcn.140015944
cmp eax, ebp
je 0x140009b8e
mov rcx, rbx
call fcn.14000c1ac
mov rcx, rax
mov rdx, rdi
call fcn.140015944
cmp eax, ebp
jne 0x140009b8e
mov ax, bp
mov word [rsp + 0x30], ax
mov edi, ebp
cmp ax, bp
jne 0x140009acf
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014298
lea rcx, [rsp + 0x30]
call fcn.14000c1ac
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.14000dce4
lea rcx, [rsp + 0x30]
call fcn.14000aa94
cmp al, bpl
je 0x140009ab3
mov eax, ebp
mov word [rsp + 0x30], ax
jmp 0x140009ab8
mov ax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140009a67
cmp ax, bp
jne 0x140009acf
xor al, al
jmp 0x140009b98
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.140014298
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14000c360
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140009b13
xor al, al
jmp 0x140009b98
lea rcx, [rsp + 0x1030]
call fcn.140009ce8
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000aa94
cmp al, bpl
jne 0x140009b4a
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x1030]
call fcn.140009ee0
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140009b7d
lea rcx, [rsp + 0x1030]
call fcn.14000a03c
lea rcx, [rsp + 0x1030]
call fcn.14000a0a4
nop
lea rcx, [rsp + 0x1030]
call fcn.14000a32c
mov al, 1
jmp 0x140009b98
xor al, al
jmp 0x140009b98
xor al, al
jmp 0x140009b98
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 0x14000a0d8
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 0x14000a105
mov al, 1
jmp 0x14000a214
cmp dword [rcx + 0x14], 1
jne 0x14000a11a
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 0x14000a178
xor ebx, ebx
test rsi, rsi
je 0x14000a19f
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 0x14000a19f
add rbx, r14
cmp rbx, rsi
jb 0x14000a135
jmp 0x14000a19a
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 0x14000a20d
cmp byte [rdi + 0x1c], 0
je 0x14000a20d
cmp dword [rdi + 0x14], 0
jne 0x14000a20d
lea rdx, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor r8d, r8d
call fcn.140006f2c
test al, al
je 0x14000a1fb
mov ecx, dword [rsp + 0x60]
mov rax, rcx
cmp rcx, rsi
jae 0x14000a120
test ecx, ecx
je 0x14000a120
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 0x14000a120
lea r8, [rdi + 0x26]
lea rcx, [0x14003bb98]
xor edx, edx
call fcn.140007158
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 0x14000a2e0
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 0x14000a360
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 0x14000a38d
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 0x14000a40c
mov rcx, rbx
call fcn.14000a2fc
test al, al
je 0x14000a3d0
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000a3d0
mov rdx, rsi
mov rcx, rbx
call fcn.14000a360
jmp 0x14000a410
cmp dword [rbx + 0x14], 1
jne 0x14000a3e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a3e5
xor eax, eax
jmp 0x14000a410
cmp dword [rbx + 0x14], 0
jne 0x14000a407
cmp rdi, 0x8000
jbe 0x14000a407
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000a407
mov r8d, 0x8000
jmp 0x14000a3c3
or eax, 0xffffffff
jmp 0x14000a410
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a720
Capabilities:
Clear file content

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

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

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14002e6d0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000a8b8
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.14000bf48
test al, al
je 0x14000a8b8
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 0x14000aab0
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.14002e6d0
sub rsp, rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.14000bb00
cmp word [rax], 0x2e
je 0x14000aaf1
cmp word [rax], 0x20
je 0x14000aaf1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ab26
mov rcx, rbx
call fcn.14000a7a4
cmp eax, 0xffffffff
jne 0x14000ab39
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.14000bf48
test al, al
je 0x14000ab39
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000ab39
test dil, dil
je 0x14000ab35
mov edx, esi
mov rcx, rbx
call fcn.14000a800
xor eax, eax
jmp 0x14000ab53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ab4e
cmp eax, 3
mov eax, 1
jne 0x14000ab53
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 0x14000acc8
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.14002e6d0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000ad72
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad9c
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.14000bf48
test al, al
je 0x14000ad49
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ad65
cmp eax, 3
je 0x14000ad65
cmp eax, 0x12
je 0x14000ad65
mov eax, 1
jmp 0x14000ad67
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x14000ae32
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000ad92
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x14000ae32
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140014298
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14000c360
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.140014ce4
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140014ce4
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140014ce4
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 0x14000bf48
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.14002e6d0
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x14000c118
call fcn.14000bb68
mov rcx, rbx
call fcn.140020914
mov rcx, rbx
mov rbp, rax
call fcn.14000be10
cmp al, dil
je 0x14000c034
mov rcx, rbx
call fcn.14000bb68
cmp al, dil
je 0x14000bfe0
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x14000c118
lea r8d, [rdi + 4]
lea rdx, [0x140030ee8]
mov rcx, r12
call fcn.1400213fc
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.14002095c
mov al, 1
jmp 0x14000c11a
mov edi, 0x5c
cmp word [rbx], di
jne 0x14000c118
cmp word [rbx + 2], di
jne 0x14000c118
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c118
lea r8d, [rdi - 0x58]
lea rdx, [0x140030ee8]
mov rcx, r12
call fcn.1400213fc
lea rcx, [r12 + 8]
lea rdx, [0x140030ee0]
call fcn.14002095c
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x14000bfd4
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x14000c118
cmp eax, 0x7ff
ja 0x14000c118
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x14000c0db
cmp eax, 0x2f
je 0x14000c0db
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.14000bb9c
lea rcx, [rsp + 0x20]
call fcn.140020914
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x14000c118
lea r8d, [rdi - 0x58]
lea rdx, [0x140030ee8]
mov rcx, r12
call fcn.1400213fc
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.14002095c
cmp word [rbx], 0x2e
jne 0x14000c0c8
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x14000c0c4
cmp eax, 0x2f
jne 0x14000c0c8
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400142d4
jmp 0x14000bfd9
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x14000c118
lea rdx, [0x140030ee8]
mov r8d, 4
mov rcx, r12
call fcn.1400213fc
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400213fc
lea rcx, [r12 + 0xc]
jmp 0x14000bfd1
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