joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000332c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov rbx, rdx
mov edx, 0x13ed
mov rsi, rcx
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 1]
mov edx, 0x13ee
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 2]
mov edx, 0x13ef
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 3]
mov edx, 0x13f0
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 4]
mov edx, 0x13fb
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 5]
mov edx, 0x13f1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 6]
mov edx, 0x13f2
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 7]
mov edx, 0x13f3
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 8]
mov edx, 0x13f4
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 9]
mov edx, 0x13f5
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xa]
mov edx, 0x13f6
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xb]
mov edx, 0x13f7
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xc]
mov edx, 0x13f8
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xd]
mov edx, 0x13fa
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xe]
mov edx, 0x13f9
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xf]
mov edx, 0x13fc
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x10]
mov edx, 0x13fd
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x11]
mov edx, 0x13fe
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x14]
mov edx, 0x13ff
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x15]
mov edx, 0x1400
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x16]
mov edx, 0x1401
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x17]
mov edx, 0x1402
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x18]
mov edx, 0x1403
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x19]
mov edi, 0x1404
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x1a]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov r8b, byte [rbx + 0x17]
lea edx, [rdi - 1]
mov rcx, rsi
call fcn.1400010c0
mov r8b, byte [rbx + 0x17]
mov edx, edi
mov rcx, rsi
call fcn.1400010c0
xor edi, edi
cmp byte [rbx + 0x17], dil
je 0x140003549
call fcn.140005f80
test al, al
je 0x140003549
mov dil, 1
mov r8b, dil
mov edx, 0x1405
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400010c0
Function at 0x140003ec8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140003f0f
xor r9d, r9d
mov r10d, r9d
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 0x140003edd
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140003ed4
ret

Function at 0x140004724
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000475b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140004747
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140029578]
cmp byte [rbx + 0x21], 0
je 0x14000475b
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.1400050b8
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140004764
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 0x140004796
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 0x140004813
mov rcx, rbx
call fcn.1400048a0
test al, al
je 0x1400047d9
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x1400047d9
mov rdx, rbp
mov rcx, rbx
call fcn.140004764
jmp 0x140004817
cmp dword [rbx + 0x14], 1
jne 0x1400047ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400047ee
xor eax, eax
jmp 0x140004817
cmp dword [rbx + 0x14], 0
jne 0x14000480e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000480e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000480e
mov r8d, edi
jmp 0x1400047cc
or eax, 0xffffffff
jmp 0x140004817
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 0x140004ed8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov rsi, rcx
test r8, r8
jne 0x140004f05
mov al, 1
jmp 0x1400050a1
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x140004f22
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov rdx, qword [rsp + 0x78]
mov r15b, dil
mov dword [rsp + 0x80], edi
cmp dword [rsi + 0x14], edi
je 0x140004f85
mov rbx, rdi
test rbp, rbp
je 0x140004fae
mov r8d, 0x4000
mov qword [rsp + 0x20], rdi
mov eax, ebp
lea r9, [rsp + 0x80]
sub eax, ebx
mov rcx, rbp
sub rcx, rbx
cmp rcx, r8
mov rcx, qword [r14]
cmovb r8d, eax
add rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
jne 0x140004fa5
mov rdx, qword [rsp + 0x78]
add rbx, 0x4000
cmp rbx, rbp
jb 0x140004f39
jmp 0x140004fa5
mov rcx, qword [r14]
lea r9, [rsp + 0x80]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
test r15b, r15b
jne 0x14000509a
cmp byte [rsi + 0x22], dil
je 0x14000509a
cmp dword [rsi + 0x14], edi
jne 0x14000509a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
mov edi, eax
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [0x140029578]
lea r12, [rsi + 0x3a]
mov r13, rax
mov rcx, r12
call fcn.1400051cc
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140005022
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140005022
mov rax, rbp
add rax, r13
cmp rax, rbx
jbe 0x140005022
mov rdx, r12
lea rcx, [0x14003c6d8]
call fcn.1400043fc
xor r8d, r8d
lea rcx, [0x14003c6d8]
mov rdx, r12
call fcn.1400041f0
xor edi, edi
test al, al
je 0x140005089
mov ecx, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
cmp rcx, rbp
jae 0x140004f22
test ecx, ecx
je 0x140004f22
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [0x140029578]
mov ecx, dword [rsp + 0x80]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x140029578]
jmp 0x140004f1d
mov r8, r12
lea rcx, [0x14003c6d8]
xor edx, edx
call fcn.140004358
mov byte [rsi + 0x10], 1
mov al, r15b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400050b8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140005116
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000668c
test al, al
je 0x140005116
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x140005150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400051a9
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000668c
test al, al
je 0x1400051a9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400051cc
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r8d, 0x800
lea rdx, [rsp + 0x40]
call fcn.140006548
movzx eax, word [rsp + 0x40]
lea r9, [rsp + 0x28]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140005248
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x140005248
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000524a
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x1058
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.1400069b8
xor ebx, ebx
cmp word [rax], 0x2e
je 0x1400052d2
cmp word [rax], 0x20
je 0x1400052d2
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005307
mov rcx, rdi
call fcn.140005150
cmp eax, 0xffffffff
jne 0x14000531a
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000668c
test al, al
je 0x14000531a
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000531a
test sil, sil
je 0x140005316
mov edx, ebp
mov rcx, rdi
call fcn.140005358
xor eax, eax
jmp 0x140005335
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005330
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140005335
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005358
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x1400053bf
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000668c
test al, al
je 0x1400053bf
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005cf8
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140005da9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005dc5
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.14000668c
test al, al
je 0x140005d82
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005dc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140005d9c
cmp eax, 0x13
je 0x140005d9c
xor al, al
jmp 0x140005d9e
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x140005e5a
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140005dc5
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140005d9e
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140008cbc
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.140006a6c
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.140008f74
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140008f74
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140008f74
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x1280
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140005f80
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x14003c6f0], bl
jne 0x140005fe5
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140005fd4
jne 0x140005fd6
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140005fd6
call fcn.140006008
test al, al
jne 0x140005fd6
mov bl, 1
mov byte [0x14003c6f1], bl
mov byte [0x14003c6f0], 1
jmp 0x140005feb
mov bl, byte [0x14003c6f1]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x150
pop rbx
ret
Function at 0x1400063e8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov bpl, r8b
lea rcx, [rsp + 0x58]
mov rsi, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor r14d, r14d
lea r8, [rsp + 0x40]
xor ecx, ecx
mov word [rbx], r14w
mov dil, r14b
lea edx, [r14 + 0x1a]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x140006488
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140006488
cmp word [rbx], r14w
je 0x140006488
mov rdx, rsi
mov rcx, rbx
call fcn.140006364
mov r8, rsi
lea rdx, [0x140029e00]
mov rcx, rbx
call fcn.140008c78
mov rcx, rbx
call fcn.14000513c
mov dil, al
test al, al
jne 0x140006488
test bpl, bpl
je 0x140006488
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140005280
test eax, eax
sete dil
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140029578]
mov rbx, qword [rsp + 0x48]
mov al, dil
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400065b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
lea rax, [r11 - 0x28]
mov bpl, r8b
mov word [rcx], r14w
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov rbx, rcx
lea rdx, str.SoftwareWinRARPaths
lea r9d, [r14 + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000663a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.AppData
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
cmp word [rbx], r14w
je 0x14000664e
mov rcx, rbx
call fcn.14000513c
test al, al
jne 0x140006676
mov r8b, bpl
mov rdx, rdi
mov rcx, rbx
call fcn.1400063e8
test al, al
jne 0x140006676
mov r8d, esi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140006a34
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000668c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14000683f
call fcn.140006860
mov rcx, rbx
call fcn.140017978
mov rcx, rbx
mov rbp, rax
call fcn.140006890
test al, al
je 0x140006774
mov rcx, rbx
call fcn.140006860
test al, al
je 0x140006728
lea rax, [rbp + 4]
cmp rdi, rax
jbe 0x14000683f
mov r8, rdi
lea rdx, [0x14002abf8]
mov rcx, rsi
call fcn.140008cbc
mov rdx, rbx
mov r8, rdi
mov rcx, rsi
call fcn.140008c78
mov al, 1
jmp 0x140006841
cmp word [rbx], 0x5c
jne 0x14000683f
cmp word [rbx + 2], 0x5c
jne 0x14000683f
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000683f
mov r8, rdi
lea rdx, [0x14002abf8]
mov rcx, rsi
call fcn.140008cbc
mov r8, rdi
lea rdx, [0x14002ac08]
mov rcx, rsi
call fcn.140008c78
lea rdx, [rbx + 2]
jmp 0x140006716
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x14000683f
cmp word [rbx], 0x5c
je 0x140006809
cmp word [rbx], 0x2f
je 0x140006809
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.140006364
lea rcx, [rsp + 0x20]
call fcn.140017978
lea rcx, [rax + 4]
add rcx, rbp
cmp rdi, rcx
jbe 0x14000683f
mov r8, rdi
lea rdx, [0x14002abf8]
mov rcx, rsi
call fcn.140008cbc
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140008c78
cmp word [rbx], 0x2e
jne 0x140006713
cmp word [rbx + 2], 0x5c
je 0x140006800
cmp word [rbx + 2], 0x2f
jne 0x140006713
add rbx, 4
jmp 0x140006713
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000683f
mov r8, rdi
lea rdx, [0x14002abf8]
mov rcx, rsi
call fcn.140008cbc
mov r8, rdi
mov word [rsp + 0x24], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140008c78
jmp 0x140006713
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x1030
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008248
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1f60]
mov eax, 0x2060
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, rcx
je 0x14000828e
mov rdx, rcx
mov rcx, rbx
call fcn.140008cbc
mov rcx, qword [str.LngFolder0]
mov edx, 0x31
call fcn.14000f2f8
xor r15d, r15d
test rax, rax
je 0x140008392
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [r15 + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRARGeneral
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008392
mov rcx, rdi
call fcn.140017978
mov ecx, 0x7ff
lea r9, [rsp + 0x40]
sub ecx, eax
lea rdx, str.LanguageFolder
add ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0xf50]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008387
mov r8d, 0x800
mov word [rsp + 0x50], r15w
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140006364
mov rcx, rdi
call fcn.1400069e0
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.140008c78
lea rcx, [rsp + 0x50]
call fcn.14000513c
test al, al
je 0x140008387
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140008cbc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x2060
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400083b0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
call fcn.140008598
test rdi, rdi
je 0x140008406
mov r8d, 0x800
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.140008cbc
jmp 0x140008418
mov r8d, 0x800
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.rarlng.dll
lea rcx, [rbp + 0x40]
call fcn.140006a6c
mov r8d, 0x800
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.140008248
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, 2
cmp dword [rsp + 0x30], r8d
jne 0x14000847f
cmp dword [rsp + 0x24], 5
ja 0x140008471
jne 0x14000847f
cmp word [rbp + 0x34], r8w
jb 0x14000847f
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140008489
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x14003c610], rax
setne cl
mov byte [r14], cl
test cl, cl
mov rax, qword [0x14003c610]
cmove rax, rsi
mov qword [0x14003c618], rsi
mov qword [0x14003c610], rax
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.14000ca30
mov rsi, qword [rsp + 0x1178]
add rsp, 0x1150
pop r14
pop rdi
pop rbp
ret
Function at 0x140008e94
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140008ed0
xor eax, eax
jmp 0x140008ef3
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006910
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x1030
pop rbx
ret

Function at 0x140009f1c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140006274
test eax, eax
jne 0x140009f45
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140009f60
and dword [0x140041860], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140009fec
cmp dword [0x140041860], 0
jne 0x140009f45
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009fec
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor r14d, r14d
mov rbx, rdx
mov rdi, rcx
cmp word [rdx], r14w
je 0x14000a0ed
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a0ed
mov esi, r14d
xor edx, edx
jmp 0x14000a08d
lea rax, [rsp + 0x60]
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0xf0]
call fcn.140003e04
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call fcn.140009fec
inc esi
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000a055
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000a0d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14000a0ed
inc dword [0x140041860]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret