joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ead0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rsi, r8
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x48]
lea r8, str._m_d_y__H_M_S
mov edx, 0x40
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_wcsftime]
mov r8, qword [r15]
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov edx, 0x20
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x14001ebaa
mov edi, 0x5f
nop dword [rax]
mov word [rax], di
mov edx, 0x20
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x14001eb90
lea r8, [rsp + 0xf0]
lea rdx, [0x1400cae58]
mov rcx, rbx
call fcn.140028b00
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbx]
call fcn.1400043b0
mov r14, rax
lea rax, str.Creating_zip_file:
lea rcx, str.Failed_to_create_zip_file:
test r14, r14
cmovne rcx, rax
mov rdx, qword [rbx]
call fcn.14001eff0
xor ebx, ebx
cmp dword [rsi + 0x68], ebx
jle 0x14001ec6f
mov edi, ebx
lea r12, str.Zip_added:
nop
test rdi, rdi
js 0x14001ecbb
cmp ebx, dword [rsi + 0x68]
jge 0x14001ecbb
mov rax, qword [rsi + 0x60]
mov rbp, qword [rdi + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ec64
mov edx, 0x5c
mov rcx, rbp
call sub.VCRUNTIME140.dll_wcsrchr
lea rdx, [rax + 2]
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8, rbp
mov rcx, r14
call fcn.1400046f0
lea rcx, str.Zip_failed_to_add:
test eax, eax
cmove rcx, r12
mov rdx, rbp
call fcn.14001eff0
inc ebx
add rdi, 8
cmp ebx, dword [rsi + 0x68]
jl 0x14001ec00
mov rcx, r14
call fcn.1400040e0
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ec97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x310
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.140003110
int3
Function at 0x14001f250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14001f27d
xor eax, eax
jmp 0x14001f3e1
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 0x14001f2bf
mov rdx, qword [rdi + 0x58]
mov rcx, rdi
movsxd rbx, dword [rdx]
mov rdx, qword [rdi + 0x40]
add rbx, qword [rdx]
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 0x14001f2bf
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 0x14001f3d9
cmp qword [rdi + 0x80], 0
je 0x14001f3d4
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001f2fa
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001f325
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 0x14001f3d9
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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
js 0x14001f3d4
cmp eax, 1
jle 0x14001f394
cmp eax, 3
jne 0x14001f3d4
movsx ecx, byte [rsp + 0x40]
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 0x14001f3d9
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14001f3c2
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 0x14001f3d4
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, esi
jne 0x14001f3d9
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f850
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400224f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140022527
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400225a8
test rax, rax
jle 0x140022576
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__::gptr_void_const___ptr64]
mov r8, rbp
mov rcx, r14
mov rdx, rax
call fcn.1400bd846
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__::gbump_int____ptr64]
test rbx, rbx
jle 0x1400225a8
cmp qword [rdi + 0x80], 0
je 0x1400225a8
mov rcx, rdi
call fcn.14001b9c0
mov r9, qword [rdi + 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 rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400225d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140022607
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], 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 0x14002267b
test rax, rax
jle 0x140022656
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 fcn.1400bd846
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 0x14002267b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002267b
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140022ac0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
lea rdi, [rcx - 0x40]
test rcx, rcx
mov rbx, r8
mov r14d, edx
cmove rdi, r12
lea esi, [r12 + 1]
mov rcx, qword [rdi + 8]
cmp dword [rsp + 0x60], r12d
je 0x140022bec
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r15, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbp, eax
test eax, eax
js 0x140022c48
mov rdx, qword [rbx]
mov ecx, esi
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, ebp
or ecx, eax
jge 0x140022b41
mov edx, ebp
mov rcx, rbx
call fcn.140002930
mov rdx, qword [rbx]
cmp ebp, dword [rdx - 0xc]
jg 0x140022c48
mov dword [rdx - 0x10], ebp
lea r8d, [rbp + 1]
mov rax, qword [rbx]
mov rcx, r15
mov word [rax + rbp*2], r12w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
mov r15d, eax
test rcx, rcx
jne 0x140022b72
mov eax, r12d
jmp 0x140022b84
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140022c48
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140022c48
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r12w
cmp r15d, ebp
jge 0x140022ba8
mov esi, r12d
jmp 0x140022bfb
cmp dword [rsp + 0x68], r12d
je 0x140022c27
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x70]
cmp dword [rcx - 0x10], eax
jle 0x140022c27
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
lea rax, [rdi + 0x40]
mov edx, r14d
test rax, rax
cmove rdi, r12
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov esi, r12d
jmp 0x140022c27
mov r8, qword [r8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, eax
test eax, eax
jne 0x140022c27
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
lea rdx, [rdi + 0x40]
test rdx, rdx
mov edx, r14d
cmove rdi, r12
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov ecx, 0x80070057
call fcn.140001ff0
int3
Function at 0x140024bb0
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov ebp, r8d
mov rsi, rdx
mov r14, rcx
mov ecx, 0xa8
call fcn.14005f8a8
mov rbx, rax
mov qword [rsp + 0x88], rax
xor edi, edi
test rax, rax
je 0x140024c66
mov qword [rax + 8], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], edi
lea rax, vtable.SendReportProgressDlg.0
mov qword [rbx], rax
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
lea rcx, [rbx + 0x80]
call fcn.140009510
nop
lea rcx, [rbx + 0x88]
call fcn.140009510
nop
mov byte [rbx + 0xa0], dil
mov qword [rbx + 0x74], rdi
mov qword [rbx + 0x90], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x98], rax
jmp 0x140024c69
mov rbx, rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rbx
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x80], edi
mov eax, 4
mov ecx, 0x8000000
cmp byte [rsi + 0x80], 0
cmovne eax, ecx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x38]
lea r8, [0x140024e20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140024ced
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx + 0x90], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbp, rax
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x140024d38
call fcn.1400bd658
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140024d38
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x140024cd8
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400bd788
lea rsi, [rbx + 0x10]
test rsi, rsi
je 0x140024db1
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsi + 8], eax
lea rcx, [0x1401113c8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401113f0]
mov qword [rsi + 0x10], rax
mov qword [0x1401113f0], rsi
lea rcx, [0x1401113c8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x20], rdi
lea r9, [0x140012670]
mov r8, rbp
mov edx, 0x3e9
mov rcx, qword [0x1401121c0]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, 1
jmp 0x140024cd8
mov edx, 1
mov ecx, 0xc0000005
call fcn.140003110
int3
Function at 0x140024ed0
Capabilities:
Hide graphical window

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov esi, edx
mov rdi, rcx
test r8b, r8b
jne 0x140024efa
mov byte [rcx + 0xa0], 1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140025011
lea rcx, [rsp + 0x40]
call fcn.140009510
nop
mov edx, 0xbb8
lea rcx, [rsp + 0x40]
call fcn.1400027a0
mov rbx, qword [rsp + 0x40]
test esi, esi
jne 0x140024f53
cmp byte [rdi + 0xa0], sil
je 0x140024f45
mov rdx, rbx
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, 5
mov rcx, qword [rdi + 0x48]
jmp 0x140024fee
cmp esi, 1
jne 0x140024f88
cmp byte [rdi + 0xa0], 0
je 0x140024f6e
mov rdx, rbx
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, 5
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 5
mov rcx, qword [rdi + 0x50]
jmp 0x140024fee
cmp esi, 2
jne 0x140024ff5
cmp byte [rdi + 0xa0], 0
je 0x140024fa3
mov rdx, rbx
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, 5
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 5
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 5
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rdi + 0xa0], 0
jne 0x140024ff5
mov edx, 5
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025011
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400274d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x38], edx
lea r8, str.SYSTEMCurrentControlSetServicesEventLogApplication_s
mov r9, rcx
mov qword [rsp + 0x30], 0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140015230
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [0x1401121c0]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140027550
lea ecx, [rax*2 + 2]
mov r9d, 2
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
lea rdx, str.EventMessageFile
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.TypesSupported
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsp + 0x38], 0
jbe 0x140027639
lea rax, [rsp + 0x50]
nop dword [rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400275d0
mov rcx, qword [rsp + 0x30]
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.CategoryMessageFile
lea rax, [rsp + 0x50]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.CategoryCount
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x270
pop rbx
ret
Function at 0x140027660
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
call fcn.140027350
mov rcx, rax
test rax, rax
je 0x1400278a2
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
mov rdi, qword [str.SOFTWARENitroPro13Settings]
call fcn.140027350
mov rcx, rax
test rax, rax
je 0x1400278ad
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea rbp, [rsi - 1]
test rdi, rdi
je 0x140027702
cmp rdi, 0x10000
jae 0x1400276f3
movzx edx, di
lea rcx, [rsp + 0x90]
call fcn.1400027a0
jmp 0x140027718
mov rax, rbp
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400276f6
jmp 0x140027704
mov eax, esi
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.140002f50
nop
mov r9d, 0x20019
mov rdi, qword [rsp + 0x90]
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14000f1e0
test eax, eax
jne 0x140027811
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140027770
mov edx, 0x104
lea rcx, [rsp + 0x98]
call fcn.140002930
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x80], 0x208
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.kBugsplatSendPDFDuringCrashReport
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400277ce
mov eax, dword [rsp + 0x88]
dec eax
cmp eax, 1
ja 0x1400277ce
test rbx, rbx
je 0x1400277ce
cmp dword [rsp + 0x80], 0
jne 0x1400277ce
mov word [rbx], si
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140027897
cmp eax, dword [rbx - 0xc]
jg 0x140027897
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
cmp qword [rsp + 0x38], 0
je 0x14002780d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov rcx, rsi
lea rdx, str._b_0
nop dword [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140027836
cmp rcx, 5
jne 0x140027820
jmp 0x14002783b
sbb esi, esi
or esi, 1
test esi, esi
setne bl
lea rdx, [rdi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002785a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002786b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x14002788b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070057
call fcn.140001ff0
nop
mov ecx, 0x80004005
call fcn.140001ff0
nop
mov ecx, 0x80004005
call fcn.140001ff0
int3
Function at 0x140028790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
call fcn.140027350
mov rcx, rax
test rax, rax
je 0x1400289d2
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
mov rdi, qword [str.SOFTWARENitroPro13Settings]
call fcn.140027350
mov rcx, rax
test rax, rax
je 0x1400289dd
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea rbp, [rsi - 1]
test rdi, rdi
je 0x140028832
cmp rdi, 0x10000
jae 0x140028823
movzx edx, di
lea rcx, [rsp + 0x90]
call fcn.1400027a0
jmp 0x140028848
mov rax, rbp
inc rax
cmp word [rdi + rax*2], 0
jne 0x140028826
jmp 0x140028834
mov eax, esi
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.140002f50
nop
mov r9d, 0x20019
mov rdi, qword [rsp + 0x90]
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14000f1e0
test eax, eax
jne 0x140028941
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400288a0
mov edx, 0x104
lea rcx, [rsp + 0x98]
call fcn.140002930
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x80], 0x208
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.kBugsplatEnableCrashReporting
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400288fe
mov eax, dword [rsp + 0x88]
dec eax
cmp eax, 1
ja 0x1400288fe
test rbx, rbx
je 0x1400288fe
cmp dword [rsp + 0x80], 0
jne 0x1400288fe
mov word [rbx], si
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400289c7
cmp eax, dword [rbx - 0xc]
jg 0x1400289c7
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
cmp qword [rsp + 0x38], 0
je 0x14002893d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov rcx, rsi
lea rdx, str._b_0
nop dword [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140028966
cmp rcx, 5
jne 0x140028950
jmp 0x14002896b
sbb esi, esi
or esi, 1
test esi, esi
setne bl
lea rdx, [rdi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002898a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002899b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400289bb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070057
call fcn.140001ff0
nop
mov ecx, 0x80004005
call fcn.140001ff0
nop
mov ecx, 0x80004005
call fcn.140001ff0
int3