Function at 0x5f7440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x1c8], eax
cmp dword [ebp + 0xc], 0
je 0x5f7595
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
call fcn.00582f70
test eax, eax
jne 0x5f7736
lea eax, [esp + 0x170]
push 0x20
push eax
call fcn.00582f90
add esp, 8
mov eax, dword [ebp + 0x10]
lea edi, [esp + 0x16c]
xor ecx, ecx
mov dl, byte [eax + ecx]
xor byte [esp + ecx + 0x170], dl
inc ecx
cmp ecx, 0x20
jne 0x5f74a8
lea esi, [esp + 0x48]
push 0x128
push 0xff
push esi
call fcn.00650600
add esp, 0xc
push 1
call fcn.006185f0
add esp, 4
test eax, eax
je 0x5f75ab
mov ecx, eax
add ecx, 0x120
mov dword [esp + 8], ecx
cmp dword [eax + 0x120], 0xfff
ja 0x5f76c4
mov ecx, dword [eax + 0x118]
or ecx, dword [eax + 0x11c]
jne 0x5f76c4
mov ebx, 0x10000
mov edi, dword [ebp + 0xc]
cmp edi, ebx
cmovb ebx, edi
lea ecx, [esp + 0x170]
push 0x20
push ecx
push ebx
mov esi, dword [ebp + 8]
push esi
mov dword [esp + 0x1c], eax
push eax
call fcn.0055ea10
add esp, 0x14
test eax, eax
je 0x5f7731
mov eax, dword [esp + 8]
inc dword [eax]
sub edi, ebx
je 0x5f7587
add esi, ebx
mov edx, 0x10000
cmp edi, edx
mov ebx, 0x10000
cmovb ebx, edi
push 0
lea edx, [esp + 0x174]
push edx
push ebx
push esi
push dword [esp + 0x1c]
call fcn.0055ea10
add esp, 0x14
test eax, eax
je 0x5f7731
add esi, ebx
mov eax, dword [esp + 8]
inc dword [eax]
sub edi, ebx
jne 0x5f754c
lea eax, [esp + 0x48]
cmp dword [esp + 0xc], eax
je 0x5f7751
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.0064d372
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x128
call fcn.00618210
add esp, 4
test eax, eax
je 0x5f7764
push 0x6b7dd0
push eax
push 1
mov ebx, eax
call fcn.00582970
add esp, 0xc
test eax, eax
je 0x5f7764
mov ecx, ebx
mov edi, ebx
add edi, 0x124
mov dword [edi], 0
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
push 0x30
push edi
call fcn.00582f90
add esp, 8
movaps xmm0, xmmword [edi + 0x20]
movaps xmmword [esp + 0x1b0], xmm0
movaps xmm0, xmmword [edi]
movaps xmm1, xmmword [edi + 0x10]
movaps xmmword [esp + 0x1a0], xmm1
movaps xmmword [esp + 0x190], xmm0
xor eax, eax
mov cl, byte [eax + 0x75cff8]
xor byte [esp + eax + 0x190], cl
inc eax
cmp eax, 0x30
jne 0x5f7630
mov eax, dword [0x7be30c]
bt eax, 0x19
jae 0x5f776b
lea eax, [esp + 0x190]
push ebx
push 0x100
push eax
call fcn.0042e980
add esp, 0xc
mov eax, 0x42d190
mov ecx, 0x42c600
mov dword [ebx + 0xf4], ecx
mov dword [ebx + 0xf8], eax
movdqa xmm0, xmmword [esp + 0x1b0]
movdqu xmmword [ebx + 0xfc], xmm0
xor eax, eax
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x110], 1
lea ecx, [ebx + 0x120]
mov dword [esp + 8], ecx
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x118], eax
mov eax, ebx
jmp 0x5f74fd
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x190]
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov ebx, 0x30
push ebx
push ecx
mov esi, eax
call fcn.00582f90
add esp, 8
mov edi, esi
mov ecx, esi
lea edx, [esp + 0x190]
push ebx
call fcn.005f80f0
add esp, 4
test eax, eax
je 0x5f7731
xor ecx, ecx
mov eax, edi
mov dword [edi + 0x114], ecx
mov dword [edi + 0x110], 1
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov dword [edi + 0x11c], ecx
mov dword [edi + 0x118], ecx
jmp 0x5f750f
call fcn.006626d0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
jmp 0x5f749c
push 0x118
push eax
call fcn.00618280
add esp, 8
jmp 0x5f7595
mov ebx, esi
jmp 0x5f75e4
bt eax, 9
jae 0x5f7793
lea eax, [esp + 0x190]
push ebx
push 0x100
push eax
call fcn.0042f4a0
add esp, 0xc
xor eax, eax
mov ecx, 0x42f550
jmp 0x5f7672
lea eax, [esp + 0x190]
push ebx
push 0x100
push eax
call fcn.006ac210
add esp, 0xc
mov eax, 0x6ac9a0
mov ecx, 0x6ac110
jmp 0x5f7672