joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ff100]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14006365d
xor eax, eax
jmp 0x1400637c6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14006369d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14006369d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400637be
cmp qword [rdi + 0x80], 0
je 0x1400637b9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400636d7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140063702
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400637be
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140063771
sub eax, 1
je 0x140063771
cmp eax, 2
jne 0x1400637b9
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400637be
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14006379f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400637b9
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400637be
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006c6d0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140066d80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140066da2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140066db1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140066e02
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140066e71
mov rcx, rbp
call fcn.14005b250
cmp rbx, 0xfff
jbe 0x140066e51
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140066e8a
cmp rbx, rax
ja 0x140066e20
test rdi, rdi
je 0x140066e71
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140066e74
sbb al, 0xff
adc byte [rdx], dl
sbb al, 0xff
adc byte [rdx], dl
sbb al, 0xff
movups xmmword [rbx], xmm3
dec dword [rsi]
adc byte [rdx], bl
dec dword [rdi]
adc dword [rbx], ebx
call qword [rax]
adc bl, byte [rdi + rdi*8]
adc dword [rbx], edx
sbb eax, 0x1e1412ff
call qword [rbx]
adc eax, 0x1614ff1f
and bh, bh
adc al, 0x16
and bh, bh
adc dl, byte [rsi + rbx]
call qword [rdx]
adc al, 0x1e
call qword [rbx]
adc eax, 0x1614ff1f
and bh, bh
adc al, 0x19
Function at 0x140066e90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140066eb1
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140066f2c
test rax, rax
jle 0x140066f0c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140066f2c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140066f2c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
sbb al, 0xff
invalid

Function at 0x1400686b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400686ce
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret
Function at 0x1400686e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ff100]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400687de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400687de
test rax, rax
je 0x1400687de
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ebx, dword [rax + 0xb0]
add rbx, rdx
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x50]
test eax, eax
je 0x1400687cc
nop dword [rax + rax]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 4]
sub rax, 8
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rdx, r8
je 0x1400687a7
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rdx + 0x10], xmm1
mov rdx, qword [rsp + 0x50]
add rdx, 0x18
mov qword [rsp + 0x50], rdx
jmp 0x1400687bb
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400674b0
mov rdx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
mov r8, qword [rsp + 0x58]
test eax, eax
jne 0x140068760
mov rcx, qword [rsp + 0x48]
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], r8
jmp 0x1400687e9
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006c6d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006d584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006d5ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006d5ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006d5ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006d5ce
cmp dword [rcx + 0x84], 0xe
jbe 0x14006d5ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006d5d0
xor al, al
add rsp, 0x28
ret

Function at 0x14006d800
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14006d83a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006d83f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14006d888
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400be800]
cmp byte [rcx + rax], 0
je 0x14006d888
dec r8
sub rdx, 1
jne 0x14006d86e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006df70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14006d968
mov ebx, eax
test eax, eax
jne 0x14006dfa0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14006e003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006dffa
test al, 0x10
je 0x14006dffa
bt eax, 0xa
jae 0x14006dff3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14006e014
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14006dfef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14006dfef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14006dffa
and dword [rsp + 0x3c], 0
jmp 0x14006dfff
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001dfc
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 0x140001e38
lea r8, str.m_hKey___0
mov edx, 0x16a8
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
test rbx, rbx
je 0x140001e84
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001e41
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, 0x16a9
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov ecx, 0x80004005
call fcn.140001b04
int3

Function at 0x140001ea8
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 [0x14016f608]
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.140001d48
jmp 0x140001f0e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001ea8
mov ebx, eax
test eax, eax
jne 0x140001f74
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 0x140001eff
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001f67
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001bc4
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001f84
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002650
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 [0x14016f608]
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 0x1400026c1
call fcn.140001b64
mov ebx, eax
jmp 0x14000282c
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 0x1400026e5
call fcn.140001b64
jmp 0x140002820
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 0x1400026db
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 0x140002751
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000272d
lea rcx, [rsp + 0x70]
call fcn.140004808
nop
mov eax, 0x8007000e
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14013e2a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r14d, eax
test eax, eax
jne 0x14000275d
mov r14, rbx
jmp 0x140002773
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x14000284a
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x140002792
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.sdkinc_atlmfc_atlalloc.h
call fcn.140082070
cmp r14, 0x400
jbe 0x1400027af
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004908
mov rax, qword [rsp + 0x70]
jmp 0x1400027b9
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400027d0
test rax, rax
jne 0x1400027dc
mov ebx, 0x8007000e
jmp 0x140002822
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 0x1400026db
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.14000345c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002843
lea rcx, [rsp + 0x70]
call fcn.140004808
nop
mov eax, ebx
jmp 0x140002732
mov ecx, 0x80070057
call fcn.140001b04
int3
Function at 0x14002c8c8
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x14016f048]
lea r15, [0x14016f048]
lea r12, [0x140148140]
cmp rcx, r15
je 0x14002c931
test byte [rcx + 0x1c], 1
je 0x14002c931
cmp byte [rcx + 0x19], 4
jb 0x14002c931
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.1400049d8
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.14010573c
mov edi, eax
test eax, eax
jns 0x14002c993
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca84
test byte [rcx + 0x1c], 1
je 0x14002ca84
cmp byte [rcx + 0x19], 2
jb 0x14002ca84
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005938
jmp 0x14002ca7d
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 0x14002ca12
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002ca1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca0b
test byte [rcx + 0x1c], 1
je 0x14002ca0b
cmp byte [rcx + 0x19], 2
jb 0x14002ca0b
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.1400049f8
mov word [rsp + 0x40], bp
jmp 0x14002ca1a
mov rdx, rdi
call fcn.140039dd4
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400d708c
mov edi, eax
test eax, eax
jns 0x14002ca7d
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca84
test byte [rcx + 0x1c], 1
je 0x14002ca84
cmp byte [rcx + 0x19], 2
jb 0x14002ca84
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.140005a64
mov rcx, qword [0x14016f048]
cmp qword [rsp + 0x30], rbp
je 0x14002ca9d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002cabf
test byte [rcx + 0x1c], 1
je 0x14002cabf
cmp byte [rcx + 0x19], 4
jb 0x14002cabf
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.1400049d8
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013e2a0
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 0x14005dc10
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140170271], 0
mov qword [0x140170278], rcx
je 0x14005dc41
lea r8, [0x140145894]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
or eax, 0xffffffff
jmp 0x14005dc6a
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005e018
cmp al, 1
jne 0x14005dc66
add rsp, 0x28
jmp 0x14005e2b4
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 [0x14016f608]
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.140001d48
mov ebx, eax
test eax, eax
je 0x14005e320
mov dword [0x1401705bc], eax
jmp 0x14005e3e5
mov rdx, qword [rsp + 0x50]
lea r8, [0x140148fc0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
jne 0x14005e3cd
cmp qword [rsp + 0x38], r14
jne 0x14005e370
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
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 0x14005e43e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005e41d
mov dword [0x1401705cc], r14d
lea rcx, [0x140170340]
call fcn.14005d718
mov ebx, eax
mov dword [0x1401705bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005e3e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005e3f7
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.14013e2a0
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 0x14005e436
test al, 1
jne 0x14005e3b8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005e43b
jmp 0x14005e3b8
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401705cc], r14d
test eax, eax
jne 0x14005e3bf
lea rax, [0x1401703a8]
mov dword [0x1401705cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005e570]
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 0x14005e492
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e3cb
mov ebx, dword [0x1401705bc]
jmp 0x14005e3d3