Function at 0x531ab5
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x318
mov eax, 0x79625b
call fcn.00700ca1
cmp dword [ebp + 0x104], 0
mov dword [ebp - 4], 2
jne 0x531e7c
lea eax, [ebp + 0x108]
push eax
lea eax, [ebp - 0x278]
push str.HKU_
push eax
call fcn.004c2005
push 0x208
xor esi, esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00719250
add esp, 0x18
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x278]
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x230]
push eax
call fcn.004c0690
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
cmp dword [ebp + 0x138], esi
je 0x531bd5
push str.load
call fcn.004c097f
push 0x80a3f0
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.004c1fb2
lea ecx, [ebp + 0x120]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.004d4e59
push 0x8099a0
push eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 6
push eax
call fcn.004f9cf1
add esp, 0x24
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 7
jb 0x531ba1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004cc728
lea ecx, [ebp - 0x2a8]
call fcn.004c0931
lea ecx, [ebp - 0x2c0]
call fcn.004c0931
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 4
call fcn.004c0931
jmp 0x531c05
push str.unload
call fcn.004c097f
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push eax
call fcn.004cc728
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x250], esi
push str.reg.exe
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], edi
mov word [ebp - 0x260], ax
call fcn.004c097f
xor eax, eax
mov byte [ebp - 4], 8
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], edi
call fcn.004c097f
push 0x5c
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.005126ee
mov eax, dword [ebp - 0x234]
add esp, 0x10
mov esi, 0x1000
cmp eax, 8
jb 0x531ce4
mov ecx, dword [ebp - 0x248]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x531cdb
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x234], edi
xor edx, edx
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], edx
cmp eax, 8
jb 0x531d4f
mov ecx, dword [ebp - 0x260]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2e0], ecx
cmp eax, esi
jb 0x531d44
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2dc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e0]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x250], edx
push 0x3c
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x324]
mov dword [ebp - 0x24c], edi
pop ecx
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x531d6d
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x324], 0x3c
cmovae eax, dword [ebp - 0x290]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x324]
push eax
mov dword [ebp - 0x320], 0x100
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x308], edx
mov dword [ebp - 0x30c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x531dfd
push 0x2710
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.004c0931
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x531e5a
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], ecx
cmp eax, esi
jb 0x531e51
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2dc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 0x21c], edi
xor eax, eax
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x278]
mov word [ebp - 0x230], ax
call fcn.004c0931
lea ecx, [ebp + 8]
call fcn.00525658
lea ecx, [ebp + 0x108]
call fcn.004c0931
lea ecx, [ebp + 0x120]
call fcn.004c0931
call fcn.00700c4b
ret 0x134