Function at 0x100681a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [ebp + 0x1c]
push 0
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x88], edx
mov edx, dword [ebp + 0x2c]
push ecx
push eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xe0], esi
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x104], 0
movups xmmword [ebp - 0x134], xmm0
movups xmmword [ebp - 0x124], xmm0
movups xmmword [ebp - 0x148], xmm0
movups xmmword [ebp - 0x100], xmm0
movups xmmword [ebp - 0xf0], xmm0
movups xmmword [ebp - 0x114], xmm0
call fcn.10051360
add esp, 0x14
test eax, eax
je 0x10068586
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10051220
add esp, 8
test eax, eax
je 0x10068586
push dword [ebp + 0x20]
lea eax, [ebp - 0xc8]
push edi
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
push dword [ebp + 0x28]
lea eax, [ebp - 0xc8]
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
push dword [ebp + 0x30]
lea eax, [ebp - 0xc8]
push dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.100512a0
add esp, 0x30
test eax, eax
je 0x10068586
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
mov eax, dword [ebp - 0x114]
push dword [ebp - 0x94]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
add esp, 0xc
cmp edi, esi
jbe 0x100683f5
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100502c0
add esp, 8
test eax, eax
je 0x10068586
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x148], eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc8]
push dword [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
push dword [ebp + 0x28]
lea eax, [ebp - 0xc8]
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
push dword [ebp + 0x30]
lea eax, [ebp - 0xc8]
push dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
call eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.100512a0
add esp, 0x30
test eax, eax
je 0x10068586
cmp dword [ebp - 0xd4], edi
mov esi, edi
cmovbe esi, dword [ebp - 0xd4]
xor edx, edx
mov dword [ebp - 0xdc], esi
test esi, esi
je 0x10068541
cmp esi, 0x40
jb 0x10068522
lea ecx, [ebx - 1]
lea eax, [ebp + esi - 0x45]
add ecx, esi
cmp ebx, eax
ja 0x100684a8
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x10068522
mov edi, esi
lea ecx, [ebp - 0x34]
lea esi, [ebp - 0x44]
and edi, 0xffffffc0
sub esi, ebx
lea eax, [ebx + 0x20]
sub ecx, ebx
mov dword [ebp - 0xd8], ecx
mov ebx, ecx
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebp + edx - 0x44]
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [ebp + edx - 0x34]
add edx, 0x40
mov ecx, edx
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp edx, edi
jb 0x100684c2
mov esi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0x90]
cmp ecx, esi
jae 0x1006853e
lea edi, [ebp - 0x44]
lea eax, [ebx + edx]
sub edi, ebx
nop word [eax + eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc edx
cmp edx, esi
jb 0x10068530
mov edi, dword [ebp + 0xc]
add ebx, esi
sub edi, esi
mov dword [ebp - 0x90], ebx
mov dword [ebp + 0xc], edi
je 0x1006857c
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.100512a0
add esp, 0xc
test eax, eax
je 0x10068586
mov esi, dword [ebp - 0xe0]
jmp 0x10068303
mov dword [ebp - 0x98], 1
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.1006c330
lea eax, [ebp - 0xcc]
push eax
call fcn.100511a0
lea eax, [ebp - 0x148]
push eax
call fcn.100511a0
lea eax, [ebp - 0x114]
push eax
call fcn.100511a0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100a69cd
mov esp, ebp
pop ebp
ret