Function at 0x100c9c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f237
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 0x100c9c91
xor al, al
jmp 0x100c9c9f
push edx
lea ecx, [edi + 0x10]
call fcn.1004ead0
mov edx, dword [edi + 8]
mov al, byte [eax]
inc edx
movzx eax, al
mov dword [edi + 8], edx
cmp eax, 6
ja case.0x100c9caf.2
jmp dword [eax*4 + 0x100ca6c4]
cmp dword [ebx + 0x474], 0
je case.0x100c9caf.2
mov eax, dword [0x1027c0b4]
cmp dword [eax + 0x524], 0
jne 0x100c9ceb
mov esi, 0x10
push dword [esi]
call fcn.100d34d0
mov ecx, dword [esi]
test ecx, ecx
je 0x100c9ceb
push 1
call dword [0x101ba7a0]
mov eax, dword [0x1027c0b4]
mov eax, dword [eax + 0x524]
test eax, eax
je case.0x100c9caf.2
mov ecx, dword [eax + 0x10]
test ecx, ecx
je case.0x100c9caf.2
push 1
call dword [0x101ba7a0]
jmp case.0x100c9caf.2
mov ecx, dword [edi + 0x18]
lea eax, [edx + 2]
sub ecx, dword [edi + 0x14]
cmp eax, ecx
jbe 0x100c9d27
xor ecx, ecx
jmp 0x100c9d36
push edx
lea ecx, [edi + 0x10]
call fcn.1004ead0
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.0x100c9caf.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.100484a0
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.10047890
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.100484a0
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.1007f620
mov ecx, eax
call fcn.1007f620
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 0x100c9e55
xor cl, cl
jmp 0x100c9e63
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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 0x100c9e80
xor cl, cl
jmp 0x100c9e8e
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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 0x100c9eab
xor cl, cl
jmp 0x100c9eb9
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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.10046ed0
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.10046ed0
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.100c9990
lea ecx, [ebp - 0x2c]
call fcn.10043e40
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100c9f31
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048530
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.10048530
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.10043e40
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100c9f7c
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10048530
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.10048530
add esp, 8
sub dword [ebp - 0xb8], 1
jne 0x100c9d60
jmp case.0x100c9caf.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.100484a0
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.10047890
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.100484a0
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 0x100ca0a4
xor bl, bl
jmp 0x100ca0b2
push edx
lea ecx, [edi + 0x10]
call fcn.1004ead0
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.1007f620
mov ecx, eax
call fcn.1007f620
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 0x100ca0e7
xor cl, cl
jmp 0x100ca0f5
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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 0x100ca112
xor cl, cl
jmp 0x100ca120
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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 0x100ca13d
xor cl, cl
jmp 0x100ca14b
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
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 0x100ca26f
movaps xmm0, xmmword [0x101c1a50]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x4e1c1c0a
mov byte [ebp - 0x14], bl
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100ca173
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0x48]
push eax
call fcn.10049e30
add esp, 0x20
mov byte [ebp - 4], 9
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xb8], ecx
jb 0x100ca1b9
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 0x100ca1c0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.101204d0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10122870
push ebx
push dword [ebp - 0xb8]
lea esi, [edi + 0x20]
push esi
call fcn.10122110
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.1011f890
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100ca248
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
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.10048530
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.10046ed0
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.10046ed0
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 8
call fcn.100c9990
lea ecx, [ebp - 0x88]
call fcn.10043e40
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x100ca2e7
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10048530
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.10048530
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.10043e40
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x100ca334
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10048530
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 0x100ca69a
movaps xmm0, xmmword [0x101c2bd0]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x2774
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 0x100ca370
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0x48]
push eax
call fcn.10049e30
add esp, 0x20
mov dword [ebp - 4], 0xb
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100ca3b9
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 0x100ca3c0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.101204d0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10122870
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122110
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.1011f890
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100ca444
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
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 0x100ca69a
movaps xmm0, xmmword [0x101c1930]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x4c14090c
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 0x100ca480
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0x48]
push eax
call fcn.10049e30
add esp, 0x20
mov dword [ebp - 4], 0xc
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100ca4c9
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 0x100ca4d0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.101204d0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10122870
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122110
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.1011f890
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100ca444
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
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 0x100ca69a
movaps xmm0, xmmword [0x101c1bf0]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5c101809
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100ca591
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0xa4]
push eax
call fcn.10049e30
add esp, 0x20
mov dword [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xa8], ecx
jb 0x100ca5dd
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 0x100ca5e2
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.101204d0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xac], edi
call fcn.10122870
push ebx
push dword [ebp - 0xa8]
lea esi, [edi + 0x20]
push esi
call fcn.10122110
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.1011f890
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.10043e40
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x100ca66f
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10048530
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.10048530
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.1011f880
mov esp, ebp
pop ebp
ret 4