Function at 0x1800013e0
Capabilities:
Query or enumerate registry value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov ebx, edx
mov rdi, rcx
call fcn.180003390
test eax, eax
jne 0x180001443
test ebx, ebx
je 0x180001679
sub ebx, 1
je 0x18000146a
sub ebx, 1
je 0x180001460
cmp ebx, 1
jne 0x180001443
mov ecx, dword [section..data]
test ecx, ecx
js 0x180001431
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x18001a004]
test ecx, ecx
js 0x180001443
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rdi
call fcn.180001390
jmp 0x180001448
movabs rcx, 0x2fbc343a47d24624
lea rdx, [rbp - 9]
movabs rax, 0xedf36ac2b30185d6
xor ebx, ebx
mov qword [rbp - 0x49], rax
movabs r14, 0xa8a12b95e747ca85
mov rax, qword [rbp - 0x49]
movabs rsi, 0x9e0d3eb07f449be2
mov qword [rbp - 9], rax
xor r9d, r9d
mov qword [rsp + 0x40], rbx
movabs rax, 0xcb795fd83c21ccbe
mov qword [rbp - 0x49], rax
xor r8d, r8d
mov rax, qword [rbp - 0x49]
mov qword [rbp - 1], rax
movabs rax, 0x8b3fce2de1388b7
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], rcx
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x49], r14
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x49], rsi
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x2f], rax
movabs rax, 0x8b3fc87aa72ecc7
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x49], rcx
mov rcx, 0xffffffff80000002
mov rax, qword [rbp - 0x49]
movdqa xmm0, xmmword [rbp - 9]
movdqa xmm1, xmmword [rbp + 7]
pxor xmm0, xmmword [rbp + 0x27]
mov qword [rbp + 0x3f], rax
lea rax, [rbp - 0x39]
pxor xmm1, xmmword [rbp + 0x37]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], ebx
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180001672
mov dword [rbp - 0x41], ebx
lea r8, [rbp - 0x29]
mov dword [rbp + 0x7f], 4
movabs rax, 0xa8a152f68e2ba5d5
mov qword [rbp - 0x49], rax
mov r9d, 0xffff
mov rax, qword [rbp - 0x49]
xor edx, edx
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x49], rsi
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x49], r14
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x49], rsi
mov rax, qword [rbp - 0x49]
movdqa xmm0, xmmword [rbp - 0x29]
mov rcx, qword [rbp - 0x39]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0x7f]
pxor xmm0, xmmword [rbp + 0x17]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
movdqa xmmword [rbp - 0x29], xmm0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x180001668
cmp dword [rbp + 0x7f], 4
jne 0x180001668
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rbp - 0x17]
imul edx, eax, 0x3e5
movzx eax, word [rbp - 0x13]
imul ecx, eax, 0x17
movzx eax, word [rbp - 0x19]
add edx, ecx
imul ecx, eax, 0x10001
movzx eax, word [rbp - 0x11]
add edx, ecx
add edx, eax
cmp edx, dword [rbp - 0x41]
jne 0x180001672
mov r8d, 0x200
mov dword [0x18001aab0], 1
lea rdx, [0x18001aac0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.180003180
mov rcx, rdi
call fcn.1800010a0
jmp 0x180001448
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x180001448
cmp dword [0x18001aab0], 0
je 0x180001672
mov ecx, dword [section..data]
test ecx, ecx
js 0x180001694
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x18001a004]
test ecx, ecx
js 0x1800016a6
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.1800025a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002c40
mov ecx, 1
call fcn.180002590
cmp qword [0x18001aab8], 0
je 0x1800016e0
lea rdx, section..text
lea rcx, [0x18001aab8]
call fcn.180002420
cmp qword [0x18001aec0], 0
je 0x1800016fd
lea rdx, [0x180001030]
lea rcx, [0x18001aec0]
call fcn.180002420
call fcn.180002650
test eax, eax
je 0x180001715
xor ebx, ebx
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rbx
call fcn.180002660
mov ecx, dword [section..data]
test ecx, ecx
js 0x180001725
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x18001a004]
test ecx, ecx
js 0x180001443
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x180001443