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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9685
mov eax, dword fs:[0]
push eax
mov eax, 0x5314
call fcn.004a9180
mov eax, dword [0x51fee0]
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 [0x51fab0]
xor ebx, ebx
cmp byte [0x52195c], bl
mov ecx, 0x51fab0
sete bl
mov dword [ebp - 4], 1
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5304], eax
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x431989
cmp byte [0x51b24c], 0
jne 0x431989
mov eax, dword [0x521a88]
cmp dword [eax - 0xc], 0
jne 0x431938
mov ebx, SysReAllocStringLen
jmp 0x431989
push 0x4da458
lea eax, [ebp - 0x5300]
push 0x521a88
push eax
mov ebx, VariantInit
call fcn.0040b790
add esp, 0xc
push eax
lea ecx, [ebp - 0x5304]
mov byte [ebp - 4], 3
call fcn.00402b30
mov edx, dword [ebp - 0x5300]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431989
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x5320], 0
mov dword [ebp - 0x531c], 0
mov dword [ebp - 0x5318], 0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5300], eax
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x52f8], eax
mov eax, str.Software_
shr eax, 0x10
mov byte [ebp - 4], 6
mov dword [ebp - 0x52fc], eax
mov ecx, str.Software_
test eax, eax
jne 0x431a16
movzx esi, cx
push eax
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x431a26
push esi
push eax
lea ecx, [ebp - 0x52f8]
call fcn.004075c0
jmp 0x431a26
push str.Software_
lea ecx, [ebp - 0x52f8]
call fcn.0040b480
lea eax, [ebp - 0x52f8]
push eax
lea eax, [ebp - 0x5304]
push eax
lea eax, [ebp - 0x5314]
push eax
mov byte [ebp - 4], 7
call fcn.0040b6d0
push 0x521a8c
push eax
lea eax, [ebp - 0x5310]
push eax
mov byte [ebp - 4], 8
call fcn.0040b6d0
push 0x4da458
push eax
lea eax, [ebp - 0x5308]
push eax
mov byte [ebp - 4], 9
call fcn.0040b790
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x530c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b6d0
add esp, 0x30
push eax
lea ecx, [ebp - 0x5300]
mov byte [ebp - 4], 0xb
call fcn.00402b30
mov edx, dword [ebp - 0x530c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5308]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5310]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431b01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5314]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431b24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x52f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431b47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004325c0
test al, al
jne 0x431be3
mov edx, dword [0x521340]
xor esi, esi
lea esp, [esp]
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 0x431b60
mov dword [0x521340], edx
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x52f8], eax
cmp dword [ebp - 0x52fc], 0
mov byte [ebp - 4], 0xc
jne 0x431c2c
mov eax, str.Software_
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x431c3c
push esi
push eax
lea ecx, [ebp - 0x52f8]
call fcn.004075c0
jmp 0x431c3c
push str.Software_
lea ecx, [ebp - 0x52f8]
call fcn.0040b480
lea eax, [ebp - 0x52f8]
push eax
lea eax, [ebp - 0x5304]
push eax
lea eax, [ebp - 0x530c]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b6d0
push 0x521a8c
push eax
lea eax, [ebp - 0x5308]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b6d0
push 0x4da458
push eax
lea eax, [ebp - 0x5310]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040b790
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x5314]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040b6d0
add esp, 0x30
lea ecx, [ebp - 0x5320]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.0042fe40
mov edx, dword [ebp - 0x5314]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431cdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5310]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431d00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5308]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431d23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x530c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431d46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x52f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431d69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x431e36
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x5320]
push 4
mov dword [ebp - 0x52fc], eax
lea eax, [ebp - 0x52fc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x431eee
test ebx, ebx
je 0x431db2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x5320], ebx
mov dword [ebp - 0x531c], 0
call fcn.004324e0
test al, al
jne 0x431e36
xor eax, eax
push 0x52e0
push eax
mov word [ebp - 0x52f4], ax
lea eax, [ebp - 0x52f2]
push eax
call fcn.004a8550
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
lea esp, [esp]
test edi, edi
je 0x431e18
test edx, edx
je 0x431e18
lea eax, [esi + edx]
lea ecx, [ebp - 0x52f4]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x53c2]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0x67
jl 0x431df0
add esi, 0x67
inc edi
cmp esi, 0x2971
jl 0x431de7
movsx eax, word [ebp - 0x14]
mov dword [0x521340], eax
or edi, 0xffffffff
xor bl, bl
mov edx, dword [ebp - 0x5300]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431e5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5320]
test eax, eax
je 0x431e6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x5304]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431e8f
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, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431eaf
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], edi
dec edi
test edi, edi
jg 0x431ed0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.004a7434
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x431f03
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5320], 0
mov ecx, dword [0x521340]
mov dword [ebp - 0x531c], 0
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 1
jne 0x431f8b
mov edi, dword [0x521340]
mov eax, edi
cdq
sub eax, edx
lea esi, [ecx + 0x38]
xor ecx, ecx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x52f8], ecx
mov dword [ebp - 0x52fc], ebx
test ebx, ebx
jle 0x431f7d
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
test edi, edi
jle 0x431f6c
mov eax, edx
mov ecx, edi
add esi, eax
dec eax
dec ecx
jne 0x431f60
mov ecx, dword [ebp - 0x52f8]
add edx, ecx
dec ebx
jne 0x431f58
mov ebx, dword [ebp - 0x52fc]
mov edi, dword [0x521340]
inc ecx
mov dword [ebp - 0x52f8], ecx
cmp ecx, esi
jl 0x431f46
or edi, 0xffffffff
mov bl, 1
jmp 0x431e38