joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cb9d8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cba0a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cbab4
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cba67
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbaa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cba9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbad8
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
int3

Function at 0x1400cbae0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cbb12
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cbbbc
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cbb6f
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbbab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbba6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbbe0
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
int3
Function at 0x1400cc064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cc096
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400cc139
xor esi, esi
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cc0ec
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cc128
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc123
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc15c
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
int3

Function at 0x1400cc164
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
lea rdx, [rbp - 0x28]
call fcn.1400e1f54
mov qword [rbp - 0x40], rdi
cmp qword [rbp - 0x18], rdi
jne 0x1400cc1b9
mov ecx, edi
jmp 0x1400cc1c7
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400cc1f3
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400cc1f3
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
jmp 0x1400cc1f6
mov rbx, rdi
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400cc232
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc22d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc263
call fcn.1401af9bc
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
int3
Function at 0x1400cca74
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15d, r8d
mov r14b, dl
mov rdi, rcx
call fcn.1400e1a6c
cmp ax, 0x2e
je 0x1400ccad2
cmp ax, 0x20
je 0x1400ccad2
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400ccabc
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x1400ccb7d
jmp 0x1400ccad6
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400cc064
cmp eax, 0xffffffff
jne 0x1400ccb91
mov qword [rbp - 0x30], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], bx
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400e22e4
test al, al
je 0x1400ccb2c
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ccb68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ccb63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ccbcc
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
test esi, esi
je 0x1400ccb91
test r14b, r14b
je 0x1400ccb8d
mov edx, r15d
mov rcx, rdi
call fcn.1400cd2b8
xor eax, eax
jmp 0x1400ccbac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ccba7
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x1400ccbac
mov eax, 2
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
int3
Function at 0x1400cce8c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400ccebf
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400ccec9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x1400ccff6
mov qword [rbp - 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x40], xmm1
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400e22e4
test al, al
je 0x1400ccf59
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400ccf59
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
mov ebx, 0x1000
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400ccf9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x1400ccf95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd020
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ccfe4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x1400ccfdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd01a
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov al, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
int3
int3
Function at 0x1400cd2b8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cd2ea
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
test eax, eax
setne dil
test eax, eax
jne 0x1400cd399
mov qword [rbp - 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cd34b
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cd387
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cd382
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd3bd
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
int3
Function at 0x1400dd374
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov esi, dword [rsp + 0x70]
xor r11d, r11d
mov eax, r9d
mov ebp, r8d
mov ecx, r11d
mov r10d, 0x400
lea ebx, [r11 + 1]
cmp esi, ebx
jl 0x1400dd481
lea eax, [rsi + rsi]
mov r15d, ebx
sub ebp, eax
mov r12d, 4
mov dword [rsp + 0xc], r10d
mov r8d, r11d
mov dword [rsp], ebx
mov dword [rsp + 8], ecx
mov edi, ebp
mov dword [rsp + 4], r10d
mov r9, rdx
lea r11d, [r12 + 4]
cmp edi, r11d
mov eax, edi
mov rsi, r9
cmovg eax, r11d
movsxd r14, eax
add r14, r9
cmp r9, r14
jae 0x1400dd42c
lea r13, [r9 + r15]
mov dl, byte [r13]
mov al, byte [r15 + r13]
sub al, dl
sub dl, byte [rsi]
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 rsi
add r8d, ecx
inc r13
cmp rsi, r14
jb 0x1400dd3fb
add r9, 0x40
sub edi, 0x40
sub r12, 1
jne 0x1400dd3e0
mov esi, dword [rsp + 0x70]
xor r11d, r11d
cmp r8d, r10d
jge 0x1400dd450
mov ecx, ebx
mov r10d, r8d
cmp r8d, 0x10
jl 0x1400dd47d
mov ecx, dword [rsp]
inc ebx
mov rdx, qword [rsp + 0x58]
inc r15
cmp r8d, dword [rsp + 4]
mov r10d, r8d
cmovge ecx, dword [rsp + 8]
cmp r8d, dword [rsp + 0xc]
cmovge r10d, dword [rsp + 0xc]
cmp ebx, esi
jle 0x1400dd3bc
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, ecx
mov eax, r11d
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e1888
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 0x1400e193c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14000a448
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140012fc0
test ebx, ebx
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400e193a
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e1926
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e1947
call fcn.1401af9bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
int3
Function at 0x1400e1ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dil, dl
mov rbx, rcx
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400e2028
mov rax, qword [rcx]
xor esi, esi
mov qword [rcx + 0x10], rsi
mov word [rax], si
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.SoftwareWinRARPaths
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e2133
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
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 0x1400e2133
mov edx, dword [rbp - 0x40]
shr rdx, 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
lea rcx, [rbp - 0x30]
call fcn.14000a448
nop
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x30]
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]
mov rdx, qword [rbp - 0x30]
mov rcx, rbx
call fcn.140012fc0
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400e2133
mov rax, qword [rbp - 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e2122
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e21bd
call fcn.1401af9bc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
cmp qword [rbx + 0x10], rsi
je 0x1400e2145
mov rcx, rbx
call fcn.1400cbff4
test al, al
jne 0x1400e219b
mov dl, dil
mov rcx, rbx
call fcn.1400e168c
test al, al
jne 0x1400e219b
lea rcx, [rbp - 0x30]
call fcn.1400e1a88
mov rdi, rax
cmp rbx, rax
je 0x1400e218a
mov rcx, rbx
call fcn.140006b94
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
lea rcx, [rbp - 0x30]
call fcn.140006b94
mov rcx, rbx
int3
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
int3

Function at 0x1400e3b64
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400e3b72
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400f6cbc
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 [0x140231ec8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
cmp rdx, rcx
je 0x1400f6cf4
mov rdx, rcx
mov rcx, rbx
call fcn.140004958
mov edx, 0x31
mov rcx, qword [str.LngFolder0]
call fcn.1401b2d40
xor esi, esi
test rax, rax
je 0x1400f6f07
lea rax, [rbp - 9]
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 0x1400f6f07
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 - 9]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f6efd
mov eax, dword [rbp - 0x29]
mov edx, 0x10000
cmp dword [rbp - 0x29], edx
cmovb edx, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rsi
lea rcx, [rbp - 0x21]
call fcn.14000a448
nop
mov rax, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x21]
sub rax, rcx
sar rax, 1
add eax, eax
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LanguageFolder
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f6eb5
mov word [rbp - 0x25], si
mov rdx, qword [rbp - 0x19]
cmp rdx, qword [rbp - 0x11]
je 0x1400f6de5
mov word [rdx], si
add qword [rbp - 0x19], 2
jmp 0x1400f6df2
lea r8, [rbp - 0x25]
lea rcx, [rbp - 0x21]
call fcn.1400f6b44
mov qword [rbp - 1], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov rdx, qword [rbp - 0x21]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x1400f6e06
lea rcx, [rbp - 1]
call fcn.1400041b8
nop
lea rcx, [rbp - 1]
int3
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400f6efd
mov rdx, qword [rbp - 0x11]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f6eec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f6f26
call fcn.1401af9bc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rsi
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
int3
Function at 0x1400fde80
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400fde93
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400fdf60
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14000a448
nop
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400fdedf
mov rcx, qword [rbx]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400fdf0f
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
mov eax, eax
cmp rax, rcx
ja 0x1400fdf0f
mov rcx, rbx
call fcn.140012fc0
mov bl, 1
jmp 0x1400fdf11
xor bl, bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400fdf5e
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdf4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400fdf66
call fcn.1401af9bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov al, bl
add rsp, 0x40
pop rbx
ret
int3

Function at 0x140100104
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x140100194
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x80
pop rbp
ret
Function at 0x140100518
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140100591
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp ebx, 1
jne 0x14010059b
lea ecx, [rbx + 4]
jmp 0x1401005c4
cmp ebx, 3
jne 0x1401005a9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x1401005b5
cmp ebx, 2
jne 0x1401005bc
xor r8d, r8d
mov cl, 1
xor edx, edx
call fcn.1401af5fc
jmp 0x1401005cf
cmp ebx, 4
jne 0x1401005cf
lea ecx, [rbx + 2]
mov edx, 0x80000000
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x50
pop rbx
ret

Function at 0x1401008e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14010098a
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140100a90]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140100960
lea rdx, str.CreateThread_failed
lea rcx, [0x14023fda0]
call fcn.1400c03e8
lea rcx, [0x14023fda0]
call fcn.1400c0818
lea edx, [rsi + 2]
lea rcx, [0x14023fda0]
call fcn.1400c03e0
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x140246f30]
test edx, edx
je 0x140100980
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140100904
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret