joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013a90
Capabilities:
Set console window title
Terminate process

Disassembly:
sub rsp, 0x48
lea rcx, [rsp + 0x20]
call fcn.1400033f0
mov rcx, rax
call fcn.140014810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [rsp + 0x20]
call fcn.1400148a0
mov cl, 0x6e
mov byte [rsp + 0x50], 0x1b
xor cl, 0x1b
mov dl, 0x68
xor dl, 0x1b
mov byte [rsp + 0x52], cl
mov al, 0x49
mov byte [rsp + 0x53], dl
xor r8d, r8d
lea rdx, [rsp + 0x51]
xor al, 0x1b
mov byte [rsp + 0x54], r8b
xor ecx, ecx
mov byte [rsp + 0x51], al
call fcn.140025efc
call fcn.140011d90
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400196a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140019712
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400196d0
mov ecx, dword [r10]
jmp 0x140019813
cmp ecx, 0x270
jb 0x140019813
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x140019740
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x140019790
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret

Function at 0x14002bd40
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002bb6c
Function at 0x140003b00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov dil, dl
movzx ebx, cl
call fcn.1400110d4
test al, al
je 0x140003c98
lea rdx, str.RarExtPackage.msix
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000ab40
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
lea rcx, [rbp + 7]
call fcn.140008620
test al, al
je 0x140003c8f
lea rdx, str.RarExtInstaller.exe
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.14000ab40
nop
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140006a5c
nop
lea rcx, [rbp + 0x27]
call fcn.140002050
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
lea rcx, [rbp + 7]
call fcn.140008620
test al, al
je 0x140003c8f
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x20]
call fcn.1400164c0
mov dword [rsp + 0x20], 0x70
test bl, bl
jne 0x140003be2
or dword [rsp + 0x24], 0x40
lea rcx, [rbp + 7]
call fcn.1400018c0
mov qword [rbp - 0x71], rax
lea rax, str._install__extall
lea rcx, str._install
test dil, dil
cmovne rcx, rax
lea rax, str._Uninstall
test bl, bl
cmovne rax, rcx
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140003c48
test bl, bl
jne 0x140003c48
mov edx, 0x4e20
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.NewContextMenu
lea rcx, [rbp + 0x27]
call fcn.140001b9c
nop
lea rdx, str.Setup
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
mov r8d, ebx
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x19]
call fcn.14001048c
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
nop
lea rcx, [rbp + 0x27]
call fcn.140002050
nop
lea rcx, [rbp + 7]
call fcn.140002050
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400143f0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400061b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
lea rax, str.unknown_folder
test ebx, ebx
cmovne rdx, rax
call fcn.1400011f8
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x140006230
Capabilities:
Get common file path

Disassembly:
mov edx, 0x10
jmp fcn.1400061b4
Function at 0x14000623c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
call fcn.140008650
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400062d9
call fcn.140008634
test al, al
je 0x1400062d9
call fcn.140008644
test al, al
jne 0x1400062d9
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400071f8
nop
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140006990
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x58], 3
mov eax, 0x14
mov word [rbp - 0x40], ax
lea rcx, [rbp - 0x28]
call fcn.1400018c0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002050
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x1400072ac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x140046994], 0
jne 0x1400072fa
xor r8d, r8d
lea r9, [0x140046990]
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 0x1400072c8
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x1400072bf
ret

Function at 0x1400072fc
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
call fcn.1400072ac
lea rcx, [0x140046d90]
mov r8d, 0x100
mov edx, dword [rcx - 0x400]
mov r9, rcx
mov r10d, 0xf
movzx eax, dl
lea r11, [0x140046990]
shr edx, 8
xor edx, dword [r11 + rax*4]
mov dword [r9], edx
lea r9, [r9 + 0x400]
sub r10, 1
jne 0x140007321
add rcx, 4
sub r8, 1
jne 0x140007312
add rsp, 0x28
ret

Function at 0x140007a40
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140007a77
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140007a63
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140032580]
cmp byte [rbx + 0x21], 0
je 0x140007a77
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140008768
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140007a80
Capabilities:
Write 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, 0x70
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
xor edi, edi
test r8, r8
jne 0x140007abc
mov al, 1
jmp 0x140007c3e
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140007ad9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r15], rax
mov rdx, qword [rsp + 0x38]
mov bpl, dil
mov dword [rsp + 0x30], edi
cmp dword [rsi + 0x14], edi
je 0x140007b38
mov rbx, rdi
test r14, r14
je 0x140007b5d
mov rcx, r14
sub rcx, rbx
mov eax, r14d
sub eax, ebx
mov r8d, 0x4000
cmp rcx, r8
cmovb r8d, eax
add rdx, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140007b54
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rsp + 0x38]
jb 0x140007aed
jmp 0x140007b54
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140007c37
cmp byte [rsi + 0x22], dil
je 0x140007c37
cmp dword [rsi + 0x14], edi
jne 0x140007c37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [0x140032580]
mov r12, rax
lea rcx, [rsi + 0x40]
call fcn.14000857c
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x140007bc7
mov rcx, r12
sub rcx, r14
mov r8d, 0xffffffff
cmp rcx, r8
ja 0x140007bc7
lea rax, [r14 + r12]
cmp rax, r8
jbe 0x140007bc7
lea rdx, [rsi + 0x40]
call fcn.1400073f8
call fcn.1400023fc
xor edi, edi
test al, al
je 0x140007c1b
mov ecx, dword [rsp + 0x30]
cmp rcx, r14
mov rdx, qword [rsp + 0x38]
jae 0x140007ad9
test ecx, ecx
je 0x140007ad9
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [0x140032580]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rsi
mov rax, qword [rbx + 0x20]
call qword [0x140032580]
jmp 0x140007ad4
lea rdx, [0x14003adb0]
lea rcx, [rsp + 0x40]
call fcn.140001b9c
nop
lea rcx, [rsp + 0x40]
call fcn.140002050
mov byte [rsi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007df0
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 0x140007e22
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 0x140007e9f
mov rcx, rbx
call fcn.140008164
test al, al
je 0x140007e65
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140007e65
mov rdx, rbp
mov rcx, rbx
call fcn.140007df0
jmp 0x140007ea3
cmp dword [rbx + 0x14], 1
jne 0x140007e7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140007e7a
xor eax, eax
jmp 0x140007ea3
cmp dword [rbx + 0x14], 0
jne 0x140007e9a
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140007e9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140007e9a
mov r8d, edi
jmp 0x140007e58
or eax, 0xffffffff
jmp 0x140007ea3
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 0x14000848c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
call fcn.14000a308
cmp ax, 0x2e
je 0x1400084db
cmp ax, 0x20
je 0x1400084db
mov rcx, rsi
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
xor ebx, ebx
test eax, eax
jne 0x14000852c
jmp 0x1400084df
xor ebx, ebx
mov edi, ebx
mov rcx, rsi
call fcn.140008620
test al, al
jne 0x140008530
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a7ec
test al, al
je 0x14000851e
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.140002050
test edi, edi
je 0x140008530
xor eax, eax
jmp 0x14000854b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140008546
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000854b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000857c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
lea rcx, [rbp - 0x28]
call fcn.1400024c0
nop
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.14000a4a0
xor ebx, ebx
mov qword [rbp - 0x40], rbx
lea rcx, [rbp - 0x28]
call fcn.140006984
test al, al
je 0x1400085c7
mov eax, ebx
jmp 0x1400085d0
lea rcx, [rbp - 0x28]
call fcn.1400018c0
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400085fd
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400085fd
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
lea rcx, [rbp - 0x28]
call fcn.140002050
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x140008650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400086bc
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x1400086b2
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140002050
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400086d8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000874d
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x140008743
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008768
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x1400087d9
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x1400087cf
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400087f4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140008865
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ec
test al, al
je 0x14000885b
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140009b50
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140009c19
mov rcx, rdx
call fcn.1400018c0
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140009c3a
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a7ec
test al, al
je 0x140009be5
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140002050
cmp rbx, 0xffffffffffffffff
jne 0x140009c3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140009c0f
cmp eax, 0x13
je 0x140009c0f
xor al, al
jmp 0x140009c11
mov al, 1
mov byte [rdi + 0x64], al
jmp 0x140009ccc
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009c3a
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140009c11
mov rdx, rsi
mov rcx, rdi
call fcn.1400070b0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a328
nop
lea rcx, [rsp + 0x20]
call fcn.140002050
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rdi + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rdi + 0x58], rax
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14000eca4
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14000eca4
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14000eca4
and dword [rdi + 0x60], 0
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a018
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x14004aa01], bl
jne 0x14000a07d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000a06c
jne 0x14000a06e
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000a06e
call fcn.140009dbc
test al, al
jne 0x14000a06e
mov bl, 1
mov byte [0x14004aa00], bl
mov byte [0x14004aa01], 1
jmp 0x14000a083
mov bl, byte [0x14004aa00]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400143f0
add rsp, 0x150
pop rbx
ret

Function at 0x14000a534
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, rbx
call fcn.140007080
xor edi, edi
lea r8, [rsp + 0x40]
xor ecx, ecx
lea edx, [rdi + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x14000a5a6
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.14000a5cc
test al, al
je 0x14000a5a6
mov rcx, rbx
call fcn.140006984
test al, al
jne 0x14000a5a6
call fcn.14000a3e8
lea rdx, [0x14003b400]
mov rcx, rbx
call fcn.140006a4c
mov rcx, rbx
call fcn.140008620
mov dil, al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x28]
mov rdx, qword [rsp + 0x40]
call qword [0x140032580]
mov rbx, qword [rsp + 0x30]
mov al, dil
add rsp, 0x20
pop rdi
ret
Function at 0x14000a634
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
call fcn.140007080
lea r10, [rbp - 0x38]
mov qword [rsp + 0x20], r10
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareWinRARPaths
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a715
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AppData
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a715
mov edx, dword [rbp - 0x40]
shr rdx, 1
lea rcx, [rbp - 0x30]
call fcn.140001ebc
nop
lea rcx, [rbp - 0x30]
call fcn.140001bd0
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AppData
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp - 0x30]
call fcn.140001bd0
mov rdx, rax
mov rcx, rbx
call fcn.1400011f8
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x30]
call fcn.140001be4
mov rcx, rbx
call fcn.140006984
test al, al
jne 0x14000a72a
call fcn.140008620
test al, al
jne 0x14000a75d
mov rcx, rbx
call fcn.14000a534
test al, al
jne 0x14000a75d
lea rcx, [rbp - 0x30]
call fcn.14000aa88
nop
mov rdx, rax
mov rcx, rbx
call fcn.140006a5c
nop
lea rcx, [rbp - 0x30]
call fcn.140002050
mov rcx, rbx
call fcn.14000a4ec
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14000ab84
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14000aba0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14000ac0f
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001ebc
nop
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001bd8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rdi
call fcn.1400011f8
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140001be4
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d858
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rdx
lea rcx, [0x140046771]
call fcn.14000d960
lea rdx, str.rarlng.dll
lea rcx, [rsp + 0x40]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000ab40
nop
lea rcx, [rsp + 0x40]
call fcn.140002050
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14000d994
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, 2
cmp dword [rsp + 0x70], r8d
jne 0x14000d901
cmp dword [rsp + 0x64], 5
jbe 0x14000d901
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov r8d, 0x40
jmp 0x14000d90b
lea rcx, [rsp + 0x20]
call fcn.1400018c0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
setne cl
mov byte [0x140046771], cl
test cl, cl
cmove rax, rbx
mov qword [0x140046760], rax
mov qword [0x140046768], rbx
lea rcx, [rsp + 0x20]
call fcn.140002050
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400143f0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rbp
ret