joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d29c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cb370], eax
add rsp, 0x28
ret

Function at 0x14001d2e8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14001d345
call qword [rbx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x14001d345
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14001d31d
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400c9abc]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400cb370]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400cb380], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d3a0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400cb380]
test rbx, rbx
je 0x14001d3fa
mov rcx, rbx
call qword [rbx + 0xb8]
mov r11, qword [rbx + 0xd0]
test r11, r11
je 0x14001d3d2
mov edx, 1
mov rcx, rbx
call r11
mov rcx, qword [0x1400c9abc]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400cb370]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400cb380], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140042c20
Capabilities:
Encode data using xor

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x140042cde
mov rax, qword [rcx]
xor r8d, r8d
lea r11, [0x14006f230]
mov byte [rax + 0x16], r8b
mov rax, qword [rcx]
mov byte [rax + 0x17], r8b
mov rax, qword [rcx]
mov byte [rax + 0x18], r8b
mov rax, qword [rcx]
mov byte [rax + 0x19], r8b
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140042c83
mov r9, qword [rcx]
mov r10d, eax
nop
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x140042c60
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x140042cb4
mov r9, qword [rdx + 0x10]
mov r10d, eax
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x140042c91
mov rax, qword [rdx]
mov ecx, r8d
mov byte [rax + 0x16], r8b
mov rax, qword [rdx]
shr ecx, 8
mov byte [rax + 0x17], cl
mov rax, qword [rdx]
mov ecx, r8d
shr ecx, 0x10
shr r8d, 0x18
mov byte [rax + 0x18], cl
mov rax, qword [rdx]
mov byte [rax + 0x19], r8b
repz ret
Function at 0x140058204
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400c9abc]
mov edx, 8
mov r8d, 0x210
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400cb370]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400cb380], rdi
and dword [rdi + 0xf4], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0xf0], 0xffffff
mov dword [rdi + 0xd8], 2
mov dword [rdi + 0xdc], 0x3f
mov dword [rdi + 0xf8], eax
mov dword [rdi + 0xfc], eax
call fcn.140060d20
mov rbx, qword [rsp + 0x30]
lea rax, [0x1400581b8]
lea r11, [0x14005815c]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140056e20]
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0x20], rax
lea rax, [0x140056ffc]
mov qword [rdi + 0x60], rax
lea rax, [0x140057154]
mov qword [rdi + 0xc8], rax
lea rax, [0x1400571b4]
mov qword [rdi + 0xc0], rax
lea rax, [0x140057be4]
mov qword [rdi + 0x68], rax
lea rax, [0x140057a1c]
mov qword [rdi + 0x48], rax
lea rax, [0x140057a48]
mov qword [rdi + 0x50], rax
lea rax, [0x140057a78]
mov qword [rdi + 0x58], rax
lea rax, [0x140057f78]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140001e5c
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 0x140001e98
lea r8, str.m_hKey___0
mov edx, 0x16a6
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
test rbx, rbx
mov eax, ebp
setne al
test eax, eax
je 0x140001eeb
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001ea8
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.14008624c
mov ecx, 0x80004005
call fcn.140001b20
int3

Function at 0x140001f14
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 [0x140178010]
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.140001da0
jmp 0x140001f7a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001f14
mov ebx, eax
test eax, eax
jne 0x140001fe0
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 0x140001f6b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001fd3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001bf8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001ff0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400026d8
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 [0x140178010]
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 0x140002749
call fcn.140001b88
mov ebx, eax
jmp 0x14000289a
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 0x14000276d
call fcn.140001b88
jmp 0x14000288e
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 0x140002763
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 0x1400027bf
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400027b5
lea rcx, [rsp + 0x70]
call fcn.140004764
nop
mov eax, 0x8007000e
jmp 0x1400028c0
mov r14d, eax
test eax, eax
jne 0x1400027cb
mov r14, rbx
jmp 0x1400027e1
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x1400028b5
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x140002800
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.sdkinc_atlmfc_atlalloc.h
call fcn.14008624c
cmp r14, 0x400
jbe 0x14000281d
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004a98
mov rax, qword [rsp + 0x70]
jmp 0x140002827
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000283e
test rax, rax
jne 0x14000284a
mov ebx, 0x8007000e
jmp 0x140002890
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 0x140002763
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.140003544
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400028b1
lea rcx, [rsp + 0x70]
call fcn.140004764
nop
mov eax, ebx
jmp 0x1400028c0
mov ecx, 0x80070057
call fcn.140001b20
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401474d0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140024a68
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 [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140024aba
test byte [rcx + 0x1c], 1
je 0x140024aba
cmp byte [rcx + 0x19], 4
jb 0x140024aba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151a70]
mov edx, 0x1f7
call fcn.140004c6c
and qword [rsp + 0x60], 0
test r14, r14
jne 0x140024add
lea r8, str.pbExist
mov edx, 0x2e75
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
test rbx, rbx
jne 0x140024afa
lea r8, str.wszSnapshotName
mov edx, 0x2e76
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
lea rdx, [rsp + 0x60]
mov byte [r14], 1
mov rcx, rbx
call fcn.140086ee4
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x140024c6b
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 0x140024bc4
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x140024bab
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140024b93
test byte [rcx + 0x1c], 1
je 0x140024b93
cmp byte [rcx + 0x19], 4
jb 0x140024b93
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151a70]
mov edx, 0x1fa
mov qword [rsp + 0x20], rbx
mov r9d, edi
call fcn.1400104d0
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 0x140024b1c
lea r15, [0x1401782b0]
jmp 0x140024c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140024c13
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140024c0d
test byte [rcx + 0x1c], 1
je 0x140024c0d
cmp byte [rcx + 0x19], 4
jb 0x140024c0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151a70]
mov edx, 0x1f8
mov r9, rbx
call fcn.140005c6c
mov rcx, qword [0x1401782b0]
mov byte [r14], 0
jmp 0x140024c72
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140024c72
test byte [rcx + 0x1c], 1
je 0x140024c72
cmp byte [rcx + 0x19], 2
jb 0x140024c72
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151a70]
mov edx, 0x1f9
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140005ce8
cmp rbp, 0xffffffffffffffff
je 0x140024c6b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test rbx, rbx
je 0x140024c87
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x140024cad
test byte [rcx + 0x1c], 1
je 0x140024cad
cmp byte [rcx + 0x19], 4
jb 0x140024cad
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151a70]
mov edx, 0x1fb
call fcn.140004c6c
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 0x14002dd90
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 [0x140178010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
lea r12, [0x140151a70]
cmp rcx, r15
je 0x14002ddf9
test byte [rcx + 0x1c], 1
je 0x14002ddf9
cmp byte [rcx + 0x19], 4
jb 0x14002ddf9
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.140004c6c
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.14010d96c
mov edi, eax
test eax, eax
jns 0x14002de5b
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14002df4c
test byte [rcx + 0x1c], 1
je 0x14002df4c
cmp byte [rcx + 0x19], 2
jb 0x14002df4c
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005ce8
jmp 0x14002df45
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 0x14002deda
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002dee2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14002ded3
test byte [rcx + 0x1c], 1
je 0x14002ded3
cmp byte [rcx + 0x19], 2
jb 0x14002ded3
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.140004c90
mov word [rsp + 0x40], bp
jmp 0x14002dee2
mov rdx, rdi
call fcn.14003b8c0
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400dc7cc
mov edi, eax
test eax, eax
jns 0x14002df45
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14002df4c
test byte [rcx + 0x1c], 1
je 0x14002df4c
cmp byte [rcx + 0x19], 2
jb 0x14002df4c
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.140005e64
mov rcx, qword [0x1401782b0]
cmp qword [rsp + 0x30], rbp
je 0x14002df65
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14002df87
test byte [rcx + 0x1c], 1
je 0x14002df87
cmp byte [rcx + 0x19], 4
jb 0x14002df87
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.140004c6c
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401474d0
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 0x14004c688
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 0x14004c73f
cmp dword [rsi], ebx
je 0x14004c6fa
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14004c7b3
test byte [rcx + 0x1c], 1
je 0x14004c7b3
cmp byte [rcx + 0x19], 4
jb 0x14004c7b3
mov edx, 0x20d
jmp 0x14004c72a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14004c7b3
test byte [rcx + 0x1c], 1
je 0x14004c7b3
cmp byte [rcx + 0x19], 4
jb 0x14004c7b3
mov edx, 0x20e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov r9, rdi
call fcn.140005c6c
jmp 0x14004c7b3
cmp eax, 2
jne 0x14004c76a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14004c7b3
test byte [rcx + 0x1c], 1
je 0x14004c7b3
cmp byte [rcx + 0x19], 3
jb 0x14004c7b3
mov edx, 0x20f
jmp 0x14004c72a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14004c7b3
test byte [rcx + 0x1c], 1
je 0x14004c7b3
cmp byte [rcx + 0x19], 2
jb 0x14004c7b3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x210
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005ce8
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140060794
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140179110], 0
mov qword [0x140179158], rcx
je 0x1400607c5
lea r8, [0x14014d8c4]
mov edx, 0xe3f
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
or eax, 0xffffffff
jmp 0x1400607ee
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140060af4
cmp al, 1
jne 0x1400607ea
add rsp, 0x28
jmp 0x140060904
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 [0x140178010]
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.140001da0
mov ebx, eax
test eax, eax
je 0x140060970
mov dword [0x14017949c], eax
jmp 0x140060a35
mov rdx, qword [rsp + 0x50]
lea r8, [0x140152a80]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001da0
mov ebx, eax
test eax, eax
jne 0x140060a1d
cmp qword [rsp + 0x38], r14
jne 0x1400609c0
lea r8, str.m_hKey___0
mov edx, 0x15eb
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
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 0x140060a8e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140060a6d
mov dword [0x1401794ac], r14d
lea rcx, [0x140179220]
call fcn.140060294
mov ebx, eax
mov dword [0x14017949c], eax
cmp qword [rsp + 0x38], r14
je 0x140060a35
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x140060a47
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.1401474d0
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 0x140060a86
test al, 1
jne 0x140060a08
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x140060a8b
jmp 0x140060a08
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401794ac], r14d
test eax, eax
jne 0x140060a0f
lea rax, [0x140179288]
mov dword [0x1401794ac], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140061180]
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 0x140060ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140060a1b
mov ebx, dword [0x14017949c]
jmp 0x140060a23
Function at 0x140060904
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140179110], 0
mov qword [0x140179158], rcx
je 0x1400607c5
lea r8, [0x14014d8c4]
mov edx, 0xe3f
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
or eax, 0xffffffff
jmp 0x1400607ee
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140060af4
cmp al, 1
jne 0x1400607ea
add rsp, 0x28
jmp 0x140060904
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 [0x140178010]
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.140001da0
mov ebx, eax
test eax, eax
je 0x140060970
mov dword [0x14017949c], eax
jmp 0x140060a35
mov rdx, qword [rsp + 0x50]
lea r8, [0x140152a80]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001da0
mov ebx, eax
test eax, eax
jne 0x140060a1d
cmp qword [rsp + 0x38], r14
jne 0x1400609c0
lea r8, str.m_hKey___0
mov edx, 0x15eb
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008624c
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 0x140060a8e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140060a6d
mov dword [0x1401794ac], r14d
lea rcx, [0x140179220]
call fcn.140060294
mov ebx, eax
mov dword [0x14017949c], eax
cmp qword [rsp + 0x38], r14
je 0x140060a35
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x140060a47
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.1401474d0
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 0x140060a86
test al, 1
jne 0x140060a08
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x140060a8b
jmp 0x140060a08
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401794ac], r14d
test eax, eax
jne 0x140060a0f
lea rax, [0x140179288]
mov dword [0x1401794ac], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140061180]
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 0x140060ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140060a1b
mov ebx, dword [0x14017949c]
jmp 0x140060a23