Function at 0x58aca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
shr esi, 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 2
cmp esi, 0x14
je 0x58acd4
cmp esi, 0x1c
je 0x58acd4
cmp esi, 0x20
je 0x58acd4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x58ace6
call fcn.004fb890
mov edi, eax
mov dword [ebp + 0x14], edi
mov ecx, 0x200
cmp dword [ebp + 0xc], ecx
cmovae ecx, dword [ebp + 0xc]
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x58ad3b
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x58ad27
push 0x4e
push 0x64db08
push 0x6e
push 0x7d
push 0xa
call fcn.0050bc80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.005d67e0
add esp, 0xc
call fcn.005114e0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x58b30f
call fcn.0051b6f0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x58b311
push eax
call fcn.0051b760
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0051b5b0
push ebx
mov dword [ebp - 0x54], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 0x10], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 0x20], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 0xc], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 0x58], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 0x30], eax
call fcn.0051b5b0
push ebx
mov dword [ebp - 8], eax
call fcn.0051b5b0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x58ae09
mov eax, dword [ebp - 0x1c]
dec eax
push eax
call fcn.004f8620
push eax
push ebx
call fcn.0054fd90
add esp, 0xc
test eax, eax
je 0x58ae09
nop dword [eax]
push dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push 0
push dword [ebp + 0x2c]
sete bl
call fcn.00592f20
inc dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x58ae09
cmp dword [ebp + 0x18], 0
jne 0x58ae1e
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004f3c30
add esp, 8
test eax, eax
jg 0x58ae25
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.0051b4b0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x58b311
mov dword [ebp + 0x18], 0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.005d67e0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.005d67e0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x58ae63
add byte [ebp + eax - 0x98], 1
jne 0x58ae63
sub eax, 1
jns 0x58ae54
push 0
push edi
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004fae60
add esp, 0x18
test eax, eax
je 0x58ae09
push 0
push edi
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004fae60
add esp, 0x18
test eax, eax
je 0x58ae09
xor ecx, ecx
test esi, esi
je 0x58af13
cmp esi, 0x40
jb 0x58af13
mov eax, esi
and eax, 0x8000003f
jns 0x58aeba
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
sub edx, eax
nop
movups xmm0, xmmword [ebp + ecx - 0x50]
movups xmm1, xmmword [ebp + ecx - 0x78]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x50], xmm1
movups xmm0, xmmword [ebp + ecx - 0x40]
movups xmm1, xmmword [ebp + ecx - 0x68]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x40], xmm1
movups xmm0, xmmword [ebp + ecx - 0x30]
movups xmm1, xmmword [ebp + ecx - 0x58]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x30], xmm1
movups xmm0, xmmword [ebp + ecx - 0x20]
movups xmm1, xmmword [ebp + ecx - 0x48]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x20], xmm1
add ecx, 0x40
cmp ecx, edx
jl 0x58aec0
cmp ecx, esi
jge 0x58af24
mov al, byte [ebp + ecx - 0x78]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, esi
jl 0x58af17
push dword [ebp - 0xc]
or byte [ebp - 0x50], 0x80
lea eax, [ebp - 0x50]
or byte [ebp + esi - 0x51], 1
push esi
push eax
call fcn.004f7940
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp + 0x2c]
push ebx
push dword [ebp + 0x10]
push 0x32
push dword [ebp - 0xc]
call fcn.00593510
add esp, 0x14
test eax, eax
jg 0x58af68
je 0x58add0
jmp 0x58ae09
mov ebx, dword [ebp + 0x2c]
push 0
push 2
push ebx
call fcn.00592f20
add esp, 0xc
test eax, eax
je 0x58ae09
push 0
push 3
push ebx
call fcn.00592f20
add esp, 0xc
test eax, eax
je 0x58ae09
mov ecx, dword [ebp - 0x1c]
mov eax, 0xcccccccd
mov ebx, dword [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x24], edi
lea ecx, [ecx - 1]
mul ecx
shr edx, 7
mov dword [ebp - 0x2c], edx
test edi, edi
je 0x58afca
push edi
push 0
push dword [ebp + 0x2c]
call fcn.00592f20
add esp, 0xc
test eax, eax
je 0x58ae09
push 0
push dword [ebp - 0x20]
call fcn.004f8560
xor edi, edi
add esp, 8
cmp dword [ebp - 0x2c], edi
jl 0x58b075
lea eax, [esi - 1]
test eax, eax
js 0x58afff
nop dword [eax]
add byte [ebp + eax - 0x98], 1
jne 0x58afff
sub eax, 1
jns 0x58aff0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push 0
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004fae60
add esp, 0x18
test eax, eax
je 0x58ae09
push ebx
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004f7940
add esp, 0xc
test eax, eax
je 0x58ae09
lea eax, [esi*8]
imul eax, edi
push eax
push ebx
push ebx
call fcn.0054fd90
add esp, 0xc
test eax, eax
je 0x58ae09
mov eax, dword [ebp - 0x20]
push ebx
push eax
push eax
call fcn.0051b830
add esp, 0xc
test eax, eax
je 0x58ae09
inc edi
cmp edi, dword [ebp - 0x2c]
jle 0x58afe2
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
dec eax
push eax
push edi
call fcn.004f8200
add esp, 8
test eax, eax
je 0x58ae09
push edi
mov edi, dword [ebp - 0x58]
push edi
call fcn.004f7ea0
add esp, 8
test eax, eax
je 0x58ae09
push dword [ebp - 4]
push edi
push edi
call fcn.0051b830
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp - 0xc]
push ebx
call fcn.0054feb0
add esp, 8
test eax, eax
je 0x58ae09
push dword [ebp + 0x10]
push ebx
push edi
push dword [ebp - 0x30]
push 0
call fcn.00552a80
add esp, 0x14
test eax, eax
je 0x58ae09
call fcn.004f8620
push eax
push dword [ebp - 0x30]
push ebx
call fcn.0051b8c0
add esp, 0xc
test eax, eax
je 0x58ae09
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.0051b8c0
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp - 4]
push edi
call fcn.004f7b80
add esp, 8
test eax, eax
js 0x58b146
mov edi, dword [ebp + 0x2c]
push edi
push 1
push dword [ebp + 0x10]
push 0x32
push dword [ebp - 8]
call fcn.00593510
add esp, 0x14
test eax, eax
jg 0x58b161
jne 0x58ae09
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1000
jl 0x58afb0
mov edi, dword [ebp + 0x14]
jmp 0x58add0
push 1
push 2
push edi
call fcn.00592f20
add esp, 0xc
test eax, eax
je 0x58ae09
call fcn.004f8620
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0051b8c0
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push ebx
call fcn.00552a80
add esp, 0x14
test eax, eax
je 0x58ae09
push 2
push dword [ebp - 4]
call fcn.004f8560
add esp, 8
test eax, eax
je 0x58ae09
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.00511540
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00562310
add esp, 0x18
test eax, eax
je 0x58ae09
nop dword [eax]
push dword [ebp - 0x10]
call fcn.004f8180
add esp, 4
test eax, eax
je 0x58b24e
call fcn.004f8620
push eax
mov eax, dword [ebp - 4]
push eax
push eax
call fcn.0051b830
add esp, 0xc
test eax, eax
je 0x58ae09
push dword [ebp - 0x14]
inc dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00562310
add esp, 0x18
test eax, eax
jne 0x58b200
jmp 0x58ae09
push 1
push 3
push edi
call fcn.00592f20
add esp, 0xc
test eax, eax
je 0x58ae09
mov ebx, 1
nop dword [eax + eax]
mov edi, dword [ebp + 8]
push dword [edi + 8]
call fcn.004f8080
push dword [edi + 0xc]
call fcn.004f8080
push dword [edi + 0x10]
call fcn.004f8080
push dword [ebp - 8]
call fcn.004f7f60
push dword [ebp - 0xc]
mov dword [edi + 8], eax
call fcn.004f7f60
push dword [ebp - 0x10]
mov dword [edi + 0xc], eax
call fcn.004f7f60
add esp, 0x18
mov dword [edi + 0x10], eax
cmp dword [edi + 8], 0
je 0x58ae09
cmp dword [edi + 0xc], 0
je 0x58ae09
test eax, eax
je 0x58ae09
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x58b2d7
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x58b2e3
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x58ae0b
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.005d67e0
add esp, 0xc
push dword [ebp + 0x10]
call fcn.0051b4b0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x58b311
xor eax, eax
push eax
call fcn.0051b520
push dword [ebp - 0x14]
call fcn.00511490
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret