Function at 0x41b580
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 0x52c6be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x268
push 0x100
lea eax, [ebp - 0x178]
mov dword [ebp - 0x44], 0
push 0
push eax
mov dword [ebp - 0x3c], 0x100
mov dword [ebp - 0x40], 0x100
call fcn.00506f10
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [0x538024]
push 0x100
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.00506f10
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x278]
push eax
call dword [0x538128]
xorps xmm0, xmm0
mov dword [ebp - 0x36], 0xdcd9dfe5
mov word [ebp - 0x32], 0xdbf7
xor ecx, ecx
mov byte [ebp - 0x30], 0xd0
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x1f], 0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x36], al
inc ecx
cmp ecx, 7
jb 0x41b640
mov dword [0x565560], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x36]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x60], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b672
sub ecx, edx
lea eax, [ebp - 0x36]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00402c40
mov dword [ebp - 4], 0
mov eax, 5
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.00506580
add esp, 8
test eax, eax
jne 0x41b753
xorps xmm0, xmm0
mov dword [ebp - 0x35], 0x8bfdf1e7
mov word [ebp - 0x31], 0xfce7
xor ecx, ecx
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
nop dword [eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x35], al
inc ecx
cmp ecx, 6
jb 0x41b6e0
mov dword [0x565548], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x35]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b712
sub ecx, edx
lea eax, [ebp - 0x35]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402c40
cmp dword [ebp - 0x48], 0x10
mov eax, 0xf
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00506580
add esp, 8
mov byte [ebp - 0x11], 0
test eax, eax
je 0x41b757
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
test al, 2
je 0x41b7ad
mov ecx, dword [ebp - 0x48]
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
cmp ecx, 0x10
jb 0x41b79b
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b78e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b81c
push ecx
push edx
call fcn.00504f31
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
test al, 1
je 0x41b7e1
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x41b7e1
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b7d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b81c
push ecx
push edx
call fcn.00504f31
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x41b809
push 0
call dword [0x5381e4]
push eax
call dword [0x5381d8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0050a1d0
int3