joyce8/EMBER2024-capa huggingface dataset:
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.140008610
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400062d9
call fcn.1400085f4
test al, al
je 0x1400062d9
call fcn.140008604
test al, al
jne 0x1400062d9
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400071c0
nop
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140006958
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.1400143d0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

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

Disassembly:
cmp dword [0x140046994], 0
jne 0x1400072c2
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 0x140007290
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x140007287
ret

Function at 0x1400072c4
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
call fcn.140007274
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 0x1400072e9
add rcx, 4
sub r8, 1
jne 0x1400072da
add rsp, 0x28
ret

Function at 0x140007a00
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140007a37
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140007a23
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140032580]
cmp byte [rbx + 0x21], 0
je 0x140007a37
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140008728
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140007a40
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 0x140007a7c
mov al, 1
jmp 0x140007bfe
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140007a99
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 0x140007af8
mov rbx, rdi
test r14, r14
je 0x140007b1d
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 0x140007b14
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rsp + 0x38]
jb 0x140007aad
jmp 0x140007b14
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 0x140007bf7
cmp byte [rsi + 0x22], dil
je 0x140007bf7
cmp dword [rsi + 0x14], edi
jne 0x140007bf7
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.14000853c
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x140007b87
mov rcx, r12
sub rcx, r14
mov r8d, 0xffffffff
cmp rcx, r8
ja 0x140007b87
lea rax, [r14 + r12]
cmp rax, r8
jbe 0x140007b87
lea rdx, [rsi + 0x40]
call fcn.1400073c0
call fcn.1400023fc
xor edi, edi
test al, al
je 0x140007bdb
mov ecx, dword [rsp + 0x30]
cmp rcx, r14
mov rdx, qword [rsp + 0x38]
jae 0x140007a99
test ecx, ecx
je 0x140007a99
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 0x140007a94
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.1400143d0
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 0x140007db0
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 0x140007de2
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 0x140007e5f
mov rcx, rbx
call fcn.140008124
test al, al
je 0x140007e25
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140007e25
mov rdx, rbp
mov rcx, rbx
call fcn.140007db0
jmp 0x140007e63
cmp dword [rbx + 0x14], 1
jne 0x140007e3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140007e3a
xor eax, eax
jmp 0x140007e63
cmp dword [rbx + 0x14], 0
jne 0x140007e5a
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140007e5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140007e5a
mov r8d, edi
jmp 0x140007e18
or eax, 0xffffffff
jmp 0x140007e63
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 0x14000844c
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.14000a2c8
cmp ax, 0x2e
je 0x14000849b
cmp ax, 0x20
je 0x14000849b
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 0x1400084ec
jmp 0x14000849f
xor ebx, ebx
mov edi, ebx
mov rcx, rsi
call fcn.1400085e0
test al, al
jne 0x1400084f0
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a7ac
test al, al
je 0x1400084de
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 0x1400084f0
xor eax, eax
jmp 0x14000850b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140008506
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000850b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143d0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000853c
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.14000a460
xor ebx, ebx
mov qword [rbp - 0x40], rbx
lea rcx, [rbp - 0x28]
call fcn.14000694c
test al, al
je 0x140008587
mov eax, ebx
jmp 0x140008590
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 0x1400085bd
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400085bd
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.1400143d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x140008610
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 0x14000867c
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x140008672
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.1400143d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140008698
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 0x14000870d
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x140008703
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.1400143d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008728
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 0x140008799
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x14000878f
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.1400143d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400087b4
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 0x140008825
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x14000881b
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.1400143d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140009b10
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 0x140009bd9
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 0x140009bfa
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a7ac
test al, al
je 0x140009ba5
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 0x140009bfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140009bcf
cmp eax, 0x13
je 0x140009bcf
xor al, al
jmp 0x140009bd1
mov al, 1
mov byte [rdi + 0x64], al
jmp 0x140009c8c
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009bfa
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140009bd1
mov rdx, rsi
mov rcx, rdi
call fcn.140007078
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a2e8
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.14000ec64
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14000ec64
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14000ec64
and dword [rdi + 0x60], 0
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400143d0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009fd8
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 [0x14004aa05], bl
jne 0x14000a03d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000a02c
jne 0x14000a02e
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000a02e
call fcn.140009d7c
test al, al
jne 0x14000a02e
mov bl, 1
mov byte [0x14004aa04], bl
mov byte [0x14004aa05], 1
jmp 0x14000a043
mov bl, byte [0x14004aa04]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400143d0
add rsp, 0x150
pop rbx
ret

Function at 0x14000a4f4
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.140007048
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 0x14000a566
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.14000a58c
test al, al
je 0x14000a566
mov rcx, rbx
call fcn.14000694c
test al, al
jne 0x14000a566
call fcn.14000a3a8
lea rdx, [0x14003b400]
mov rcx, rbx
call fcn.140006a14
mov rcx, rbx
call fcn.1400085e0
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 0x14000a5f4
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.140007048
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 0x14000a6d5
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 0x14000a6d5
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.14000694c
test al, al
jne 0x14000a6ea
call fcn.1400085e0
test al, al
jne 0x14000a71d
mov rcx, rbx
call fcn.14000a4f4
test al, al
jne 0x14000a71d
lea rcx, [rbp - 0x30]
call fcn.14000aa48
nop
mov rdx, rax
mov rcx, rbx
call fcn.140006a24
nop
lea rcx, [rbp - 0x30]
call fcn.140002050
mov rcx, rbx
call fcn.14000a4ac
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400143d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14000ab44
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 0x14000ab60
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 0x14000abcf
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 0x14000d818
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.14000d920
lea rdx, str.rarlng.dll
lea rcx, [rsp + 0x40]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000ab00
nop
lea rcx, [rsp + 0x40]
call fcn.140002050
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14000d954
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 0x14000d8c1
cmp dword [rsp + 0x64], 5
jbe 0x14000d8c1
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov r8d, 0x40
jmp 0x14000d8cb
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.1400143d0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rbp
ret
Function at 0x14000d954
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.140001520
mov rdx, rax
mov rcx, rdi
call fcn.140001520
cmp rdx, rax
je 0x14000d99f
mov rdx, rdi
mov rcx, rbx
call fcn.140007078
mov edx, 0x31
lea rcx, str.LngFolder0
call fcn.140017168
xor esi, esi
test rax, rax
je 0x14000dafa
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.SoftwareWinRARGeneral
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000dafa
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LanguageFolder
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000daf0
mov eax, dword [rbp - 0x29]
mov edx, 0x10000
cmp dword [rbp - 0x29], edx
cmovb edx, eax
lea rcx, [rbp - 0x19]
call fcn.140001ebc
nop
lea rcx, [rbp - 0x19]
call fcn.140001bd8
add eax, eax
mov dword [rbp - 0x29], eax
lea rcx, [rbp - 0x19]
call fcn.140001bd0
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LanguageFolder
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000dae7
mov word [rbp - 0x25], si
lea rdx, [rbp - 0x25]
lea rcx, [rbp - 0x19]
call fcn.14000dbc0
lea rcx, [rbp - 0x19]
call fcn.140001bd0
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140001b9c
nop
lea rcx, [rbp - 1]
call fcn.14000e434
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.14000a23c
nop
lea r8, [rbp - 1]
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000a3d4
nop
lea rcx, [rbp + 0x1f]
call fcn.140002050
lea rcx, [rbp - 1]
call fcn.1400085e0
test al, al
je 0x14000dadd
lea rdx, [rbp - 1]
mov rcx, rbx
call fcn.140007078
nop
lea rcx, [rbp - 1]
call fcn.140002050
nop
lea rcx, [rbp - 0x19]
call fcn.140001be4
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400143d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000e434
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
test eax, eax
je 0x14000e4ca
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001ebc
nop
lea rcx, [rsp + 0x20]
call fcn.140001bd8
mov r8, rax
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rdi
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, eax
test eax, eax
je 0x14000e4be
lea rcx, [rsp + 0x20]
call fcn.140001bd8
cmp rdx, rax
ja 0x14000e4be
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rdi
call fcn.1400011f8
mov bl, 1
lea rcx, [rsp + 0x20]
call fcn.140001be4
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000eaf8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rbp - 0x29]
call fcn.140001ebc
nop
lea rcx, [rbp - 0x29]
call fcn.140001bd8
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140001bd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
test eax, eax
je 0x14000ebc4
lea rcx, [rbp - 0x11]
call fcn.1400024c0
nop
mov rdx, rdi
lea rcx, [rbp + 0x2f]
call fcn.140001b9c
nop
lea rcx, [rbp - 0x29]
call fcn.140001bd0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140001b9c
nop
lea r8, [rbp - 0x11]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.14000a3d4
nop
lea rcx, [rbp + 0xf]
call fcn.140002050
nop
lea rcx, [rbp + 0x2f]
call fcn.140002050
lea rcx, [rbp - 0x11]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rbp - 0x11]
call fcn.140002050
nop
lea rcx, [rbp - 0x29]
call fcn.140001be4
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400143d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140010370
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.140010388

Function at 0x140010388
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r9
mov qword [rax - 0x28], r9
mov r9, r8
mov rbp, r8
mov r8, rdx
mov rbx, rdx
mov rdx, rcx
mov rdi, rcx
call fcn.14000fb1c
test al, al
je 0x1400103c2
xor eax, eax
jmp 0x14001042b
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140010dc4
mov rdi, rax
test rax, rax
je 0x140010425
mov rcx, rsi
call fcn.140007014
lea r8d, [rax*2 + 2]
call fcn.1400018c0
mov rcx, rbp
mov rdx, rax
call fcn.1400018c0
mov dword [rsp + 0x28], r8d
mov r9d, 1
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140010f30
jmp 0x140010429
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140010440
Capabilities:
Set registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.140010458