joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402890ec
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14028911c
xor eax, eax
jmp 0x1402891df
mov rbp, rbx
cmp word [rax], si
je 0x140289141
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140289128
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140289124
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14028900c
movsxd r14, eax
test eax, eax
jne 0x14028917f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140289115
mov rcx, r14
call fcn.140106370
mov rdi, rax
test rax, rax
jne 0x140289198
xor ecx, ecx
call fcn.1401f9520
jmp 0x140289174
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14028900c
test eax, eax
jne 0x1402891c9
mov rcx, rdi
call fcn.1401f9520
jmp 0x1402891d3
xor ecx, ecx
call fcn.1401f9520
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1402891fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140289283
mov rsi, rbx
cmp word [rax], bp
je 0x140289242
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14028922c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140289228
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140106370
mov rdi, rax
test rax, rax
je 0x140289270
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140255620
mov rbp, rdi
xor ecx, ecx
call fcn.1401f9520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14028b834
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402609b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14028b8be
cmp byte [rbp - 0x21], r15b
je 0x14028b8b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14028b8f4
call fcn.140282524
test eax, eax
jne 0x14028b8e0
cmp byte [rbp - 0x21], r15b
je 0x14028b8d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14028b8f4
cmp byte [rbp - 0x21], r15b
je 0x14028b8f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140265fcc
test eax, eax
jne 0x14028b994
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402609b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14028b933
cmp byte [rbp - 0x21], r15b
je 0x14028b968
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14028b968
call fcn.140282524
test eax, eax
jne 0x14028b954
cmp byte [rbp - 0x21], r15b
je 0x14028b94d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14028b968
cmp byte [rbp - 0x21], r15b
je 0x14028b965
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140265fcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14028b994
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14028b997
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14028b9a5
mov rcx, rdi
call fcn.1401f9520
cmp byte [rbp + 0x3f], r15b
je 0x14028b9b4
mov rcx, qword [rbp + 0x27]
call fcn.1401f9520
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14028bb58
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14028bba2
call fcn.140269700
mov dword [rax], 0xf
call fcn.1402696e0
mov dword [rax], ntohl
call fcn.14026b27c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140253b80
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14028bbad
lea eax, [rbx + 1]
jmp 0x14028bb8f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14028bb8d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14028bb8f
Function at 0x14028d4ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14028d502
mov al, 1
jmp 0x14028d562
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14028d513
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14028d560
mov ecx, dword [rcx + 0x18]
nop
call fcn.14026a59c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14028d560
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14028d560
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14028d560
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14028d562
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140297b90
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
rdtsc
mov r11, qword [0x140448ec0]
mov rcx, qword [0x140448ed0]
mov r9, qword [0x140448ed8]
mov r8, qword [0x140448ee0]
mov r10, qword [0x140448ee8]
mov rsi, qword [0x140448ec0]
test r11b, 1
jne 0x140297be7
cmp r11, rsi
jne 0x140297be7
shl rdx, 0x20
or rdx, rax
sub rdx, r9
cmp rdx, r10
jae 0x140297be7
imul rdx, r8
shr rdx, 0x1e
add rdx, rcx
mov rax, rdx
pop rsi
ret
pop rsi
jmp fcn.140297bed

Function at 0x140298af0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x140298b2f
test r15, r15
je 0x140298c1d
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x140298b79
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140255620
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x140298b0d
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x140298c49
lea rcx, [r12*8]
call fcn.140252388
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x140298bed
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x140298c1d
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x140298bd5
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x140298b0d
mov rcx, r14
call fcn.1402523c4
mov r15, qword [rsi + 0x10]
jmp 0x140298b0d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
call fcn.140293fc0
int3
Function at 0x140298c50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140298c92
mov r14, rbx
add r14, 0xfffffffffffffff8
je 0x140298d84
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x140298cdf
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r14, [r15 + r12]
sub r15, rbx
sub r14, r15
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140255620
mov qword [rsi + 8], r14
add qword [rsi + 0x10], r12
jmp 0x140298c6f
mov rcx, rax
sub rcx, rbx
sar rcx, 2
cmp rax, rbx
mov r12d, 1
cmovne r12, rcx
mov rax, r12
shr rax, 0x3d
jne 0x140298db0
lea rcx, [r12*8]
call fcn.140252388
lea r14, [r12*2 + 6]
and r14, 0xfffffffffffffff8
add r14, rax
mov rcx, r14
sub r15, rbx
je 0x140298d57
mov rdx, r15
sar rdx, 3
and r15, 0xfffffffffffffff8
mov rcx, r15
add rcx, r14
shl rdx, 3
xor r8d, r8d
mov r9, r14
add r9, r8
je 0x140298d84
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140298d3f
lea rdx, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
test rbx, rbx
je 0x140298c6f
mov rcx, rbx
call fcn.1402523c4
mov r14, qword [rsi + 8]
jmp 0x140298c6f
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
call fcn.140293fc0
int3
Function at 0x1402994c0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x198], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
movaps xmmword [rsp + 0x170], xmm0
mov dword [rsp + 0x190], 0
cmp byte [rcx + 0x17], 0
jns 0x140299506
mov rcx, qword [rsi]
lea r8, [rsp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1402995ae
mov rcx, rsi
call fcn.1401022c0
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14029953a
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402995df
lea rcx, str.....chromeinstallerutildelete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.140206e10
mov dil, 1
test eax, eax
jle 0x1402995c2
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x5e
mov r9d, 0xffffffff
call fcn.140110ed0
lea rcx, [rsp + 0x40]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.140294040
mov rcx, rax
mov rdx, rsi
call fcn.140111940
mov rcx, rbx
call fcn.1401113c0
jmp 0x1402995c2
mov ecx, 1
call fcn.140206de0
test al, al
jne 0x140299647
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140206de0
test al, al
je 0x1402995c0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x4a
mov r9d, 2
call fcn.1402d7130
lea rcx, [rsp + 0x40]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.140294040
mov rcx, rax
mov rdx, rsi
call fcn.140111940
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
jmp 0x14029968a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 1
call fcn.1402d7130
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140111940
lea rdx, str._does_not_exist.
mov r8d, 0x10
mov rcx, rax
call fcn.140294040
mov rcx, rdi
call fcn.1402d71b0
jmp 0x1402995c0
Function at 0x1402a0730
Capabilities:
Delete service

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rbx, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rcx, qword [rdx]
test rcx, rcx
je 0x1402a0788
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dil, 1
test eax, eax
je 0x1402a07ab
cmp qword [rsi], 0
je 0x1402a078a
call fcn.140206ee0
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsi], 0
jmp 0x1402a078a
xor edi, edi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 1
call fcn.140206de0
test al, al
jne 0x1402a07cd
cmp edi, 0x430
sete dil
jmp 0x1402a076b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x48]
mov r8d, 0x25d
mov r9d, 1
call fcn.1402d7130
lea rcx, [rsp + 0x58]
lea rdx, str.DeleteService_failed
mov r8d, 0x15
call fcn.140294040
mov r14, rax
lea r15, [rsp + 0x30]
mov rcx, rbx
mov rdx, r15
call fcn.1402a0400
cmp byte [r15 + 0x17], 0
jns 0x1402a0829
mov r15, qword [rsp + 0x30]
mov rcx, r14
mov rdx, r15
call fcn.1402d7260
cmp byte [rsp + 0x47], 0
jns 0x1402a0845
mov rcx, qword [rsp + 0x30]
call fcn.1402523c4
lea rcx, [rsp + 0x48]
call fcn.1402d71b0
jmp 0x1402a07c1

Function at 0x1402b1320
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x28]
mov qword [rdi], rdx
mov rdx, rdi
call fcn.1401eb460
lea rdx, [rsi + 0xc8]
mov r8d, dword [rdi]
mov rcx, qword [rsi + 0x90]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1402b137b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1402b13ab
mov byte [rsi + 0xe9], 1
mov eax, 1
lock xadd dword [rsi + 8], eax
cmp eax, 0x7fffffff
je 0x1402b13a8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x38
pop rdi
pop rsi
ret
int3
mov rcx, rsi
xor edx, edx
call fcn.1400d6640
jmp 0x1402b1393
Function at 0x1402b2fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rdx]
lea r12, [rdx + 8]
test rax, rax
mov rcx, r12
cmove rcx, rax
mov edx, dword [rcx + 8]
xor r8d, r8d
test edx, edx
setne r8b
lea r9, [rsi + 0x28]
xor ecx, ecx
cmp rax, 2
cmovb r9, rcx
mov dword [rsp + 0x20], edx
mov edx, dword [r9 + 8]
mov dword [rsp + 0x24], edx
test edx, edx
mov edx, 2
cmove rdx, r8
lea r8, [rsi + 0x48]
cmp rax, 3
cmovb r8, rcx
mov r8d, dword [r8 + 8]
test r8d, r8d
mov r9d, 3
cmove r9, rdx
lea rdx, [rsi + 0x68]
cmp rax, 4
cmovb rdx, rcx
mov dword [rsp + 0x28], r8d
mov edx, dword [rdx + 8]
mov dword [rsp + 0x2c], edx
test edx, edx
mov edx, 4
cmove rdx, r9
lea r8, [rsi + 0x88]
cmp rax, 5
cmovb r8, rcx
mov r8d, dword [r8 + 8]
test r8d, r8d
mov r9d, 5
cmove r9, rdx
lea rdx, [rsi + 0xa8]
cmp rax, 6
cmovb rdx, rcx
mov dword [rsp + 0x30], r8d
mov edx, dword [rdx + 8]
mov dword [rsp + 0x34], edx
test edx, edx
mov edx, 6
cmove rdx, r9
lea r8, [rsi + 0xc8]
cmp rax, 7
cmovb r8, rcx
mov r8d, dword [r8 + 8]
test r8d, r8d
mov r9d, 7
cmove r9, rdx
lea rdx, [rsi + 0xe8]
cmp rax, 8
cmovb rdx, rcx
mov dword [rsp + 0x38], r8d
mov edx, dword [rdx + 8]
mov dword [rsp + 0x3c], edx
test edx, edx
mov edx, 8
cmove rdx, r9
lea r8, [rsi + 0x108]
cmp rax, 9
cmovb r8, rcx
mov r8d, dword [r8 + 8]
test r8d, r8d
mov r9d, 9
cmove r9, rdx
cmp rax, 0xa
lea rax, [rsi + 0x128]
cmovb rax, rcx
mov dword [rsp + 0x40], r8d
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
test eax, eax
mov ebx, 0xa
cmove rbx, r9
mov r15, qword [rdi]
lea r13, [rdi + 8]
test r15, r15
cmovne r15, r13
mov rcx, r15
mov rdx, rbx
call fcn.1402b2730
mov r14d, eax
test al, al
je 0x1402b3162
test rbx, rbx
je 0x1402b3162
mov ebp, 1
mov edx, dword [rsp + rbp*4 + 0x1c]
mov rcx, r15
call fcn.1402b2730
mov r14d, eax
test al, al
je 0x1402b3162
lea rax, [rbp + 1]
cmp rbp, rbx
mov rbp, rax
jb 0x1402b3143
test r14b, r14b
je 0x1402b31b1
test rbx, rbx
je 0x1402b31b1
xor ebp, ebp
xor r14d, r14d
mov rcx, r13
cmp qword [rdi], rbp
ja 0x1402b317b
xor ecx, ecx
mov r15, r12
cmp qword [rsi], rbp
ja 0x1402b3186
xor r15d, r15d
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
call fcn.1402b2470
test al, al
je 0x1402b31b1
mov rcx, r15
call fcn.1402b1ea0
inc rbp
add r12, 0x20
add r13, 0x20
mov r14b, 1
cmp rbp, rbx
jb 0x1402b316e
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140253b80
mov eax, r14d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402ceb20
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rax], 0
mov r9d, 0x20019
or r9d, dword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1402ceb86
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x6c]
mov dword [rax], 0
mov rcx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1402ceb6c
mov ebx, 0x91
cmp dword [rsp + 0x6c], 0
jne 0x1402ceb6c
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi]
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
jmp 0x1402ceb6c

Function at 0x1402cec00
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x1402cec30
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x4c]
mov dword [r9], ntohl
lea rax, [rsp + 0x40]
mov qword [rax], 0
lea r8, [rsp + 0x3c]
mov dword [r8], 8
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x1402cec9e
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x4c]
and eax, 0xfffffff7
mov edi, 0x3f4
cmp eax, 3
jne 0x1402cec88
cmp dword [rsp + 0x3c], 8
jne 0x1402cec88
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
xor edi, edi
jmp 0x1402cec88

Function at 0x1402cecd0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret
Function at 0x1402cfdd0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1402cfe45
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1402cfe4a
mov dil, 1
test bl, bl
je 0x1402cfe2e
cmp byte [rsi + 8], 0
je 0x1402cfe9e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1402cfdfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1402cfe72
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1402cfe77
xor edi, edi
jmp 0x1402cfe2e
mov rcx, qword [rsi]
jmp 0x1402cfe5f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1402cfea3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1402cfe2e
mov rcx, qword [rsi]
jmp 0x1402cfe23
mov rcx, qword [rsi]
jmp 0x1402cfe8e
Function at 0x1402d0d70
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1403d47c0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1c0
call fcn.140206ec0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fc090
mov al, byte [rsi + 0x17]
test al, al
jns 0x1402d0dfc
cmp qword [rsi + 8], 0x103
ja 0x1402d0e1a
test al, al
jns 0x1402d0e03
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.1401fc2c0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret