joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002818
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140002889
call fcn.140001ca4
mov ebx, eax
jmp 0x1400029f4
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x1400028ad
call fcn.140001ca4
jmp 0x1400029e8
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400028a3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140002919
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400028f5
lea rcx, [rsp + 0x70]
call fcn.140004a70
nop
mov eax, 0x8007000e
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140141360
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r14d, eax
test eax, eax
jne 0x140002925
mov r14, rbx
jmp 0x14000293b
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x140002a12
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x14000295a
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.sdkinc_atlmfc_atlalloc.h
call fcn.14008388c
cmp r14, 0x400
jbe 0x140002977
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004b7c
mov rax, qword [rsp + 0x70]
jmp 0x140002981
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140002998
test rax, rax
jne 0x1400029a4
mov ebx, 0x8007000e
jmp 0x1400029ea
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400028a3
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003634
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002a0b
lea rcx, [rsp + 0x70]
call fcn.140004a70
nop
mov eax, ebx
jmp 0x1400028fa
mov ecx, 0x80070057
call fcn.140001c2c
int3
Function at 0x140023f0c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x140023f5e
test byte [rcx + 0x1c], 1
je 0x140023f5e
cmp byte [rcx + 0x19], 4
jb 0x140023f5e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b1c0]
mov edx, 0x1f7
call fcn.140004c54
and qword [rsp + 0x60], 0
test r14, r14
jne 0x140023f81
lea r8, str.pbExist
mov edx, 0x2e75
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008388c
test rbx, rbx
jne 0x140023f9e
lea r8, str.wszSnapshotName
mov edx, 0x2e76
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008388c
lea rdx, [rsp + 0x60]
mov byte [r14], 1
mov rcx, rbx
call fcn.140084524
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x14002410f
xor edi, edi
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140024068
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x14002404f
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140024037
test byte [rcx + 0x1c], 1
je 0x140024037
cmp byte [rcx + 0x19], 4
jb 0x140024037
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b1c0]
mov edx, 0x1fa
mov qword [rsp + 0x20], rbx
mov r9d, edi
call fcn.14000ff2c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
or rbp, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, r15d
cmp r15d, 5
jb 0x140023fc0
lea r15, [0x140170048]
jmp 0x140024100
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400240b7
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x1400240b1
test byte [rcx + 0x1c], 1
je 0x1400240b1
cmp byte [rcx + 0x19], 4
jb 0x1400240b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b1c0]
mov edx, 0x1f8
mov r9, rbx
call fcn.140005bdc
mov rcx, qword [0x140170048]
mov byte [r14], 0
jmp 0x140024116
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x140024116
test byte [rcx + 0x1c], 1
je 0x140024116
cmp byte [rcx + 0x19], 2
jb 0x140024116
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b1c0]
mov edx, 0x1f9
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140005c44
cmp rbp, 0xffffffffffffffff
je 0x14002410f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
test rbx, rbx
je 0x14002412b
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140024151
test byte [rcx + 0x1c], 1
je 0x140024151
cmp byte [rcx + 0x19], 4
jb 0x140024151
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b1c0]
mov edx, 0x1fb
call fcn.140004c54
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002cf80
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
lea r12, [0x14014b1c0]
cmp rcx, r15
je 0x14002cfe9
test byte [rcx + 0x1c], 1
je 0x14002cfe9
cmp byte [rcx + 0x19], 4
jb 0x14002cfe9
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.140004c54
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.1401071d0
mov edi, eax
test eax, eax
jns 0x14002d04b
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14002d13c
test byte [rcx + 0x1c], 1
je 0x14002d13c
cmp byte [rcx + 0x19], 2
jb 0x14002d13c
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005c44
jmp 0x14002d135
mov edi, 0x101
lea rcx, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x38], edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, qword [rbx + 0x260]
lea rcx, [rsp + 0x40]
test r8, r8
jne 0x14002d0ca
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002d0d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14002d0c3
test byte [rcx + 0x1c], 1
je 0x14002d0c3
cmp byte [rcx + 0x19], 2
jb 0x14002d0c3
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c7
movzx r9d, ax
mov r8, r12
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.140004c78
mov word [rsp + 0x40], bp
jmp 0x14002d0d2
mov rdx, rdi
call fcn.14003a4d0
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400d85f4
mov edi, eax
test eax, eax
jns 0x14002d135
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14002d13c
test byte [rcx + 0x1c], 1
je 0x14002d13c
cmp byte [rcx + 0x19], 2
jb 0x14002d13c
mov r9, qword [rbx + 0x158]
mov edx, 0x2c8
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x160]
mov qword [rsp + 0x20], rax
call fcn.140005d78
mov rcx, qword [0x140170048]
cmp qword [rsp + 0x30], rbp
je 0x14002d155
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14002d177
test byte [rcx + 0x1c], 1
je 0x14002d177
cmp byte [rcx + 0x19], 4
jb 0x14002d177
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.140004c54
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14003bc10
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14003bc63
test dword [rcx + 0x1c], 0x200
je 0x14003bc63
cmp byte [rcx + 0x19], 4
jb 0x14003bc63
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x2f
call fcn.140004c54
mov rcx, qword [0x140170048]
test rdi, rdi
jne 0x14003bc6f
mov ebx, 0x80004003
jmp 0x14003bcc2
mov rcx, rbx
call fcn.140051420
mov ebx, eax
test eax, eax
js 0x14003bcbb
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x14003bcaa
test byte [rcx + 0x1c], 1
je 0x14003bcaa
cmp byte [rcx + 0x19], 4
jb 0x14003bcaa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x8e
call fcn.140004c54
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [rdi], eax
xor ebx, ebx
jmp 0x14003bceb
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x14003bd1b
test byte [rcx + 0x1c], 1
je 0x14003bcf2
cmp byte [rcx + 0x19], 2
jb 0x14003bcf2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x30
mov r9d, ebx
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x14003bd1b
test dword [rcx + 0x1c], 0x200
je 0x14003bd1b
cmp byte [rcx + 0x19], 4
jb 0x14003bd1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x31
call fcn.140004c54
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b174
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], rax
mov rsi, r8
mov qword [r11 - 0x18], r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004b22b
cmp dword [rsi], ebx
je 0x14004b1e6
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14004b29f
test byte [rcx + 0x1c], 1
je 0x14004b29f
cmp byte [rcx + 0x19], 4
jb 0x14004b29f
mov edx, 0x213
jmp 0x14004b216
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14004b29f
test byte [rcx + 0x1c], 1
je 0x14004b29f
cmp byte [rcx + 0x19], 4
jb 0x14004b29f
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov r9, rdi
call fcn.140005bdc
jmp 0x14004b29f
cmp eax, 2
jne 0x14004b256
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14004b29f
test byte [rcx + 0x1c], 1
je 0x14004b29f
cmp byte [rcx + 0x19], 3
jb 0x14004b29f
mov edx, 0x215
jmp 0x14004b216
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14004b29f
test byte [rcx + 0x1c], 1
je 0x14004b29f
cmp byte [rcx + 0x19], 2
jb 0x14004b29f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005c44
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ec54
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140171271], 0
mov qword [0x140171278], rcx
je 0x14005ec85
lea r8, [0x140148904]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
or eax, 0xffffffff
jmp 0x14005ecae
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005f080
cmp al, 1
jne 0x14005ecaa
add rsp, 0x28
jmp 0x14005f324
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001ea4
mov ebx, eax
test eax, eax
je 0x14005f390
mov dword [0x1401715bc], eax
jmp 0x14005f4cb
mov rdx, qword [rsp + 0x50]
lea r8, [0x14014c040]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001ea4
mov ebx, eax
test eax, eax
jne 0x14005f4b3
cmp qword [rsp + 0x38], r14
jne 0x14005f3e4
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005f450
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005f42f
mov eax, 0xd
jmp 0x14005f450
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005f448
test al, 1
jne 0x14005f428
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005f44d
jmp 0x14005f428
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401715cc], r14d
test eax, eax
jne 0x14005f4a5
lea rax, [0x1401713a8]
mov dword [0x1401715cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005f5e0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005f49d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005f4b1
mov ebx, dword [0x1401715bc]
jmp 0x14005f4b9
lea rcx, [0x140171340]
call fcn.14005e754
mov ebx, eax
mov dword [0x1401715bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005f4cb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005f4dd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005ee74
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x1401716a0]
mov rsi, rcx
mov rax, qword [0x1401716a8]
mov ebx, 1
jmp 0x14005ef26
test ebx, ebx
js 0x14005f069
mov r14, qword [rdi]
test r14, r14
je 0x14005ef22
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x14005eec1
xor ebx, ebx
jmp 0x14005ef22
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x14014c388]
call qword [case.0x140005adb.0]
mov ebx, eax
test eax, eax
js 0x14005ef04
mov rdx, qword [rsp + 0x50]
lea rax, [r14 + 0x28]
mov rcx, qword [r14]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005ef1b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140005adb.0]
mov rax, qword [0x1401716a8]
add rdi, 8
cmp rdi, rax
jb 0x14005eea0
test ebx, ebx
js 0x14005f069
lea r14, str.___HRESULT__hr_____0_
jne 0x14005f04d
cmp byte [rsi + 0x60], 0
je 0x14005efeb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x14005efe4
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005f7b0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14005ef9c
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14005efe4
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005efd9
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdbc
call fcn.14008388c
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rsi + 0x58]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005f00b
mov ebx, 0x80004005
jmp 0x14005f00f
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005f069
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdc7
call fcn.14008388c
test ebx, ebx
jns 0x14005f069
mov rdi, qword [0x1401716a0]
xor eax, eax
mov rcx, qword [0x1401716a8]
jmp 0x14005f046
test eax, eax
jne 0x14005f051
mov rdx, qword [rdi]
test rdx, rdx
je 0x14005f042
cmp dword [rdx + 0x28], eax
je 0x14005f042
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x1401716a8]
add rdi, 8
cmp rdi, rcx
jb 0x14005f021
jmp 0x14005f051
mov byte [rsi + 0x60], 0
test ebx, ebx
jns 0x14005f069
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xde7
call fcn.14008388c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005f324
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140171271], 0
mov qword [0x140171278], rcx
je 0x14005ec85
lea r8, [0x140148904]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
or eax, 0xffffffff
jmp 0x14005ecae
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005f080
cmp al, 1
jne 0x14005ecaa
add rsp, 0x28
jmp 0x14005f324
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001ea4
mov ebx, eax
test eax, eax
je 0x14005f390
mov dword [0x1401715bc], eax
jmp 0x14005f4cb
mov rdx, qword [rsp + 0x50]
lea r8, [0x14014c040]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001ea4
mov ebx, eax
test eax, eax
jne 0x14005f4b3
cmp qword [rsp + 0x38], r14
jne 0x14005f3e4
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005f450
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005f42f
mov eax, 0xd
jmp 0x14005f450
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005f448
test al, 1
jne 0x14005f428
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005f44d
jmp 0x14005f428
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401715cc], r14d
test eax, eax
jne 0x14005f4a5
lea rax, [0x1401713a8]
mov dword [0x1401715cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005f5e0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005f49d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005f4b1
mov ebx, dword [0x1401715bc]
jmp 0x14005f4b9
lea rcx, [0x140171340]
call fcn.14005e754
mov ebx, eax
mov dword [0x1401715bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005f4cb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005f4dd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005f5ec
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov r14b, dl
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14005f661
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [0x1401713a8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14005f64a
mov rcx, rax
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x14005f661
mov eax, 0x80004005
jmp 0x14005f785
mov edx, 0x67
lea rax, str.APPID
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea rbx, [0x14014c040]
lea r9, [rbp - 0x28]
mov qword [rbp - 0x20], rbx
lea r8d, [rdx - 0x66]
movdqu xmmword [rbp - 0x18], xmm0
call fcn.140003f18
test eax, eax
js 0x14005f785
and qword [rbp - 0x40], 0
lea r8, str.AppID
and qword [rbp - 0x38], 0
lea rcx, [rbp - 0x40]
and qword [rbp - 0x30], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001ea4
test eax, eax
je 0x14005f6d7
mov ecx, eax
call fcn.140001cc8
mov ebx, eax
jmp 0x14005f772
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
and qword [rbp - 0x28], 0
mov r8, rbx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
call fcn.140001df0
mov rdi, qword [rbp - 0x28]
test eax, eax
je 0x14005f709
mov ecx, eax
call fcn.140001cc8
mov ebx, eax
jmp 0x14005f764
test rdi, rdi
jne 0x14005f726
lea r8, str.m_hKey___0
mov edx, 0x150c
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x14005f762
lea r8, [0x1401713a8]
lea rdx, str.LocalService
lea rcx, [rbp - 0x28]
call fcn.140001f60
call fcn.14005f820
test eax, eax
jne 0x14005f762
mov ebx, 0x80004005
jmp 0x14005f764
xor ebx, ebx
test rdi, rdi
je 0x14005f772
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x40], 0
je 0x14005f783
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005fb44
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.14005fc6c
test eax, eax
jne 0x14005fb64
mov eax, 0x80004005
jmp 0x14005fc58
and qword [rbp - 0x38], 0
lea r8, str.AppID
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x38]
and qword [rbp - 0x28], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001ea4
test eax, eax
je 0x14005fba2
mov ecx, eax
call fcn.140001cc8
mov edi, eax
jmp 0x14005fc45
mov rdx, qword [rbp - 0x38]
lea rdi, [0x14014c040]
and qword [rbp - 0x50], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x48], 0
mov r8, rdi
and qword [rbp - 0x40], 0
mov r9d, 0x20006
call fcn.140001ea4
test eax, eax
je 0x14005fbdb
mov ecx, eax
call fcn.140001cc8
jmp 0x14005fc32
cmp qword [rbp - 0x50], 0
jne 0x14005fbfa
lea r8, str.m_hKey___0
mov edx, 0x150c
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
mov rcx, qword [rbp - 0x50]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor r8d, r8d
mov qword [rbp - 0x18], rdi
lea rax, str.APPID
xorps xmm0, xmm0
lea r9, [rbp - 0x20]
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
lea edx, [r8 + 0x67]
call fcn.140003f18
cmp qword [rbp - 0x50], 0
mov edi, eax
je 0x14005fc45
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x38], 0
je 0x14005fc56
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret