Function at 0x40afb0
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 0x52b4ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x70
movaps xmm0, xmmword [0x552000]
movups xmmword [ebp - 0x7f], xmm0
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x20], ecx
push edi
mov dword [ebp - 0x6f], 0xa3acb2d0
xor ecx, ecx
mov dword [ebp - 0x6b], 0xa8aaadb7
movups xmmword [ebp - 0x67], xmm0
mov dword [ebp - 0x57], 0
mov word [ebp - 0x53], 0
mov byte [ebp - 0x51], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x7f], al
inc ecx
cmp ecx, 0x18
jb 0x40b017
mov dword [0x565570], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x7f]
mov byte [ebp - 0x67], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b050
sub ecx, edx
lea eax, [ebp - 0x7f]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.00402c40
mov dword [ebp - 4], 0
lea esi, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0xded5c4c1
cmovae esi, dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x6c], 0xdad19adf
mov byte [ebp - 0x68], 0xdb
movups xmmword [ebp - 0x67], xmm0
mov dword [ebp - 0x57], 0
mov word [ebp - 0x53], 0
mov byte [ebp - 0x51], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x70], al
inc ecx
cmp ecx, 9
jb 0x40b0a4
mov dword [0x565630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x67], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x24], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b0d6
sub ecx, edx
lea eax, [ebp - 0x70]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00402c40
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [0x538060]
push esi
push eax
call dword [0x5380d4]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x40b13d
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b133
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b285
push ecx
push edx
call fcn.00504f31
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0x10
jb 0x40b18a
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b285
push ecx
push edx
call fcn.00504f31
add esp, 8
mov dword [ebp - 0x40], 0
xor edi, edi
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call dword [0x5380f4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40b252
mov esi, dword [0x563484]
push esi
push edi
push eax
call dword [0x5380c8]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [0x5381e8]
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xc0000004
jne 0x40b21a
nop dword [eax + eax]
push edi
mov edi, dword [ebp - 0x18]
push 0
push edi
call eax
add esi, esi
cmp esi, 0x10000000
ja 0x40b23c
push esi
push 0
push edi
call dword [0x5380c8]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5381e8]
cmp ecx, 0xc0000004
je 0x40b1e0
test ecx, ecx
jns 0x40b258
push edi
push 0
push dword [ebp - 0x18]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x563484]
cmp esi, 0x200000
cmovbe eax, esi
mov dword [0x563484], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0050a1d0
int3