Function at 0x421230
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x104
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x62c]
push eax
mov ecx, 0x4cb07c
call fcn.00401d40
lea ecx, [ebp - 0x630]
push ecx
push 0
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4212d2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4212c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x42149e
mov edx, dword [ebp - 0x630]
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
push str.htmlfile_shellopencommand
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x421315
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4212bc
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x644]
push eax
mov eax, dword [ebp - 0x634]
push 0
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x216], 0x22
lea ebx, [ebp - 0x216]
je 0x4213e3
lea ecx, [ecx]
mov ecx, dword [ebp - 0x62c]
mov edi, dword [ecx - 0xc]
movzx eax, word [ebx]
lea esi, [edi + 1]
mov dword [ebp - 0x63c], eax
test esi, esi
js 0x4214ba
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4213b1
mov eax, esi
lea ecx, [ebp - 0x62c]
call fcn.00401ea0
mov ecx, dword [ebp - 0x62c]
mov dx, word [ebp - 0x63c]
mov word [ecx + edi*2], dx
mov eax, dword [ebp - 0x62c]
cmp esi, dword [eax - 8]
jg 0x4214ba
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x62c]
xor eax, eax
add ebx, 2
mov word [ecx + esi*2], ax
cmp word [ebx], 0x22
jne 0x421370
push 1
push 0x4cb07c
lea ebx, [ebp - 0x62c]
call fcn.00406d60
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 4], 1
jle 0x421413
mov edx, dword [eax - 0xc]
push edx
mov eax, ebx
push eax
call fcn.00401de0
mov eax, dword [ebp - 0x62c]
push 1
push 0
push 0x4cb080
push eax
push 0x4c88cc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x62c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0049acee
add esp, 8
test eax, eax
js 0x4214ba
mov ecx, dword [ebp - 0x62c]
cmp eax, dword [ecx - 8]
jg 0x4214ba
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x62c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x634]
push eax
call esi
mov ecx, dword [ebp - 0x630]
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42149c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402be0
int3