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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce348
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x52cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 1
xor eax, eax
cmp byte [0x531d94], al
mov ecx, 0x52c6d8
sete al
add eax, 0x80000001
mov dword [ebp - 0x38], eax
mov eax, dword [0x52c6d8]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
test bl, bl
je 0x418a27
mov esi, dword [0x531d90]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0xf
idiv ecx
cmp edx, 0xe
jne 0x418a27
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 0x4189a4
mov dword [0x531d90], esi
xor edi, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 6
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov ecx, dword [0x531d90]
mov esi, 0x14
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 3
jne 0x418a6d
dec ecx
mov dword [0x531d90], ecx
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
mov eax, 0x511460
shr eax, 0x10
mov dword [ebp - 0x34], eax
mov ecx, 0x511460
test eax, eax
jne 0x418ab2
movzx esi, cx
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x418abf
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00402900
jmp 0x418abf
push 0x511460
lea ecx, [ebp - 0x14]
call fcn.00403540
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.0040e9b0
mov byte [ebp - 4], 0xb
push 0x531f54
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0040e9b0
mov byte [ebp - 4], 0xc
push 0x5113f8
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00417410
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0040e9b0
add esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
mov ebx, dword [ebp - 0x18]
lea ecx, [edx - 0x10]
add ebx, 0xfffffff0
or esi, 0xffffffff
cmp ecx, ebx
je 0x418b64
cmp dword [ebx + 0xc], 0
jl 0x418b58
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x418b58
call fcn.004027c0
mov dword [ebp - 0x20], eax
mov ecx, esi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418b50
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x418b64
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00402690
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418ba4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418bc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418be4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418c04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x34], 0
jne 0x418c40
mov eax, 0x511460
movzx ebx, ax
mov ecx, ebx
call fcn.00401b90
test eax, eax
je 0x418c4d
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402900
jmp 0x418c4d
push 0x511460
lea ecx, [ebp - 0x14]
call fcn.00403540
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.0040e9b0
mov byte [ebp - 4], 0x16
push 0x531f54
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040e9b0
mov byte [ebp - 4], 0x17
push 0x5113f8
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00417410
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0040e9b0
add esp, 0x10
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push dword [eax]
mov dword [ebp - 0x20], 0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418cd5
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
test eax, eax
setne bl
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418cf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418d18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418d38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418d58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418d78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x418db7
mov eax, dword [ebp - 0x3c]
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x418e6a
test edi, edi
je 0x418db0
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418ddb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test edi, edi
je 0x418ded
push edi
call ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x418e55
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x418e7c
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
mov byte [ebp - 0xd], 1
jmp 0x418dbb