Function at 0x3000ba76
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x3000c1cc
call fcn.3000c0a2
sub esp, 0x694
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x248], bx
mov ecx, edx
lea edi, [ebp - 0x246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xb
pop ecx
xor eax, eax
mov word [ebp - 0x40], bx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x450], bx
mov ecx, edx
lea edi, [ebp - 0x44e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x450]
mov esi, 0x104
push esi
push eax
push ebx
mov dword [ebp - 0x698], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jbe 0x3000bb25
cmp eax, esi
jae 0x3000bb25
lea eax, [ebp + eax*2 - 0x452]
jmp 0x3000bb05
cmp word [eax], 0x5c
je 0x3000bb1b
dec eax
dec eax
lea ecx, [ebp - 0x450]
cmp eax, ecx
mov dword [ebp - 0x698], eax
ja 0x3000bafd
cmp word [eax], 0x5c
jne 0x3000bb2c
inc eax
inc eax
mov dword [ebp - 0x698], eax
jmp 0x3000bb2c
mov word [ebp - 0x450], bx
mov dword [ebp - 0x69c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x69c]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x30001960
push 0x80000000
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x3000bbff
lea eax, [ebp - 0x694]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x694], ebx
push dword [ebp - 0x69c]
call esi
test eax, eax
jne 0x3000bbeb
lea eax, [ebp - 0x690]
push eax
push edi
push ebx
push 0x30001f90
push dword [ebp - 0x694]
mov dword [ebp - 0x690], ebx
call esi
test eax, eax
jne 0x3000bbd7
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push 0x30001720
push dword [ebp - 0x690]
mov dword [ebp - 0x6a0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3000bbd0
mov word [ebp - 0x42], bx
jmp 0x3000bbd7
mov word [ebp - 0x248], bx
cmp dword [ebp - 0x690], ebx
je 0x3000bbeb
push dword [ebp - 0x690]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x694], ebx
je 0x3000bbff
push dword [ebp - 0x694]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x248], bx
je 0x3000bceb
push 0x30002780
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000255c
push eax
mov dword [ebp - 0x690], eax
call esi
lea ecx, [ebp - 0x694]
push ecx
lea ecx, [ebp - 0x248]
push ecx
call eax
cmp eax, ebx
mov dword [ebp - 0x694], eax
jne 0x3000bc4e
mov word [ebp - 0x40], bx
jmp 0x3000bceb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x3000bceb
push 0x30002580
push dword [ebp - 0x690]
call esi
push edi
push dword [ebp - 0x694]
lea ecx, [ebp - 0x248]
push ebx
push ecx
call eax
test eax, eax
je 0x3000bcdc
push 0x30002594
push dword [ebp - 0x690]
call esi
lea ecx, [ebp - 0x690]
push ecx
lea ecx, [ebp - 0x6a0]
push ecx
push 0x30001d6c
push edi
call eax
test eax, eax
je 0x3000bcdc
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x40]
push 0x30002768
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x68c], bx
mov ecx, 0x8e
lea edi, [ebp - 0x68a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x68c]
push 0x30002754
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x68c]
push eax
push 0x5330
push 4
push dword [ebp - 0x698]
call fcn.3000b88f
cmp dword [ebp - 0x69c], ebx
mov esi, eax
je 0x3000bd55
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.3000b837
leave
ret 4