joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ce950
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400ce96d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400ce9c8
test al, 7
jne 0x1400ce960
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400ce981
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ce9f2
test dh, dh
je 0x1400ce9ec
shr rdx, 0x10
test dl, dl
je 0x1400ce9e6
test dh, dh
je 0x1400ce9e0
shr rdx, 0x10
test dl, dl
je 0x1400ce9da
test dh, dh
je 0x1400ce9d4
shr edx, 0x10
test dl, dl
je 0x1400ce9ce
test dh, dh
jne 0x1400ce981
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cffa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cffc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cffc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400d8fec
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 0x1400d901c
xor eax, eax
jmp 0x1400d90df
mov rbp, rbx
cmp word [rax], si
je 0x1400d9041
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d9028
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d9024
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.1400d8f3c
movsxd r14, eax
test eax, eax
jne 0x1400d907f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d9015
mov rcx, r14
call fcn.1400d3340
mov rdi, rax
test rax, rax
jne 0x1400d9098
xor ecx, ecx
call fcn.1400d27b4
jmp 0x1400d9074
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.1400d8f3c
test eax, eax
jne 0x1400d90c9
mov rcx, rdi
call fcn.1400d27b4
jmp 0x1400d90d3
xor ecx, ecx
call fcn.1400d27b4
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 0x1400d90fc
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 0x1400d9183
mov rsi, rbx
cmp word [rax], bp
je 0x1400d9142
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d912c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d9128
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d3340
mov rdi, rax
test rax, rax
je 0x1400d9170
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b9f30
mov rbp, rdi
xor ecx, ecx
call fcn.1400d27b4
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 0x140001e28
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x140001e64
lea r8, str.m_hKey___0
mov edx, 0x16a6
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
test rbx, rbx
mov eax, ebp
setne al
test eax, eax
je 0x140001eb7
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001e74
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r8, str.__atl_condVal
mov edx, 0x16a7
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
mov ecx, 0x80004005
call fcn.140001b00
int3

Function at 0x140001ee0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rsi, rdx
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r9d, 0x2001f
mov qword [rsp + 0x58], rax
call fcn.140001d6c
jmp 0x140001f46
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001ee0
mov ebx, eax
test eax, eax
jne 0x140001fac
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
xor ebx, ebx
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001f37
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001f9f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001bd8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001fbc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400026a8
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 [0x140172608]
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 0x140002719
call fcn.140001b68
mov ebx, eax
jmp 0x14000286a
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x14000273d
call fcn.140001b68
jmp 0x14000285e
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002733
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 0x14000278f
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002785
lea rcx, [rsp + 0x70]
call fcn.14000498c
nop
mov eax, 0x8007000e
jmp 0x140002890
mov r14d, eax
test eax, eax
jne 0x14000279b
mov r14, rbx
jmp 0x1400027b1
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x140002885
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x1400027d0
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.sdkinc_atlmfc_atlalloc.h
call fcn.14008410c
cmp r14, 0x400
jbe 0x1400027ed
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004a90
mov rax, qword [rsp + 0x70]
jmp 0x1400027f7
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000280e
test rax, rax
jne 0x14000281a
mov ebx, 0x8007000e
jmp 0x140002860
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 0x140002733
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.140003514
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002881
lea rcx, [rsp + 0x70]
call fcn.14000498c
nop
mov eax, ebx
jmp 0x140002890
mov ecx, 0x80070057
call fcn.140001b00
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140141cf0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002415c
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 [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x1400241ae
test byte [rcx + 0x1c], 1
je 0x1400241ae
cmp byte [rcx + 0x19], 4
jb 0x1400241ae
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014be60]
mov edx, 0x1f7
call fcn.140004b74
and qword [rsp + 0x60], 0
test r14, r14
jne 0x1400241d1
lea r8, str.pbExist
mov edx, 0x2e75
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008410c
test rbx, rbx
jne 0x1400241ee
lea r8, str.wszSnapshotName
mov edx, 0x2e76
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008410c
lea rdx, [rsp + 0x60]
mov byte [r14], 1
mov rcx, rbx
call fcn.140084d90
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x14002435f
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 0x1400242b8
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x14002429f
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x140024287
test byte [rcx + 0x1c], 1
je 0x140024287
cmp byte [rcx + 0x19], 4
jb 0x140024287
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014be60]
mov edx, 0x1fa
mov qword [rsp + 0x20], rbx
mov r9d, edi
call fcn.1400100f0
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 0x140024210
lea r15, [0x1401720a0]
jmp 0x140024350
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140024307
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140024301
test byte [rcx + 0x1c], 1
je 0x140024301
cmp byte [rcx + 0x19], 4
jb 0x140024301
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014be60]
mov edx, 0x1f8
mov r9, rbx
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov byte [r14], 0
jmp 0x140024366
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140024366
test byte [rcx + 0x1c], 1
je 0x140024366
cmp byte [rcx + 0x19], 2
jb 0x140024366
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014be60]
mov edx, 0x1f9
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140005b60
cmp rbp, 0xffffffffffffffff
je 0x14002435f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
test rbx, rbx
je 0x14002437b
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1400243a1
test byte [rcx + 0x1c], 1
je 0x1400243a1
cmp byte [rcx + 0x19], 4
jb 0x1400243a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014be60]
mov edx, 0x1fb
call fcn.140004b74
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 0x14002d2c0
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 [0x140172608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
lea r12, [0x14014be60]
cmp rcx, r15
je 0x14002d329
test byte [rcx + 0x1c], 1
je 0x14002d329
cmp byte [rcx + 0x19], 4
jb 0x14002d329
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.140004b74
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.1401090e0
mov edi, eax
test eax, eax
jns 0x14002d38b
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14002d47c
test byte [rcx + 0x1c], 1
je 0x14002d47c
cmp byte [rcx + 0x19], 2
jb 0x14002d47c
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005b60
jmp 0x14002d475
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 0x14002d40a
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002d412
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14002d403
test byte [rcx + 0x1c], 1
je 0x14002d403
cmp byte [rcx + 0x19], 2
jb 0x14002d403
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.140004b98
mov word [rsp + 0x40], bp
jmp 0x14002d412
mov rdx, rdi
call fcn.14003ac00
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400d9ddc
mov edi, eax
test eax, eax
jns 0x14002d475
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14002d47c
test byte [rcx + 0x1c], 1
je 0x14002d47c
cmp byte [rcx + 0x19], 2
jb 0x14002d47c
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.140005c9c
mov rcx, qword [0x1401720a0]
cmp qword [rsp + 0x30], rbp
je 0x14002d495
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14002d4b7
test byte [rcx + 0x1c], 1
je 0x14002d4b7
cmp byte [rcx + 0x19], 4
jb 0x14002d4b7
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.140004b74
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140141cf0
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 0x14004b6fc
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 0x14004b7b3
cmp dword [rsi], ebx
je 0x14004b76e
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004b827
test byte [rcx + 0x1c], 1
je 0x14004b827
cmp byte [rcx + 0x19], 4
jb 0x14004b827
mov edx, 0x210
jmp 0x14004b79e
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004b827
test byte [rcx + 0x1c], 1
je 0x14004b827
cmp byte [rcx + 0x19], 4
jb 0x14004b827
mov edx, 0x211
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov r9, rdi
call fcn.140005afc
jmp 0x14004b827
cmp eax, 2
jne 0x14004b7de
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004b827
test byte [rcx + 0x1c], 1
je 0x14004b827
cmp byte [rcx + 0x19], 3
jb 0x14004b827
mov edx, 0x212
jmp 0x14004b79e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004b827
test byte [rcx + 0x1c], 1
je 0x14004b827
cmp byte [rcx + 0x19], 2
jb 0x14004b827
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x213
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005b60
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005f194
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140173278], 0
mov qword [0x1401732b8], rcx
je 0x14005f1c5
lea r8, [0x14014959c]
mov edx, 0xe3f
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
or eax, 0xffffffff
jmp 0x14005f1ee
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005f5c8
cmp al, 1
jne 0x14005f1ea
add rsp, 0x28
jmp 0x14005f86c
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 [0x140172608]
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.140001d6c
mov ebx, eax
test eax, eax
je 0x14005f8d8
mov dword [0x1401735fc], eax
jmp 0x14005f99d
mov rdx, qword [rsp + 0x50]
lea r8, [0x14014cce0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d6c
mov ebx, eax
test eax, eax
jne 0x14005f985
cmp qword [rsp + 0x38], r14
jne 0x14005f928
lea r8, str.m_hKey___0
mov edx, 0x15eb
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
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 0x14005f9f6
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005f9d5
mov dword [0x14017360c], r14d
lea rcx, [0x140173380]
call fcn.14005ec88
mov ebx, eax
mov dword [0x1401735fc], eax
cmp qword [rsp + 0x38], r14
je 0x14005f99d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005f9af
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.140141cf0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005f9ee
test al, 1
jne 0x14005f970
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005f9f3
jmp 0x14005f970
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x14017360c], r14d
test eax, eax
jne 0x14005f977
lea rax, [0x1401733e8]
mov dword [0x14017360c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005fb30]
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 0x14005fa4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005f983
mov ebx, dword [0x1401735fc]
jmp 0x14005f98b
Function at 0x14005f3bc
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 [0x1401736e0]
mov rsi, rcx
mov rax, qword [0x1401736e8]
mov ebx, 1
jmp 0x14005f46e
test ebx, ebx
js 0x14005f5b1
mov r14, qword [rdi]
test r14, r14
je 0x14005f46a
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x14005f409
xor ebx, ebx
jmp 0x14005f46a
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x14014d028]
call qword [case.0x1400059ff.0]
mov ebx, eax
test eax, eax
js 0x14005f44c
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 0x14005f463
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400059ff.0]
mov rax, qword [0x1401736e8]
add rdi, 8
cmp rdi, rax
jb 0x14005f3e8
test ebx, ebx
js 0x14005f5b1
lea r14, str.___HRESULT__hr_____0_
jne 0x14005f595
cmp byte [rsi + 0x60], 0
je 0x14005f533
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 0x14005f52c
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005fd00]
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 0x14005f4e4
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14005f52c
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005f521
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdba
call fcn.14008410c
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 0x14005f553
mov ebx, 0x80004005
jmp 0x14005f557
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005f5b1
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdc5
call fcn.14008410c
test ebx, ebx
jns 0x14005f5b1
mov rdi, qword [0x1401736e0]
xor eax, eax
mov rcx, qword [0x1401736e8]
jmp 0x14005f58e
test eax, eax
jne 0x14005f599
mov rdx, qword [rdi]
test rdx, rdx
je 0x14005f58a
cmp dword [rdx + 0x28], eax
je 0x14005f58a
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x1401736e8]
add rdi, 8
cmp rdi, rcx
jb 0x14005f569
jmp 0x14005f599
mov byte [rsi + 0x60], 0
test ebx, ebx
jns 0x14005f5b1
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xde5
call fcn.14008410c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret