Function at 0x402b00
Capabilities:
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4262fb
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x431cc4]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431cc4]
xor eax, esp
push eax
lea eax, [esp + 0x590]
mov dword fs:[0], eax
mov ebx, ecx
push 0xffffffffffffffff
xor ebp, ebp
push ebp
lea esi, [ebx + 0x78]
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00401710
push 0x5c
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x5a0], ebp
call fcn.004023e0
push 0xa
push str.UNINST.EXE
lea ecx, [esp + 0x28]
call fcn.00401910
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp dword [esp + 0x38], edi
jae 0x402b97
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402bc5
cmp dword [esp + 0x38], edi
jb 0x402bbb
mov edx, dword [esp + 0x24]
push edx
call fcn.004044a7
add esp, 4
mov eax, 1
jmp 0x402ea3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x18], edi
mov dword [esp + 0x14], ebp
jb 0x402bda
mov ecx, dword [esi + 4]
jmp 0x402bdd
lea ecx, [esi + 4]
lea edx, [esp + 0x488]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x402be4
lea edi, [esp + 0x488]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402c00
mov ax, word [0x428b08]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push 0x20006
push ebp
push ebp
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov word [edi], ax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402c58
cmp dword [esp + 0x38], 0x10
jb 0x402c4e
mov eax, dword [esp + 0x24]
push eax
call fcn.004044a7
add esp, 4
mov eax, 2
jmp 0x402ea3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.command.com__c_del
lea ecx, [esp + 0x180]
push ecx
call edi
push 0x104
lea edx, [esp + 0x388]
push edx
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x384]
push ecx
lea edx, [esp + 0x180]
push edx
call esi
push str.UNINST.EXE
lea eax, [esp + 0x180]
push eax
call esi
push str.UNINST
lea ecx, [esp + 0x284]
push ecx
call edi
push 0x428ab4
lea edx, [esp + 0x284]
push edx
call esi
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x180]
push ecx
push 1
push ebp
lea edx, [esp + 0x290]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402d23
cmp dword [esp + 0x38], 0x10
jb 0x402c4e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004044a7
add esp, 4
mov eax, 2
jmp 0x402ea3
xor edi, edi
mov ebp, 2
lea esi, [ebx + 0xa4]
mov dword [esp + 0x18], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x402e77
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x402e77
mov eax, dword [esi + 4]
test eax, eax
je 0x402d82
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x402d87
call fcn.00413d40
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x402d9d
mov eax, dword [eax + 4]
jmp 0x402da0
add eax, 4
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402e61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.command.com__c_rmdir
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov ecx, esi
call fcn.00402190
cmp dword [eax + 0x18], ebx
jb 0x402de1
mov eax, dword [eax + 4]
jmp 0x402de4
add eax, 4
push 0x104
lea ecx, [esp + 0x388]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x384]
push edx
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push str.UNINST
lea ecx, [esp + 0x288]
push str._s_u
push ecx
call fcn.0041394a
add esp, 0x10
lea edx, [esp + 0x17c]
push edx
add ebp, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
add eax, 1
push eax
lea eax, [esp + 0x180]
push eax
push 1
push 0
lea ecx, [esp + 0x290]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402e6e
add edi, 1
add dword [esp + 0x18], 0x1c
jmp 0x402d34
cmp dword [esp + 0x38], ebx
jmp 0x402c3f
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x38], 0x10
jb 0x402ea1
mov eax, dword [esp + 0x24]
push eax
call fcn.004044a7
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x590]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.004132e0
add esp, 0x588
ret