Function at 0x40289e
Capabilities:
Create process on windows
Delete registry value
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
lea eax, [ebp - 8]
push esi
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b3f
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4028e9
movzx eax, word [0x404238]
shl eax, 0x10
push eax
push 0
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x70], 0x44
xor edi, edi
mov word [ebp - 0x3e], di
mov dword [ebp - 0x6c], edi
push 0x7f02
mov dword [ebp - 0x68], edi
mov eax, dword [0x404214]
mov dword [ebp - 0x64], edi
push eax
xor ebx, ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x278]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x1c], 0x104
push ebx
push eax
push ecx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
je 0x402afd
test eax, eax
jne 0x402b06
cmp dword [ebp - 0x14], 1
jne 0x402afd
test esi, esi
je 0x402994
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push dword [ebp - 0xc]
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x40421c], ebx
je 0x4029ad
mov al, byte [0x4012e8]
cmp byte [ebp - 0x174], al
jne 0x402afd
cmp dword [0x404220], ebx
je 0x4029c6
mov al, byte [0x4012e4]
cmp byte [ebp - 0x174], al
je 0x402afd
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4029db
dec edi
mov al, byte [0x4012e0]
cmp byte [ebp - 0x174], al
jne 0x402a1d
push 0x4012f4
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402aac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x402aac
push 0x40151c
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402a47
lea eax, [ebp - 0x278]
push eax
push 0x404020
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402aac
cmp dword [ebp - 0x10], ebx
je 0x402a58
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push eax
lea edx, [ebp - 0x278]
push ecx
push ebx
push ebx
push 0x200
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402a9b
push 1
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x402aa9
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 4], ebx
cmp dword [0x404200], ebx
je 0x402afd
mov cx, word [ebp - 0xc]
mov ax, word [0x404234]
inc dword [0x40423c]
add cx, ax
movzx ecx, cx
add ax, word [0x404238]
movzx edx, ax
shl ecx, 0x10
mov eax, dword [0x404204]
or ecx, edx
push ecx
push 0x1e
push eax
push dword [0x404200]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402afd
push 0x4014c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc edi
inc dword [ebp - 0xc]
jmp 0x402922
test esi, esi
je 0x402b2c
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov eax, dword [0x404238]
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 8]
mov eax, dword [0x404238]
mov dword [0x40423c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc