joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a4b8
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 ebp, 0x80000000
mov rsi, r8
cmovne eax, r15d
cmp byte [rsp + 0x90], r14b
mov r13d, r15d
cmovne ebp, ecx
cmp al, r14b
mov al, byte [rbx + 0x1d]
lea ecx, [r14 + 3]
mov r12, rdx
cmovne r13d, ecx
neg al
sbb edi, edi
not edi
and edi, 0x8000000
call fcn.14001dcf0
cmp eax, r14d
je 0x14001a562
cmp rsi, r14
je 0x14001a562
cmp word [rsi], r14w
je 0x14001a562
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x14001a584
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, r12
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
or r13, 0xffffffffffffffff
mov rdi, rax
cmp rax, r13
jne 0x14001a5a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001a5a2
mov dword [rbx + 0xc20], r15d
cmp rdi, r13
mov byte [rbx + 0x1a], r14b
mov dword [rbx + 0x14], r14d
setne bpl
mov byte [rbx + 0x18], r14b
cmp bpl, r14b
je 0x14001a637
mov qword [rbx + 8], rdi
cmp rsi, r14
je 0x14001a5ea
xor eax, eax
mov rcx, r13
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
sub rcx, r15
lea r8, [rcx + rcx + 2]
lea rcx, [rbx + 0x420]
call fcn.140040980
jmp 0x14001a5f2
mov word [rbx + 0x420], r14w
cmp r12, r14
je 0x14001a619
xor eax, eax
mov rcx, r13
mov rdi, r12
repne scasb al, byte [rdi]
mov rdx, r12
not rcx
sub rcx, r15
lea r8, [r15 + rcx]
lea rcx, [rbx + 0x1f]
call fcn.140040980
jmp 0x14001a62b
lea rdx, [rbx + 0x1f]
mov r8d, 0x1000000
mov rcx, rsi
call fcn.140037e24
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.14001a0f0
lea r11, [rsp + 0x40]
mov al, bpl
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 0x14001a818
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 0x14001a856
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 0x14001a8b0
mov rcx, rbx
call fcn.14001a454
test al, al
je 0x14001a896
cmp rdi, rbp
jbe 0x14001a896
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14001a818
jmp 0x14001a8b4
cmp dword [rbx + 0x14], 1
jne 0x14001a8ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14001a8ab
xor eax, eax
jmp 0x14001a8b4
or eax, 0xffffffff
jmp 0x14001a8b4
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 0x14001ab34
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14001a8cc
test al, al
je 0x14001ab60
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001ab00
add rsp, 0x20
pop rbx
ret
Function at 0x14001ab68
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x14001ad3a
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 0x14001abb7
sub ecx, 1
je 0x14001aba8
cmp ecx, 1
jne 0x14001abb7
mov ecx, 0xfffffff4
jmp 0x14001abad
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 0x14001ac11
xor ebx, ebx
test rbp, rbp
je 0x14001ac3a
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 0x14001ac3a
add rbx, 0x4000
cmp rbx, rbp
jb 0x14001abc9
jmp 0x14001ac32
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 0x14001ad20
cmp byte [rsi + 0x1c], 0
je 0x14001ad20
cmp dword [rsi + 0x14], 0
jne 0x14001ad20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edi, eax
call fcn.14001a320
lea rcx, [rsi + 0x1f]
mov r12, rax
call fcn.14001b040
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14001acaa
mov rcx, r12
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14001acaa
lea rax, [r12 + rbp]
cmp rax, rbx
jbe 0x14001acaa
lea r8, [rsi + 0x420]
lea rdx, [rsi + 0x1f]
lea rcx, [0x140067098]
call fcn.140015da4
lea r8, [rsi + 0x420]
lea rdx, [rsi + 0x1f]
lea rcx, [0x140067098]
xor r9d, r9d
call fcn.140015dec
test al, al
je 0x14001acff
mov ecx, dword [rsp + 0x70]
cmp rcx, rbp
jae 0x14001abb7
test ecx, ecx
je 0x14001abb7
mov rcx, rsi
call fcn.14001a320
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call fcn.14001ab00
jmp 0x14001abb7
lea rax, [rsi + 0x420]
lea r9, [rsi + 0x1f]
lea rcx, [0x140067098]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400160d4
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 0x14001afd8
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x438
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea rdx, [rsp + 0x20]
call fcn.140027e44
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 0x14001b022
cmp eax, 5
je 0x14001b022
xor eax, eax
jmp 0x14001b027
mov eax, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400407f0
add rsp, 0x438
ret
Function at 0x14001b040
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x60]
mov rbx, rcx
call fcn.140027e44
cmp qword [0x140064a50], 0
jne 0x14001b0a9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b09d
lea rdx, str.GetDiskFreeSpaceExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140064a50], rax
jmp 0x14001b0a4
mov rax, qword [0x140064a50]
test rax, rax
je 0x14001b107
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400284e0
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 [0x140064a50]
test eax, eax
je 0x14001b107
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x4c]
ja 0x14001b107
mov ecx, dword [rsp + 0x30]
shl rax, 0x20
add rax, rcx
jmp 0x14001b158
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 0x14001b147
movabs rax, 0x163e00
jmp 0x14001b158
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.1400407f0
add rsp, 0x470
pop rbx
ret

Function at 0x14001b174
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x560
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x550], rax
lea rdx, [rsp + 0x150]
call fcn.140027e44
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea rcx, [rsp + 0x150]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
je 0x14001b20c
lea rsi, [rsp + 0x40]
lea rdi, [0x1400515bc]
lea ecx, [rbx + 4]
repe cmpsb byte [rsi], byte [rdi]
je 0x14001b203
lea rsi, [rsp + 0x40]
lea rdi, str.FAT32
lea ecx, [rbx + 6]
repe cmpsb byte [rsi], byte [rdi]
jne 0x14001b208
mov ebx, 1
mov al, bl
jmp 0x14001b20e
xor al, al
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400407f0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001b234
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.14001dcf0
xor ebx, ebx
cmp eax, ebx
je 0x14001b26f
cmp rdi, rbx
je 0x14001b26f
cmp word [rdi], bx
je 0x14001b26f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
jmp 0x14001b289
cmp rsi, rbx
je 0x14001b287
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001b287
mov ebx, 1
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b29c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp fcn.14001b234

Function at 0x14001b2d8
Capabilities:
Get file attributes

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

Function at 0x14001b46c
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, 0x1030
call fcn.14004d4a0
sub rsp, rax
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.14001dcf0
xor r13d, r13d
cmp eax, r13d
je 0x14001b505
cmp rbx, r13
je 0x14001b4b6
cmp word [rbx], r13w
jne 0x14001b4c1
cmp rdi, r13
je 0x14001b505
cmp word [rdi], r13w
je 0x14001b505
lea r8, [rsp + 0x820]
mov r9d, 0x400
mov rdx, rbx
mov rcx, rsi
call fcn.140027eec
lea r8, [rsp + 0x20]
mov r9d, 0x400
mov rdx, rdi
mov rcx, rbp
call fcn.140027eec
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x820]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14001b511
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, r13d
setne al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400407f0
add rsp, 0x1030
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14001b538
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001dcf0
xor esi, esi
cmp eax, esi
je 0x14001b56d
cmp rbx, rsi
je 0x14001b56d
cmp word [rbx], si
je 0x14001b56d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001b576
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x30]
cmp eax, esi
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x14001b58c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001dcf0
xor esi, esi
cmp eax, esi
je 0x14001b5c1
cmp rbx, rsi
je 0x14001b5c1
cmp word [rbx], si
je 0x14001b5c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001b5ca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rbx, qword [rsp + 0x30]
cmp eax, esi
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x14001b6b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r12, rcx
cmp rcx, r13
je 0x14001b718
cmp byte [rcx], r13b
je 0x14001b718
mov r11, r8
mov r10, rcx
sub r11, rcx
mov al, byte [r10]
mov byte [r11 + r10], al
inc r10
cmp al, r13b
jne 0x14001b6ea
mov rcx, r8
call fcn.140027f88
mov rcx, qword [str.__rar_tmp]
mov qword [rax], rcx
movzx ecx, word [0x1400515e8]
mov word [rax + 8], cx
jmp 0x14001b720
cmp r8, r13
je 0x14001b720
mov byte [r8], r13b
cmp rbx, r13
je 0x14001b76b
cmp word [rbx], r13w
je 0x14001b76b
mov rdx, rdi
mov rcx, rbx
sub rdx, rbx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, r13w
jne 0x14001b734
mov rcx, rdi
lea rbp, [0x1400515c8]
call fcn.140028020
movzx ecx, word [rbp]
add rbp, 2
mov word [rax], cx
add rax, 2
cmp cx, r13w
jne 0x14001b754
jmp 0x14001b774
cmp rdi, r13
je 0x14001b774
mov word [rdi], r13w
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, r12
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
jmp fcn.14001b46c

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov ebp, r9d
mov sil, r8b
mov rbx, rdx
mov rdi, rcx
call fcn.14001dcf0
xor r12d, r12d
cmp eax, r12d
je 0x14001ba2e
cmp rbx, r12
je 0x14001ba2e
cmp word [rbx], r12w
je 0x14001ba2e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x14001ba3e
cmp rdi, r12
je 0x14001ba6f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r12d
je 0x14001ba5a
cmp sil, r12b
je 0x14001ba56
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14001b31c
xor eax, eax
jmp 0x14001ba74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001ba6f
cmp eax, 3
mov eax, 1
jne 0x14001ba74
mov eax, 2
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14001c1b4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x18], rbx
jbe 0x14001c207
mov qword [rcx + 0x18], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140040cb4
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x14001c209
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14001fce8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 8], 0
and dword [rsp + 4], 0
and dword [rsp], 0
lea ebp, [r8 - 0x78]
xor r9d, r9d
lea rbx, [rdx + 2]
lea r8, [rsp]
cmp r9d, ebp
jge 0x14001fdb7
mov r10d, dword [r8]
mov ecx, ebp
mov eax, 0x88888889
sub ecx, r9d
lea r12, [rsp + 0x10]
mov rdi, rbx
dec ecx
mul ecx
shr edx, 0xa
lea esi, [rdx + 1]
xor edx, edx
mov r11, rdi
mov cl, byte [r11 - 1]
mov al, byte [r11 - 2]
add rdx, 3
sub al, cl
mov byte [rsp + rdx + 0xe], cl
mov byte [rsp + rdx + 0xd], al
mov al, byte [r11]
add r11, 3
sub al, cl
cmp rdx, 0x78
mov byte [rsp + rdx + 0xf], al
jl 0x14001fd5c
mov ecx, 3
mov al, byte [rsp + rcx + 0x10]
inc rcx
sub al, byte [r12 + rcx - 4]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add r10d, eax
cmp rcx, 0x78
jl 0x14001fd8a
add rdi, 0x780
sub rsi, 1
jne 0x14001fd57
mov dword [r8], r10d
inc r9d
add r8, 4
inc rbx
cmp r9d, 2
jle 0x14001fd33
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
cmp eax, ecx
ja 0x14001fde0
cmp eax, dword [rsp + 8]
ja 0x14001fde0
xor eax, eax
jmp 0x14001fdea
cmp dword [rsp + 8], ecx
sbb eax, eax
neg eax
inc eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400407f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140020354
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400203b2
lea rdx, str.CreateThread_failed
lea rcx, [0x140067098]
call fcn.140015ebc
lea rcx, [0x140067098]
call fcn.140015b78
lea edx, [rbx + 2]
lea rcx, [0x140067098]
call fcn.14001605c
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140026870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r12d, dword [rsp + 0x60]
xor r11d, r11d
mov eax, r9d
lea ebx, [r11 + 1]
mov r14d, r8d
mov r10d, 0x400
cmp r12d, ebx
mov esi, r11d
mov rbp, rbx
jl 0x140026981
lea eax, [r12 + r12]
lea ecx, [rbx + 7]
sub r14d, eax
mov r8d, r11d
mov edi, r14d
mov r9, rdx
mov r15d, 4
cmp edi, ecx
mov eax, edi
mov r11, r9
cmovg eax, ecx
movsxd r13, eax
add r13, r9
cmp r9, r13
jae 0x14002691e
lea r12, [r9 + rbp]
mov dl, byte [r12]
mov al, byte [r12 + rbp]
sub al, dl
sub dl, byte [r11]
movsx ecx, al
movsx eax, dl
sub eax, ecx
mov ecx, 0x20
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
inc r11
inc r12
add r8d, ecx
cmp r11, r13
jb 0x1400268e7
mov ecx, 8
add r9, 0x40
sub edi, 0x40
sub r15, 1
jne 0x1400268ce
mov r12d, dword [rsp + 0x60]
xor r11d, r11d
cmp r8d, r10d
jge 0x140026965
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x2f0]
cmp eax, r11d
je 0x14002695a
cmp esi, eax
jne 0x14002695a
mov eax, r10d
lea ecx, [r8 + r8*4]
shl eax, 2
cmp ecx, eax
jge 0x140026965
cmp r8d, 0x10
mov esi, ebx
mov r10d, r8d
jl 0x14002697d
mov rdx, qword [rsp + 0x48]
inc ebx
inc rbp
cmp ebx, r12d
mov ecx, 8
jle 0x1400268bf
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, esi
mov eax, r11d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140028600
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x30]
mov edx, 0x1a
xor ecx, ecx
mov byte [rbx], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x14002869a
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x14002869a
cmp byte [rbx], 0
je 0x14002869a
mov rcx, rbx
call fcn.1400284ac
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
xor edx, edx
repne scasb al, byte [rdi]
mov eax, dword [0x140051a5c]
mov rcx, rbx
mov dword [rdi - 1], eax
movzx eax, word [0x140051a60]
mov word [rdi + 3], ax
mov al, byte [0x140051a62]
mov byte [rdi + 5], al
call fcn.14001b234
test al, al
jne 0x1400286b3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001b9e4
test eax, eax
je 0x1400286b3
mov r8d, 0x400
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbx
call fcn.140028598
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400286d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor esi, esi
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x1a]
xor ecx, ecx
mov word [rbx], si
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jne 0x140028773
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, esi
je 0x140028773
cmp word [rbx], si
je 0x140028773
mov rcx, rbx
call fcn.140027b4c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov rdx, rbx
repne scasw ax, word [rdi]
mov rax, qword [0x140051a68]
xor ecx, ecx
mov qword [rdi - 2], rax
mov eax, dword [0x140051a70]
mov dword [rdi + 6], eax
movzx eax, word [0x140051a74]
mov word [rdi + 0xa], ax
call fcn.14001b234
cmp al, sil
jne 0x14002878c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.14001b9e4
cmp eax, esi
je 0x14002878c
mov r8d, 0x400
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.1400285cc
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400287ac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov rbx, rcx
mov byte [rcx], 0
lea rdx, [0x140051a80]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002881f
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x140051a78]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rbx], 0
je 0x140028832
xor edx, edx
mov rcx, rbx
call fcn.14001b234
test al, al
jne 0x14002883a
mov rcx, rbx
call fcn.140028600
add rsp, 0x30
pop rbx
ret

Function at 0x140028840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
xor edi, edi
lea rax, [rsp + 0x50]
mov rbx, rcx
mov word [rcx], di
lea rdx, str.SoftwareWinRARPaths
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1400288b7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.AppData
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], di
je 0x1400288cb
mov rdx, rbx
xor ecx, ecx
call fcn.14001b234
cmp al, dil
jne 0x1400288d3
mov rcx, rbx
call fcn.1400286d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret