joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474000
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4740ca
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00583488]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4740af
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048bae0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47409e
mov edi, 1
lea rsi, [0x0048bae0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004bf228]
lea rsi, [0x004bebb0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x6da1b270
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da3c5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da1b3f8
mov rax, qword [0x6da3c5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da1b2bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da1b345
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da1b2a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da1b42d
mov rax, qword [0x6da3c5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da3c5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da1b410
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da1b33e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da1b3a0
add dword [0x6da3c5e4], 1
cmp edi, 8
jae 0x6da1b373
test dil, 4
jne 0x6da1b3e4
test edi, edi
je 0x6da1b368
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da1b3ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da1b368
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da1b38c
jmp 0x6da1b368
add rsi, qword [0x6da3c5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da1b33e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da1b368
xor esi, esi
jmp 0x6da1b2c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da1b368
mov rax, qword [0x6da3c5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da1bb80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da3c8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da3c8a0]
test rbx, rbx
je 0x6da1bbd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da1bbcb
test rsi, rsi
je 0x6da1bbcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da1bbb0
lea rcx, [0x6da3c8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da1be10
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da1be20
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da1be30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da1be71
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da1be68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da1be73
add rax, 0x28
cmp rax, r9
jne 0x6da1be54
xor eax, eax
ret

Function at 0x6da1bf10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da391f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da1bf7d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1bf7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da1bf7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da1bf74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da1bf7f
add rax, 0x28
cmp rax, r9
jne 0x6da1bf60
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da1c080
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da391f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da1c0a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1c098
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da1c0fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da1c0f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da1c104
add rax, 0x28
cmp rax, r9
jne 0x6da1c0e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da1c120
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da391f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da1c18e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1c18e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da1c18e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da1c18e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da1c185
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da1c195
add rcx, 0x28
cmp rcx, rax
jne 0x6da1c170
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da1c1a8
jmp 0x6da1c18e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da1c1b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da1c18e
test r9d, r9d
jg 0x6da1c1a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da1c4f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002724
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
call fcn.1400026bc
nop
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140001da4
nop
lea rcx, [rsp + 0x28]
call fcn.140001aec
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.1400020b4
nop
lea rcx, [rsp + 0x28]
call fcn.140001af8
nop
lea rcx, [rsp + 0x48]
call fcn.140002254
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140008b38
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140057354], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008b5d
call fcn.1400076f0
call fcn.140009190
xor r9d, r9d
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14004c320]
mov eax, dword [r9 + rax]
mov dword [r9 + rcx], eax
add r9, 4
cmp r9, 0x20
jl 0x140008b65
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret
Function at 0x14000a810
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, qword [rbp + 0x190]
mov rax, r8
mov rdi, qword [rbp + 0x198]
mov r12, rdx
mov rsi, qword [rbp + 0x1a0]
mov r15, rcx
mov rdx, rax
lea rcx, [rbp + 0xb0]
mov r8d, 0x10
call fcn.14002ab60
xor r14d, r14d
mov dword [rbp + 0xc0], 0x1000000
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], r14
mov rdx, r12
mov qword [rsp + 0x28], r14
lea r9d, [r14 + 0x14]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14000a4f4
lea r13d, [r14 + 0x20]
mov r8d, r13d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.14002ab60
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rsi
lea rdi, [rbp + 0x40]
mov byte [rsp + 0x51], r14b
lea rsi, [rbp + 0x50]
mov byte [rsp + 0x50], r14b
lea r14d, [r13 - 0x1d]
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov qword [rbp + 0x50], rbx
cmp dword [rdi], 0
jbe 0x14000a99a
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000a4f4
mov r8, r13
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.14002ab60
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000a96d
sub rbx, 1
jne 0x14000a910
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, r13
call fcn.14002ab60
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a905
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.140018438
lea rcx, [rbp + 0x88]
mov rdx, r13
call fcn.140018438
lea rcx, [rbp + 0x68]
call fcn.140018438
lea rcx, [rbp + 0x100]
call fcn.140018438
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000acf4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000ad97
mov ecx, dword [rbx]
lea rdx, [rsp + 0x50]
call fcn.140009188
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a4f4
xor r9d, r9d
lea r10, [rsp + 0x58]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x14000ad75
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000addf
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a4f4
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002ab60
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140010970
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x1400109a7
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140010993
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043520]
cmp byte [rbx + 0x21], 0
je 0x1400109a7
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.1400119a0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400109b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x1400109e3
mov al, 1
jmp 0x140010b12
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400109fb
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140010a56
xor ebx, ebx
test rsi, rsi
je 0x140010a7f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140010a76
add rbx, r13
cmp rbx, rsi
jb 0x140010a16
jmp 0x140010a76
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140010b0b
cmp byte [rdi + 0x22], 0
je 0x140010b0b
cmp dword [rdi + 0x14], 0
jne 0x140010b0b
lea rdx, [rdi + 0x40]
call fcn.14000b6b8
test al, al
je 0x140010ae0
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140010a01
test ecx, ecx
je 0x140010a01
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140043520]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140043520]
jmp 0x140010a01
lea rdx, [0x14004c2c0]
lea rcx, [rsp + 0x38]
call fcn.1400020b4
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
call fcn.14000b698
nop
lea rcx, [rsp + 0x38]
call fcn.140002254
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028980
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010cb8
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 rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140010cea
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010d67
mov rcx, rbx
call fcn.140011184
test al, al
je 0x140010d2d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140010d2d
mov rdx, rbp
mov rcx, rbx
call fcn.140010cb8
jmp 0x140010d6b
cmp dword [rbx + 0x14], 1
jne 0x140010d42
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140010d42
xor eax, eax
jmp 0x140010d6b
cmp dword [rbx + 0x14], 0
jne 0x140010d62
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140010d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140010d62
mov r8d, edi
jmp 0x140010d20
or eax, 0xffffffff
jmp 0x140010d6b
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 0x140011008
Capabilities:
Clear file content

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

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.140013218
cmp ax, 0x2e
je 0x14001120c
cmp ax, 0x20
je 0x14001120c
mov rcx, rdi
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14001125d
jmp 0x140011210
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400115d4
test al, al
jne 0x140011271
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x14001124f
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
test esi, esi
je 0x140011271
test bpl, bpl
je 0x14001126d
mov edx, r14d
mov rcx, rdi
call fcn.140011694
xor eax, eax
jmp 0x14001128c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011287
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14001128c
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028980
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001160c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140011678
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x14001166e
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011694
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14001170e
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x140011704
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400118c4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14000128c
mov rdx, rax
mov rcx, rsi
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14001197f
lea rcx, [rsp + 0x40]
call fcn.1400026bc
nop
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400140ec
test al, al
je 0x14001196a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x14001196a
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
nop
lea rcx, [rsp + 0x40]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140028980
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400119a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140011a11
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x140011a07
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011a2c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140011a9d
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140ec
test al, al
je 0x140011a93
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028980
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret