joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014b40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0x830
mov rbx, rcx
mov esi, edx
mov rdi, r8
lea r12, [r8 + r9]
xor r14, r14
xor r15, r15
cmp rdi, r12
jae 0x140014c22
lea rax, [rsp + 0x2c]
cmp byte [rdi], 0xa
jne 0x140014b82
add r15, 1
mov byte [rax], 0xd
add rax, 1
add rax, 1
add rdi, 1
mov dl, byte [rdi - 1]
mov byte [rax - 1], dl
lea rdx, [rsp + 0x82b]
cmp rax, rdx
jae 0x140014ba2
cmp rdi, r12
jb 0x140014b72
lea rdx, [rsp + 0x2c]
sub rax, rdx
mov r13d, eax
mov ecx, esi
call fcn.1400157d0
test al, al
je 0x140014be4
mov ecx, esi
call fcn.140015770
mov r8d, r13d
mov rcx, rax
lea rdx, [rsp + 0x2c]
call fcn.1400159d0
test al, al
je 0x140014c26
mov eax, r13d
add r14, rax
add rdi, 1
cmp rdi, r12
jb 0x140014b6d
jmp 0x140014c22
mov ecx, esi
call fcn.140015770
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x2c]
mov r8d, r13d
lea r9, [rsp + 0x82c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014c2d
mov eax, dword [rsp + 0x82c]
mov edx, eax
add r14, rdx
cmp eax, r13d
jae 0x140014bd9
xor esi, esi
jmp 0x140014c35
mov esi, 0x1d
jmp 0x140014c35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], esi
mov rax, rbx
add rsp, 0x830
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014c60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0x830
mov rbx, rcx
mov esi, edx
mov rdi, r8
lea r12, [r8 + r9]
xor r14, r14
xor r15, r15
cmp rdi, r12
jae 0x140014d32
lea rax, [rsp + 0x2c]
cmp word [rdi], 0xa
jne 0x140014ca5
add r15, 2
mov word [rax], 0xd
add rax, 2
add rax, 2
add rdi, 2
mov dx, word [rdi - 2]
mov word [rax - 2], dx
lea rdx, [rsp + 0x82a]
cmp rax, rdx
jae 0x140014cc7
cmp rdi, r12
jb 0x140014c92
lea rdx, [rsp + 0x2c]
sub rax, rdx
mov r13d, eax
mov ecx, esi
call fcn.1400157d0
test al, al
je 0x140014d48
mov ecx, esi
call fcn.140015770
mov qword [rsp + 0x20], 0
mov r8d, r13d
shr r8d, 1
mov rcx, rax
lea rdx, [rsp + 0x2c]
lea r9, [rsp + 0x82c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x140014d3c
shl dword [rsp + 0x82c], 1
mov eax, dword [rsp + 0x82c]
mov edx, eax
add r14, rdx
cmp eax, r13d
jb 0x140014d32
add rdi, 2
cmp rdi, r12
jb 0x140014c8d
mov dword [rsp + 0x28], 0
jmp 0x140014d7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
jmp 0x140014d7f
mov ecx, esi
call fcn.140015770
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x2c]
mov r8d, r13d
lea r9, [rsp + 0x82c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov eax, dword [rsp + 0x28]
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x830
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014db0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xc50
mov qword [rsp + 0xc90], rcx
mov ebx, edx
mov rsi, r8
mov rdi, rsi
lea r12, [rsi + r9]
xor r14, r14
cmp rdi, r12
jae 0x140014e85
lea rax, [rsp + 0x844]
cmp word [rdi], 0xa
jne 0x140014df9
mov word [rax], 0xd
add rax, 2
add rax, 2
add rdi, 2
mov dx, word [rdi - 2]
mov word [rax - 2], dx
lea rdx, [rsp + 0xc42]
cmp rax, rdx
jae 0x140014e1b
cmp rdi, r12
jb 0x140014dea
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x844]
sub rax, rdx
sar rax, 1
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x844]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140014e8f
mov eax, eax
lea r15, [rsp + rax + 0x44]
lea rax, [rsp + 0x44]
cmp r15, rax
jbe 0x140014f10
lea r13, [rsp + 0x44]
jmp 0x140014ed0
mov dword [rsp + 0x40], 0
jmp 0x140014e99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc90]
mov qword [rax], r14
mov rax, qword [rsp + 0xc90]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xc90]
mov edx, dword [rsp + 0x40]
mov dword [rax + 0x10], edx
mov rax, qword [rsp + 0xc90]
jmp 0x140014f5c
mov ecx, ebx
call fcn.140015770
mov qword [rsp + 0x20], 0
mov rdx, r15
sub rdx, r13
mov r8d, edx
mov rcx, rax
mov rdx, r13
lea r9, [rsp + 0xc44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014f28
mov eax, dword [rsp + 0xc44]
add r13, rax
cmp r13, r15
jb 0x140014ed0
mov r14, rdi
sub r14, rsi
add rdi, 2
cmp rdi, r12
jb 0x140014de2
jmp 0x140014e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc90]
mov qword [rdx], r14
mov rdx, qword [rsp + 0xc90]
mov qword [rdx + 8], 0
mov rdx, qword [rsp + 0xc90]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0xc90]
add rsp, 0xc50
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014f70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rsi, r8
mov rdi, r9
mov ecx, edx
call fcn.140015770
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rcx, rax
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
jmp 0x140014fb8
mov edx, dword [rsp + 0x2c]
xor eax, eax
mov qword [rbx], rdx
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140015d80
Capabilities:
Delete file

Disassembly:
jmp 0x140015d90
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140015db2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400103c0
mov eax, 0xffffffff
jmp 0x140015db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015d90
Capabilities:
Delete file

Disassembly:
jmp 0x140015d90
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140015db2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400103c0
mov eax, 0xffffffff
jmp 0x140015db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000df58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000ddc8

Function at 0x14000e287
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400342a0]
jne 0x1400093ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400093c6
repz ret
ror rcx, 0x10
jmp 0x14000e1e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400361e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400362d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000e265
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400361e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000e287
mov rax, qword [rsp + 0x88]
mov qword [0x1400362d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140036278], rax
mov rax, qword [0x1400362d8]
mov qword [0x140036150], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140036260], rax
mov dword [0x140036140], 0xc0000409
mov dword [0x140036144], 1
mov rax, qword [0x1400342a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400342a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400361d8], eax
mov ecx, 1
call fcn.14001a4b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002d1c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400361d8], 0
jne 0x14000e30e
mov ecx, 1
call fcn.14001a4b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400023f8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
inc rdx
lea rcx, [rsp + 0x20]
call fcn.1400013a4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x20]
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.1400375dc
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.14000129c
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400024e3
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002505
call fcn.140031e6c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140037564
nop
int3
Function at 0x1400087c8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140065b40], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008828
movdqa xmm0, xmmword [0x140048b70]
movdqa xmm1, xmmword [0x140048b60]
movdqa xmmword [0x14005c900], xmm0
movdqa xmm0, xmmword [0x140048b40]
movdqa xmmword [0x14005c910], xmm1
movdqa xmm1, xmmword [0x140048b50]
movdqa xmmword [0x14005c920], xmm0
movdqa xmmword [0x14005c930], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140033950
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140048b20]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140008844
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 0x140009df0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140009e16
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14005c940]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140009df5
mov eax, ecx
ret

Function at 0x14000a078
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005be78]
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 0x14000a110
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.14000aa5c
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 0x14000a0ee
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000a158
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.14000aa5c
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400332a0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ad78
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [rbp + 0x190]
mov rax, r8
mov rsi, qword [rbp + 0x198]
mov r8d, 0x40
mov r14, qword [rbp + 0x1a0]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xb0]
mov rdx, rax
mov rbx, r9
call fcn.1400332a0
cmp rbx, 0x44
jae 0x14000afcd
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xb0], 0
cmp rax, 0x44
jae 0x14000afcd
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000afcd
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xb0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xb3], 1
call fcn.14000aa5c
mov ebx, 0x20
lea rdx, [rbp + 0x68]
mov r8d, ebx
lea rcx, [rbp + 0x88]
call fcn.1400332a0
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rsi
lea rdi, [rbp + 0x40]
mov qword [rbp + 0x60], r14
lea rsi, [rbp + 0x50]
mov dword [rbp + 0x40], eax
lea r14d, [rbx - 0x1d]
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000af4e
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
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.14000aa5c
mov r8d, 0x20
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.1400332a0
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 0x14000af1e
sub rbx, 1
jne 0x14000aebb
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, rbx
call fcn.1400332a0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000aeb0
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.14001b88c
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.14001b88c
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.14001b88c
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14001b88c
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140031f80
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140032284
int3
Function at 0x1400122f0
Capabilities:
Delete file

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

Function at 0x140012330
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 0x140012362
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 0x1400123df
mov rcx, rbx
call fcn.1400124a0
test al, al
je 0x1400123a5
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x1400123a5
mov rdx, rbp
mov rcx, rbx
call fcn.140012330
jmp 0x1400123e3
cmp dword [rbx + 0x14], 1
jne 0x1400123ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400123ba
xor eax, eax
jmp 0x1400123e3
cmp dword [rbx + 0x14], 0
jne 0x1400123da
mov edi, 0x8000
cmp rsi, rdi
jbe 0x1400123da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1400123da
mov r8d, edi
jmp 0x140012398
or eax, 0xffffffff
jmp 0x1400123e3
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 0x14001274c
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.140012788
test al, al
je 0x140012780
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x140048518]
add rsp, 0x20
pop rbx
ret

Function at 0x140012c70
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 0x140012cf0
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 [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140012d23
mov al, 1
jmp 0x140012eb9
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140012d3b
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 0x140012d96
xor ebx, ebx
test rsi, rsi
je 0x140012dbf
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 0x140012db6
add rbx, r13
cmp rbx, rsi
jb 0x140012d56
jmp 0x140012db6
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 0x140012eb2
cmp byte [rdi + 0x22], 0
je 0x140012eb2
cmp dword [rdi + 0x14], 0
jne 0x140012eb2
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x14005e9e0]
call fcn.14000b510
test al, al
je 0x140012e2e
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140012d41
test ecx, ecx
je 0x140012d41
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048518]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048518]
jmp 0x140012d41
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x1400489d4]
call fcn.1400375dc
mov r8, rax
lea rdx, [0x1400489d4]
lea rcx, [rsp + 0x38]
call fcn.14000129c
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x14005e9e0]
call fcn.14000bcc0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140012eb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012ed5
call fcn.140031e6c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031f80
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140037564
int3
Function at 0x1400130e0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001310b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400131a5
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016780
test al, al
je 0x140013167
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400131a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131c5
call fcn.140031e6c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140037564
int3

Function at 0x1400131cc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400131f7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140013291
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140016780
test al, al
je 0x140013253
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013291
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001328c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400132b1
call fcn.140031e6c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140037564
int3