joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400125ec
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x204]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0x208]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x20c]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0x210]
mov r9, rdx
mov r10, rcx
mov r14, r12
mov rax, r14
mov edx, ebp
dec r14
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0x204]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0x104]
shl r13d, 8
or r13d, eax
xor r13d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r13d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0x104]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x140012651
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x208]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x20c]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x210]
mov dword [r9 + 0xc], r11d
call fcn.1400120bc
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003d060
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140012d50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r9, dword [rdx]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r9d, dword [r8]
jbe 0x140012dbf
mov r8d, 1
cmp dword [rbx], r8d
jb 0x140012da0
mov rcx, rdi
mov r9, rsi
lea rdx, [rbx + 4]
sub rcx, rbx
sub r9, rbx
mov eax, dword [rcx + rdx]
inc r8d
xor eax, dword [rdx]
mov dword [r9 + rdx], eax
add rdx, 4
cmp r8d, dword [rbx]
jbe 0x140012d8b
mov ecx, r8d
mov r8d, dword [rdi]
sub r8d, dword [rbx]
lea rdx, [rdi + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.14003d1f0
mov r11d, dword [rdi]
jmp 0x140012e0b
jae 0x140012e10
mov edx, 1
cmp r9d, edx
jb 0x140012def
lea rcx, [r8 + 4]
mov r8, rdi
mov r9, rsi
sub r8, rbx
sub r9, rbx
mov eax, dword [rcx + r8]
inc edx
xor eax, dword [rcx]
mov dword [rcx + r9], eax
add rcx, 4
cmp edx, dword [rdi]
jbe 0x140012ddb
mov r8d, dword [rbx]
mov ecx, edx
sub r8d, dword [rdi]
lea rdx, [rbx + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.14003d1f0
mov r11d, dword [rbx]
mov dword [rsi], r11d
jmp 0x140012e56
or r8d, 0xffffffff
test r9d, r9d
je 0x140012e30
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx + rdx]
xor eax, dword [rcx]
jne 0x140012e30
sub rcx, 4
add r9d, r8d
jne 0x140012e20
mov dword [rsi], r9d
movsxd rax, r9d
test r9d, r9d
je 0x140012e56
sub rdi, rbx
lea rcx, [rbx + rax*4]
sub rsi, rbx
mov eax, dword [rcx + rdi]
xor eax, dword [rcx]
mov dword [rcx + rsi], eax
sub rcx, 4
add r9d, r8d
jne 0x140012e45
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012e68
Capabilities:
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
sub rsp, 0x70
cmp dword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140012f85
cmp dword [r8], 0
je 0x140012f85
movsxd r9, dword [r8]
mov rbp, qword [0x14005cff0]
test r9, r9
je 0x140012ec8
lea rax, [rax - 0x58]
mov rdx, r8
sub rdx, rax
lea rax, [rdx + r9*4]
sub r9, 1
mov ecx, dword [rsp + rax + 0x20]
mov eax, dword [rbp + rcx*4]
mov dword [rsp + r9*4 + 0x24], eax
jne 0x140012eb1
xor edx, edx
mov r8d, 0x90
mov rcx, rbx
call fcn.14003d524
movsxd r9, dword [rsi]
test r9, r9
je 0x140012f38
mov r11, qword [0x14005cfe8]
mov eax, dword [rsi + r9*4]
mov r10d, dword [rbp + rax*4]
cmp r10d, 0x7fff
je 0x140012f32
movsxd r8, dword [rdi]
test r8, r8
je 0x140012f32
mov eax, dword [rsp + r8*4 + 0x20]
cmp eax, 0x7fff
je 0x140012f2c
lea ecx, [rax + r10]
lea rdx, [r8 + r9]
cmp ecx, 0x7fff
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [r11 + rcx*4]
xor dword [rbx + rdx*4 - 4], ecx
sub r8, 1
jne 0x140012f01
sub r9, 1
jne 0x140012ee7
mov eax, dword [rdi]
mov ecx, dword [rsi]
lea edx, [rcx + rax - 1]
movsxd rax, edx
mov dword [rbx], edx
cmp rax, 0x11
jle 0x140012f6a
lea rcx, [rbx + rax*4 - 0x38]
lea rdx, [rax - 0x11]
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x140012f54
cmp dword [rbx], 0x11
jbe 0x140012f88
mov dword [rbx], 0x11
mov eax, dword [rbx]
cmp dword [rbx + rax*4], 0
jne 0x140012f88
dec eax
mov dword [rbx], eax
jne 0x140012f75
jmp 0x140012f88
and dword [rcx], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140012fa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
cmp dword [rdx], 0
mov r9, rdx
mov r8, rcx
je 0x14001308e
movsxd rdx, dword [rdx]
mov r11, qword [0x14005cff0]
mov rbx, qword [0x14005cfe8]
mov eax, dword [r9 + rdx*4]
mov esi, 0x7fff
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x140012ff2
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r8 + rdx*8 - 4], ecx
jmp 0x140012ff8
and dword [r8 + rdx*8 - 4], 0
mov eax, dword [r9]
sub eax, 1
movsxd rdx, eax
je 0x14001303c
lea r10, [r8 + rdx*8 - 4]
and dword [r8 + rdx*8], 0
mov eax, dword [r9 + rdx*4]
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x14001302e
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r10], ecx
jmp 0x140013032
and dword [r10], 0
sub r10, 8
sub rdx, 1
jne 0x140013008
mov eax, dword [r9]
lea eax, [rax + rax - 1]
movsxd rdx, eax
mov dword [r8], eax
cmp rdx, 0x11
jle 0x14001306e
lea rcx, [r8 + rdx*4 - 0x38]
add rdx, 0xffffffffffffffef
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x140013058
cmp dword [r8], 0x11
jbe 0x140013091
mov dword [r8], 0x11
mov eax, dword [r8]
cmp dword [r8 + rax*4], 0
jne 0x140013091
dec eax
mov dword [r8], eax
jne 0x14001307b
jmp 0x140013091
and dword [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x140014d44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
xor r9d, r9d
mov qword [rcx], rbx
movzx eax, word [rsi]
mov r8, rdx
mov r10, rcx
mov rdx, r9
mov r15b, 1
mov ecx, r9d
jmp 0x140014d90
mov edi, 0xff
cmp ax, di
ja 0x140014d98
inc ecx
inc rdx
mov ax, word [rsi + rdx*2]
cmp ax, r9w
jne 0x140014d7d
jmp 0x140014da0
movsxd rax, ecx
mov r15b, byte [rsi + rax*2 + 1]
mov rax, qword [r10 + 0x18]
or rcx, 0xffffffffffffffff
mov rdi, r8
mov byte [rbx + rax], r15b
mov rax, qword [r10 + 0x18]
mov r11, r9
inc rax
mov qword [r10 + 0x10], rax
inc rax
mov qword [r10 + 0x18], rax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x60], rcx
cmp word [rsi], r9w
je 0x140014f36
lea rdx, [rsi + r11*2]
mov r12b, byte [rdx + 1]
mov r14b, byte [rdx]
cmp r11, rax
jae 0x140014ed4
lea rbp, [r11 + r8]
mov edi, r9d
xor r13d, r13d
mov r9, rbp
mov r8, rdx
cmp word [r8], r13w
je 0x140014e27
movzx ecx, word [r8]
movsx eax, byte [r9]
cmp ecx, eax
jne 0x140014e27
inc edi
add r8, 2
inc r9
cmp edi, 0x81
jl 0x140014e04
cmp edi, 2
jl 0x140014e54
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.140014b64
mov rax, qword [r10 + 0x18]
sub dil, 2
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
jmp 0x140014f1e
mov r13b, r14b
sub r13b, byte [rbp]
xor r9d, r9d
mov edi, r9d
mov r8w, word [rdx]
cmp r8w, r9w
je 0x140014e9b
movzx ecx, r8w
shr cx, 8
cmp cl, r15b
jne 0x140014e9b
movsx ecx, byte [rbp]
movzx eax, r13b
add ecx, eax
xor ecx, r8d
cmp cl, r9b
jne 0x140014e9b
inc edi
inc rbp
add rdx, 2
cmp edi, 0x81
jl 0x140014e61
cmp edi, 2
jl 0x140014ed4
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.140014b64
mov rax, qword [r10 + 0x18]
sub dil, 2
or dil, 0x80
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r13b
jmp 0x140014e4b
mov rcx, r10
cmp r12b, r9b
jne 0x140014eed
xor edx, edx
call fcn.140014b64
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
jmp 0x140014f17
cmp r12b, r15b
jne 0x140014ef9
mov edx, 1
jmp 0x140014ede
mov edx, 2
call fcn.140014b64
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r12b
inc qword [r10 + 0x18]
inc r11
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
xor r9d, r9d
cmp word [rsi + r11*2], r9w
jne 0x140014de0
mov dl, byte [r10 + 8]
mov rax, qword [r10 + 0x10]
mov ecx, 8
sub ecx, dword [r10 + 0xc]
shl dl, cl
mov byte [rbx + rax], dl
mov rax, qword [r10 + 0x18]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015474
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x430
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbp, r8
mov rbx, rdx
mov r12, rcx
test rdx, rdx
je 0x1400154b3
cmp byte [rdx], 0
je 0x1400154b3
mov rdi, rdx
jmp 0x1400154b5
xor edi, edi
mov ecx, 0xd0c
call fcn.14002fa2c
mov r8, rbp
mov rcx, rdi
mov rdx, rax
call fcn.140011ea0
call fcn.140011484
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14001554c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea rsi, [rcx - 1]
mov rcx, rbp
call fcn.140027664
test al, al
jne 0x14001551e
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
add rsi, rcx
mov edi, 0x104
cmp rsi, rdi
jbe 0x14001554c
test rbx, rbx
je 0x140015532
cmp byte [rbx], 0
jne 0x140015534
xor ebx, ebx
mov ecx, 0xe6e
call fcn.14002fa2c
mov r8d, edi
mov rcx, rbx
mov rdx, rax
call fcn.140011ea0
mov rcx, r12
call fcn.140015104
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14003d060
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1400156b0
Capabilities:
Get common file path

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.140015474
Function at 0x140018ca0
Capabilities:
Move file

Disassembly:
push rdi
mov eax, 0x2510
call fcn.140048bf0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2530], rbx
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x2500], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0xc44]
call fcn.1400351c0
lea rcx, [rsp + 0xc68]
call fcn.1400351c0
lea rcx, [rsp + 0xc8c]
call fcn.1400351c0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.14001c170
test al, al
je 0x140018ec2
cmp byte [rsp + 0x30], 0
je 0x140018ec0
cmp byte [rsp + 0xcb0], 0
je 0x140018ec0
lea rcx, [rsp + 0x30]
call fcn.140026980
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140034058
test eax, eax
je 0x140018ebc
mov rcx, rdi
call fcn.140026980
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140034058
test eax, eax
jne 0x140018ebc
xor ebx, ebx
mov r8d, 0x400
mov rdx, rdi
lea rcx, [rsp + 0x1d00]
call fcn.1400342f0
lea rcx, [rsp + 0x1d00]
call fcn.140026980
mov rcx, rax
mov r8d, ebx
lea rdx, str.rtmp_d
call fcn.14003d080
xor edx, edx
lea rcx, [rsp + 0x1d00]
call fcn.14001a208
test al, al
je 0x140018dca
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x140018d77
xor edx, edx
lea rcx, [rsp + 0x1d00]
call fcn.14001a208
test al, al
je 0x140018de4
xor al, al
jmp 0x140018ec2
mov r8d, 0x400
mov rdx, rdi
lea rcx, [rsp + 0x2100]
call fcn.1400342f0
lea rcx, [rsp + 0x30]
call fcn.140026980
mov rbx, rax
lea rcx, [rsp + 0x2100]
call fcn.140026980
mov cl, byte [rbx]
mov byte [rax], cl
inc rbx
inc rax
test cl, cl
jne 0x140018e14
lea rdx, [rsp + 0x1d00]
lea rcx, [rsp + 0x2100]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x140018ec2
lea rcx, [rsp + 0x10d0]
call fcn.1400191e8
nop
xor bl, bl
xor edx, edx
mov rcx, rdi
call fcn.14001a208
test al, al
jne 0x140018e76
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x10d0]
call fcn.14001977c
mov bl, al
lea rdx, [rsp + 0x2100]
lea rcx, [rsp + 0x1d00]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test bl, bl
je 0x140018eab
lea rcx, [rsp + 0x10d0]
call fcn.140019260
lea rcx, [rsp + 0x10d0]
call fcn.140019310
nop
lea rcx, [rsp + 0x10d0]
call fcn.140019590
mov al, 1
jmp 0x140018ec2
xor al, al
jmp 0x140018ec2
xor al, al
mov rcx, qword [rsp + 0x2500]
xor rcx, rsp
call fcn.14003d060
mov rbx, qword [rsp + 0x2530]
add rsp, 0x2510
pop rdi
ret

Function at 0x1400194a8
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 0x1400195c4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
movzx eax, r9b
cmp byte [rcx + 0x1e], r14b
mov dword [rcx + 0xc20], r14d
mov ecx, 0xc0000000
lea r15d, [r14 + 1]
mov r12d, 0x80000000
mov rsi, r8
cmovne eax, r15d
cmp byte [rsp + 0x90], r14b
mov r13d, r15d
cmovne r12d, ecx
cmp al, r14b
mov al, byte [rbx + 0x1d]
lea ecx, [r14 + 3]
mov rdi, rdx
cmovne r13d, ecx
neg al
sbb ebp, ebp
not ebp
and ebp, 0x8000000
call fcn.14001ca94
cmp eax, r14d
je 0x140019671
cmp rsi, r14
je 0x140019671
cmp word [rsi], r14w
je 0x140019671
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, r12d
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140019694
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, r12d
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400196af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400196af
mov dword [rbx + 0xc20], r15d
cmp rbp, 0xffffffffffffffff
mov byte [rbx + 0x1a], r14b
mov dword [rbx + 0x14], r14d
setne r12b
mov byte [rbx + 0x18], r14b
cmp r12b, r14b
je 0x140019723
mov qword [rbx + 8], rbp
cmp rsi, r14
je 0x1400196e2
lea rcx, [rbx + 0x420]
mov rdx, rsi
call fcn.140035728
jmp 0x1400196ea
mov word [rbx + 0x420], r14w
cmp rdi, r14
je 0x140019705
lea rcx, [rbx + 0x1f]
sub rcx, rdi
mov al, byte [rdi]
mov byte [rcx + rdi], al
add rdi, r15
cmp al, r14b
jne 0x1400196f6
jmp 0x140019717
lea rdx, [rbx + 0x1f]
mov r8d, 0x1000000
mov rcx, rsi
call fcn.1400354b0
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140019230
lea r11, [rsp + 0x40]
mov al, r12b
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400198dc
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 rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x14001991a
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
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 0x140019974
mov rcx, rbx
call fcn.140019560
test al, al
je 0x14001995a
cmp rdi, rbp
jbe 0x14001995a
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.1400198dc
jmp 0x140019978
cmp dword [rbx + 0x14], 1
jne 0x14001996f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14001996f
xor eax, eax
jmp 0x140019978
or eax, 0xffffffff
jmp 0x140019978
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 0x140019bf4
Capabilities:
Clear file content

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

Function at 0x140019c28
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x140019ddd
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [rcx + 0x14]
mov rbp, r8
mov r14, rdx
test ecx, ecx
je 0x140019c77
sub ecx, 1
je 0x140019c68
cmp ecx, 1
jne 0x140019c77
mov ecx, 0xfffffff4
jmp 0x140019c6d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
and dword [rsp + 0x70], 0
cmp dword [rsi + 0x14], 0
je 0x140019cd1
xor ebx, ebx
test rbp, rbp
je 0x140019cfa
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r14]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x140019cfa
add rbx, 0x4000
cmp rbx, rbp
jb 0x140019c89
jmp 0x140019cf2
mov rcx, qword [rsi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x140019dc3
cmp byte [rsi + 0x1c], 0
je 0x140019dc3
cmp dword [rsi + 0x14], 0
jne 0x140019dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edi, eax
call fcn.140019438
lea rcx, [rsi + 0x1f]
mov r12, rax
call fcn.14001a0d4
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140019d63
mov rcx, r12
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140019d63
lea rax, [r12 + rbp]
cmp rax, rbx
jbe 0x140019d63
lea rdx, [rsi + 0x1f]
lea rcx, [0x140060e68]
call fcn.1400152b4
lea rdx, [rsi + 0x1f]
lea rcx, [0x140060e68]
xor r8d, r8d
call fcn.1400152fc
test al, al
je 0x140019db1
mov ecx, dword [rsp + 0x70]
cmp rcx, rbp
jae 0x140019c77
test ecx, ecx
je 0x140019c77
mov rcx, rsi
call fcn.140019438
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call fcn.140019bc4
jmp 0x140019c77
lea r8, [rsi + 0x1f]
lea rcx, [0x140060e68]
xor edx, edx
call fcn.140015684
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov byte [rsi + 0x10], 1
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14001a06c
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x438
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea rdx, [rsp + 0x20]
call fcn.14002689c
mov r11b, byte [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11b
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x14001a0b6
cmp eax, 5
je 0x14001a0b6
xor eax, eax
jmp 0x14001a0bb
mov eax, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14003d060
add rsp, 0x438
ret
Function at 0x14001a0d4
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x60]
mov rbx, rcx
call fcn.14002689c
cmp qword [0x14005f820], 0
jne 0x14001a13d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001a131
lea rdx, str.GetDiskFreeSpaceExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f820], rax
jmp 0x14001a138
mov rax, qword [0x14005f820]
test rax, rax
je 0x14001a19b
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.140026e64
mov al, byte [rsp + 0x60]
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
neg al
lea rax, [rsp + 0x60]
sbb rcx, rcx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
and rcx, rax
call qword [0x14005f820]
test eax, eax
je 0x14001a19b
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x4c]
ja 0x14001a19b
mov ecx, dword [rsp + 0x30]
shl rax, 0x20
add rax, rcx
jmp 0x14001a1ec
mov al, byte [rsp + 0x60]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x38]
neg al
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x40]
sbb rcx, rcx
and rcx, rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x14001a1db
movabs rax, 0x163e00
jmp 0x14001a1ec
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x38]
imul rax, rcx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14003d060
add rsp, 0x470
pop rbx
ret

Function at 0x14001a208
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.14001ca94
xor ebx, ebx
cmp eax, ebx
je 0x14001a23d
cmp rdi, rbx
je 0x14001a23d
cmp word [rdi], bx
je 0x14001a23d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14001a246
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x14001a288
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001ca94
xor ecx, ecx
cmp eax, ecx
je 0x14001a2b8
cmp rbx, rcx
je 0x14001a2b8
cmp word [rbx], cx
je 0x14001a2b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14001a2c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret