joyce8/EMBER2024-capa huggingface dataset:
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.1400043f8
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.140004354
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 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
invalid
invalid
test dword [rax + 0x1f], edx
invalid
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

Function at 0x14000a114
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea r8, [0x140029840]
mov rdi, rdx
mov rbx, rcx
call fcn.14000958c
test al, al
jne 0x14000a188
mov r9d, 0x200
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.14000a5b8
test al, al
je 0x14000a188
mov r8d, dword [0x140041864]
lea rdx, [rsp + 0x20]
mov rcx, rbx
test r8d, r8d
jne 0x14000a17f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000a188
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x14000a1ac
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.14000958c
test al, al
jne 0x14000a238
mov r9d, 0x200
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.14000a5b8
test al, al
je 0x14000a238
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a238
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000a238
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000a254
Capabilities:
Delete registry value

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.14000a1ac

Function at 0x14000a284
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r9d
lea rax, [r11 - 0x10]
mov r9, rdi
mov qword [r11 - 0x28], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009930
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x30], r9d
test al, al
je 0x14000a2c7
mov eax, r9d
jmp 0x14000a325
mov rdx, rbx
mov rcx, rsi
call fcn.14000a61c
mov dword [rsp + 0x68], 4
mov rsi, rax
test rax, rax
je 0x14000a323
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a323
cmp dword [rsp + 0x68], ebx
je 0x14000a323
mov edi, dword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x14000a284

Function at 0x14000a33c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r9d
lea rax, [r11 - 0x10]
mov r9, rdi
mov qword [r11 - 0x28], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009930
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x30], r9d
test al, al
je 0x14000a2c7
mov eax, r9d
jmp 0x14000a325
mov rdx, rbx
mov rcx, rsi
call fcn.14000a61c
mov dword [rsp + 0x68], 4
mov rsi, rax
test rax, rax
je 0x14000a323
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a323
cmp dword [rsp + 0x68], ebx
je 0x14000a323
mov edi, dword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x14000a284
Function at 0x14000a354
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x858
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbp, qword [rsp + 0x8c0]
mov rdi, r9
mov esi, dword [rsp + 0x8c8]
lea r9, [rsp + 0x40]
mov r13, r8
mov qword [rsp + 0x20], 0x400
mov r15, rdx
mov rbx, rcx
call fcn.140009d54
xor r12d, r12d
test al, al
jne 0x14000a45a
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140008cbc
cmp byte [0x140039379], r12b
sete al
test al, al
jne 0x14000a479
mov rdx, r15
mov rcx, rbx
call fcn.14000a61c
mov r15, rax
test rax, rax
je 0x14000a447
lea ecx, [rsi + rsi]
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rcx, r15
mov qword [rsp + 0x20], rdi
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r13d, r13d
mov rcx, r15
test eax, eax
mov ebx, eax
sete r12b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a447
mov ecx, dword [rsp + 0x30]
shr ecx, 1
test esi, esi
jne 0x14000a438
mov word [rdi], r13w
jmp 0x14000a455
lea eax, [rsi - 1]
cmp ecx, eax
cmovb eax, ecx
mov word [rdi + rax*2], r13w
jmp 0x14000a455
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.140008cbc
mov al, r12b
jmp 0x14000a47b
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test rax, rax
mov r8, rsi
mov rcx, rdi
cmove rax, rbp
mov rdx, rax
call fcn.140008cbc
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x858
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000a6b4
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, r9
mov qword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140009d54
test al, al
jne 0x14000a75c
cmp byte [0x140039379], al
sete al
test al, al
jne 0x14000a76f
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.140009e6c
mov rdi, rax
test rax, rax
je 0x14000a754
mov rcx, rbx
call fcn.140017978
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a758
mov ebx, dword [rsp + 0x30]
mov eax, ebx
jmp 0x14000a771
mov r8d, 1
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400094cc
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a790
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov r9d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140009dec
test al, al
je 0x14000a7bd
xor eax, eax
jmp 0x14000a80c
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140009e6c
mov rdi, rax
test rax, rax
je 0x14000a806
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a80a
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000a81c
Capabilities:
Set registry value

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

Function at 0x14000a834
Capabilities:
Set registry value

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

Function at 0x14000a84c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rdx
lea r9, [0x140029840]
mov sil, r8b
mov dword [rsp + 0x20], edi
mov r8, rcx
lea rdx, str.TempFolder
mov rbx, rcx
lea rcx, str.Paths
call fcn.14000a4a0
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov r8d, 0x800
mov word [rsp + 0x30], bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbx], bp
je 0x14000a8db
dec eax
cmp eax, 0x7fe
ja 0x14000a8d6
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140008cbc
cmp word [rbx], bp
jne 0x14000a8e2
test sil, sil
je 0x14000a8f0
jmp 0x14000a916
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a916
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000a904
cmp word [rbx], bp
jne 0x14000a916
mov r8, rdi
lea rdx, str._rartemp
mov rcx, rbx
call fcn.140008cbc
mov rdx, rdi
mov rcx, rbx
call fcn.140006364
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000ad80
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14000af38
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 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 rbx, rcx
mov esi, 0x800
mov edx, esi
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400065b8
mov r9d, esi
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006910
lea rcx, [rsp + 0x20]
call fcn.14000513c
xor edi, edi
test al, al
jne 0x14000aff5
mov r8d, esi
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x20]
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000aff5
cmp word [rsp + 0x20], di
je 0x14000aff5
mov r8d, esi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140006a6c
lea rcx, [rsp + 0x20]
call fcn.14000513c
test al, al
je 0x14000aff7
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov al, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000b01c
Capabilities:
Copy file
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.rarreg.key
call fcn.14000af38
test al, al
jne 0x14000b03c
lea rcx, str.rarreg.txt
call fcn.14000af38
lea rcx, str.winrar.ini
add rsp, 0x28
jmp fcn.14000af38
Function at 0x14000d2f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d33e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d33e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d33e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d33e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d33e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d340
xor al, al
add rsp, 0x28
ret
Function at 0x1400011e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x140001233
cmp byte [r12 + rbx - 1], 0xa
je 0x14000120e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x140007124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x140001d40
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sym._configure_narrow_argv
call sym._initialize_narrow_environment
call sym.__p___argc
mov r12d, dword [rax]
call sym.__p___argv
mov r13, qword [rax]
call sym._get_initial_narrow_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sym._set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call dbg.main
mov ecx, eax
call sym.exit
nop
nop
nop
nop
Function at 0x141420598
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1414205c1
pop rbp
sub rbp, 0x29
sub rbp, 0x1420598
jmp 0x141420621
sub rsp, 0x20
jmp 0x141420631
mov rax, 0x1420598
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x1e471b0e
xor byte [rax], dl
inc rax
dec rcx
jne 0x141420650
jmp 0x141420667
xchg edi, r12d
test dword [rdi + 0xe0e0e32], eax
invalid
Function at 0x140018a94
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400258e0], eax
call fcn.140019344
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x1400258e0], 0
jne case.default.0x140018aea
mov ecx, 1
call fcn.140019344
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
hlt
or byte [rdi - 0x658b29e8], bh
jb 0x14003f674
jb 0x14003f6b1
add eax, 0xab1ae006
mul dword [rax + riz*2 - 0x504131ee]
jnp 0x14003f688
jbe 0x14003f6be
mov ebx, dword [rcx]
jno 0x14003f6fd
mov dl, byte [rax]
invalid
invalid
mov edx, 0xfc544674
xor ebp, edi
jp 0x14003f706
invalid
scasd eax, dword [rdi]
push rdi
movsb byte [rdi], byte [rsi]
mov eax, 0x421c1a54
sub bl, cl
and edi, dword [rbx - 0x69]
invalid