Function at 0x100ca5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fc27
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 0x100ca631
xor al, al
jmp 0x100ca63f
push edx
lea ecx, [edi + 0x10]
call fcn.1004f440
mov edx, dword [edi + 8]
mov al, byte [eax]
inc edx
movzx eax, al
mov dword [edi + 8], edx
cmp eax, 6
ja case.0x100ca64f.2
jmp dword [eax*4 + 0x100cb064]
cmp dword [ebx + 0x474], 0
je case.0x100ca64f.2
mov eax, dword [0x1027c0b4]
cmp dword [eax + 0x524], 0
jne 0x100ca68b
mov esi, 0x10
push dword [esi]
call fcn.100d3e70
mov ecx, dword [esi]
test ecx, ecx
je 0x100ca68b
push 1
call dword [0x101ba7a0]
mov eax, dword [0x1027c0b4]
mov eax, dword [eax + 0x524]
test eax, eax
je case.0x100ca64f.2
mov ecx, dword [eax + 0x10]
test ecx, ecx
je case.0x100ca64f.2
push 1
call dword [0x101ba7a0]
jmp case.0x100ca64f.2
mov ecx, dword [edi + 0x18]
lea eax, [edx + 2]
sub ecx, dword [edi + 0x14]
cmp eax, ecx
jbe 0x100ca6c7
xor ecx, ecx
jmp 0x100ca6d6
push edx
lea ecx, [edi + 0x10]
call fcn.1004f440
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.0x100ca64f.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.10048e10
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.10048200
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.10048e10
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.1007ff60
mov ecx, eax
call fcn.1007ff60
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 0x100ca7f5
xor cl, cl
jmp 0x100ca803
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100ca820
xor cl, cl
jmp 0x100ca82e
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100ca84b
xor cl, cl
jmp 0x100ca859
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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.10047840
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.10047840
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.100ca330
lea ecx, [ebp - 0x2c]
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100ca8d1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
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.10048ea0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.100447b0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100ca91c
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10048ea0
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.10048ea0
add esp, 8
sub dword [ebp - 0xb8], 1
jne 0x100ca700
jmp case.0x100ca64f.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.10048e10
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.10048200
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.10048e10
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 0x100caa44
xor bl, bl
jmp 0x100caa52
push edx
lea ecx, [edi + 0x10]
call fcn.1004f440
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.1007ff60
mov ecx, eax
call fcn.1007ff60
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 0x100caa87
xor cl, cl
jmp 0x100caa95
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100caab2
xor cl, cl
jmp 0x100caac0
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100caadd
xor cl, cl
jmp 0x100caaeb
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100cac0f
movaps xmm0, xmmword [0x101c21d0]
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 0x100cab13
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x20
mov byte [ebp - 4], 9
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xb8], ecx
jb 0x100cab59
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 0x100cab60
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10123240
push ebx
push dword [ebp - 0xb8]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
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.10120260
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cabe8
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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.10048ea0
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.10047840
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.10047840
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 8
call fcn.100ca330
lea ecx, [ebp - 0x88]
call fcn.100447b0
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x100cac87
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.100447b0
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x100cacd4
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10048ea0
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 0x100cb03a
movaps xmm0, xmmword [0x101c2dc0]
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 0x100cad10
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x20
mov dword [ebp - 4], 0xb
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100cad59
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 0x100cad60
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10123240
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
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.10120260
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cade4
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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 0x100cb03a
movaps xmm0, xmmword [0x101c2c20]
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 0x100cae20
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x20
mov dword [ebp - 4], 0xc
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100cae69
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 0x100cae70
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10123240
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
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.10120260
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cade4
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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 0x100cb03a
movaps xmm0, xmmword [0x101c29f0]
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 0x100caf31
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0xa4]
push eax
call fcn.1004a7a0
add esp, 0x20
mov dword [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100caf7d
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 0x100caf82
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10123240
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
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.10120260
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.100447b0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x100cb00f
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10048ea0
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.10048ea0
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.10120250
mov esp, ebp
pop ebp
ret 4