Function at 0x431db0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c85b5
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x51eee0]
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
xor eax, eax
cmp byte [0x520a34], al
mov dword [ebp - 4], 1
sete al
add eax, 0x80000001
mov dword [ebp - 0x3ec], eax
call fcn.00432bd0
test al, al
jne 0x431e93
mov edx, dword [0x520340]
xor esi, esi
mov ecx, esi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc esi
add edx, eax
cmp esi, 0x100
jl 0x431e10
mov dword [0x520340], edx
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3f0], eax
or ebx, 0xffffffff
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x431f24
cmp byte [0x51a24c], 0
jne 0x431f24
mov eax, dword [0x520b74]
cmp dword [eax - 0xc], 0
jne 0x431ed1
mov edi, SysReAllocStringLen
jmp 0x431f2a
push 0x4d95f8
lea eax, [ebp - 0x3ec]
push 0x520b74
push eax
mov edi, VariantInit
call fcn.0040b720
add esp, 0xc
push eax
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 3
call fcn.00402af0
mov edx, dword [ebp - 0x3ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431f2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x431f2a
mov edi, dword [ebp - 0x3ec]
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3ec], esi
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
mov eax, str.Software_
shr eax, 0x10
mov byte [ebp - 4], 6
mov dword [ebp - 0x400], eax
mov ecx, str.Software_
test eax, eax
jne 0x431fc0
movzx eax, cx
push 0
push eax
call fcn.00403b80
add esp, 8
test eax, eax
je 0x431fd0
mov edx, str.Software_
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407650
jmp 0x431fd0
push str.Software_
lea ecx, [ebp - 0x3e8]
call fcn.0040b410
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3f8]
push eax
mov byte [ebp - 4], 7
call fcn.0040b660
push 0x520b78
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 4], 8
call fcn.0040b660
push 0x4d95f8
push eax
lea eax, [ebp - 0x408]
push eax
mov byte [ebp - 4], 9
call fcn.0040b720
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b660
add esp, 0x30
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x418], ecx
cmp eax, ecx
je 0x4320b0
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x43209b
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x43209b
push dword [ebp - 0x3fc]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x432090
mov esi, dword [ebp - 0x418]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3ec], esi
jmp 0x4320b0
push dword [edx - 0xc]
lea ecx, [ebp - 0x3ec]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x3ec]
mov edx, dword [ebp - 0x3f4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4320d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4320f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x404]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43213c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43215f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
cmp dword [ebp - 0x400], 0
mov byte [ebp - 4], 0xc
jne 0x4321b0
mov eax, str.Software_
movzx eax, ax
push 0
push eax
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4321c0
mov edx, str.Software_
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407650
jmp 0x4321c0
push str.Software_
lea ecx, [ebp - 0x3e8]
call fcn.0040b410
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b660
push 0x520b78
push eax
lea eax, [ebp - 0x408]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b660
push 0x4d95f8
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040b720
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x3f8]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040b660
add esp, 0x30
lea ecx, [ebp - 0x414]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push edi
call fcn.00430470
mov edx, dword [ebp - 0x3f8]
test eax, eax
setne byte [ebp - 0x3e1]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432265
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x404]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432288
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4322ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4322ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4322f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x3e1], 0
jne 0x4323c5
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x414]
push 4
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x400]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x432480
test edi, edi
je 0x43233f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x414], edi
mov ecx, dword [0x520340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
mov dword [ebp - 0x410], 0
cmp edx, 0xe
jne 0x4323c5
xor edi, edi
call fcn.004a6f99
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc edi
movsd qword [ebp + edi*8 - 0x3e8], xmm0
cmp edi, 0x7a
jb 0x432366
xor ecx, ecx
mov eax, 0x79
cmp ecx, eax
jge 0x4323bf
lea ecx, [ecx]
movsd xmm0, qword [ebp + eax*8 - 0x3e0]
movsd xmm1, qword [ebp + eax*8 - 0x3e8]
comisd xmm0, xmm1
jbe 0x4323ba
movsd qword [ebp + eax*8 - 0x3e0], xmm1
movsd qword [ebp + eax*8 - 0x3e8], xmm0
dec eax
cmp eax, ecx
jg 0x432390
inc ecx
cmp ecx, 0x7a
jl 0x432384
mov edi, dword [ebp - 0x414]
mov byte [ebp - 0x3e1], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4323ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4323fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x3f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43241d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43243d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x43245e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x3e1]
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.004a63c4
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x432495
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x414], edi
jmp 0x43249b
mov edi, dword [ebp - 0x414]
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x13
idiv ecx
mov dword [ebp - 0x410], 0
cmp edx, 2
jne 0x4324c0
inc dword [0x520a94]
mov byte [ebp - 0x3e1], 1
jmp 0x4323d2