Function at 0x406140
Capabilities:
Encode data using xor

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 0x4258a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword fs:[0x2c]
xor edi, edi
mov dword [ebp - 0x3c], edi
mov ecx, dword [eax]
mov eax, dword [0x44ff04]
cmp eax, dword [ecx + 4]
jle 0x4061cc
push 0x44ff04
call fcn.004090ba
add esp, 4
cmp dword [0x44ff04], 0xffffffff
jne 0x4061cc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x44ff04
mov dword [0x44ff00], eax
call fcn.00409069
add esp, 4
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov al, byte [ecx + str.EnumWindows]
xor al, 7
mov byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0xb
jb 0x406200
movq xmm0, qword [ebp - 0x28]
lea edx, [ebp - 0xcc]
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0x20]
push 0x528b0207
movq qword [ebp - 0xcc], xmm0
mov dword [ebp - 0xc4], eax
call fcn.00402fe0
add esp, 4
mov dword [ebp - 0x70], 0x53445254
cmp dword [ebp - 0xac], 0xf
lea esi, [ebp - 0xc0]
mov dword [ebp - 0x6c], 0x450f1312
lea edx, [ebp - 0x58]
cmova esi, dword [ebp - 0xc0]
xor cl, cl
movq xmm0, qword [ebp - 0x70]
mov word [ebp - 0x68], 0x4d4d
mov ax, word [ebp - 0x68]
mov byte [ebp - 0x4e], cl
lea ecx, [ebp - 0x9c]
push 0x7619c121
movq qword [ebp - 0x58], xmm0
mov word [ebp - 0x50], ax
call fcn.00402fe0
add esp, 4
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0xf
lea ecx, [ebp - 0x2c]
cmova eax, dword [ebp - 0x9c]
push esi
push eax
call fcn.00404b60
lea ecx, [ebp - 0x38]
push ecx
push 0x405870
call eax
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x4062fd
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4062f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
add esp, 8
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x406352
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406348
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
push 0xc
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov esi, dword [ebp - 0x34]
sub esi, dword [ebp - 0x38]
mov dword [eax], 0
sar esi, 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.00408fd8
mov edx, dword [ebp - 0x44]
add esp, 4
lea ecx, [edx + 0xc]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [edx + 0x18], 7
mov dword [edx + 0x1c], 8
mov dword [edx], 0x3f800000
push dword [edx + 4]
push 0x10
call fcn.00404e30
mov ecx, dword [ebp - 0x44]
sub esp, 8
mov eax, dword [ecx + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44af30]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [ecx]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0xa8], xmm0
fld qword [ebp - 0xa8]
fstp qword [esp]
call fcn.00423290
fstp qword [ebp - 0xa8]
movsd xmm0, qword [ebp - 0xa8]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.004251b0
cmp eax, esi
cmovb eax, esi
mov esi, dword [ebp - 0x44]
cmp eax, dword [esi + 0x1c]
jbe 0x40645a
push eax
mov ecx, esi
call fcn.004069a0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0xa4], eax
cmp edx, eax
je 0x40693d
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0xe8], xmm0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.IsWindowVisible]
xor al, 7
mov byte [ebp + ecx - 0xe8], al
inc ecx
cmp ecx, 0xf
jb 0x406490
mov byte [ebp - 0xd9], 0
lea edx, [ebp - 0xe8]
movups xmm0, xmmword [ebp - 0xe8]
push 0x528b0207
lea ecx, [ebp - 0x12c]
or edi, 1
movups xmmword [ebp - 0xe8], xmm0
call fcn.00402fe0
add esp, 4
mov dword [ebp - 0x80], 0x53445254
cmp dword [ebp - 0x118], 0xf
lea esi, [ebp - 0x12c]
mov dword [ebp - 0x7c], 0x450f1312
lea edx, [ebp - 0x114]
cmova esi, dword [ebp - 0x12c]
xor cl, cl
movq xmm0, qword [ebp - 0x80]
or edi, 2
mov word [ebp - 0x78], 0x4d4d
mov ax, word [ebp - 0x78]
mov byte [ebp - 0x10a], cl
lea ecx, [ebp - 0x9c]
push 0x7619c121
movq qword [ebp - 0x114], xmm0
mov word [ebp - 0x10c], ax
mov dword [ebp - 0x3c], edi
call fcn.00402fe0
add esp, 4
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0xf
lea ecx, [ebp - 0x84]
cmova eax, dword [ebp - 0x9c]
push esi
push eax
call fcn.00404b60
mov ecx, dword [ebp - 0x5c]
push dword [ecx]
call eax
test eax, eax
je 0x406691
movaps xmm1, xmmword [0x44af20]
xorps xmm0, xmm0
movlpd qword [ebp - 0xe0], xmm0
xor ecx, ecx
movups xmm0, xmmword [str.GetWindowThreadProcessId]
mov dword [ebp - 0xd0], 0
xorps xmm1, xmm0
lea edx, [ecx + 8]
movups xmmword [ebp - 0xf0], xmm1
nop
mov al, byte [ecx + 0x44aed8]
lea ecx, [ecx + 1]
xor al, 0x21
mov byte [ebp + ecx - 0xe1], al
sub edx, 1
jne 0x4065a0
movups xmm0, xmmword [ebp - 0xf0]
xor al, al
lea edx, [ebp - 0x148]
push 0x7619c121
movups xmmword [ebp - 0x148], xmm0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0x130], al
movq xmm0, qword [ebp - 0xe0]
movq qword [ebp - 0x138], xmm0
call fcn.00402fe0
add esp, 4
mov dword [ebp - 0x58], 0x53445254
cmp dword [ebp - 0xac], 0xf
lea esi, [ebp - 0xc0]
mov dword [ebp - 0x54], 0x450f1312
lea edx, [ebp - 0xcc]
cmova esi, dword [ebp - 0xc0]
xor cl, cl
movq xmm0, qword [ebp - 0x58]
or edi, 0xc
mov word [ebp - 0x50], 0x4d4d
mov ax, word [ebp - 0x50]
mov byte [ebp - 0xc2], cl
lea ecx, [ebp - 0x108]
push 0x7619c121
movq qword [ebp - 0xcc], xmm0
mov word [ebp - 0xc4], ax
mov dword [ebp - 0x3c], edi
call fcn.00402fe0
add esp, 4
lea eax, [ebp - 0x108]
cmp dword [ebp - 0xf4], 0xf
lea ecx, [ebp - 0xd0]
cmova eax, dword [ebp - 0x108]
push esi
push eax
call fcn.00404b60
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x5c]
push dword [ecx]
call eax
mov byte [ebp - 0x3d], 1
test eax, eax
jne 0x406695
mov byte [ebp - 0x3d], 0
mov eax, dword [ebp - 0x3c]
test al, 8
je 0x4066fa
mov ecx, dword [ebp - 0xf4]
and eax, 0xfffffff7
mov dword [ebp - 0x3c], eax
cmp ecx, 0xf
jbe 0x4066df
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
test al, 4
je 0x40675c
mov ecx, dword [ebp - 0xac]
and eax, 0xfffffffb
mov dword [ebp - 0x3c], eax
cmp ecx, 0xf
jbe 0x406741
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
mov ecx, dword [ebp - 0x88]
and eax, 0xfffffffd
mov dword [ebp - 0x3c], eax
cmp ecx, 0xf
jbe 0x40679f
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406792
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
mov eax, dword [ebp - 0x3c]
add esp, 8
mov ecx, dword [ebp - 0x118]
and eax, 0xfffffffe
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x3c], eax
cmp ecx, 0xf
jbe 0x4067fa
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4067f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push edx
call fcn.0040900d
add esp, 8
cmp byte [ebp - 0x3d], 0
je 0x40691e
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x84], eax
call fcn.004058c0
mov esi, dword [ebp - 0x28]
mov eax, esi
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
je 0x406844
mov edx, dword [ebp - 0x84]
nop word [eax + eax]
mov edi, dword [eax + 0x18]
cmp edi, edx
je 0x4068bf
add eax, 0x22c
cmp eax, ecx
jne 0x406830
test esi, esi
je 0x4068a1
mov ecx, dword [ebp - 0x20]
mov eax, 0x75ded953
sub ecx, esi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x22c
mov eax, esi
cmp ecx, 0x1000
jb 0x406882
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push esi
call fcn.0040900d
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor edi, edi
mov esi, dword [ebp - 0x44]
cmp edi, dword [0x44ff00]
je 0x406921
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00406b00
jmp 0x406921
test esi, esi
je 0x4068a3
mov ecx, dword [ebp - 0x20]
mov eax, 0x75ded953
sub ecx, esi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x22c
mov eax, esi
cmp ecx, 0x1000
jb 0x4068fd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698d
push ecx
push esi
call fcn.0040900d
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x4068a3
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x5c]
add edx, 4
mov dword [ebp - 0x5c], edx
cmp edx, dword [ebp - 0xa4]
je 0x40693a
mov edi, dword [ebp - 0x3c]
jmp 0x406471
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x40696d
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x406963
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406992
push ecx
push edx
call fcn.0040900d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408fc5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040fe67
call fcn.0040fe67
int3