Function at 0x100ca0d4
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101bba9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
test esi, esi
jle 0x100ca099
push esi
push edi
call fcn.100ac559
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x24]
pop ecx
jmp 0x100ca0a2
cmp esi, 0xffffffff
jl 0x100ca2cc
mov ebx, dword [ebp + 0x20]
test ebx, ebx
jle 0x100ca0b6
push ebx
push eax
call fcn.100ac559
pop ecx
pop ecx
mov ebx, eax
jmp 0x100ca0bf
cmp ebx, 0xffffffff
jl 0x100ca2cc
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x100ca0d1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp + 0x24], eax
test esi, esi
je 0x100ca0dd
test ebx, ebx
jne 0x100ca179
cmp esi, ebx
je 0x100ca2c5
cmp ebx, 1
jg 0x100ca171
cmp esi, 1
jg 0x100ca136
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.kerNEl32.DLl_GetCPInfo]
test eax, eax
je 0x100ca2cc
test esi, esi
jle 0x100ca13e
cmp dword [ebp - 0x18], 2
jb 0x100ca136
cmp byte [ebp - 0x12], 0
lea eax, [ebp - 0x12]
je 0x100ca136
mov cl, byte [eax + 1]
test cl, cl
je 0x100ca136
mov dl, byte [edi]
cmp dl, byte [eax]
jb 0x100ca12e
cmp dl, cl
jbe 0x100ca2c5
add eax, 2
cmp byte [eax], 0
jne 0x100ca119
push 3
pop eax
jmp 0x100ca2ce
test ebx, ebx
jle 0x100ca179
cmp dword [ebp - 0x18], 2
jb 0x100ca171
cmp byte [ebp - 0x12], 0
lea eax, [ebp - 0x12]
je 0x100ca171
mov esi, dword [ebp - 0x24]
mov cl, byte [eax + 1]
test cl, cl
je 0x100ca171
mov dl, byte [esi]
cmp dl, byte [eax]
jb 0x100ca169
cmp dl, cl
jbe 0x100ca2c5
add eax, 2
cmp byte [eax], 0
jne 0x100ca154
xor eax, eax
inc eax
jmp 0x100ca2ce
xor edi, edi
push edi
push edi
push esi
push dword [ebp - 0x20]
push 9
push dword [ebp + 0x24]
call fcn.100bef07
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100ca2cc
lea ecx, [eax + eax]
lea edx, [ecx + 8]
cmp ecx, edx
sbb eax, eax
and eax, edx
je 0x100ca1e8
cmp eax, 0x400
ja 0x100ca1c8
call fcn.10077cf0
mov eax, esp
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100ca2b7
mov dword [eax], 0xcccc
jmp 0x100ca1e0
push eax
call fcn.100b5473
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
je 0x100ca2b7
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x1c], eax
jmp 0x100ca1ed
mov eax, edi
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x100ca2b7
push dword [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x20]
mov esi, dword [ebp + 0x24]
push 1
push esi
call fcn.100bef07
add esp, 0x18
test eax, eax
je 0x100ca2b7
push edi
push edi
push ebx
push dword [ebp - 0x24]
push 9
push esi
call fcn.100bef07
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100ca2b7
lea ecx, [eax + eax]
lea edx, [ecx + 8]
cmp ecx, edx
sbb eax, eax
and eax, edx
je 0x100ca26f
cmp eax, 0x400
ja 0x100ca257
call fcn.10077cf0
mov esi, esp
test esi, esi
je 0x100ca2ab
mov dword [esi], 0xcccc
jmp 0x100ca26a
push eax
call fcn.100b5473
mov esi, eax
pop ecx
test esi, esi
je 0x100ca2ab
mov dword [esi], 0xdddd
add esi, 8
jmp 0x100ca271
mov esi, edi
test esi, esi
je 0x100ca2ab
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
push 1
push dword [ebp + 0x24]
call fcn.100bef07
add esp, 0x18
test eax, eax
je 0x100ca2ab
mov ebx, dword [ebp - 0x1c]
push edi
push edi
push edi
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x28]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call fcn.100b4ab2
mov edi, eax
jmp 0x100ca2ae
mov ebx, dword [ebp - 0x1c]
push esi
call fcn.10060806
pop ecx
jmp 0x100ca2ba
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.10060806
pop ecx
mov eax, edi
jmp 0x100ca2ce
push 2
jmp 0x100ca138
xor eax, eax
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077978
leave
ret