Function at 0x40da90
Capabilities:
Encode data using xor
Get hostname
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5030fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x36c
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x104
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x24], 1
call fcn.004df440
add esp, 0xc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0x104
xor ecx, ecx
mov dword [ebp - 0x18], 0xddd6d5fd
mov dword [ebp - 0x14], 0x100d0d4
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 6
jb 0x40db36
movaps xmm0, xmmword [0x526a00]
xor ecx, ecx
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x11], 0
movaps xmm0, xmmword [0x5278c0]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x100999b
movaps xmm0, xmmword [0x5262d0]
movups xmmword [ebp - 0x40], xmm0
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x32
jb 0x40db71
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x2d], 0
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1ffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40dbd8
lea ecx, [ebp - 0x270]
mov byte [ebp - 0x16d], al
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dbc0
sub ecx, edx
lea eax, [ebp - 0x270]
push ecx
push eax
mov ecx, esi
call fcn.00465cf0
cmp dword [esi + 0x10], 0
ja 0x40dcda
push 0x104
lea eax, [ebp - 0x378]
push 0
push eax
call fcn.004df440
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x378]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x40dc38
lea ecx, [ebp - 0x378]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc20
sub ecx, edx
lea eax, [ebp - 0x378]
push ecx
push eax
mov ecx, esi
call fcn.00465cf0
cmp dword [esi + 0x10], 0
ja 0x40dcda
push 0x104
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.004df440
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 1
push 0x5364b4
push 0
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x40dcb5
lea eax, [ebp - 0x20]
push eax
push 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
test eax, eax
js 0x40dcac
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x40dc8e
add eax, 8
push eax
lea eax, [ebp - 0x168]
push 0x521a04
push eax
call fcn.00402d30
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
lea ecx, [ebp - 0x168]
mov byte [ebp - 0x65], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dcc2
sub ecx, edx
lea eax, [ebp - 0x168]
push ecx
push eax
mov ecx, esi
call fcn.00465cf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret