joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f4bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x14000f4fa
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000f56f
mov rcx, rbx
call fcn.14000f434
test al, al
je 0x14000f53a
cmp rdi, rbp
jbe 0x14000f53a
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14000f4bc
jmp 0x14000f573
cmp dword [rbx + 0x14], 1
jne 0x14000f54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000f54f
xor eax, eax
jmp 0x14000f573
cmp dword [rbx + 0x14], 0
jne 0x14000f56a
mov ebp, 0x8000
cmp rdi, rbp
jbe 0x14000f56a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x14000f52a
or eax, 0xffffffff
jmp 0x14000f573
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 0x14000f888
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000f80c
test al, al
je 0x14000f8b6
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [r11 + 0x18]
add rsp, 0x20
pop rbx
ret

Function at 0x14000f8ec
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.1400139a8
movzx r11d, word [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11w
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14000f944
cmp eax, 5
je 0x14000f944
xor eax, eax
jmp 0x14000f949
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x1038
ret

Function at 0x14000f964
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400133f0
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14000f9e0
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14000f9e0
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000f9e2
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x1058
ret
Function at 0x14000fa1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
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 0x14000fa75
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013a7c
test al, al
je 0x14000fa75
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.14002c170
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14000fa98
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
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 bl, bl
jne 0x14000faff
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013a7c
test al, al
je 0x14000faff
lea rcx, [rsp + 0x20]
mov edx, edi
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.14002c170
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000fb28
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000fbb0
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013a7c
test al, al
je 0x14000fbb0
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013a7c
test al, al
je 0x14000fbb0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000fbd8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000fc36
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013a7c
test al, al
je 0x14000fc36
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.14002c170
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x14000ff64
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov dil, dl
xor edx, edx
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000fff6
mov rcx, rbx
call fcn.14000fa1c
cmp eax, 0xffffffff
jne 0x14000ffd8
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140013a7c
test al, al
je 0x14000ffd8
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000fff6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ffef
cmp eax, 3
je 0x14000ffef
mov eax, 1
jmp 0x140010007
mov eax, 2
jmp 0x140010007
test dil, dil
je 0x140010005
mov edx, esi
mov rcx, rbx
call fcn.14000fa98
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140010ad8
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140010b8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140010bb6
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140013a7c
test al, al
je 0x140010b63
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140010bb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140010b7f
cmp eax, 3
je 0x140010b7f
cmp eax, 0x12
je 0x140010b7f
mov eax, 1
jmp 0x140010b81
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140010c4c
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010bac
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140010c4c
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14001e284
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14001335c
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14001f064
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14001f064
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14001f064
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.14002c170
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret
Function at 0x140013488
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x58]
mov sil, r8b
mov rdi, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor ebp, ebp
lea r8, [rsp + 0x40]
lea edx, [rbp + 0x1a]
xor ecx, ecx
mov word [rbx], bp
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebp
jne 0x14001351e
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebp
je 0x14001351e
cmp word [rbx], bp
je 0x14001351e
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
lea rdx, [0x14003c848]
mov r8, rdi
mov rcx, rbx
call fcn.14001e2c0
mov rcx, rbx
call fcn.14000ff48
cmp al, bpl
jne 0x140013534
cmp sil, bpl
je 0x140013519
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000ff64
cmp eax, ebp
sete al
cmp al, bpl
jne 0x140013534
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140013454
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013554
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
lea rax, [rsp + 0x30]
mov sil, r8b
mov rbx, rcx
mov word [rcx], bp
lea r9d, [rbp + 1]
lea rdx, str.SoftwareWinRARPaths
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x1400135cf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.AppData
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], bp
je 0x1400135e1
mov rcx, rbx
call fcn.14000ff48
cmp al, bpl
jne 0x1400135ef
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140013488
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013a7c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov r12, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140013cb2
call fcn.140013080
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.140013960
cmp al, r14b
je 0x140013b9f
mov rcx, rbx
call fcn.140013080
cmp al, r14b
je 0x140013b2e
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x140013cb2
lea r8d, [r14 + 4]
lea rdx, [0x14003c8c8]
mov rcx, rsi
call fcn.14002cc6c
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x140013b15
mov al, 1
jmp 0x140013cb4
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x140013cb2
add rbx, 2
cmp word [rbx], bp
jne 0x140013cb2
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140013cb2
lea r8d, [rbp - 0x58]
lea rdx, [0x14003c8c8]
mov rcx, rsi
call fcn.14002cc6c
lea rdx, [0x14003c8c0]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140013b76
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140013b8b
jmp 0x140013b27
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x140013cb2
cmp eax, edi
ja 0x140013cb2
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x140013c66
cmp eax, 0x2f
je 0x140013c66
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.140012e40
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx + r13 + 3]
cmp r12, rax
jbe 0x140013cb2
lea r8d, [rbp - 0x58]
lea rdx, [0x14003c8c8]
mov rcx, rsi
call fcn.14002cc6c
lea rax, [rsp + 0x20]
mov rcx, rsi
sub rcx, rax
lea rdx, [rsp + 0x20]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140013c2a
cmp word [rbx], 0x2e
jne 0x140013c53
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140013c4f
cmp eax, 0x2f
jne 0x140013c53
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.14001e2c0
jmp 0x140013b27
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140013cb2
lea rdx, [0x14003c8c8]
mov r8d, 4
mov rcx, rsi
call fcn.14002cc6c
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.14002cc6c
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140013c9b
jmp 0x140013b27
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015510
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
and dword [rcx + 4], 0
and dword [rcx], 0
mov eax, 0x8000
cmp r8d, eax
mov r12, rcx
mov rcx, qword [rcx + 0x10]
cmovb eax, r8d
mov ebp, r8d
mov rbx, r9
mov r8d, eax
mov rsi, rdx
call fcn.14002c4a0
xor dil, dil
cmp ebp, 1
jbe 0x14001556f
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x140015563
mov edx, 8
mov rcx, r12
call fcn.140010e7c
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x1400155e1
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.1400153cc
mov edi, eax
test eax, eax
je 0x1400155e1
mov edx, 1
mov rcx, rbx
call fcn.140015470
movsxd rcx, dword [rbx + 0x28]
mov rdx, rcx
inc ecx
mov dword [rbx + 0x28], ecx
imul rdx, rdx, 0x38
add rdx, qword [rbx]
lea rax, [rdx + 0xc]
mov dword [rdx], 0x28
mov dword [rax], edi
mov qword [rdx + 0x18], rax
lea rax, [rdx + 0x24]
mov qword [rdx + 0x30], rax
mov eax, 3
mov dword [rdx + 0x20], eax
mov dword [rdx + 8], eax
jmp 0x140015661
mov edx, 1
mov rcx, rbx
call fcn.140015470
movsxd rax, dword [rbx + 0x28]
xor r8d, r8d
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rcx, rcx, 0x38
add rcx, qword [rbx]
lea rax, [rcx + 0xc]
mov dword [rcx], 0x16
mov qword [rcx + 0x18], rax
lea rax, [rcx + 0x24]
mov qword [rcx + 0x30], rax
mov eax, 3
mov dword [rcx + 0x20], eax
mov dword [rcx + 8], eax
cmp dword [rbx + 0x28], r8d
jle 0x140015661
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x140015642
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x140015654
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x14001562d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140019548
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x2060
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, rcx
je 0x140019587
mov rdx, rcx
mov rcx, rbx
call fcn.14001e284
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWinRARGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
cmp eax, r12d
jne 0x14001967f
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, 0x7ff
lea r9, [rsp + 0x40]
not rcx
lea rdx, [0x14003cca8]
xor r8d, r8d
dec rcx
sub eax, ecx
mov rcx, qword [rsp + 0x38]
add eax, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x140019674
mov edi, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1050]
mov r8d, edi
mov word [rsp + 0x50], r12w
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.140012e40
mov rcx, rsi
call fcn.140013174
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.14001e2c0
lea rcx, [rsp + 0x50]
call fcn.14000ff48
cmp al, r12b
je 0x140019674
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.14001e284
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019760
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1150
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.140019514
xor ebp, ebp
cmp rbx, rbp
je 0x1400197c2
lea r8, [rsp + 0x140]
sub r8, rbx
movzx eax, word [rbx]
mov word [r8 + rbx], ax
add rbx, 2
cmp ax, bp
jne 0x1400197af
jmp 0x1400197d8
lea rdx, [rsp + 0x140]
mov r8d, 0x800
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.rarlng.dll
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.14001335c
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.140019548
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14001984d
cmp dword [rsp + 0x24], 5
ja 0x140019837
jne 0x14001984d
cmp dword [rsp + 0x28], 1
jbe 0x14001984d
xor edx, edx
lea rcx, [rsp + 0x140]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14001985b
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rbp
mov qword [0x140050338], rax
setne cl
mov byte [rsi], cl
mov rax, qword [0x140050338]
cmp cl, bpl
cmove rax, rdi
mov qword [0x140050330], rdi
mov qword [0x140050338], rax
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400198b0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movdqu xmm2, xmmword [rcx + 8]
mov r10, rcx
lea r11, [rcx + 0x18]
test r8, r8
je 0x14001992d
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
dec ecx
movdqu xmm1, xmmword [r11 + rax*8]
pxor xmm1, xmm3
test ecx, ecx
jle 0x140019903
movsxd rax, ecx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec ecx
sub rax, 0x10
aesdec xmm1, xmm0
test ecx, ecx
jg 0x1400198f0
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x140019918
pxor xmm1, xmm2
mov rax, r9
add r9, 0x10
sub r8, 1
movdqa xmm2, xmm3
movdqu xmmword [rax], xmm1
jne 0x1400198c1
movdqu xmmword [r10 + 8], xmm2
ret
Function at 0x140019934
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, dword [rcx + 4]
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x20
sub ebp, 6
call fcn.14002c4a0
xor edi, edi
xor r9d, r9d
xor edx, edx
xor r8d, r8d
movsxd rbx, ebp
lea r14d, [rdi + 4]
test ebp, ebp
jle 0x1400199cf
xor r10d, r10d
cmp edi, dword [rsi + 4]
jg 0x1400199cf
cmp rdx, rbx
jge 0x1400199ba
lea r11, [rsp + rdx*4 + 0x20]
cmp r8, r14
jge 0x1400199bd
mov eax, dword [r11]
lea rcx, [r10 + r8]
inc rdx
add r11, r14
inc r9d
inc r8
cmp rdx, rbx
mov dword [rsi + rcx*4 + 0x18], eax
jl 0x140019999
cmp r8, r14
jne 0x1400199ca
inc edi
add r10, r14
xor r9d, r9d
xor r8d, r8d
cmp rdx, rbx
jl 0x14001998a
cmp edi, dword [rsi + 4]
movsxd r11, edi
movsxd r10, r9d
jg 0x140019b2d
lea r12, [0x1400553c0]
lea r15, [0x1400554e0]
movzx ecx, byte [rsp + rbx*4 + 0x1d]
mov al, byte [rsp + 0x20]
xor al, byte [rcx + r15]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + rbx*4 + 0x1e]
mov al, byte [rax + r15]
xor byte [rsp + 0x21], al
movzx eax, byte [rsp + rbx*4 + 0x1f]
mov al, byte [rax + r15]
xor byte [rsp + 0x22], al
movzx eax, byte [rsp + rbx*4 + 0x1c]
mov al, byte [rax + r15]
xor byte [rsp + 0x23], al
mov al, byte [r12]
inc r12
xor byte [rsp + 0x20], al
cmp ebp, 8
je 0x140019a63
cmp rbx, 1
jle 0x140019adf
lea rdx, [rsp + 0x24]
lea r8, [rbx - 1]
invalid
invalid
xor ecx, ecx
mov al, byte [rdx + rcx - 4]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, r14
jl 0x140019a49
add rdx, r14
sub r8, 1
jne 0x140019a47
jmp 0x140019adf
lea rcx, [rsp + 0x24]
mov r8d, 3
mov rdx, r14
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140019a71
sub r8, 1
jne 0x140019a6e
movzx eax, byte [rsp + 0x2c]
mov al, byte [rax + r15]
xor byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x2d]
mov al, byte [rax + r15]
xor byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x2e]
mov al, byte [rax + r15]
xor byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x2f]
mov al, byte [rax + r15]
xor byte [rsp + 0x33], al
cmp rbx, 5
jle 0x140019adf
lea rcx, [rsp + 0x34]
lea r8, [rbx - 5]
mov rdx, r14
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140019acb
sub r8, 1
jne 0x140019ac8
xor edx, edx
test ebp, ebp
jle 0x140019b24
cmp edi, dword [rsi + 4]
jg 0x140019b2d
cmp rdx, rbx
jge 0x140019b12
lea r8, [rsp + rdx*4 + 0x20]
cmp r10, r14
jge 0x140019b15
mov eax, dword [r8]
lea rcx, [r10 + r11*4]
inc rdx
add r8, r14
inc r10
cmp rdx, rbx
mov dword [rsi + rcx*4 + 0x18], eax
jl 0x140019af4
cmp r10, r14
jne 0x140019b1f
inc edi
inc r11
xor r10d, r10d
cmp rdx, rbx
jl 0x140019ae5
cmp edi, dword [rsi + 4]
jle 0x1400199ec
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140019b54
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov ebx, 1
mov r11, rcx
cmp dword [rcx + 4], ebx
jle 0x140019c1c
lea r10, [rcx + 0x28]
lea r14, [0x140000000]
xor r9d, r9d
lea rbp, [rsp + r9]
lea rsi, [r10 + 2]
mov r12d, 4
movzx eax, byte [rsi + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [rsi - 1]
mov r8b, byte [rdx + r14 + 0x523c0]
lea rcx, [r9 + rax*4]
movzx eax, byte [rsi - 2]
xor r8b, byte [rcx + r14 + 0x52bc0]
lea rcx, [r9 + rax*4]
movzx eax, byte [rsi]
xor r8b, byte [rcx + r14 + 0x52fc0]
lea rcx, [r9 + rax*4]
add rsi, 4
xor r8b, byte [rcx + r14 + 0x527c0]
mov byte [rbp], r8b
add rbp, 4
sub r12, 1
jne 0x140019ba8
inc r9
cmp r9, 4
jl 0x140019b9a
movdqu xmm0, xmmword [rsp]
inc ebx
movdqu xmmword [r10], xmm0
add r10, 0x10
cmp ebx, dword [r11 + 4]
jl 0x140019b97
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.14002c170
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret