Function at 0x4c5a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b7c
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x70]
mov dword [ebp - 0x2b78], eax
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
xor ebx, ebx
mov dword [ebp - 0x2b74], 0x2710
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.0123456789012345678901234567890123456789
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax], bl
cmp dword [0x73e7bc], ebx
je 0x4c5bb7
lea eax, [ebp - 0x2b70]
push eax
push 0x20019
push ebx
push str.SAMSAMDomainsAccount
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5bb7
lea eax, [ebp - 0x2b74]
push eax
lea eax, [ebp - 0x2b68]
push eax
lea eax, [ebp - 0x2b7c]
push eax
push ebx
push 0x69c1e8
push dword [ebp - 0x2b70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2b70]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c5bb7
push 2
pop eax
cmp word [ebp - 0x2b68], ax
je 0x4c5af7
cmp word [ebp - 0x2b68], 3
jne 0x4c5bb7
cmp dword [ebp - 0x2b00], 1
jne 0x4c5bc8
push 0x10
pop edi
push edi
lea eax, [ebp - 0x2af8]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.006269d0
push 0x2f
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.006269d0
push edi
lea eax, [ebp - 0x419]
push 0x73e7c0
push eax
call fcn.006269d0
push 0x29
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x409]
push eax
call fcn.006269d0
push edi
lea eax, [ebp - 0x14]
push eax
push 0x78
lea eax, [ebp - 0x458]
push eax
push 0x8003
call fcn.004c63d4
add esp, 0x44
test eax, eax
je 0x4c5bb7
push edi
push 0x40
mov dword [ebp - 0x2b6c], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4c5beb
push edi
lea eax, [ebp - 0x2ae8]
push eax
push esi
call fcn.006269d0
lea eax, [ebp - 0x2b6c]
push eax
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004c65e6
add esp, 0x1c
test eax, eax
jne 0x4c5c30
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
cmp dword [ebp - 0x2b00], eax
jne 0x4c5bb7
mov edi, dword [ebp - 0x2af4]
push edi
push 0x40
mov dword [ebp - 0x2b6c], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4c5bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c5bb7
push edi
lea eax, [ebp - 0x2ae0]
push eax
push esi
call fcn.006269d0
lea eax, [ebp - 0x2b6c]
push eax
push esi
push 0x10
pop edi
push edi
push 0x73e7c0
push edi
lea eax, [ebp - 0x2af0]
push eax
push 1
push 1
push 0x660e
call fcn.004c64dc
add esp, 0x30
jmp 0x4c5ba8
cmp dword [ebp - 0x2b6c], edi
jne 0x4c5c61
push edi
push esi
mov ebx, 0x73e7d4
push ebx
call fcn.006269d0
push dword [ebp + 0xc]
mov dword [0x73e7d0], edi
push dword [ebp - 0x2b78]
push edi
push ebx
call fcn.0044969e
xor ebx, ebx
add esp, 0x1c
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x4c5bb9