Function at 0xb0ce1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test eax, eax
jg 0xb0ce3e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x18], 0
je 0xb0cfef
mov ecx, dword [esi + 0x20]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0xb0ce55
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ebx
sub eax, ecx
push edx
lea ecx, [eax + esi + 4]
push ecx
call fcn.00c4a61b
add esp, 0xc
sub dword [esi + 0x20], ebx
jne 0xb0d0dd
mov edx, dword [esi + 4]
mov eax, edx
shr eax, 8
and eax, 0x7f
cmp eax, 0x7e
jge 0xb0ce91
mov dword [ebp - 0xc], 0
jmp 0xb0cea1
lea ecx, [eax - 0x7e]
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 2
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov ebx, edx
shr ebx, 0xf
and ebx, 1
add ebx, ebx
add ebx, ebx
lea ecx, [ebx + ecx + 2]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [ebp - 0x14]
jge 0xb0ced1
mov eax, dword [ebp - 0x14]
mov edx, eax
sub edx, ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
jmp 0xb0d0dd
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0xb0cee6
test ebx, ebx
je 0xb0d0fc
test ecx, ecx
jne 0xb0ceee
test ebx, ebx
jg 0xb0d0fc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0xb0cefa
cdq
mov ecx, eax
jmp 0xb0cf39
cmp ecx, 2
jne 0xb0cf11
shr edx, 0x10
push edx
call dword [0x1017132c]
movzx eax, ax
cdq
mov ecx, eax
jmp 0xb0cf39
mov eax, dword [esi + 0xa]
mov edi, dword [esi + 6]
push eax
call dword [0x101712fc]
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
call dword [0x101712fc]
xor ecx, ecx
or ecx, dword [ebp - 0x28]
mov edx, eax
or edx, dword [ebp - 0x24]
mov edi, ecx
mov dword [esi + 0x28], ecx
mov ecx, edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ecx
test ebx, ebx
jle 0xb0cf56
mov edx, dword [ebp - 0xc]
lea ebx, [edx + esi + 6]
jmp 0xb0cf58
xor ebx, ebx
mov dword [esi + 0x14], ebx
mov al, byte [esi + 4]
and al, 0xf
mov byte [ebp - 0x18], al
mov eax, dword [esi + 4]
mov edx, eax
shr eax, 7
push ecx
mov ecx, dword [esi]
and eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + reloc.MSVCRT.dll_strncpy]
push eax
mov eax, dword [ebp - 0x18]
shr edx, 4
and dl, 7
push ebx
push eax
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx]
push eax
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
lea ecx, [edi + 4]
call edx
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
push edi
call eax
mov edi, eax
cmp edi, 2
je 0xb0ce32
cmp dword [esi + 0x2c], 0
ja 0xb0cfd4
cmp dword [esi + 0x28], 0
jbe 0xb0cfe0
mov dword [esi + 0x18], 0
jmp 0xb0d0dd
call fcn.00b0d55b
mov edi, eax
cmp edi, 2
jmp 0xb0d0d7
mov ebx, dword [esi + 0x30]
cdq
cmp dword [esi + 0x34], edx
ja 0xb0d003
jb 0xb0cffe
cmp ebx, eax
jae 0xb0d003
mov dword [ebp - 4], ebx
jmp 0xb0d00b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov ebx, ecx
cmp dword [esi + 0x14], 0
je 0xb0d03a
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x30]
and ecx, 3
test ebx, ebx
jle 0xb0d03a
mov eax, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x14], ebx
mov edi, dword [esi + 0x14]
lea edx, [ecx + eax]
and edx, 3
mov dl, byte [edx + edi]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x14]
jne 0xb0d026
mov eax, ebx
cdq
sub dword [esi + 0x30], eax
mov eax, dword [esi]
push ebx
sbb dword [esi + 0x34], edx
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 8]
lea ecx, [edi + 4]
push edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
call edx
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
push edi
call eax
mov edi, eax
cmp edi, 2
je 0xb0ce32
mov ecx, dword [esi + 0x30]
or ecx, dword [esi + 0x34]
jne 0xb0d0dd
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + reloc.MSVCRT.dll_strncpy]
mov edx, dword [edi + 4]
mov ebx, dword [eax]
lea ecx, [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x34]
push eax
push edi
call edx
xor edx, edx
mov ecx, 2
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov edi, eax
cmp eax, ecx
je 0xb0ce32
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], ecx
sub eax, ecx
mov dword [ebp - 0x10], eax
test eax, eax
jg 0xb0ce3b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
call dword [0x1017119c]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret