Function at 0x5c6800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x742040]
xor eax, ebp
mov dword [esp + 0x1e8], eax
test ebx, ebx
je 0x5c6c56
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
call fcn.004f1690
mov edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmmword [esp + 0x190], xmm0
xor eax, eax
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x190], cl
inc eax
cmp eax, 0x20
jne 0x5c6851
lea eax, [esp + 0x60]
push 0x130
push 0xff
push eax
call fcn.00544260
add esp, 0xc
push 1
call fcn.0050f360
add esp, 4
test eax, eax
je 0x5c6cee
mov esi, eax
add eax, 0x120
mov dword [esp + 0x14], eax
cmp dword [esi + 0x120], 0xfff
ja 0x5c6e4f
mov eax, 0xc0ffee
xor eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x5c6e4f
cmp dword [esi + 0x128], edi
jne 0x5c6e4f
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
lea edx, [esi + 0xfc]
mov dword [esp + 8], edx
mov edi, 0x20
mov dword [esp + 0x28], 0
mov edx, 0x10000
cmp ebx, edx
cmovb edx, ebx
mov dword [esp + 0x20], edx
neg ecx
mov ecx, 0x10000
sbb ecx, eax
jb 0x5c6ed4
test byte [esp + 0x28], 1
mov dword [esp + 0x1c], ebx
jne 0x5c6a2a
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push esi
lea eax, [esp + 0x1b4]
push eax
mov ebx, dword [esp + 0x10]
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push esi
lea eax, [esp + 0x1c4]
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push esi
lea eax, [esp + 0x1d4]
push eax
push ebx
call ecx
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp edi, eax
jne 0x5c69c0
push 1
call fcn.00501410
add esp, 4
bt eax, 0x19
jae 0x5c6f86
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004034c0
add esp, 0xc
mov eax, 0x401cd0
mov ecx, 0x401140
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 8]
movdqu xmmword [eax], xmm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp ebx, 0x10
jb 0x5c6ae0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, 0x2000
cmp ecx, eax
mov ebx, 0x2000
cmovb ebx, ecx
mov eax, ebx
and eax, 0x3ff0
cmp dword [esi + 0xf8], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
je 0x5c6ed9
cmp eax, 0x10
jne 0x5c6cd7
pxor xmm0, xmm0
movdqu xmmword [edx], xmm0
shr ebx, 4
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push dword [esp + 8]
push esi
push ebx
mov eax, dword [esp + 0x1c]
push eax
push eax
call ecx
add esp, 0x14
mov eax, dword [esi + 0x108]
bswap eax
add eax, ebx
dec eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add edx, eax
mov ecx, dword [esp + 0x18]
sub ecx, eax
cmp ecx, 0xf
ja 0x5c6a43
mov eax, dword [esi + 0xf4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x108]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x5c6c6c
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, dword [esp + 0xc]
call dword [0x73c768]
push esi
lea eax, [esp + 0x1b4]
push eax
mov ebx, dword [esp + 0x10]
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push esi
lea eax, [esp + 0x1c4]
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x73c768]
push esi
lea eax, [esp + 0x1d4]
push eax
push ebx
call ecx
add esp, 0xc
test byte [esp + 0x28], 1
jne 0x5c6bb7
xor eax, eax
mov cl, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp edi, eax
jne 0x5c6ba4
push 1
call fcn.00501410
add esp, 4
bt eax, 0x19
jae 0x5c6f39
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004034c0
add esp, 0xc
mov eax, 0x401cd0
mov ecx, 0x401140
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 8]
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
add ecx, 1
adc eax, 0
mov dword [esi + 0x110], ecx
mov dword [esi + 0x114], eax
mov edx, dword [esp + 0x14]
inc dword [edx]
mov edx, dword [esp + 0x20]
add dword [esp + 0x24], edx
xor edi, edi
mov bl, 1
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, edx
jne 0x5c68eb
lea eax, [esp + 0x60]
cmp esi, eax
je 0x5c6f26
mov ecx, dword [esp + 0x1e8]
xor ecx, ebp
call fcn.005412b6
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, dword [esp + 0xc]
call dword [0x73c768]
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x10]
call ecx
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 8
jne 0x5c6e35
movq xmm0, qword [esp + 0x1b0]
mov eax, dword [esp + 0x10]
movq qword [eax], xmm0
mov eax, dword [esi + 0xf4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x108]
jmp 0x5c6afc
cmp eax, 0x20
jne 0x5c6e16
pxor xmm0, xmm0
movdqu xmmword [edx + 0x10], xmm0
jmp 0x5c6a7f
mov dword [esp + 8], edi
push 0x130
call fcn.004f7420
add esp, 4
test eax, eax
je 0x5c6ecb
mov esi, eax
push 0x49ca40
push eax
push 1
call fcn.004b1a00
add esp, 0xc
test eax, eax
je 0x5c6ecb
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
push 0x30
push edi
call fcn.004b1f40
add esp, 8
movaps xmm0, xmmword [edi + 0x20]
movaps xmmword [esp + 0x1d0], xmm0
movaps xmm0, xmmword [edi]
movaps xmm1, xmmword [edi + 0x10]
movaps xmmword [esp + 0x1c0], xmm1
movaps xmmword [esp + 0x1b0], xmm0
xor eax, eax
mov cl, byte [eax + 0x6d3337]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp eax, 0x30
jne 0x5c6d71
push 1
call fcn.00501410
add esp, 4
bt eax, 0x19
mov edi, dword [esp + 8]
jae 0x5c6fd7
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.004034c0
add esp, 0xc
mov eax, 0x401cd0
mov ecx, 0x401140
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
movdqa xmm0, xmmword [esp + 0x1d0]
movdqu xmmword [esi + 0xfc], xmm0
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
lea ecx, [esi + 0x120]
mov dword [esp + 0x14], ecx
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], edi
jmp 0x5c68a5
test eax, eax
je 0x5c6a83
push dword [esp + 0xc]
push 0
push dword [esp + 0x18]
call fcn.00544260
add esp, 0xc
jmp 0x5c6a83
push eax
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x18]
call fcn.00543ce0
add esp, 0xc
jmp 0x5c6cc2
mov dword [esp + 8], edi
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x1b0]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edi, 0x30
push edi
push eax
call fcn.004b1f40
add esp, 8
mov ecx, esi
lea edx, [esp + 0x1b0]
push edi
call fcn.0049c8d0
add esp, 4
test eax, eax
je 0x5c6ed4
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov ecx, dword [esp + 8]
mov dword [esi + 0x128], ecx
xor ecx, ecx
inc ecx
jmp 0x5c68d4
lea esi, [esp + 0x60]
jmp 0x5c6d21
call fcn.0055487f
test eax, eax
je 0x5c6ac7
xor ebx, ebx
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x2c], eax
call dword [0x73c768]
push esi
push dword [esp + 0x30]
push dword [esp + 0x10]
call ecx
add esp, 0xc
add ebx, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x5c6ee3
jmp 0x5c6ac7
push 0x118
push esi
call fcn.004f74c0
add esp, 8
jmp 0x5c6c56
bt eax, 9
jae 0x5c6f61
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403fe0
add esp, 0xc
xor eax, eax
mov ecx, 0x404090
jmp 0x5c6beb
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.005c04c0
add esp, 0xc
mov eax, 0x5c0c50
mov ecx, 0x5c03d0
jmp 0x5c6beb
mov ebx, dword [esp + 0x1c]
bt eax, 9
jae 0x5c6fb2
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403fe0
add esp, 0xc
xor eax, eax
mov ecx, 0x404090
jmp 0x5c6a0b
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.005c04c0
add esp, 0xc
mov eax, 0x5c0c50
mov ecx, 0x5c03d0
jmp 0x5c6a0b
bt eax, 9
jae 0x5c7003
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.00403fe0
add esp, 0xc
xor eax, eax
mov ecx, 0x404090
mov edi, dword [esp + 8]
jmp 0x5c6dbc
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.005c04c0
add esp, 0xc
mov eax, 0x5c0c50
mov ecx, 0x5c03d0
jmp 0x5c6ffa