Function at 0x10c1370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x30]
mov dword [esp + 4], 0x585b5a45
mov byte [esp + 8], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 4]
mov esi, ecx
xor esi, 0xe43ac66f
add esi, eax
xor esi, edx
mov edx, esi
and edx, 1
xor esi, 1
lea edx, [esi + edx*2]
add dl, 0xd4
mov byte [esp + ecx + 4], dl
inc ecx
add eax, 2
cmp ecx, 5
jne 0x10c1390
mov eax, dword [esp + 4]
mov esi, dword [0x10ccdc4]
test esi, esi
je 0x10c141c
xor ecx, ecx
mov edx, dword [0x10ccdc8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x10c13f0
inc ecx
cmp esi, ecx
jne 0x10c13e0
jmp 0x10c141c
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x10c141c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x10ccdcc]
call fcn.010bdb70
add esp, 0x24
cmp eax, 0xc0000023
jne 0x10c165f
push dword [esp + 0x10]
call fcn.010bb2e0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x585b5a45
mov byte [esp + 8], 0
xor edx, edx
xor ebx, ebx
nop
movzx ecx, byte [esp + ebx + 4]
mov esi, ebx
xor esi, 0xe43ac66f
add esi, edx
xor esi, ecx
mov ecx, esi
and ecx, 1
xor esi, 1
lea ecx, [esi + ecx*2]
add cl, 0xd4
mov byte [esp + ebx + 4], cl
inc ebx
add edx, 2
cmp ebx, 5
jne 0x10c1450
mov ebp, dword [esp + 4]
mov edx, dword [0x10ccdc4]
test edx, edx
je 0x10c14b0
xor esi, esi
mov ecx, dword [0x10ccdc8]
mov ebx, dword [esp + 0x3c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x4f699cd4
je 0x10c14b6
inc esi
cmp edx, esi
jne 0x10c14a0
jmp 0x10c14ec
mov ebx, dword [esp + 0x3c]
jmp 0x10c14ec
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
mov esi, dword [esp]
je 0x10c14ef
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x10ccdcc]
mov esi, eax
call fcn.010bdb70
add esp, 0x24
mov ebp, eax
mov eax, esi
mov esi, dword [esp]
mov dword [esp + 0xc], ebp
test ebp, ebp
mov ebp, dword [esp + 0x40]
js 0x10c1652
mov edx, dword [esp + 0x34]
test edx, edx
je 0x10c15e9
test edi, edi
je 0x10c15e2
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov ebp, dword [edx]
cmp ebp, ecx
jb 0x10c1520
mov ebp, ecx
test ebp, ebp
je 0x10c156c
add eax, 0x14
mov ecx, ebp
and ecx, 3
je 0x10c1572
mov ebx, ebp
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x10c1540
mov ebp, ebx
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
jmp 0x10c1574
mov ebp, dword [esp + 0x40]
jmp 0x10c15dd
mov ecx, ebp
cmp ebp, 4
mov ebp, dword [esp + 0x40]
jb 0x10c15dd
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x10c1580
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10c15f6
mov eax, dword [esi + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x10c1652
test ebx, ebx
je 0x10c164c
mov eax, dword [ebp]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x10c160a
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, ebx
add ebx, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp]
test al, 1
je 0x10c164c
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
mov eax, dword [esi + 0xc]
mov dword [ebp], eax
push esi
call fcn.010bb380
add esp, 4
mov eax, dword [esp + 0xc]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret