Function at 0x598b10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xe0
call fcn.0059eec0
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xf4]
push ebp
mov ebp, dword [esp + 0xe8]
push esi
mov esi, dword [esp + 0xf8]
push edi
mov edi, dword [ebp + 0x294]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x44], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], edi
cmp ecx, eax
jne 0x599126
lea eax, [esp + 0x48]
mov dword [ebp + 0x100], 0
neg eax
lea edx, [esp + 0x48]
and eax, 0xf
lea ecx, [ebp + 0xe0]
add edx, eax
mov dword [esp + 0x2c], edx
push ebx
lea eax, [edx + 0x30]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x100]
lea ebx, [edx + 0x40]
mov dword [esp + 0x28], ebx
push eax
push ecx
cmp edi, 0x40
ja 0x598f70
push 0x80
push 0x636ed8
push edx
mov dword [esp + 0x54], 0x80
call fcn.0040d440
push dword [esp + 0x44]
lea eax, [ebp + 0x158]
push eax
call fcn.004ff610
mov eax, dword [esp + 0x48]
add esp, 0x1c
movups xmm0, xmmword [ebp + 0x264]
xor esi, esi
mov dword [ebp + 0x150], 0
test byte [ebp + 0x1c], 2
movups xmmword [eax], xmm0
mov dword [ebp + 0x278], 0xd
mov dword [ebp + 0x27c], 0
mov dword [ebp + 0x280], edi
mov dword [ebp + 0x284], 0
je 0x598e00
test edi, edi
je 0x598f47
mov eax, dword [esp + 0x14]
cmp edi, 0x10
jb 0x598dc5
lea ecx, [edi - 1]
lea edx, [eax - 1]
add ecx, ebx
add edx, edi
cmp eax, ecx
ja 0x598c58
cmp edx, ebx
jae 0x598dc5
mov ecx, dword [esp + 0x20]
lea ebp, [ecx - 1]
add ebp, edi
cmp eax, ebp
ja 0x598c6d
cmp edx, ecx
jae 0x598dc5
lea edx, [ecx - 1]
add edx, edi
cmp ebx, edx
ja 0x598c83
lea edx, [edi - 1]
add edx, ebx
cmp edx, ecx
jae 0x598dc5
movups xmm3, xmmword [0x5f1030]
mov ebp, ecx
mov edx, edi
sub ebp, ebx
and edx, 0xfffffff0
mov dword [esp + 0x34], ebp
mov ebp, eax
mov edi, dword [esp + 0x34]
sub ebp, ebx
mov dword [esp + 0x24], ebp
mov ebp, ecx
mov dword [esp + 0x10], edx
sub ebp, eax
lea edx, [eax + 8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
lea edx, [ebx + 4]
mov ebx, ebp
nop dword [eax + eax]
movd xmm2, dword [edx - 4]
lea edx, [edx + 0x10]
movd xmm1, dword [ecx + esi]
xorps xmm0, xmm0
mov ebp, dword [esp + 0x38]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [edx - 0x14], xmm2
movd xmm1, dword [edx - 0x10]
movd dword [ebp - 8], xmm2
movd xmm2, dword [edx + edi - 0x10]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [edx - 0x10], xmm2
movd xmm1, dword [edx - 0xc]
movd dword [eax + edx - 0x10], xmm2
movd xmm2, dword [ebx + ebp]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [edx - 0xc], xmm2
movd xmm1, dword [edx - 8]
movd dword [ebp], xmm2
movd xmm2, dword [ecx + esi + 0xc]
add esi, 0x10
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [ebp + 4], xmm2
add ebp, 0x10
movd dword [edx - 8], xmm2
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x1c]
cmp esi, dword [esp + 0x10]
jb 0x598cc0
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp esi, edi
jae 0x598f47
mov edx, dword [esp + 0x20]
lea ecx, [esi + ebx]
sub edx, ebx
sub eax, ebx
mov dword [esp + 0x10], edx
mov ebp, eax
mov edx, edi
mov dword [esp + 0x18], eax
sub edx, esi
mov esi, edi
mov edi, dword [esp + 0x10]
movzx eax, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
movzx eax, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub edx, 1
jne 0x598de4
jmp 0x598f43
test edi, edi
je 0x598f47
mov eax, dword [esp + 0x14]
cmp edi, 0x40
jb 0x598f6a
lea edx, [eax - 1]
xor esi, esi
lea ecx, [edi - 1]
add edx, edi
add ecx, ebx
cmp ebx, edx
ja 0x598e2d
cmp ecx, eax
jae 0x598f6a
mov edx, dword [esp + 0x20]
lea ebp, [edx - 1]
add ebp, edi
cmp ebx, ebp
ja 0x598e42
cmp ecx, edx
jae 0x598f01
lea ecx, [edx - 1]
add ecx, edi
cmp eax, ecx
ja 0x598e58
lea ecx, [eax - 1]
add ecx, edi
cmp ecx, edx
jae 0x598f01
mov ebp, dword [esp + 0x14]
mov ecx, edi
and ecx, 0xffffffc0
sub ebp, ebx
mov dword [esp + 0x34], ecx
add eax, 0x20
lea ecx, [ebx + 0x10]
mov dword [esp + 0x24], ebp
mov edi, ebp
mov ebx, edx
sub ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov ebx, eax
mov ebp, dword [esp + 0x18]
movups xmm2, xmmword [edx + esi]
lea eax, [edi + ecx]
movups xmm0, xmmword [ecx - 0x10]
lea ebx, [ebx + 0x40]
movups xmmword [ecx - 0x10], xmm2
lea ecx, [ecx + 0x40]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [ebx - 0x60], xmm1
movups xmm2, xmmword [eax + ebp]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax], xmm1
movups xmmword [ecx - 0x40], xmm2
movups xmm2, xmmword [ebx + ebp - 0x40]
movups xmm0, xmmword [ecx - 0x30]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [edx + esi + 0x30]
add esi, 0x40
mov eax, esi
movups xmmword [ecx - 0x30], xmm2
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [ecx - 0x20], xmm1
xorps xmm0, xmm1
movups xmmword [ebx - 0x30], xmm0
cmp esi, dword [esp + 0x34]
jb 0x598e83
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
cmp eax, edi
jae 0x598f47
mov eax, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x24], edi
sub eax, dword [esp + 0x28]
add ebx, esi
mov ebp, edi
mov dword [esp + 0x10], edx
sub ebp, esi
mov dword [esp + 0x18], eax
mov esi, edx
nop dword [eax + eax]
lea ecx, [eax + ebx]
mov al, byte [ebx]
mov dl, byte [esi + ecx]
lea ebx, [ebx + 1]
xor al, dl
mov byte [ebx - 1], dl
mov byte [ecx], al
mov eax, dword [esp + 0x18]
sub ebp, 1
jne 0x598f20
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov edi, esi
lea eax, [esi + ebx]
neg edi
and edi, 0xf
push edi
push 0
push eax
call fcn.005a0390
lea eax, [edi + esi]
add esp, 0xc
add ebx, eax
lea ecx, [eax + 0x20]
jmp 0x599066
mov edx, dword [esp + 0x20]
jmp 0x598f01
push 0x40
push 0x636ed8
push edx
mov dword [esp + 0x54], 0x40
call fcn.0040d440
push dword [esp + 0x44]
lea eax, [ebp + 0x158]
push eax
call fcn.004ff610
push 0x10
lea eax, [ebp + 0x264]
mov dword [ebp + 0x100], 1
push eax
lea eax, [ebp + 0x158]
mov dword [ebp + 0x150], 0
push eax
call fcn.004ff6e0
add esp, 0x28
mov dword [esp + 0x2c], ebx
test byte [ebp + 0x1c], 2
mov dword [ebp + 0x278], 0xd
mov dword [ebp + 0x27c], 0
mov dword [ebp + 0x280], edi
mov dword [ebp + 0x284], 0
je 0x599019
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp + 0xe0]
push eax
push edi
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.0040d440
push edi
lea eax, [ebp + 0x158]
push esi
push eax
call fcn.004ff6e0
jmp 0x599040
push edi
lea eax, [ebp + 0x158]
push esi
push eax
call fcn.004ff6e0
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp + 0xe0]
push eax
push edi
push esi
push dword [esp + 0x30]
call fcn.0040d440
add esp, 0x20
mov eax, edi
neg eax
and eax, 0xf
push eax
lea eax, [ebp + 0x158]
push 0x636ed8
push eax
call fcn.004ff6e0
add esp, 0xc
mov esi, edi
mov ecx, 0x10
movups xmm0, xmmword [ebp + 0x278]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add eax, esi
add esi, dword [esp + 0x14]
push ecx
movups xmmword [ebx], xmm0
push edi
lea ebx, [ebp + 0x158]
mov dword [esp + 0x18], eax
push ebx
call fcn.004ff6e0
push dword [esp + 0x4c]
push dword [esp + 0x40]
call fcn.00401320
test byte [ebp + 0x1c], 2
lea eax, [ebp + 0x254]
cmove eax, edi
push eax
push ebx
call fcn.004ff590
add esp, 0x1c
mov dword [ebp + 0x294], 0xffffffff
test byte [ebp + 0x1c], 2
pop ebx
je 0x5990f6
movups xmm0, xmmword [ebp + 0x254]
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0059e4d3
add esp, 0xe0
ret
push 0x10
push dword [esp + 0x10]
push edi
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x5990cf
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jbe 0x599126
lea eax, [ecx - 0x10]
sub esi, ecx
push eax
push 0
add esi, 0x10
push esi
call fcn.005a0390
add esp, 0xc
mov ecx, dword [esp + 0xe8]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0059e4d3
add esp, 0xe0
ret