Function at 0x100c3010
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.1011d4b0
mov eax, dword [0x1019ca20]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
test al, 0x40
jne 0x100c306f
push edx
lea edx, [esi + 0x10]
push edx
push esi
call ecx
mov al, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, al
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x14], edx
cmp eax, 0xf
jae 0x100c30a3
jmp 0x100c3090
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x100c3090
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x48]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x100c30ca
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10118be7
add esp, 0x2c
ret
lea ecx, [edi + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x100c3102
ja 0x100c30eb
cmp dword [esi + 0x20], 0
jbe 0x100c3102
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10118be7
add esp, 0x2c
ret
push ebp
mov ebp, edi
shr ebp, 4
test ebp, ebp
je 0x100c3141
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push ebp
push ecx
push ebx
call dword [esp + 0x3c]
shl ebp, 4
mov edx, ebp
add dword [esp + 0x34], edx
add esp, 0x18
add ebx, edx
sub edi, edx
je 0x100c31a5
shr edx, 4
mov ecx, esi
call fcn.100c2fd0
mov edx, dword [esp + 0x18]
test edi, edi
je 0x100c31a9
xor eax, eax
test edi, edi
je 0x100c315c
jmp 0x100c3150
mov dl, byte [ebx + eax]
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, edi
jb 0x100c3150
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call ebp
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test edi, edi
je 0x100c31a5
lea edx, [esp + 0x28]
mov ebp, ebx
sub ebp, edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
sub edx, eax
lea eax, [esp + ecx + 0x28]
mov bl, byte [eax + ebp]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
cmp ecx, edi
jb 0x100c3194
mov edx, dword [esp + 0x18]
pop ebp
cmp edx, 0x10
jae 0x100c31c5
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.1011b6d0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10118be7
add esp, 0x2c
ret