Function at 0x404bf0
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 0x41c7f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x200
mov eax, dword [0x42a018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call fcn.0040d621
add esp, 4
push eax
call fcn.0040d3b6
add esp, 4
lea eax, [ebp - 0x190]
push 0x148
push 0
push eax
call fcn.0040a510
add esp, 0xc
mov dword [ebp - 0x184], 0x4278f0
mov dword [ebp - 0x18c], 0x7a120
push 0x7a120
call fcn.00408ad1
add esp, 4
mov dword [ebp - 0x190], eax
push dword [ebp - 0x18c]
push 0
push eax
call fcn.0040a510
add esp, 0xc
mov dword [ebp - 0x16c], 0xfde9
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x18], 0x2e135d08
mov esi, dword [eax]
mov eax, dword [0x42bbc8]
cmp eax, dword [esi + 4]
jle 0x404d19
push 0x42bbc8
call fcn.00408c0c
add esp, 4
cmp dword [0x42bbc8], 0xffffffff
jne 0x404d19
mov eax, dword [ebp - 0x18]
push 0x41cd60
mov dword [0x42bc7c], eax
call fcn.00408f1e
add esp, 4
push 0x42bbc8
call fcn.00408bc2
add esp, 4
mov al, byte [0x42bc7f]
test al, al
je 0x404d3e
xor byte [0x42bc7c], 0x2e
xor byte [0x42bc7d], 0x2e
xor byte [0x42bc7e], 0x2e
xor al, 0x2e
mov byte [0x42bc7f], al
mov ecx, 0x42bc7c
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0xf
mov byte [ebp - 0x1dc], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d70
sub ecx, edx
push ecx
push 0x42bc7c
lea ecx, [ebp - 0x1dc]
call fcn.00402ec0
mov byte [ebp - 4], 2
mov eax, dword [0x42bbf0]
mov dword [ebp - 0x20], 0x5c5a5d4c
mov word [ebp - 0x1c], 0x2e13
cmp eax, dword [esi + 4]
jle 0x404df8
push 0x42bbf0
call fcn.00408c0c
add esp, 4
cmp dword [0x42bbf0], 0xffffffff
jne 0x404df8
mov eax, dword [ebp - 0x20]
movaps xmm0, xmmword [0x427a60]
mov dword [0x42bbe8], eax
mov ax, word [ebp - 0x1c]
push 0x41cd70
movups xmmword [0x42bbd8], xmm0
mov word [0x42bbec], ax
call fcn.00408f1e
add esp, 4
push 0x42bbf0
call fcn.00408bc2
add esp, 4
cmp byte [0x42bbed], 0
je 0x404e2d
movups xmm0, xmmword [0x42bbd8]
mov eax, 0x10
movaps xmm1, xmmword [0x427a50]
pxor xmm1, xmm0
movups xmmword [0x42bbd8], xmm1
nop
xor byte [eax + 0x42bbd8], 0x2e
inc eax
cmp eax, 0x16
jb 0x404e20
mov ecx, 0x42bbd8
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404e60
sub ecx, edx
push ecx
push 0x42bbd8
lea ecx, [ebp - 0x1c4]
call fcn.00402ec0
mov byte [ebp - 4], 3
mov eax, 0x42bc48
cmp dword [0x42bc5c], 0x10
push dword [0x42bc58]
cmovae eax, dword [0x42bc48]
push eax
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00407480
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x19c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x42bc00
lea edx, [ebp - 0x1ac]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x210]
call fcn.00406c10
add esp, 4
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 5
push ecx
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1f4]
call fcn.004072a0
push 0x42bc18
lea edx, [ebp - 0x1f4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00406c10
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1e0]
cmp edx, 0x10
jb 0x404f79
mov ecx, dword [ebp - 0x1f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050cb
push edx
push ecx
call fcn.00408ac3
add esp, 8
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1fc]
cmp edx, 0x10
jb 0x404fd2
mov ecx, dword [ebp - 0x210]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404fc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050cb
push edx
push ecx
call fcn.00408ac3
add esp, 8
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0xf
mov byte [ebp - 0x210], 0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x198]
cmp edx, 0x10
jb 0x40502b
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050cb
push edx
push ecx
call fcn.00408ac3
add esp, 8
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x1b0]
cmp edx, 0x10
jb 0x405080
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405076
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050cb
push edx
push ecx
call fcn.00408ac3
add esp, 8
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x1c8]
cmp edx, 0x10
jb 0x4050da
mov ecx, dword [ebp - 0x1dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4050d0
call fcn.0040cf37
push edx
push ecx
call fcn.00408ac3
add esp, 8
mov edi, 1
nop
cmp dword [ebp - 0x34], 0x10
lea esi, [ebp - 0x48]
mov eax, dword [ebp - 0x164]
cmovae esi, dword [ebp - 0x48]
mov dword [ebp - 0x15c], 0
test eax, eax
je 0x405112
push eax
call fcn.00408891
add esp, 4
mov dword [ebp - 0x164], 0
push esi
lea ecx, [ebp - 0x190]
call fcn.00402970
test eax, eax
je 0x4051d3
mov edx, dword [ebp - 0x168]
xor eax, eax
cmp dword [ebp - 0x15c], eax
mov dword [ebp - 0x30], eax
cmove edx, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x30], al
mov eax, edx
mov dword [ebp - 0x1c], 0xf
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405150
sub eax, esi
lea ecx, [ebp - 0x30]
push eax
push edx
call fcn.00402ec0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
setae byte [ebp - 0x191]
cmovae eax, ecx
cmp esi, 1
jne 0x40518a
cmp byte [eax], 0x30
je 0x4051ea
cmp byte [ebp - 0x191], 0
lea eax, [ebp - 0x30]
cmovne eax, ecx
cmp esi, 1
jne 0x4051a1
cmp byte [eax], 0x31
je 0x4051ef
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x4051d3
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4051c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050cb
push edx
push ecx
call fcn.00408ac3
add esp, 8
push 0x1388
call dword [0x41d00c]
inc edi
cmp edi, 0xa
jle 0x4050e0
jmp 0x4051fb
call fcn.00403f20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00402cd0
xor edi, edi
nop dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x42bc30
call fcn.004065e0
mov byte [ebp - 4], 0xe
call fcn.00405280
mov ecx, eax
call fcn.00406370
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00402d20
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov edx, 0x42bc60
push eax
call fcn.00406bb0
add esp, 4
mov byte [ebp - 4], 0x10
call fcn.00404620
add esp, 0x30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1dc]
mov esi, eax
call fcn.00402cd0
cmp esi, 1
je 0x4051ea
cmp edi, 0xa
jge 0x4051ea
push 0xbb8
inc edi
call dword [0x41d00c]
jmp 0x405200