joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cd0
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 0x140001d0c
lea r8, str.m_hKey___0
mov edx, 0x16ab
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400876c8
test rbx, rbx
je 0x140001d5f
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001d15
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]
nop dword [rax + rax]
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, 0x16ac
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400876c8
mov ecx, 0x80004005
call fcn.140001950
int3

Function at 0x140001d88
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.140001c08
jmp 0x140001def
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001d88
mov ebx, eax
test eax, eax
jne 0x140001e63
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140001de0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001e56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140001a4c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001e79
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14014b700
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002584
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 [0x14017a608]
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]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400025fb
call fcn.1400019c0
mov ebx, eax
jmp 0x140002785
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140002625
call fcn.1400019c0
jmp 0x140002773
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000261b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14000269e
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002679
lea rcx, [rsp + 0x70]
call fcn.14000495c
nop
mov eax, 0x8007000e
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14014b700
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r14d, eax
test eax, eax
jne 0x1400026aa
mov r14, rbx
jmp 0x1400026c0
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x1400027a3
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x1400026df
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.1400876c8
cmp r14, 0x400
jbe 0x1400026fc
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004a80
mov rax, qword [rsp + 0x70]
jmp 0x140002706
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000271d
test rax, rax
jne 0x140002729
mov ebx, 0x8007000e
jmp 0x140002775
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]
nop dword [rax + rax]
test eax, eax
je 0x14000261b
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.140003488
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000279c
lea rcx, [rsp + 0x70]
call fcn.14000495c
nop
mov eax, ebx
jmp 0x14000267e
mov ecx, 0x80070057
call fcn.140001950
int3
Function at 0x140024cb4
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 [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140024d06
test byte [rcx + 0x1c], 1
je 0x140024d06
cmp byte [rcx + 0x19], 4
jb 0x140024d06
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1f7
call fcn.140004b70
and qword [rsp + 0x60], 0
test r14, r14
jne 0x140024d29
lea r8, str.pbExist
mov edx, 0x2e75
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400876c8
test rbx, rbx
jne 0x140024d46
lea r8, str.wszSnapshotName
mov edx, 0x2e76
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400876c8
lea rdx, [rsp + 0x60]
mov byte [r14], 1
mov rcx, rbx
call fcn.140088424
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x140024ed9
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]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140024e26
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x140024e0d
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140024de9
test byte [rcx + 0x1c], 1
je 0x140024de9
cmp byte [rcx + 0x19], 4
jb 0x140024de9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1fa
mov qword [rsp + 0x20], rbx
mov r9d, edi
call fcn.1400102d0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, 0x3e8
or rbp, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov edi, r15d
cmp r15d, 5
jb 0x140024d68
lea r15, [0x14017a048]
jmp 0x140024ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140024e7b
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140024e75
test byte [rcx + 0x1c], 1
je 0x140024e75
cmp byte [rcx + 0x19], 4
jb 0x140024e75
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1f8
mov r9, rbx
call fcn.140005c30
mov rcx, qword [0x14017a048]
mov byte [r14], 0
jmp 0x140024ee0
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140024ee0
test byte [rcx + 0x1c], 1
je 0x140024ee0
cmp byte [rcx + 0x19], 2
jb 0x140024ee0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1f9
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140005ca0
cmp rbp, 0xffffffffffffffff
je 0x140024ed9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test rbx, rbx
je 0x140024efb
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140024f21
test byte [rcx + 0x1c], 1
je 0x140024f21
cmp byte [rcx + 0x19], 4
jb 0x140024f21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1fb
call fcn.140004b70
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 0x14002e22c
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 [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
lea r12, [0x140155270]
cmp rcx, r15
je 0x14002e295
test byte [rcx + 0x1c], 1
je 0x14002e295
cmp byte [rcx + 0x19], 4
jb 0x14002e295
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.140004b70
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.14010f39c
mov edi, eax
test eax, eax
jns 0x14002e2f7
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14002e3f4
test byte [rcx + 0x1c], 1
je 0x14002e3f4
cmp byte [rcx + 0x19], 2
jb 0x14002e3f4
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005ca0
jmp 0x14002e3ed
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 0x14002e382
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e38a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14002e37b
test byte [rcx + 0x1c], 1
je 0x14002e37b
cmp byte [rcx + 0x19], 2
jb 0x14002e37b
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.140004b9c
mov word [rsp + 0x40], bp
jmp 0x14002e38a
mov rdx, rdi
call fcn.14003bbe8
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400df774
mov edi, eax
test eax, eax
jns 0x14002e3ed
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14002e3f4
test byte [rcx + 0x1c], 1
je 0x14002e3f4
cmp byte [rcx + 0x19], 2
jb 0x14002e3f4
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.140005de0
mov rcx, qword [0x14017a048]
cmp qword [rsp + 0x30], rbp
je 0x14002e413
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14002e435
test byte [rcx + 0x1c], 1
je 0x14002e435
cmp byte [rcx + 0x19], 4
jb 0x14002e435
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.140004b70
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014b700
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 0x14003d3c0
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 [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14003d413
test dword [rcx + 0x1c], 0x200
je 0x14003d413
cmp byte [rcx + 0x19], 4
jb 0x14003d413
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x2f
call fcn.140004b70
mov rcx, qword [0x14017a048]
test rdi, rdi
jne 0x14003d41f
mov ebx, 0x80004003
jmp 0x14003d478
mov rcx, rbx
call fcn.1400531c4
mov ebx, eax
test eax, eax
js 0x14003d471
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14003d45a
test byte [rcx + 0x1c], 1
je 0x14003d45a
cmp byte [rcx + 0x19], 4
jb 0x14003d45a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159578]
mov edx, 0x8e
call fcn.140004b70
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
nop dword [rax + rax]
mov dword [rdi], eax
xor ebx, ebx
jmp 0x14003d4a1
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14003d4d1
test byte [rcx + 0x1c], 1
je 0x14003d4a8
cmp byte [rcx + 0x19], 2
jb 0x14003d4a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x30
mov r9d, ebx
call fcn.140004b9c
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14003d4d1
test dword [rcx + 0x1c], 0x200
je 0x14003d4d1
cmp byte [rcx + 0x19], 4
jb 0x14003d4d1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x31
call fcn.140004b70
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004c204
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14017a048]
lea r13, [0x14017a048]
lea r14, [0x140155bf8]
mov r12d, 0x200
cmp rcx, r13
je 0x14004c256
test dword [rcx + 0x1c], r12d
je 0x14004c256
cmp byte [rcx + 0x19], 4
jb 0x14004c256
mov rcx, qword [rcx + 0x10]
lea edx, [r12 - 9]
mov r8, r14
call fcn.140004b70
mov rcx, rdi
call fcn.140142b68
mov rdx, rdi
mov rcx, rsi
call fcn.14010d958
mov ebx, eax
test eax, eax
jns 0x14004c2b0
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c42c
test dword [rcx + 0x1c], r12d
je 0x14004c42c
cmp byte [rcx + 0x19], 2
jb 0x14004c42c
mov edx, 0x1f8
mov dword [rsp + 0x20], eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
mov r9, rsi
call fcn.140005ca0
jmp 0x14004c425
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x14004c2d3
lea r8, str.pMedia__m_eMediaType__BLB_MT_SHINY__pMedia__m_eMediaType__BLB_MT_REMOVABLE
mov edx, 0x27cb
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.1400876c8
lea rbp, [rdi + 8]
mov rcx, rsi
mov rdx, rbp
call fcn.1401352f8
mov ebx, eax
test eax, eax
jns 0x14004c313
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c42c
test dword [rcx + 0x1c], r12d
je 0x14004c42c
cmp byte [rcx + 0x19], 2
jb 0x14004c42c
mov edx, 0x1f9
jmp 0x14004c298
cmp qword [rbp], 0
je 0x14004c35a
lea rdx, [rdi + 0x10]
mov rcx, rsi
call fcn.140135ddc
mov ebx, eax
test eax, eax
jns 0x14004c35a
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c42c
test dword [rcx + 0x1c], r12d
je 0x14004c42c
cmp byte [rcx + 0x19], 2
jb 0x14004c42c
mov edx, 0x1fa
jmp 0x14004c298
cmp qword [rbp], 0
lea r14, [rdi + 0x18]
mov rcx, rsi
je 0x14004c3ed
and qword [r14], 0
lea r9, [rsp + 0x88]
and qword [rdi + 0x20], 0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004c3a6
mov rcx, rsi
call fcn.1401373d4
mov ebx, eax
jmp 0x14004c3bc
mov rax, qword [rsp + 0x78]
mov qword [r14], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
xor ebx, ebx
test ebx, ebx
jns 0x14004c438
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c42c
test dword [rcx + 0x1c], r12d
je 0x14004c42c
cmp byte [rcx + 0x19], 2
jb 0x14004c42c
mov edx, 0x1fb
mov dword [rsp + 0x20], ebx
lea r8, [0x140155bf8]
jmp 0x14004c29f
mov rdx, r14
call fcn.140134e20
mov ebx, eax
test eax, eax
jns 0x14004c41e
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c42c
test dword [rcx + 0x1c], r12d
je 0x14004c42c
cmp byte [rcx + 0x19], 2
jb 0x14004c42c
mov edx, 0x1fc
mov dword [rsp + 0x20], eax
jmp 0x14004c3e1
mov rax, qword [r14]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14004c43f
mov rcx, rdi
call fcn.140142b68
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14004c465
test dword [rcx + 0x1c], r12d
je 0x14004c465
cmp byte [rcx + 0x19], 4
jb 0x14004c465
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x1fd
call fcn.140004b70
mov eax, ebx
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004cff4
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]
nop dword [rax + rax]
test eax, eax
jne 0x14004d0b1
cmp dword [rsi], ebx
je 0x14004d06c
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14004d125
test byte [rcx + 0x1c], 1
je 0x14004d125
cmp byte [rcx + 0x19], 4
jb 0x14004d125
mov edx, 0x213
jmp 0x14004d09c
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14004d125
test byte [rcx + 0x1c], 1
je 0x14004d125
cmp byte [rcx + 0x19], 4
jb 0x14004d125
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov r9, rdi
call fcn.140005c30
jmp 0x14004d125
cmp eax, 2
jne 0x14004d0dc
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14004d125
test byte [rcx + 0x1c], 1
je 0x14004d125
cmp byte [rcx + 0x19], 3
jb 0x14004d125
mov edx, 0x215
jmp 0x14004d09c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14004d125
test byte [rcx + 0x1c], 1
je 0x14004d125
cmp byte [rcx + 0x19], 2
jb 0x14004d125
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005ca0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400612fc
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x14017b2c1], 0
mov qword [0x14017b2c8], rcx
je 0x14006132d
lea r8, [0x140152914]
mov edx, 0xe9a
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400876c8
or eax, 0xffffffff
jmp 0x14006135c
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14006197c
cmp al, 1
jne 0x140061358
add rsp, 0x28
jmp 0x140061b14
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 [0x14017a608]
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.140001c08
mov ebx, eax
test eax, eax
je 0x140061b80
mov dword [0x14017b60c], eax
jmp 0x140061cd3
mov rdx, qword [rsp + 0x50]
lea r8, [0x1401560f0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001c08
mov ebx, eax
test eax, eax
jne 0x140061cb5
cmp qword [rsp + 0x38], r14
jne 0x140061bd4
lea r8, str.m_hKey___0
mov edx, 0x15f0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400876c8
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]
nop dword [rax + rax]
test eax, eax
jne 0x140061c46
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140061c25
mov eax, 0xd
jmp 0x140061c46
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140061c3e
test al, 1
jne 0x140061c1e
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x140061c43
jmp 0x140061c1e
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x14017b61c], r14d
test eax, eax
jne 0x140061ca7
lea rax, [0x14017b3f8]
mov dword [0x14017b61c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140061df0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x140061c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140061cb3
mov ebx, dword [0x14017b60c]
jmp 0x140061cbb
lea rcx, [0x14017b390]
call fcn.140060d7c
mov ebx, eax
mov dword [0x14017b60c], eax
cmp qword [rsp + 0x38], r14
je 0x140061cd3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp qword [rsp + 0x50], r14
je 0x140061ceb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140061730
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 [0x14017a1c0]
mov rsi, rcx
mov rax, qword [0x14017a1c8]
mov ebx, 1
jmp 0x1400617e8
test ebx, ebx
js 0x140061965
mov r14, qword [rdi]
test r14, r14
je 0x1400617e4
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x14006177d
xor ebx, ebx
jmp 0x1400617e4
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x140156438]
call qword [case.0x140005b13.0]
mov ebx, eax
test eax, eax
js 0x1400617c6
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400617dd
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140005b13.0]
mov rax, qword [0x14017a1c8]
add rdi, 8
cmp rdi, rax
jb 0x14006175c
test ebx, ebx
js 0x140061965
lea r14, str.___HRESULT__hr_____0_
jne 0x140061949
cmp byte [rsi + 0x60], 0
je 0x1400618db
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x1400618d4
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140061f80]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140061874
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x1400618d4
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400618c3
mov r8, r14
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
mov edx, 0xe15
call fcn.1400876c8
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov edx, dword [rsi + 0x58]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140061901
mov ebx, 0x80004005
jmp 0x140061905
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140061965
mov r8, r14
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
mov edx, 0xe20
call fcn.1400876c8
test ebx, ebx
jns 0x140061965
mov rdi, qword [0x14017a1c0]
xor eax, eax
mov rcx, qword [0x14017a1c8]
jmp 0x140061942
test eax, eax
jne 0x14006194d
mov rdx, qword [rdi]
test rdx, rdx
je 0x14006193e
cmp dword [rdx + 0x28], eax
je 0x14006193e
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
nop dword [rax + rax]
mov rcx, qword [0x14017a1c8]
add rdi, 8
cmp rdi, rcx
jb 0x140061917
jmp 0x14006194d
mov byte [rsi + 0x60], 0
test ebx, ebx
jns 0x140061965
mov r8, r14
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
mov edx, 0xe40
call fcn.1400876c8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret