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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f1ab
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x4c448c]
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, dword [0x4c41fc]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], edi
call edx
add eax, 0x10
mov dword [ebp - 0x814], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x81c], ebx
cmp edi, ebx
jne 0x42a5b9
xor eax, eax
jmp 0x42a5cf
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a5c0
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x814]
push ecx
mov ebx, eax
call fcn.00402e20
mov ebx, dword [ebp - 0x814]
test esi, esi
je 0x42a65c
mov eax, dword [ebx - 0xc]
test eax, eax
jns 0x42a5f4
or eax, 0xffffffff
jmp 0x42a60f
push 0x4ae8fc
push ebx
call fcn.00474087
add esp, 8
test eax, eax
jne 0x42a60b
or eax, 0xffffffff
jmp 0x42a60f
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x42a65c
mov ecx, dword [ebx - 0xc]
mov esi, eax
inc eax
js 0x42a63e
cmp eax, ecx
jg 0x42a63e
lea edx, [ebx + eax*2]
push 0x4ae8fc
push edx
call fcn.00474087
add esp, 8
test eax, eax
je 0x42a63e
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x42a614
cmp esi, 0xffffffff
je 0x42a65c
mov eax, dword [ebx - 0xc]
lea ecx, [ebp - 0x814]
push ecx
sub eax, esi
mov ecx, esi
call fcn.004153f0
mov ebx, dword [ebp - 0x814]
cmp dword [ebx - 0xc], 0
je 0x42ab23
test edi, edi
je 0x42ab23
push 0x1002
call fcn.0047125f
push 0xffffffffffffffff
push edi
mov esi, eax
push 0x800
push esi
mov dword [ebp - 0x830], esi
call fcn.004740e7
push 0x1002
call fcn.0047125f
add esp, 0x18
mov ebx, eax
push 0x800
push ebx
xor edx, edx
push edi
mov dword [ebp - 0x82c], ebx
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x42a6cb
cmp eax, 0x800
ja 0x42a6cb
push ebx
call fcn.00473d7d
add esp, 4
jmp 0x42a6d0
xor eax, eax
mov word [ebx], ax
push 0x800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x42a6e8
cmp eax, 0x800
jbe 0x42a6f9
push 0xffffffffffffffff
push edi
push 0x800
push esi
call fcn.004740e7
add esp, 0x10
push esi
call fcn.00473d7d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 4
lea ecx, [ebp - 0x840]
push ecx
lea edx, [ebp - 0x818]
push edx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a8eb
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x818]
push 0
push 0
push 0
push 0
push eax
push ecx
call edi
test eax, eax
je 0x42a8ce
mov eax, dword [ebp - 0x814]
mov esi, 1
cmp dword [eax - 4], esi
jle 0x42a783
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp - 0x814]
push eax
call fcn.00401ff0
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x818]
push 0
push 0
push 0
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x42a7a4
mov dword [ebp - 0x81c], esi
jmp 0x42a8d8
mov eax, dword [ebp - 0x834]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a7b0
sub eax, edx
sar eax, 1
je 0x42a8d8
mov eax, 0x1ff
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x828], eax
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0x818]
xor esi, esi
push esi
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x810]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42a8d8
cmp dword [ebp - 0x824], 1
jne 0x42a87f
lea eax, [ebp - 0x410]
xor edx, edx
push eax
mov word [ebp - 0x12], dx
call fcn.00473d7d
mov ecx, dword [ebp - 0x830]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.00474087
add esp, 0xc
test eax, eax
jne 0x42a8ce
mov eax, dword [ebp - 0x82c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a854
sub eax, edx
sar eax, 1
je 0x42a87f
mov eax, dword [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00474087
add esp, 8
test eax, eax
jne 0x42a8ce
mov eax, 0x1ff
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x828], eax
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0x818]
push 0
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x810]
push eax
inc esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42a812
jmp 0x42a8d8
mov dword [ebp - 0x81c], 1
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x830]
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x818]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x42aadd
mov edx, dword [ebp - 0x838]
push eax
push eax
push eax
push eax
mov eax, dword [ebp - 0x818]
push edx
push eax
call edi
test eax, eax
je 0x42aac3
mov eax, dword [ebp - 0x814]
cmp dword [eax - 4], 1
jle 0x42a952
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x814]
push edx
call fcn.00401ff0
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x818]
push 0
push 0
push 0
push 0
push eax
push ecx
call edi
test eax, eax
je 0x42aac3
mov eax, dword [ebp - 0x834]
lea edx, [eax + 2]
jmp 0x42a980
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a980
sub eax, edx
sar eax, 1
je 0x42aaca
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
xor eax, eax
mov word [ebp - 0x810], dx
lea ecx, [ebp - 0x820]
push ecx
mov word [ebp - 0x410], ax
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0x818]
xor esi, esi
push esi
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x810]
push edx
push esi
mov ebx, 0x1ff
push eax
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x820], ebx
call edi
test eax, eax
jne 0x42aaca
cmp dword [ebp - 0x824], 1
jne 0x42aa6b
lea edx, [ebp - 0x410]
xor ecx, ecx
push edx
mov word [ebp - 0x12], cx
call fcn.00473d7d
mov eax, dword [ebp - 0x830]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00474087
add esp, 0xc
test eax, eax
jne 0x42aac3
mov eax, dword [ebp - 0x82c]
lea edx, [eax + 2]
jmp 0x42aa40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aa40
sub eax, edx
sar eax, 1
je 0x42aa6b
mov edx, dword [ebp - 0x82c]
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.00474087
add esp, 8
test eax, eax
jne 0x42aac3
xor ecx, ecx
xor edx, edx
mov word [ebp - 0x810], cx
lea eax, [ebp - 0x820]
push eax
mov word [ebp - 0x410], dx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x824]
push edx
mov edx, dword [ebp - 0x818]
push 0
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x810]
push ecx
inc esi
push esi
push edx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x820], ebx
call edi
test eax, eax
je 0x42a9f6
jmp 0x42aaca
or dword [ebp - 0x81c], 2
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x830]
push esi
call fcn.00472958
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.00472958
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ab1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x81c]
jmp 0x42ab48
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ab46
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.00474985
mov esp, ebp
pop ebp
ret