joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004392
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x14001bacc]
cmp r15, 1
jne 0x140004478
push qword [0x14001bb5c]
pop rcx
call fcn.14000b0a0
mov r15, rax
and r15, r15
jle 0x14000440e
mov rcx, qword [0x14001bb5c]
call fcn.14000b0a8
mov rcx, qword [0x14001bb5c]
call fcn.14000b0bc
or rax, rax
je 0x14000440e
mov rbp, qword [0x14001bb64]
push qword [rbp + 0x10]
pop rcx
call fcn.140011750
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x14000440c
mov rbp, qword [0x14001bb64]
push qword [rbp + 0x10]
pop rcx
call fcn.14000f894
jmp 0x1400043cf
push qword [0x14001bb6c]
pop rcx
call fcn.14000b0a0
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004478
push 5
push 0
push 1
push qword [0x14001bb6c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008160
mov rcx, qword [0x14001bb6c]
call fcn.14000b0a8
mov rcx, qword [0x14001bb6c]
call fcn.14000b0bc
or rax, rax
je 0x140004478
mov rbp, qword [0x14001bb74]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x140004455
mov rax, 1
jmp 0x140004484
add rsp, 0x38
pop r15
pop rbp
ret
Function at 0x140008b20
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b97
movsxd rdx, ecx
lea rcx, [0x140008a7c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001bb88]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b8d
cmp byte [rbx + 0x20], 0
je 0x140008b8d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008b53
jmp 0x140008c0a
mov rbx, qword [0x14001bb88]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008c02
cmp byte [rbx + 0x21], 0
je 0x140008bc6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008bf2
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001bb88]
call fcn.140012cb4
mov rbx, rdi
test rdi, rdi
jne 0x140008ba3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140008ce4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14001c520]
call fcn.14001245c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008daa
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008d38
add rax, r9
cmp byte [rax], r10b
je 0x140008d30
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008d6e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008d69
cmp cl, 0x22
je 0x140008d5c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008d4e
cmp byte [rax], 0
je 0x140008d69
mov rcx, rax
add rax, r9
jmp 0x140008d90
mov rcx, rax
jmp 0x140008d90
test dl, dl
je 0x140008d8d
mov rbx, rax
cmp dl, r10b
je 0x140008d83
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008d75
cmp byte [rax], 0
mov rcx, rax
je 0x140008d90
jmp 0x140008d64
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d9a
test rdi, rdi
jne 0x140008db4
test r8d, r8d
je 0x140008da2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008d2b
test rdi, rdi
jne 0x140008dc6
movsxd rax, esi
jmp 0x140008dc9
test rbx, rbx
je 0x140008dc6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008dc9
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140008ea4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001c520]
call fcn.14001245c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008ce4
Function at 0x140008f98
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008fb8
test rax, rax
lea rdx, [0x140018662]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140009e04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x140009f78
mov rcx, qword [0x14001b98c]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
mov qword [rbx + 8], rax
mov edx, edi
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x140009ea7
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x140009f78
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x140009ec1
lea rdx, [rbp - 0x30]
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x140009f78
cmp dword [rbx + 0x14], esi
jl 0x140009eea
mov r8, qword [rbx + 8]
mov rcx, qword [0x14001b98c]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x14001b98c]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x14]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx r11, word [rbp - 0x20]
mov byte [r11 + r12 + 0x14], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x140009f4f
lea edi, [rdi + rax + 0x18]
jmp 0x140009f53
lea edi, [rdi + rax + 0x12]
mov dword [r12 + 0x10], edi
movsxd rcx, dword [rbx + 0x14]
add edi, dword [rbp - 0x28]
mov rax, qword [rbx + 8]
mov r9d, 1
mov qword [rax + rcx*8], r12
inc dword [rbx + 0x14]
mov edx, dword [rbp - 0x28]
jmp 0x140009e51
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000bf14
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14001c6e0]
call fcn.140012374
mov rsi, rax
test rax, rax
je 0x14000bf8d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000bf52
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000bf8d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140013550
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.1400136f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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.140028a30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140008b28
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 0x140008b4d
call fcn.1400076e0
call fcn.140009180
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 0x140008b55
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 0x14000a148
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x140058274], 0
jne 0x14000a146
xor r8d, r8d
lea r9, [0x140058270]
mov r10d, r8d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x14000a114
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x14000a10b
ret
jmp 0x14000a0f8

Function at 0x14000a168
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14000a18e
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x140058270]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x14000a16d
mov eax, ecx
ret
Function at 0x14000a800
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.14002ac10
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.14000a4e4
lea r13d, [r14 + 0x20]
mov r8d, r13d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.14002ac10
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 0x14000a98a
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.14000a4e4
mov r8, r13
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.14002ac10
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 0x14000a95d
sub rbx, 1
jne 0x14000a900
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, r13
call fcn.14002ac10
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a8f5
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.140018428
lea rcx, [rbp + 0x88]
mov rdx, r13
call fcn.140018428
lea rcx, [rbp + 0x68]
call fcn.140018428
lea rcx, [rbp + 0x100]
call fcn.140018428
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140028a30
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 0x14000ace4
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 0x14000ad87
mov ecx, dword [rbx]
lea rdx, [rsp + 0x50]
call fcn.140009178
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.14000a4e4
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 0x14000ad65
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000adcf
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.14000a4e4
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002ac10
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028a30
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140010960
Capabilities:
Delete file

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

Function at 0x1400109a0
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 0x1400109d3
mov al, 1
jmp 0x140010b02
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400109eb
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 0x140010a46
xor ebx, ebx
test rsi, rsi
je 0x140010a6f
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 0x140010a66
add rbx, r13
cmp rbx, rsi
jb 0x140010a06
jmp 0x140010a66
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 0x140010afb
cmp byte [rdi + 0x22], 0
je 0x140010afb
cmp dword [rdi + 0x14], 0
jne 0x140010afb
lea rdx, [rdi + 0x40]
call fcn.14000b6a8
test al, al
je 0x140010ad0
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400109f1
test ecx, ecx
je 0x1400109f1
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 0x1400109f1
lea rdx, [0x14004c2c0]
lea rcx, [rsp + 0x38]
call fcn.1400020b4
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
call fcn.14000b688
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.140028a30
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010ca8
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 0x140010cda
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 0x140010d57
mov rcx, rbx
call fcn.140011174
test al, al
je 0x140010d1d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140010d1d
mov rdx, rbp
mov rcx, rbx
call fcn.140010ca8
jmp 0x140010d5b
cmp dword [rbx + 0x14], 1
jne 0x140010d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140010d32
xor eax, eax
jmp 0x140010d5b
cmp dword [rbx + 0x14], 0
jne 0x140010d52
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140010d52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140010d52
mov r8d, edi
jmp 0x140010d10
or eax, 0xffffffff
jmp 0x140010d5b
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 0x140010ff8
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 0x1400111a4
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.140013208
cmp ax, 0x2e
je 0x1400111fc
cmp ax, 0x20
je 0x1400111fc
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 0x14001124d
jmp 0x140011200
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400115c4
test al, al
jne 0x140011261
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001123f
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 0x140011261
test bpl, bpl
je 0x14001125d
mov edx, r14d
mov rcx, rdi
call fcn.140011684
xor eax, eax
jmp 0x14001127c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011277
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14001127c
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a30
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 0x1400115fc
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 0x140011668
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001165e
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.140028a30
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011684
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 0x1400116fe
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x1400116f4
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.140028a30
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400118b4
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 0x14001196f
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.1400140dc
test al, al
je 0x14001195a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001195a
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.140028a30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011990
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 0x140011a01
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x1400119f7
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.140028a30
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011a1c
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 0x140011a8d
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x140011a83
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.140028a30
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret