Function at 0x4116d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x134
call fcn.0047f270
mov eax, dword [0x4d4664]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x138]
push ebp
mov ebp, dword [esp + 0x158]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x150]
push edi
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 1
call fcn.00417d10
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
jns 0x411746
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0047f259
add esp, 0x134
ret
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00418c90
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
jne 0x411760
xor esi, esi
jmp 0x411782
mov esi, dword [esp + 0x148]
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x411786
mov esi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x411775
sub esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x15c]
push ebx
test eax, eax
je 0x411973
mov edx, 1
nop dword [eax + eax]
cmp eax, edi
mov byte [esp + 0x13], dl
mov ebx, eax
mov eax, edx
cmovg ebx, edi
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, edx
shr eax, 0x10
push 0
push dword [esp + 0x24]
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
push esi
mov byte [esp + 0x1e], al
lea eax, [esp + 0x3c]
push ecx
push eax
call fcn.00418dc0
add esp, 0x14
test eax, eax
je 0x41199e
push dword [esp + 0x154]
lea eax, [esp + 0x34]
push dword [esp + 0x30]
push eax
call fcn.00419030
add esp, 0xc
test eax, eax
je 0x41199e
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00419030
add esp, 0xc
test eax, eax
je 0x41199e
push 0
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00418cf0
add esp, 0xc
test eax, eax
je 0x41199e
push ebx
lea eax, [esp + 0x104]
push eax
push ebp
call fcn.00480c10
mov eax, dword [esp + 0x164]
add esp, 0xc
cmp eax, 1
jle 0x41194c
lea edi, [eax - 1]
mov dword [esp + 0x1c], edi
nop word [eax + eax]
push 0
lea eax, [esp + 0x104]
push eax
push dword [esp + 0x2c]
push eax
push esi
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.00418a90
add esp, 0x1c
xor esi, esi
test ebx, ebx
jle 0x411937
cmp ebx, 0x20
jb 0x411911
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0xff]
add ecx, ebx
cmp ebp, eax
ja 0x4118ba
lea eax, [esp + 0x100]
cmp ecx, eax
jae 0x411911
mov eax, ebx
and eax, 0x8000001f
jns 0x4118c8
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
lea edi, [esp + 0x100]
sub edx, eax
mov ecx, ebp
mov eax, ebp
neg eax
add edi, eax
lea eax, [esp + eax + 0x110]
movups xmm0, xmmword [ecx]
add esi, 0x20
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [eax + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp esi, edx
jl 0x4118e2
mov edi, dword [esp + 0x1c]
cmp esi, ebx
jge 0x411937
lea edi, [esp + 0x100]
mov edx, ebx
sub edi, ebp
lea eax, [esi + ebp]
sub edx, esi
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x411925
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
sub edi, 1
mov dword [esp + 0x1c], edi
jne 0x411870
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x160]
add ebp, ebx
mov edx, dword [esp + 0x28]
sub eax, ebx
mov ecx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x160], eax
mov dword [esp + 0x28], edx
test eax, eax
jne 0x4117a0
lea eax, [esp + 0x30]
push eax
call fcn.00418bd0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x140]
pop ebx
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.0047f259
add esp, 0x134
ret
lea eax, [esp + 0x30]
push eax
call fcn.00418bd0
add esp, 4
xor eax, eax
jmp 0x411985