Function at 0x409380
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 0x821c61
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x93cf44]
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 - 0x154], edx
mov edi, ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov dword [ebp - 0x144], eax
lea esi, [eax + 1]
push esi
call fcn.00492962
push esi
push 0
push eax
mov dword [ebp - 0x150], eax
call fcn.006d0040
mov esi, dword [ebp - 0x144]
push esi
push dword [edi]
mov edi, dword [ebp - 0x150]
push edi
call fcn.006cfac0
push 0x1e0
mov dword [ebp - 0x17c], 0x20
mov dword [ebp - 0x178], 8
mov dword [ebp - 0x174], 0xe
mov dword [ebp - 0x168], 0x78
call fcn.00492962
mov ecx, eax
mov dword [ebp - 0x170], 1
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 0
movups xmm0, xmmword [0x8fe8f0]
mov eax, dword [0x8fe910]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x1a0]
movups xmmword [ebp - 0x1a0], xmm0
push 0x20
movups xmm0, xmmword [0x8fe900]
push eax
push ecx
movups xmmword [ebp - 0x190], xmm0
movups xmm0, xmmword [0x8fe914]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x8fe924]
movups xmmword [ebp - 0x28], xmm0
call fcn.006cfac0
mov eax, dword [ebp - 0x164]
add esp, 0x2c
mov edx, 8
add eax, 0x22
mov ecx, dword [eax - 6]
mov dword [ebp - 0x148], ecx
mov dword [eax - 2], ecx
mov ecx, edx
and ecx, 0x80000007
jns 0x4094d0
dec ecx
or ecx, 0xfffffff8
add ecx, 1
jne 0x40952b
mov ecx, dword [ebp - 0x148]
ror ecx, 8
mov dword [eax - 2], ecx
movzx ecx, cl
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax - 2], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax - 1], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax + 1], cl
mov ecx, edx
test ecx, ecx
jns 0x40951c
add ecx, 7
sar ecx, 3
mov ecx, dword [ecx*4 + 0x8fc254]
xor dword [eax - 2], ecx
jmp 0x409579
mov ecx, edx
and ecx, 0x80000003
jns 0x40953c
dec ecx
or ecx, 0xfffffffc
add ecx, 1
jne 0x409582
mov ecx, dword [ebp - 0x148]
movzx ecx, cl
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax - 2], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax - 1], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x8fc990]
mov byte [eax + 1], cl
mov ecx, dword [eax - 2]
mov dword [ebp - 0x148], ecx
mov ecx, dword [eax - 0x22]
inc edx
xor ecx, dword [ebp - 0x148]
mov dword [eax - 2], ecx
add eax, 4
cmp edx, 0x78
jl 0x4094b3
test esi, esi
jle 0x4095f6
lea eax, [esi - 1]
add edi, 8
shr eax, 4
inc eax
mov dword [ebp - 0x148], eax
nop
movups xmm1, xmmword [edi - 8]
lea esi, [edi - 8]
push esi
lea ecx, [ebp - 0x17c]
call fcn.004032f0
mov eax, dword [ebp - 0x38]
lea edi, [edi + 0x10]
xor dword [esi], eax
mov eax, dword [ebp - 0x34]
xor dword [edi - 0x14], eax
mov eax, dword [ebp - 0x30]
xor dword [edi - 0x10], eax
mov eax, dword [ebp - 0x2c]
xor dword [edi - 0xc], eax
sub dword [ebp - 0x148], 1
movups xmmword [ebp - 0x38], xmm1
jne 0x4095b0
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x150]
movzx eax, byte [edi + esi - 1]
sub esi, eax
mov dword [ebp - 0x14c], 0x8fe828
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], 0
push 0x38
mov byte [ebp - 4], 1
call fcn.0049292a
add esp, 4
mov esi, eax
mov dword [ebp - 0x148], esi
push 0x38
mov dword [esi + 0x20], 0
push 0x8fe81c
mov dword [esi + 0x24], 0
push esi
mov dword [esi + 0x28], 0
call fcn.006cbcd0
test eax, eax
je 0x409667
push 0x38
push esi
call fcn.005c4046
add esp, 8
xor esi, esi
xor edi, edi
jmp 0x409783
push dword [ebp - 0x154]
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x160]
add eax, edi
mov dword [ebp - 0x160], 0
push eax
push edi
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
call fcn.004097e0
push 0x101
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.006d0040
mov eax, dword [ebp - 0x15c]
add esp, 0xc
mov ecx, dword [ebp - 0x160]
sub eax, ecx
je 0x409729
mov dword [esi + 4], eax
mov dword [esi], ecx
nop
push 0
lea eax, [ebp - 0x140]
mov dword [esi + 0x10], 0x100
push esi
mov dword [esi + 0xc], eax
call fcn.006ca3c0
mov edi, eax
cmp edi, 0xfffffffc
jl 0x4096f9
cmp edi, 0xfffffffd
jle 0x409765
cmp edi, 2
je 0x409760
push dword [ebp - 0x154]
lea eax, [ebp - 0x40]
sub eax, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x154]
mov ecx, eax
push dword [eax + 4]
call fcn.00407150
cmp dword [esi + 0x10], 0
je 0x4096d0
mov ecx, dword [ebp - 0x160]
xor edi, edi
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x144], eax
test ecx, ecx
je 0x40977d
mov edx, dword [ebp - 0x158]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x409773
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097cf
jmp 0x409773
mov edi, 0xfffffffd
push esi
call fcn.006cbba0
mov ecx, dword [ebp - 0x160]
jmp 0x40972b
push edx
push ecx
call fcn.005c4046
add esp, 8
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x150]
push eax
call fcn.00426510
add esp, 4
test esi, esi
je 0x4097a1
push 0x38
push esi
call fcn.005c4046
add esp, 8
push dword [ebp - 0x164]
call fcn.00426510
add esp, 4
mov eax, edi
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.005c3e3a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006d2f99
int3