Function at 0x100ca770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fec7
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [0x1027c0b4]
mov dword [ebp - 0xa8], ebx
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100ca7c1
xor al, al
jmp 0x100ca7cf
push edx
lea ecx, [edi + 0x10]
call fcn.1004f5c0
mov edx, dword [edi + 8]
mov al, byte [eax]
inc edx
movzx eax, al
mov dword [edi + 8], edx
cmp eax, 6
ja case.0x100ca7df.2
jmp dword [eax*4 + 0x100cb1f4]
cmp dword [ebx + 0x474], 0
je case.0x100ca7df.2
mov eax, dword [0x1027c0b4]
cmp dword [eax + 0x524], 0
jne 0x100ca81b
mov esi, 0x10
push dword [esi]
call fcn.100d4000
mov ecx, dword [esi]
test ecx, ecx
je 0x100ca81b
push 1
call dword [0x101ba7a0]
mov eax, dword [0x1027c0b4]
mov eax, dword [eax + 0x524]
test eax, eax
je case.0x100ca7df.2
mov ecx, dword [eax + 0x10]
test ecx, ecx
je case.0x100ca7df.2
push 1
call dword [0x101ba7a0]
jmp case.0x100ca7df.2
mov ecx, dword [edi + 0x18]
lea eax, [edx + 2]
sub ecx, dword [edi + 0x14]
cmp eax, ecx
jbe 0x100ca857
xor ecx, ecx
jmp 0x100ca866
push edx
lea ecx, [edi + 0x10]
call fcn.1004f5c0
mov edx, dword [edi + 8]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [edi + 8], eax
xor eax, eax
cmp ax, cx
jae case.0x100ca7df.2
lea eax, [ebp - 0xad]
mov dword [ebp - 0xbc], eax
movzx eax, cx
mov dword [ebp - 0xb8], eax
nop dword [eax]
push 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.10048f80
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xc0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
push 1
push 0x101bca64
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.10048350
mov dword [ebp - 0xc0], 0
mov word [ebp - 0x30], 0xffff
mov byte [ebp - 0x2e], 0xff
mov dword [ebp - 4], 2
push 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10048f80
lea ecx, [ebp - 0x2c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [eax], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
mov eax, ecx
mov byte [edi + 4], 1
push eax
mov ecx, edi
call fcn.100800e0
mov ecx, eax
call fcn.100800e0
mov esi, eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100ca985
xor cl, cl
jmp 0x100ca993
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov byte [ebp - 0x30], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100ca9b0
xor cl, cl
jmp 0x100ca9be
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov byte [ebp - 0x2f], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100ca9db
xor cl, cl
jmp 0x100ca9e9
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
sub esp, 0x20
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov esi, esp
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x2e], cl
mov dword [ebp - 0xac], esp
mov ecx, esi
push eax
mov dword [ebp - 0xb4], esi
call fcn.10047950
movzx eax, byte [ebp - 0x30]
mov byte [esi + 0x1c], al
movzx eax, byte [ebp - 0x2f]
mov byte [esi + 0x1d], al
movzx eax, byte [ebp - 0x2e]
mov byte [esi + 0x1e], al
sub esp, 0x1c
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10047950
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.100ca4c0
lea ecx, [ebp - 0x2c]
call fcn.100448c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100caa61
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.10049010
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.100448c0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100caaac
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x4c]
push 8
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
call fcn.10049010
add esp, 8
sub dword [ebp - 0xb8], 1
jne 0x100ca890
jmp case.0x100ca7df.2
lea eax, [ebp - 0xad]
mov dword [ebp - 0x6c], 0
push 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xbc], eax
call fcn.10048f80
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xc0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 5
push 1
push 0x101bca64
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
call fcn.10048350
mov word [ebp - 0x50], 0xffff
mov byte [ebp - 0x4e], 0xff
mov dword [ebp - 4], 7
push 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.10048f80
lea ecx, [ebp - 0x88]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x88], eax
mov dword [eax], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
mov byte [ebp - 4], 8
mov edx, dword [edi + 8]
mov byte [edi + 4], 1
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100cabd4
xor bl, bl
jmp 0x100cabe2
push edx
lea ecx, [edi + 0x10]
call fcn.1004f5c0
mov edx, dword [edi + 8]
mov bl, byte [eax]
lea eax, [edx + 1]
mov ecx, edi
mov dword [edi + 8], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100800e0
mov ecx, eax
call fcn.100800e0
mov esi, eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100cac17
xor cl, cl
jmp 0x100cac25
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov byte [ebp - 0x50], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100cac42
xor cl, cl
jmp 0x100cac50
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov byte [ebp - 0x4f], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100cac6d
xor cl, cl
jmp 0x100cac7b
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov byte [ebp - 0x4e], cl
test bl, bl
jne 0x100cad9f
movaps xmm0, xmmword [0x101c2270]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x61333325
mov byte [ebp - 0x14], bl
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100caca3
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x48]
push eax
call fcn.1004a910
add esp, 0x20
mov byte [ebp - 4], 9
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xb8], ecx
jb 0x100cace9
mov ecx, dword [ecx]
mov dword [ebp - 0xb8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100cacf0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.101234b0
push ebx
push dword [ebp - 0xb8]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xa30000
push dword [ebp - 0xac]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cad78
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.10049010
add esp, 8
sub esp, 0x20
lea eax, [ebp - 0x6c]
mov esi, esp
mov dword [ebp - 0xb4], esp
mov ecx, esi
mov dword [ebp - 0xac], esi
push eax
call fcn.10047950
movzx eax, byte [ebp - 0x50]
mov byte [esi + 0x1c], al
movzx eax, byte [ebp - 0x4f]
mov byte [esi + 0x1d], al
movzx eax, byte [ebp - 0x4e]
mov byte [esi + 0x1e], al
sub esp, 0x1c
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x88]
mov ecx, esp
push eax
call fcn.10047950
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 8
call fcn.100ca4c0
lea ecx, [ebp - 0x88]
call fcn.100448c0
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x100cae17
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x88]
push 8
push eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
call fcn.10049010
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.100448c0
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x100cae64
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
jmp 0x100cb1ca
movaps xmm0, xmmword [0x101c2e10]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x2576
mov byte [ebp - 0x12], 0
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x100caea0
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x48]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 0xb
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100caee9
mov ecx, dword [ecx]
mov dword [ebp - 0xa8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100caef0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.101234b0
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xa30000
push dword [ebp - 0xac]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100caf74
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
jmp 0x100cb1ca
movaps xmm0, xmmword [0x101c2c50]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x257d6065
mov byte [ebp - 0x14], 0
nop dword [eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100cafb0
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x48]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 0xc
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100caff9
mov ecx, dword [ecx]
mov dword [ebp - 0xa8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100cb000
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.101234b0
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xa30000
push dword [ebp - 0xac]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100caf74
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
jmp 0x100cb1ca
movaps xmm0, xmmword [0x101c2a40]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1d515948
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100cb0c1
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0xa4]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100cb10d
mov ecx, dword [ecx]
mov dword [ebp - 0xa8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100cb112
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.101234b0
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xa30000
push dword [ebp - 0xac]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.100448c0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x100cb19f
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
push 8
push eax
call fcn.10049010
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101204c0
mov esp, ebp
pop ebp
ret 4