Function at 0x42f4e0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x45825d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov ebx, ecx
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42f54c
xor al, al
jmp 0x42f76e
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
jle 0x42f564
lea eax, [eax + ecx*2]
add eax, 0xffffff62
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc8
push ecx
lea ecx, [ebp]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x42f594
cmp dword [ebp - 0x1c], 0xc8
jbe 0x42f760
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x42f79b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x42f6aa
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
test edx, edx
js 0x42f791
cmp word [ecx], 0x22
je 0x42f6aa
test edx, edx
jle 0x42f6aa
push 0x20
push ecx
call fcn.00439cf5
add esp, 8
test eax, eax
je 0x42f6aa
sub eax, dword [ebx]
sar eax, 1
cmp eax, 0xffffffff
je 0x42f6aa
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
lea edi, [eax + 1]
test edi, edi
js 0x42f791
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42f631
push edi
lea ecx, [ebp - 0x10]
call fcn.00403ef0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, 0x22
mov word [esi + eax*2], cx
cmp edi, dword [esi - 8]
jg 0x42f791
mov dword [esi - 0xc], edi
lea ecx, [ebp - 0x10]
xor eax, eax
mov word [esi + edi*2], ax
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.00403530
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x42f791
mov ecx, dword [eax - 8]
mov ebx, 1
mov edx, ebx
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x42f68d
push esi
lea ecx, [ebp - 0x10]
call fcn.00403ef0
mov eax, dword [ebp - 0x10]
mov ecx, 0x22
mov word [eax + edi*2], cx
cmp esi, dword [eax - 8]
jg 0x42f791
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
jmp 0x42f6bb
push ebx
lea ecx, [ebp - 0x10]
call fcn.00407c70
mov eax, dword [ebp - 0x10]
mov ebx, 1
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x42f719
js 0x42f791
cmp word [edx], 0x20
je 0x42f719
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x42f791
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, esi
or ecx, ebx
jge 0x42f6f9
push esi
lea ecx, [ebp - 0x10]
call fcn.00403ef0
mov eax, dword [ebp - 0x10]
mov ecx, 0x20
mov word [eax + edi*2], cx
cmp esi, dword [eax - 8]
jg 0x42f791
mov dword [eax - 0xc], esi
xor ecx, ecx
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403530
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42f760
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x80070057
call fcn.00404020
push 0x80004005
call fcn.00404020
int3