Function at 0x4240f0
Capabilities:
Encode data using xor
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0761
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x515e20]
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 [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 4], 0
call fcn.00424dc0
test al, al
jne 0x424162
call fcn.0049ed34
mov dword [0x517280], eax
push 0
lea eax, [ebp - 0x814]
push esi
push eax
call fcn.00422ee0
add esp, 0xc
lea ecx, [ebp - 0x82c]
push 0x2001f
push dword [eax]
push dword [0x51112c]
call fcn.0040ab40
mov edx, dword [ebp - 0x814]
test eax, eax
setne bl
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4241b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4241c2
mov edi, dword [ebp - 0x82c]
xor bl, bl
jmp 0x42440b
mov ecx, dword [0x517280]
mov ebx, 0xc
lea edi, [ecx + 1]
mov eax, edi
imul eax, ecx
cdq
idiv ebx
xor esi, esi
cmp edx, 3
jne 0x42420c
sub ecx, esi
je 0x424202
dec ecx
je 0x4241f4
mov dword [0x517280], edi
mov edi, dword [ebp - 0x82c]
jmp 0x424226
mov edi, dword [ebp - 0x82c]
mov dword [0x517280], esi
jmp 0x424226
mov dword [0x517280], 2
mov edi, dword [ebp - 0x82c]
jmp 0x424226
mov esi, dword [ebp - 0x820]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0049f660
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push edi
mov dword [ebp - 0x81c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
inc esi
mov dword [ebp - 0x820], esi
test ebx, ebx
jne 0x42432c
mov edx, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4242ca
movzx esi, ax
push ebx
push esi
call fcn.00403010
add esp, 8
test eax, eax
je 0x4242f2
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.00406b10
jmp 0x4242f2
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4242d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00408ed0
mov ecx, dword [ebp - 0x818]
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 2
call fcn.00424e60
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42432c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00445650
test al, al
jne 0x424356
mov eax, dword [0x517280]
xor esi, esi
test eax, eax
je 0x42434e
mov ecx, eax
cdq
and ecx, 1
sub eax, edx
add esi, ecx
sar eax, 1
jne 0x424340
mov dword [0x517280], esi
jmp 0x42435c
mov esi, dword [0x517280]
test ebx, ebx
je 0x424220
test edi, edi
je 0x424377
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x517280]
xor edi, edi
call fcn.00445650
test al, al
jne 0x424409
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x424386
mov dword [0x517280], esi
mov bl, 1
test edi, edi
je 0x424416
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.0049e294
mov esp, ebp
pop ebp
ret