Function at 0x40da70
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x577680]
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 dword [ebp - 0x8ec], eax
or ebx, 0xffffffff
cmp dword [0x578c00], 0
mov dword [ebp - 4], 0
je 0x40db76
cmp dword [0x578c04], 0
je 0x40db76
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x8d0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004026b0
mov edx, dword [ebp - 0x8d0]
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 0x40db13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c8], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x8c8]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00425fe0
push dword [ebp - 0x8c8]
lea ecx, [ebp + 8]
call fcn.004027b0
mov edx, dword [ebp - 0x8c8]
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 0x40db76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp byte [0x578c08], al
mov ecx, 0x5771f0
sete al
add eax, 0x80000001
mov dword [ebp - 0x8cc], eax
mov eax, dword [0x5771f0]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8d8], eax
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
je 0x40dc1a
cmp byte [0x57203c], 0
jne 0x40dc1a
mov eax, dword [0x578cd8]
cmp dword [eax - 0xc], 0
jne 0x40dbc7
mov esi, SysReAllocStringLen
jmp 0x40dc20
push 0x52a1a0
lea eax, [ebp - 0x8d0]
push 0x578cd8
push eax
mov esi, SysReAllocStringLen
call fcn.00402b40
add esp, 0xc
push eax
lea ecx, [ebp - 0x8d8]
mov byte [ebp - 4], 4
call fcn.004026b0
mov edx, dword [ebp - 0x8d0]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dc20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40dc20
mov esi, dword [ebp - 0x8cc]
mov dword [ebp - 0x8e8], 0
mov dword [ebp - 0x8e4], 0
mov dword [ebp - 0x8e0], 0
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c4], eax
mov eax, str.Software_
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x40dc89
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x40dc99
push edi
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00408b00
jmp 0x40dc99
push str.Software_
lea ecx, [ebp - 0x8c4]
call fcn.004027b0
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x8c8]
push eax
mov byte [ebp - 4], 7
call fcn.00402a80
push 0x578c74
push eax
lea eax, [ebp - 0x8cc]
push eax
mov byte [ebp - 4], 8
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x8d4]
push eax
mov byte [ebp - 4], 9
call fcn.00402b40
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x8d0]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402a80
add esp, 0x30
lea ecx, [ebp - 0x8e8]
push 1
push dword [eax]
push esi
call fcn.0040faa0
mov edx, dword [ebp - 0x8d0]
test eax, eax
setne byte [ebp - 0x8bd]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dd33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8d4]
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 0x40dd56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8cc]
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 0x40dd79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8c8]
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 0x40dd9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8c4]
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 0x40ddbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x8bd], 0
je 0x40ddda
mov edi, dword [ebp - 0x8e8]
mov byte [ebp - 0x8bd], 0
jmp 0x40e105
call fcn.00426ed0
test al, al
jne 0x40ddf0
lea eax, [ebp - 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x8dc], 0x400
call fcn.004f2250
mov edi, dword [ebp - 0x8e8]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8cc], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x8dc]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edx, dword [0x578ad4]
mov esi, eax
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x15
idiv ecx
inc dword [ebp - 0x8cc]
mov dword [ebp - 0x8d0], esi
cmp edx, 0xd
jne 0x40de79
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
test esi, esi
je 0x40de89
cmp esi, 0x103
jne 0x40e0e3
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c4], esi
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x40ded1
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x40defc
push edi
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00408b00
jmp 0x40def6
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ded4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c730
mov esi, dword [ebp - 0x8c4]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0xc
je 0x40dfed
cmp dword [0x578c00], 0
je 0x40dfd5
cmp dword [0x578c04], 0
je 0x40dfd5
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c8], eax
push esi
lea ecx, [ebp - 0x8d4]
mov byte [ebp - 4], 0xd
call fcn.00401b10
mov ecx, dword [0x578c00]
lea eax, [ebp - 0x8c8]
push eax
lea eax, [ebp - 0x8d4]
push eax
mov byte [ebp - 4], 0xe
call fcn.00425540
push 0x52e4a0
push dword [0x578c68]
lea ecx, [ebp - 0x8c8]
call fcn.00408eb0
lea eax, [ebp - 0x8c8]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.004026b0
mov edx, dword [ebp - 0x8d4]
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 0x40dfb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8c8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x8ec]
lea eax, [ebp - 0x8c4]
push eax
call fcn.00416fa0
mov esi, dword [ebp - 0x8c4]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x8dc], 0x400
call fcn.004f2250
mov edx, dword [0x578ad4]
add esp, 0xc
lea ecx, [edx + 2]
lea eax, [edx + 1]
imul ecx, eax
imul ecx, edx
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x40e02c
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 7
jne 0x40e0ba
xor edi, edi
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
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 edi
add edx, eax
cmp edi, 0x100
jl 0x40e037
mov dword [0x578ad4], edx
add esi, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e0d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x8e8]
mov esi, dword [ebp - 0x8d0]
mov eax, dword [ebp - 0x8cc]
test esi, esi
je 0x40de26
test edi, edi
je 0x40e0fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov byte [ebp - 0x8bd], 1
test edi, edi
je 0x40e110
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x8d8]
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 0x40e133
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e154
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x8bd]
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.004f0cd4
mov esp, ebp
pop ebp
ret