joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003f980]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140025037
cmp word [rdx], r13w
jne 0x140025037
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002503c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140025161
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140025182
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140025075
mov rdx, r9
mov word [rbx], cx
jmp 0x14002509c
cmp r9, r8
jae 0x1400250ac
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140025056
jmp 0x140025161
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025156
cmp dword [rsp + 0x80], esi
je 0x140025156
lea r8, [0x14003f980]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002512e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400250fe
mov word [rbx], r13w
jmp 0x14002515e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002510b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002515e
cmp word [rsp + 0x70], r13w
jne 0x14002513b
cmp rbx, r14
je 0x1400250f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002523c
cmp word [rsp + 0x70], r13w
je 0x140025161
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003f980]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002515b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140025161
Function at 0x1400269d8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001a188
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140026a62
cmp byte [rbp - 0x21], r15b
je 0x140026a5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026a98
call fcn.14001c2c0
test eax, eax
jne 0x140026a84
cmp byte [rbp - 0x21], r15b
je 0x140026a7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026a98
cmp byte [rbp - 0x21], r15b
je 0x140026a95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001a468
test eax, eax
jne 0x140026b38
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001a188
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026ad7
cmp byte [rbp - 0x21], r15b
je 0x140026b0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026b0c
call fcn.14001c2c0
test eax, eax
jne 0x140026af8
cmp byte [rbp - 0x21], r15b
je 0x140026af1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026b0c
cmp byte [rbp - 0x21], r15b
je 0x140026b09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001a468
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026b38
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026b3b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026b49
mov rcx, rdi
call fcn.140012c90
cmp byte [rbp + 0x3f], r15b
je 0x140026b58
mov rcx, qword [rbp + 0x27]
call fcn.140012c90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000255c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x58], xmm1
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.1400013c4
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]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.14003686c
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000264d
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000266f
call fcn.140031c1c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031d30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400367f4
nop
int3

Function at 0x140002c5c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x68], rax
or qword [rcx + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
xor r9d, r9d
mov byte [rcx + 0x30], 1
mov rdi, rdx
mov rbx, rcx
movups xmmword [rcx + 0x20], xmm0
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140002d12
mov r8, rdi
lea rdx, str..pipe_
lea rcx, [rsp + 0x48]
call fcn.140002830
mov eax, dword [rbx]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
mov r9d, 1
mov edx, 0x40000003
cmova rcx, qword [rsp + 0x48]
xor r8d, r8d
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov eax, 0x4000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea rcx, [rsp + 0x48]
mov qword [rbx + 8], rax
call fcn.140001fa8
cmp qword [rbx + 8], 0xffffffffffffffff
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140002d94
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov r8, rsi
lea rdx, str..pipe_
lea rcx, [rsp + 0x50]
call fcn.140002830
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
cmova rcx, qword [rsp + 0x50]
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140002e7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140002e51
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, dword [rdi]
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002e51
lea rcx, [rsp + 0x50]
call fcn.140001fa8
jmp 0x140002dc5
lea rcx, [rsp + 0x50]
call fcn.140001fa8
xor al, al
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x50]
call fcn.140001fa8
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x140002ebf
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140002f1b
cmp dword [rsp + 0x44], 0
je 0x140002f1b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x44]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e5b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140002f1b
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, eax
mov rcx, rbx
call fcn.1400028b0
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
mov eax, dword [rdi + 4]
cmp rcx, rax
jbe 0x140002e89
jmp 0x140002e5b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 4
mov dword [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x140002e5d
Function at 0x140002f50
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [rcx + 0x10]
mov r14, rdx
mov rdi, rcx
mov rdx, rsi
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor ebx, ebx
test eax, eax
jne 0x140003024
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140002fb3
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003024
mov r8, qword [r14 + 8]
lea r9, [rsp + 0x30]
sub r8, qword [r14]
mov rdx, qword [r14]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002fe8
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003024
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000301e
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003020
mov bl, 1
mov al, bl
jmp 0x140003026
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
Function at 0x140008548
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140067c00], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1400085a8
movdqa xmm0, xmmword [0x140048bc0]
movdqa xmm1, xmmword [0x140048bb0]
movdqa xmmword [0x14005c9a0], xmm0
movdqa xmm0, xmmword [0x140048b90]
movdqa xmmword [0x14005c9b0], xmm1
movdqa xmm1, xmmword [0x140048ba0]
movdqa xmmword [0x14005c9c0], xmm0
movdqa xmmword [0x14005c9d0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140045710
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140048b70]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400085c4
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 0x140009928
Capabilities:
Encode data using xor

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

Function at 0x140009ba8
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 [0x14005bec0]
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 0x140009c3b
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.14000a578
xor edx, edx
lea r9, [rsp + 0x58]
xor r8d, r8d
movzx eax, byte [r9]
mov ecx, r8d
and ecx, 3
inc r8d
shl ecx, 3
inc r9
shl eax, cl
xor edx, eax
cmp r8d, r14d
jb 0x140009c1d
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x140009c83
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.14000a578
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140045070
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a894
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, qword [rbp + 0x180]
mov rax, r8
mov rsi, qword [rbp + 0x188]
mov r8d, 0x40
mov r14, qword [rbp + 0x190]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xa0]
mov rdx, rax
mov rbx, r9
call fcn.140045070
cmp rbx, 0x44
jae 0x14000aaef
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xa0], 0
cmp rax, 0x44
jae 0x14000aaef
mov byte [rbp + rax + 0xa0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000aaef
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xa0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xa0], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xa3], 1
call fcn.14000a578
mov ebx, 0x20
lea rdx, [rbp + 0x60]
mov r8d, ebx
lea rcx, [rbp + 0x80]
call fcn.140045070
mov eax, dword [rbp + 0x198]
dec eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x78], r14
lea rsi, [rsp + 0x68]
mov dword [rsp + 0x58], eax
lea r14d, [rbx - 0x1d]
mov dword [rsp + 0x5c], 0x10
mov dword [rsp + 0x60], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000aa70
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x60]
lea rax, [rbp - 0x80]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
call fcn.14000a578
mov r8d, 0x20
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x60]
call fcn.140045070
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x80]
movdqu xmm1, xmmword [rbp + rax + 0x60]
lea rax, [rax + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x70], xmm1
sub rcx, 1
jne 0x14000aa41
sub rbx, 1
jne 0x14000a9df
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x80]
mov r8, rbx
call fcn.140045070
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a9d4
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xa0]
call fcn.14001b4a4
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.14001b4a4
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14001b4a4
mov rdx, rbx
lea rcx, [rbp + 0xf0]
call fcn.14001b4a4
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140031d30
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140032034
int3
Function at 0x1400116c0
Capabilities:
Delete file

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

Function at 0x140011700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea rsi, [rcx + 0x14]
mov rbp, r8
cmp dword [rsi], 1
mov r15, rdx
mov rbx, rcx
jne 0x14001173f
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
lea r14, [rbx + 0x14]
jmp 0x140011742
mov r14, rsi
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400117be
mov rcx, rbx
call fcn.140011854
test al, al
je 0x140011785
mov r8d, 0x4e20
cmp rbp, r8
jbe 0x140011785
mov rdx, r15
mov rcx, rbx
call fcn.140011700
jmp 0x1400117c2
cmp dword [rsi], 1
jne 0x140011799
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140011799
xor eax, eax
jmp 0x1400117c2
cmp dword [r14], 0
jne 0x1400117b9
mov edi, 0x8000
cmp rbp, rdi
jbe 0x1400117b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1400117b9
mov r8d, edi
jmp 0x140011778
or eax, 0xffffffff
jmp 0x1400117c2
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140011af0
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.140011b2c
test al, al
je 0x140011b24
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 [0x140048528]
add rsp, 0x20
pop rbx
ret

Function at 0x140012000
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 0x140012080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jne 0x1400120b4
mov al, 1
jmp 0x14001224b
cmp dword [rcx + 0x14], 1
jne 0x1400120c9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r12d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012125
xor ebx, ebx
test rsi, rsi
je 0x14001214f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r12d
cmp rcx, r12
cmovb r8d, eax
lea rdx, [r14 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012146
add rbx, r12
cmp rbx, rsi
jb 0x1400120e4
jmp 0x140012146
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012244
cmp byte [rdi + 0x22], 0
je 0x140012244
cmp dword [rdi + 0x14], 0
jne 0x140012244
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x140060a80]
call fcn.14000ac48
test al, al
je 0x1400121be
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400120cf
test ecx, ecx
je 0x1400120cf
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048528]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048528]
jmp 0x1400120cf
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rcx, [0x140048a04]
call fcn.14003686c
mov r8, rax
lea rdx, [0x140048a04]
lea rcx, [rsp + 0x38]
call fcn.1400012c0
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x140060a80]
call fcn.14000b3f4
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140012244
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001223f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001226c
call fcn.140031c1c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400367f4
int3
Function at 0x14001247c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400124a7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012544
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d08
test al, al
je 0x140012506
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012544
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001253f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012564
call fcn.140031c1c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367f4
int3

Function at 0x14001256c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140012597
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012634
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d08
test al, al
je 0x1400125f6
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012634
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001262f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012654
call fcn.140031c1c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367f4
int3