Function at 0x59e5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
test dword [0x6477f0], 0x800000
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x114], edi
jne 0x59ede5
lea eax, [ebp - 0x84]
sub eax, edi
push ebx
mov dword [ebp - 0x118], eax
lea ebx, [ecx + 0x3f]
push esi
lea eax, [ebp - 0x84]
mov dword [ebp - 0x110], ebx
mov esi, ecx
sub esi, eax
mov eax, 0xffffffc1
sub eax, edi
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x11c], eax
nop
lea eax, [ebp - 0xc4]
xor edx, edx
cmp eax, ebx
ja 0x59e669
lea eax, [ebx - 0x3f]
lea ecx, [ebp - 0x85]
cmp ecx, eax
jae 0x59e6ab
lea eax, [ebp - 0xc4]
lea ecx, [edi + 0x3f]
cmp eax, ecx
ja 0x59e680
lea eax, [ebp - 0x85]
cmp eax, edi
jae 0x59e6ab
lea eax, [ebp - 0x84]
cmp eax, ebx
ja 0x59e69a
lea esi, [ebp - 0x45]
lea eax, [ebx - 0x3f]
cmp esi, eax
mov esi, dword [ebp - 0xfc]
jae 0x59e6ab
lea eax, [ebp - 0x84]
cmp eax, ecx
ja 0x59e6e5
lea eax, [ebp - 0x45]
cmp eax, edi
jb 0x59e6e5
mov esi, edi
lea eax, [ebp - 0xc4]
mov edi, dword [ebp - 0x120]
sub esi, eax
jmp 0x59e6c0
lea eax, [ebp - 0xc4]
add eax, edx
mov cl, byte [eax + esi]
mov byte [eax], cl
add eax, esi
add eax, edi
mov al, byte [eax + ebx]
xor al, cl
mov byte [ebp + edx - 0x84], al
inc edx
cmp edx, 0x40
jl 0x59e6c0
jmp 0x59e724
mov ecx, edi
lea eax, [ebp - 0x84]
sub ecx, eax
nop
lea eax, [ebp - 0x84]
add eax, edx
movdqu xmm0, xmmword [eax + ecx]
movdqu xmm1, xmmword [esi + eax]
movdqu xmmword [ebp + edx - 0xc4], xmm0
movdqu xmm0, xmmword [ebp + edx - 0xc4]
add edx, 0x10
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
cmp edx, 0x40
jl 0x59e6f0
mov eax, 0x607168
mov dword [ebp - 0x108], eax
nop
xor esi, esi
mov dword [ebp - 0xcc], esi
test esi, esi
je 0x59e755
xorps xmm0, xmm0
movlpd qword [ebp - 0x104], xmm0
mov edx, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x104]
jmp 0x59e75a
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esi*8]
mov dword [ebp + eax - 0x44], ecx
lea ecx, [esi - 1]
and ecx, 7
mov dword [ebp - 0x10c], eax
lea eax, [ebp + eax - 0x44]
mov dword [eax + 4], edx
mov dword [ebp - 0x100], eax
movzx ecx, byte [ebp + ecx*8 - 0xc3]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xe8], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi - 2]
and ecx, 7
mov dword [ebp - 0xf0], eax
movzx ecx, byte [ebp + ecx*8 - 0xc2]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xdc], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi - 3]
and ecx, 7
mov dword [ebp - 0xe0], eax
movzx ecx, byte [ebp + ecx*8 - 0xc1]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xf4], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi - 4]
and ecx, 7
mov dword [ebp - 0xec], eax
movzx ecx, byte [ebp + ecx*8 - 0xc0]
mov edx, dword [ecx*8 + 0x606968]
mov ecx, dword [ecx*8 + 0x60696c]
mov dword [ebp - 0xf8], ecx
lea ecx, [esi + 3]
and ecx, 7
mov dword [ebp - 0xe4], edx
movzx ecx, byte [ebp + ecx*8 - 0xbf]
mov ebx, dword [ecx*8 + 0x606968]
mov edi, dword [ecx*8 + 0x60696c]
lea ecx, [esi + 2]
and ecx, 7
mov dword [ebp - 0xd4], ebx
mov ebx, dword [ebp - 0xf0]
movzx ecx, byte [ebp + ecx*8 - 0xbe]
mov esi, dword [ecx*8 + 0x606968]
mov edx, dword [ecx*8 + 0x60696c]
mov ecx, dword [ebp - 0xcc]
inc ecx
mov dword [ebp - 0xcc], ecx
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0xbd]
mov eax, dword [ecx*8 + 0x606968]
mov ecx, dword [ecx*8 + 0x60696c]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0xe8]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xdc]
shr ebx, 8
xor ebx, dword [ebp - 0xe0]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xf4]
shr ebx, 8
xor ebx, dword [ebp - 0xec]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xc8], ecx
shr ebx, 8
xor ebx, dword [ebp - 0xf8]
shrd dword [ebp - 0xc8], ebx, 8
shr ebx, 8
mov dword [ebp - 0xd8], ebx
mov ecx, ebx
mov ebx, dword [ebp - 0xd4]
xor ecx, edi
xor dword [ebp - 0xc8], ebx
shrd dword [ebp - 0xc8], ecx, 8
xor dword [ebp - 0xc8], esi
shr ecx, 8
xor ecx, edx
shrd dword [ebp - 0xc8], ecx, 8
shr ecx, 8
xor dword [ebp - 0xc8], eax
xor ecx, dword [ebp - 0xd0]
shld dword [ebp - 0xd0], eax, 8
shrd dword [ebp - 0xc8], ecx, 8
shl eax, 8
xor eax, esi
shr ecx, 8
mov esi, dword [ebp - 0xd0]
xor esi, edx
mov dword [ebp - 0xd4], eax
mov edx, eax
mov dword [ebp - 0xd8], ecx
shld esi, edx, 8
mov eax, dword [ebp - 0xc8]
shl edx, 8
xor esi, edi
xor edx, ebx
shld esi, edx, 8
xor esi, dword [ebp - 0xf8]
shl edx, 8
xor edx, dword [ebp - 0xe4]
shld esi, edx, 8
xor esi, dword [ebp - 0xec]
shl edx, 8
xor edx, dword [ebp - 0xf4]
shld esi, edx, 8
xor esi, dword [ebp - 0xe0]
shl edx, 8
xor edx, dword [ebp - 0xdc]
shld esi, edx, 8
xor esi, dword [ebp - 0xf0]
shl edx, 8
xor edx, dword [ebp - 0xe8]
shld esi, edx, 8
shl edx, 8
xor eax, edx
mov edx, ecx
mov ecx, dword [ebp - 0x10c]
xor edx, esi
mov esi, dword [ebp - 0xcc]
movzx ecx, byte [ebp + ecx - 0xc4]
xor eax, dword [ecx*8 + 0x606968]
xor edx, dword [ecx*8 + 0x60696c]
mov ecx, dword [ebp - 0x100]
xor dword [ecx], eax
xor dword [ecx + 4], edx
mov eax, dword [ebp - 0x108]
cmp esi, 8
jl 0x59e738
movdqu xmm0, xmmword [ebp - 0x44]
mov esi, 2
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xcc], esi
movdqu xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xd4], 8
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [ebp - 0xb4], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [ebp - 0x94], xmm0
nop
lea ecx, [esi - 3]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x83]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xf8], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi - 4]
and ecx, 7
mov dword [ebp - 0xe4], eax
movzx ecx, byte [ebp + ecx*8 - 0x82]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xec], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi + 3]
and ecx, 7
mov dword [ebp - 0xf4], eax
movzx ecx, byte [ebp + ecx*8 - 0x81]
mov eax, dword [ecx*8 + 0x606968]
mov dword [ebp - 0xe0], eax
mov eax, dword [ecx*8 + 0x60696c]
lea ecx, [esi + 2]
and ecx, 7
mov dword [ebp - 0xdc], eax
lea eax, [esi + 1]
mov dword [ebp - 0x10c], eax
and eax, 7
movzx ecx, byte [ebp + ecx*8 - 0x80]
mov edx, dword [ecx*8 + 0x606968]
mov ecx, dword [ecx*8 + 0x60696c]
mov dword [ebp - 0xe8], ecx
movzx ecx, byte [ebp + eax*8 - 0x7f]
mov dword [ebp - 0xf0], edx
mov ebx, dword [ecx*8 + 0x606968]
mov edi, dword [ecx*8 + 0x60696c]
mov ecx, esi
and ecx, 7
mov dword [ebp - 0x100], ebx
mov ebx, dword [ebp - 0xe4]
movzx ecx, byte [ebp + ecx*8 - 0x7e]
mov esi, dword [ecx*8 + 0x606968]
mov edx, dword [ecx*8 + 0x60696c]
mov ecx, dword [ebp - 0xcc]
dec ecx
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x7d]
mov eax, dword [ecx*8 + 0x606968]
mov ecx, dword [ecx*8 + 0x60696c]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0xf8]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xec]
shr ebx, 8
xor ebx, dword [ebp - 0xf4]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xe0]
shr ebx, 8
xor ebx, dword [ebp - 0xdc]
shrd ecx, ebx, 8
xor ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xc8], ecx
shr ebx, 8
xor ebx, dword [ebp - 0xe8]
shrd dword [ebp - 0xc8], ebx, 8
shr ebx, 8
mov dword [ebp - 0xcc], ebx
mov ecx, ebx
mov ebx, dword [ebp - 0x100]
xor ecx, edi
xor dword [ebp - 0xc8], ebx
shrd dword [ebp - 0xc8], ecx, 8
xor dword [ebp - 0xc8], esi
shr ecx, 8
xor ecx, edx
shrd dword [ebp - 0xc8], ecx, 8
xor dword [ebp - 0xc8], eax
shr ecx, 8
xor ecx, dword [ebp - 0xd0]
shrd dword [ebp - 0xc8], ecx, 8
shr ecx, 8
shld dword [ebp - 0xd0], eax, 8
mov dword [ebp - 0xcc], ecx
shl eax, 8
xor eax, esi
mov esi, dword [ebp - 0xd0]
xor esi, edx
mov dword [ebp - 0x100], eax
mov edx, eax
mov eax, dword [ebp - 0xc8]
shld esi, edx, 8
shl edx, 8
xor esi, edi
xor edx, ebx
mov ebx, dword [ebp - 0xd8]
shld esi, edx, 8
xor esi, dword [ebp - 0xe8]
shl edx, 8
xor edx, dword [ebp - 0xf0]
shld esi, edx, 8
xor esi, dword [ebp - 0xdc]
shl edx, 8
xor edx, dword [ebp - 0xe0]
shld esi, edx, 8
xor esi, dword [ebp - 0xf4]
shl edx, 8
xor edx, dword [ebp - 0xec]
shld esi, edx, 8
xor esi, dword [ebp - 0xe4]
shl edx, 8
xor edx, dword [ebp - 0xf8]
shld esi, edx, 8
shl edx, 8
xor eax, edx
mov edx, ecx
movzx ecx, byte [ebp + ebx - 0x84]
xor edx, esi
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0xcc], esi
xor eax, dword [ecx*8 + 0x606968]
xor edx, dword [ecx*8 + 0x60696c]
xor dword [ebp + ebx - 0x44], eax
xor dword [ebp + ebx - 0x40], edx
add ebx, 8
dec dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ebx
jne 0x59ea40
movdqu xmm0, xmmword [ebp - 0x44]
mov eax, dword [ebp - 0x108]
add eax, 8
mov dword [ebp - 0x108], eax
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [ebp - 0x74], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [ebp - 0x64], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [ebp - 0x54], xmm0
cmp eax, 0x6071b8
jl 0x59e730
mov edi, dword [ebp - 0x114]
lea eax, [ebp - 0x45]
xor edx, edx
lea ecx, [edi + 0x3f]
cmp edi, eax
ja 0x59ed11
lea eax, [ebp - 0x84]
cmp ecx, eax
jae 0x59ed22
mov ebx, dword [ebp - 0x110]
cmp edi, ebx
ja 0x59ed51
lea eax, [ebx - 0x3f]
cmp ecx, eax
jb 0x59ed51
mov ebx, dword [ebp - 0x118]
mov edx, edi
mov edi, dword [ebp - 0xfc]
mov esi, 0x40
lea eax, [edx + ebx]
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
xor cl, byte [eax]
mov byte [edx - 1], cl
dec esi
jne 0x59ed35
mov ebx, dword [ebp - 0x110]
jmp 0x59edaa
lea esi, [ebp - 0x74]
mov ecx, edi
sub esi, edi
mov edi, dword [ebp - 0x118]
mov edi, edi
mov eax, dword [ebp - 0x120]
movdqu xmm0, xmmword [ecx]
add eax, ecx
movdqu xmm1, xmmword [eax + ebx]
pxor xmm1, xmm0
movdqu xmm0, xmmword [edi + ecx]
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
movdqu xmm0, xmmword [ecx + 0x10]
movdqu xmm1, xmmword [edx + ebx - 0x2f]
add edx, 0x20
pxor xmm1, xmm0
movdqu xmm0, xmmword [esi + ecx]
pxor xmm1, xmm0
movdqu xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, 0x40
jl 0x59ed60
mov esi, dword [ebp - 0xfc]
add ebx, 0x40
mov edi, dword [ebp - 0x114]
add esi, 0x40
dec dword [ebp - 0x11c]
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xfc], esi
jne 0x59e650
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push ecx
push edi
call fcn.0041d9c0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.004a0676
mov esp, ebp
pop ebp
ret