joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400213d0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
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 0x140021458
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031c24
test al, al
je 0x140021458
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140031c24
test al, al
je 0x140021458
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.140053930
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140021480
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
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 0x1400214de
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031c24
test al, al
je 0x1400214de
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.140053930
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140021504
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x140021562
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031c24
test al, al
je 0x140021562
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140053930
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140021c14
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
jbe 0x140021c67
mov qword [rcx + 0x20], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400540d0
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x140021c69
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140022024
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.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
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 0x1400220b6
mov rcx, rbx
call fcn.1400212c4
cmp eax, 0xffffffff
jne 0x140022098
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140031c24
test al, al
je 0x140022098
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400220b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400220af
cmp eax, 3
je 0x1400220af
mov eax, 1
jmp 0x1400220c7
mov eax, 2
jmp 0x1400220c7
test dil, dil
je 0x1400220c5
mov edx, esi
mov rcx, rbx
call fcn.140021340
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140053930
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140022f78
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.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
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 0x14002302c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140023056
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140031c24
test al, al
je 0x140023003
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140023056
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14002301f
cmp eax, 3
je 0x14002301f
cmp eax, 0x12
je 0x14002301f
mov eax, 1
jmp 0x140023021
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x1400230ec
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002304c
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x1400230ec
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140044cfc
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140030c04
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.140045fb4
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140045fb4
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140045fb4
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.140053930
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret
Function at 0x140028310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xe8]
mov bl, dl
xor edx, edx
mov r8d, 0x4000
call fcn.1400540d0
xor r11d, r11d
cmp bl, r11b
je 0x14002841a
cmp byte [rdi + 0x6169], r11b
jne 0x14002841a
mov eax, dword [rdi + 0x110]
mov ecx, dword [rdi + 0x6164]
shr eax, 2
cmp ecx, eax
ja 0x14002841a
mov r10d, r11d
cmp ecx, r11d
jbe 0x14002845b
mov ebx, 0x3ffff
mov rcx, qword [rdi + 0xe0]
mov r9d, r10d
inc r10d
movzx eax, byte [rcx + r9 + 1]
movzx r8d, byte [rcx + r9]
imul r8d, r8d, 0x2773
xor r8d, eax
movzx eax, byte [rcx + r9 + 2]
imul r8d, r8d, 0x2773
xor r8d, eax
mov rax, qword [rdi + 0xf0]
mov ecx, r8d
and rcx, rbx
imul r8d, r8d, 0x2773
mov word [rax + rcx*2], r11w
mov rax, qword [rdi + 0xe0]
movzx edx, byte [rax + r9 + 3]
mov rax, qword [rdi + 0xf8]
xor edx, r8d
mov ecx, edx
and rcx, rbx
imul edx, edx, 0x2773
mov dword [rax + rcx*4], r11d
mov rax, qword [rdi + 0xe0]
movzx ecx, byte [rax + r9 + 4]
mov eax, edx
xor rcx, rax
mov eax, dword [rdi + 0x114]
and rcx, rax
mov rax, qword [rdi + 0x100]
mov dword [rax + rcx*4], r11d
cmp r10d, dword [rdi + 0x6164]
jb 0x140028374
jmp 0x14002845b
mov rcx, qword [rdi + 0xf0]
xor edx, edx
mov r8d, 0x80000
call fcn.1400540d0
mov rcx, qword [rdi + 0xf8]
xor edx, edx
mov r8d, 0x100000
call fcn.1400540d0
mov r8d, dword [rdi + 0x110]
mov rcx, qword [rdi + 0x100]
shl r8, 2
xor edx, edx
call fcn.1400540d0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002a4a8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
mov eax, r9d
lea esi, [r11 + 1]
mov r12d, r8d
mov r10d, 0x400
cmp ebp, esi
mov r14d, r11d
mov r9d, esi
jl 0x14002a58c
lea eax, [rbp + rbp]
lea ecx, [rsi + 7]
sub r12d, eax
mov ebx, r11d
mov edi, r12d
mov r8, rdx
mov r15d, 4
cmp edi, ecx
mov eax, edi
mov r11, r8
cmovg eax, ecx
movsxd r13, eax
add r13, r8
cmp r8, r13
jae 0x14002a550
lea rbp, [r8 + rsi]
mov dl, byte [rbp]
mov al, byte [rsi + rbp]
sub al, dl
sub dl, byte [r11]
movsx ecx, al
movsx eax, dl
sub eax, ecx
mov ecx, 0x20
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
inc r11
inc rbp
add ebx, ecx
cmp r11, r13
jb 0x14002a51c
mov ecx, 8
add r8, 0x40
sub edi, 0x40
sub r15, 1
jne 0x14002a503
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
cmp ebx, r10d
jge 0x14002a574
cmp ebx, 0x10
mov r14d, r9d
mov r10d, ebx
jl 0x14002a588
mov rdx, qword [rsp + 0x40]
inc r9d
inc rsi
cmp r9d, ebp
jle 0x14002a4f4
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, r14d
mov eax, r11d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14002b014
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, 0xa0
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 8], 0
and dword [rsp + 4], 0
and dword [rsp], 0
lea ebp, [r8 - 0x78]
xor r9d, r9d
lea rbx, [rdx + 2]
lea r8, [rsp]
cmp r9d, ebp
jge 0x14002b0e3
mov r10d, dword [r8]
mov ecx, ebp
mov eax, 0x88888889
sub ecx, r9d
lea r12, [rsp + 0x10]
mov rdi, rbx
dec ecx
mul ecx
shr edx, 0xa
lea esi, [rdx + 1]
xor edx, edx
mov r11, rdi
mov cl, byte [r11 - 1]
mov al, byte [r11 - 2]
add rdx, 3
sub al, cl
mov byte [rsp + rdx + 0xe], cl
mov byte [rsp + rdx + 0xd], al
mov al, byte [r11]
add r11, 3
sub al, cl
cmp rdx, 0x78
mov byte [rsp + rdx + 0xf], al
jl 0x14002b088
mov ecx, 3
mov al, byte [rsp + rcx + 0x10]
inc rcx
sub al, byte [r12 + rcx - 4]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add r10d, eax
cmp rcx, 0x78
jl 0x14002b0b6
add rdi, 0x780
sub rsi, 1
jne 0x14002b083
mov dword [r8], r10d
inc r9d
add r8, 4
inc rbx
cmp r9d, 2
jle 0x14002b05f
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
cmp eax, ecx
ja 0x14002b10c
cmp eax, dword [rsp + 8]
ja 0x14002b10c
xor eax, eax
jmp 0x14002b116
cmp dword [rsp + 8], ecx
sbb eax, eax
neg eax
inc eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140053930
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140030d5c
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 0x140030df2
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebp
je 0x140030df2
cmp word [rbx], bp
je 0x140030df2
mov rdx, rdi
mov rcx, rbx
call fcn.1400305d0
lea rdx, [0x140066570]
mov r8, rdi
mov rcx, rbx
call fcn.140044d38
mov rcx, rbx
call fcn.1400219dc
cmp al, bpl
jne 0x140030e08
cmp sil, bpl
je 0x140030ded
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140022024
cmp eax, ebp
sete al
cmp al, bpl
jne 0x140030e08
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140030d28
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 0x140030e28
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 0x140030ea3
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 0x140030eb5
mov rcx, rbx
call fcn.1400219dc
cmp al, bpl
jne 0x140030ec3
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140030d5c
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140031c24
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.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
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 0x140031e5a
call fcn.140030928
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.140031354
cmp al, r14b
je 0x140031d47
mov rcx, rbx
call fcn.140030928
cmp al, r14b
je 0x140031cd6
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x140031e5a
lea r8d, [r14 + 4]
lea rdx, [0x140066640]
mov rcx, rsi
call fcn.1400552c4
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x140031cbd
mov al, 1
jmp 0x140031e5c
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x140031e5a
add rbx, 2
cmp word [rbx], bp
jne 0x140031e5a
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140031e5a
lea r8d, [rbp - 0x58]
lea rdx, [0x140066640]
mov rcx, rsi
call fcn.1400552c4
lea rdx, [0x140066638]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140031d1e
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140031d33
jmp 0x140031ccf
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x140031e5a
cmp eax, edi
ja 0x140031e5a
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x140031e0e
cmp eax, 0x2f
je 0x140031e0e
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.1400305d0
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 0x140031e5a
lea r8d, [rbp - 0x58]
lea rdx, [0x140066640]
mov rcx, rsi
call fcn.1400552c4
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 0x140031dd2
cmp word [rbx], 0x2e
jne 0x140031dfb
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140031df7
cmp eax, 0x2f
jne 0x140031dfb
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140044d38
jmp 0x140031ccf
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140031e5a
lea rdx, [0x140066640]
mov r8d, 4
mov rcx, rsi
call fcn.1400552c4
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400552c4
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140031e43
jmp 0x140031ccf
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140053930
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003529c
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.140053b10
xor dil, dil
cmp ebp, 1
jbe 0x1400352fb
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x1400352ef
mov edx, 8
mov rcx, r12
call fcn.140023b5c
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x14003536d
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.1400351b0
mov edi, eax
test eax, eax
je 0x14003536d
mov edx, 1
mov rcx, rbx
call fcn.1400351fc
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 0x1400353ed
mov edx, 1
mov rcx, rbx
call fcn.1400351fc
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 0x1400353ed
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x1400353ce
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x1400353e0
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x1400353b9
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 0x14003a9b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbx, r9d
mov r12, r8
mov rdi, rdx
mov rbp, rcx
lea rsi, [0x1400860b0]
lea r13, [0x1400858b0]
cmp ebx, dword [0x1400858ac]
je 0x14003aa3f
mov rcx, rsi
call fcn.140017a94
xor r11d, r11d
mov r9, r13
mov r8d, 0x100
movzx eax, r11b
mov rdx, qword [rsi + rax*8]
test ebx, ebx
je 0x14003aa29
mov r10d, ebx
mov rax, rdx
movzx ecx, dl
mov rdx, qword [rsi + rcx*8]
shr rax, 8
xor rdx, rax
sub r10, 1
jne 0x14003aa12
mov qword [r9], rdx
inc r11
add r9, 8
sub r8, 1
jne 0x14003aa03
mov dword [0x1400858ac], ebx
or rsi, 0xffffffffffffffff
cmp qword [rbp + 0x10078], 0
jne 0x14003aa5e
mov ecx, 0x400001
call fcn.1400537b0
mov qword [rbp + 0x10078], rax
mov r15, qword [rbp + 0x10078]
cmp rdi, r12
jae 0x14003ab78
mov r13, qword [rsp + 0x80]
mov r14d, 0x400000
cmp rsi, 0xffffffffffffffff
jne 0x14003ab78
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x20]
mov r8, r12
mov rax, qword [rcx]
sub r8, rdi
mov rdx, r15
cmp r8, r14
cmova r8, r14
call qword [rax + 8]
cmp eax, ebx
mov r14d, eax
mov dword [rsp + 0x78], eax
jl 0x14003ab78
mov r8d, ebx
mov rdx, r15
xor ecx, ecx
mov r12d, ebx
call fcn.140017b60
xor edx, edx
xor r8d, r8d
lea r9, [0x1400860b0]
lea r10, [0x1400858b0]
mov r11, rax
sub r14d, ebx
cmp r11, qword [r13 + 0x60]
je 0x14003ab23
lea rcx, [r8 + rbx]
inc edx
movzx eax, byte [rcx + r15]
xor rax, r11
movzx ecx, al
movzx eax, byte [r8 + r15]
inc r8
mov rcx, qword [r9 + rcx*8]
xor rcx, qword [r10 + rax*8]
mov rax, r11
shr rax, 8
mov r11, rcx
xor r11, rax
cmp edx, r14d
jbe 0x14003aae8
jmp 0x14003ab58
mov rcx, qword [r13 + 0x30]
mov esi, edx
mov r8, r12
add rdx, r15
call fcn.140053b10
mov r11d, dword [rbp + 0x100b0]
cmp ebx, r11d
jae 0x14003ab55
mov rax, qword [r13 + 0x30]
sub r11d, ebx
xor edx, edx
lea rcx, [r12 + rax]
mov r8d, r11d
call fcn.1400540d0
add rsi, rdi
cmp dword [rsp + 0x78], ebx
je 0x14003ab78
mov r12, qword [rsp + 0x70]
mov ecx, r14d
mov r14d, 0x400000
add rdi, rcx
cmp rdi, r12
jb 0x14003aa7c
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f2b4
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.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, rcx
je 0x14003f2f3
mov rdx, rcx
mov rcx, rbx
call fcn.140044cfc
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 0x14003f3eb
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, [0x140066f30]
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 0x14003f3e0
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.1400305d0
mov rcx, rsi
call fcn.140030a1c
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.140044d38
lea rcx, [rsp + 0x50]
call fcn.1400219dc
cmp al, r12b
je 0x14003f3e0
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.140044cfc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140053930
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003f4cc
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.1400614d0
sub rsp, rax
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14003f280
xor ebp, ebp
cmp rbx, rbp
je 0x14003f52e
lea r8, [rsp + 0x140]
sub r8, rbx
movzx eax, word [rbx]
mov word [r8 + rbx], ax
add rbx, 2
cmp ax, bp
jne 0x14003f51b
jmp 0x14003f544
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.140030c04
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.14003f2b4
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14003f5b9
cmp dword [rsp + 0x24], 5
ja 0x14003f5a3
jne 0x14003f5b9
cmp dword [rsp + 0x28], 1
jbe 0x14003f5b9
xor edx, edx
lea rcx, [rsp + 0x140]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14003f5c7
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rbp
mov qword [0x140085828], rax
setne cl
mov byte [rsi], cl
mov rax, qword [0x140085828]
cmp cl, bpl
cmove rax, rdi
mov qword [0x140085820], rdi
mov qword [0x140085828], rax
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.140053930
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