Function at 0x6d531250
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xe4
mov dword [0x6d535000], eax
push ebx
push esi
push edi
push ebp
xor esi, esi
mov dword [0x6d535004], esi
mov dword [0x6d535008], esi
mov dword [0x6d53500c], esi
mov dword [0x6d535010], esi
mov dword [0x6d535014], esi
mov dword [0x6d535018], esi
push esi
mov dword [0x6d53501c], esi
push esi
mov dword [0x6d535020], esi
push esi
mov dword [0x6d535024], esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [0x6d535010], eax
cmp eax, esi
jne 0x6d5312e4
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5312d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1cb
push 0x6d5370c0
push 0x6d5374ac
call fcn.6d533090
add esp, 0x10
call fcn.6d531130
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe4
ret
push 0x200
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x6d53131e
push 0x1010
push 0x6d537498
push 0x6d53746c
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
call fcn.6d531130
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe4
ret
mov edi, edx
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov eax, dword [0x6d535024]
lea ecx, [esp + 0x24]
push ecx
mov dword [0x6d535020], edx
mov dword [0x6d535018], 0x80
push 0x20019
mov dword [eax*4 + 0x6d535028], edx
push 0
inc dword [0x6d535024]
push 0x6d53745c
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x6d53139a
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5318dc
push eax
push 0x6d53745c
push 0x1e0
push 0x6d5370c0
push 0x6d537424
call fcn.6d533090
add esp, 0x14
jmp 0x6d5318dc
mov dword [esp + 0x28], 0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.DLL_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x6d5318a3
mov byte [esp + 0x73], 0
lea eax, [esp + 0x34]
push eax
call fcn.6d533629
add esp, 4
mov edi, eax
test edi, edi
je 0x6d53183d
cmp edi, 0xffff
ja 0x6d53183d
xor ebx, ebx
cmp ebx, dword [0x6d535008]
jae 0x6d531466
mov eax, 0x6d5350d2
xor ecx, ecx
mov cx, word [eax]
cmp ecx, edi
jae 0x6d531422
add eax, 0xc
inc ebx
cmp ebx, dword [0x6d535008]
jb 0x6d53140d
cmp ebx, dword [0x6d535008]
jae 0x6d531466
lea eax, [ebx + ebx*2]
xor ecx, ecx
mov cx, word [eax*4 + 0x6d5350d2]
cmp ecx, edi
jne 0x6d531466
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531466
lea eax, [esp + 0x34]
push esi
push eax
push 0x6d53745c
push 0x1f8
push 0x6d5370c0
push 0x6d5373a0
call fcn.6d533090
add esp, 0x18
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x24]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x6d5314b2
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531868
push eax
lea eax, [esp + 0x38]
push eax
push 0x6d53745c
push 0x1fe
push 0x6d5370c0
push 0x6d537364
jmp 0x6d531860
xor esi, esi
push pe_nt_image_headers32
lea eax, [esp + 0x78]
push 0x6d537358
push eax
call fcn.6d533570
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
mov byte [esp + 0xbf], 0
lea edx, [esp + 0x80]
add esp, 0xc
push eax
push esi
mov eax, dword [esp + 0x24]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x6d5317f5
cmp dword [esp + 0x18], 1
jne 0x6d531551
mov eax, dword [esp + 0x10]
add eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
test esi, esi
je 0x6d53197a
lea ecx, [esi + 1]
mov byte [esi], 0x5c
inc ecx
inc ecx
lea edx, [esp + 0x10]
inc ecx
push edx
mov byte [ecx - 3], 0x5c
mov byte [ecx - 2], 0x2e
mov byte [ecx - 1], 0x5c
mov eax, dword [esp + 0x14]
push ecx
mov byte [eax + ecx], 0
lea ecx, [esp + 0x20]
lea eax, [esp + 0x7c]
push ecx
mov edx, dword [esp + 0x28]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x6d5317f5
cmp dword [esp + 0x18], 1
jne 0x6d5317f5
lea eax, [esp + 0x74]
push pe_nt_image_headers32
mov dword [esp + 0x24], 1
push 0x6d5372d8
push eax
call fcn.6d533570
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
mov byte [esp + 0xbf], 0
mov dword [esp + 0x1c], 4
lea edx, [esp + 0x24]
add esp, 0xc
push eax
push ecx
lea eax, [esp + 0x7c]
push edx
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x6d5315c3
cmp dword [esp + 0x18], 4
jne 0x6d5315c3
cmp dword [esp + 0x10], 4
je 0x6d5315fb
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5315f3
lea ecx, [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push eax
push ecx
push 0x6d53745c
push 0x228
push 0x6d5370c0
push 0x6d5372ec
call fcn.6d533090
add esp, 0x1c
mov dword [esp + 0x14], 0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x6d531650
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531643
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push 0x236
push 0x6d5370c0
push 0x6d5372a4
call fcn.6d533090
add esp, 0x14
mov dword [esp + 0x20], 0
jmp 0x6d53170a
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0xb8]
push eax
mov dword [0x6d535004], 1
mov word [esp + 0xbc], 0
push pe_nt_image_headers32
push ecx
lea ecx, [esp + 0xc4]
push pe_nt_image_headers32
push ecx
push 0x80012020
push ebp
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x6d5316b1
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5316fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push 0x241
push 0x6d5370c0
push 0x6d53726c
jmp 0x6d5316f3
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0xb4]
jne 0x6d5316ca
and eax, 0xffff
mov dword [esp + 0x14], eax
jmp 0x6d531703
and eax, 0xffff
cmp dword [esp + 0x14], eax
je 0x6d531703
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5316fb
mov ecx, dword [esp + 0x14]
push ecx
push eax
push 0x24b
push 0x6d5370c0
push 0x6d537224
call fcn.6d533090
add esp, 0x14
mov dword [esp + 0x20], 0
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x6d531825
mov eax, dword [esp + 0x14]
add eax, dword [0x6d53500c]
cmp eax, 0x7f
jbe 0x6d53174d
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531825
push 0x256
push 0x6d5370c0
push 0x6d5371ec
call fcn.6d533090
add esp, 0xc
jmp 0x6d531825
cmp dword [0x6d535008], 0x40
jb 0x6d53177f
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531825
push 0x25d
push 0x6d5370c0
push 0x6d5371c4
call fcn.6d533090
add esp, 0xc
jmp 0x6d531825
cmp ebx, dword [0x6d535008]
jae 0x6d5317b6
lea eax, [ebx + ebx*2]
lea edx, [eax*4 + 0x6d5350d0]
lea ecx, [eax*4]
mov eax, dword [0x6d535008]
add ecx, 0x6d5350dc
sub eax, ebx
lea eax, [eax + eax*2]
shl eax, 2
push eax
push edx
push ecx
call fcn.6d533420
add esp, 0xc
lea eax, [ebx + ebx*2]
mov dl, byte [esp + 0x14]
inc dword [0x6d535008]
lea ecx, [eax*4]
mov eax, dword [esp + 0x20]
mov byte [ecx + 0x6d5350d1], dl
mov word [ecx + 0x6d5350d2], di
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x6d5350d4], esi
xor esi, esi
mov dword [ecx + 0x6d5350d8], eax
add dword [0x6d53500c], edx
jmp 0x6d531825
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531825
lea ecx, [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push eax
push ecx
push 0x6d53745c
push 0x21c
push 0x6d5370c0
push 0x6d5372ec
call fcn.6d533090
add esp, 0x1c
test esi, esi
je 0x6d531830
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
jmp 0x6d531868
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531868
lea eax, [esp + 0x34]
push esi
push eax
push 0x6d53745c
push 0x1ee
push 0x6d5370c0
push 0x6d5373e4
call fcn.6d533090
add esp, 0x18
lea eax, [esp + 0x2c]
inc dword [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x38]
push 0
mov eax, dword [esp + 0x30]
push 0
mov dword [esp + 0x1c], pe_nt_image_headers32
push 0
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegEnumKeyExA]
mov esi, eax
test esi, esi
je 0x6d5313d6
cmp esi, 0x103
je 0x6d5318d1
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5318d1
push esi
push 0x6d53745c
push 0x27d
push 0x6d5370c0
push 0x6d537188
call fcn.6d533090
add esp, 0x14
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor ebx, ebx
mov ebp, 1
mov dword [esp + 0x28], ebx
cmp dword [0x6d535008], ebx
jbe 0x6d531942
mov edx, 0x6d5350d0
mov al, byte [esp + 0x28]
xor ecx, ecx
mov byte [edx], al
mov cl, byte [edx + 1]
add dword [esp + 0x28], ecx
cmp ebp, dword [esp + 0x28]
ja 0x6d531936
mov esi, dword [esp + 0x28]
xor eax, eax
mov ch, bl
sub esi, ebp
mov cl, bl
inc esi
mov al, bl
lea edi, [ebp + 0x6d535050]
mov eax, ecx
shl eax, 0x10
mov ax, cx
mov ecx, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
add ebp, esi
add edx, 0xc
inc ebx
cmp ebx, dword [0x6d535008]
jb 0x6d5318f4
cmp dword [0x6d535008], 0
jne 0x6d5319b7
cmp dword [0x6d537df0], 0xffffffff
je 0x6d531a05
push 0x28e
push 0x6d5370c0
push 0x6d537150
call fcn.6d533090
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe4
ret
push 0x1010
push 0x6d537498
push 0x6d53732c
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
call fcn.6d531130
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe4
ret
xor edi, edi
cmp dword [0x6d535008], edi
jbe 0x6d531a05
mov esi, 0x6d5350d1
mov ebx, 0xffffffff
cmp dword [0x6d537df0], ebx
je 0x6d5319f9
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi - 1]
push eax
mov edx, dword [esi + 3]
push ecx
push edx
push 0x298
push 0x6d5370c0
push 0x6d537104
call fcn.6d533090
add esp, 0x18
add esi, 0xc
inc edi
cmp edi, dword [0x6d535008]
jb 0x6d5319cb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe4
ret