Function at 0xb273bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
test ebx, ebx
jle 0xb27650
cmp dword [esi + 0x18], 0
je 0xb27577
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0xb273ef
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
sub eax, dword [esi + 0x20]
mov edx, dword [ebp - 8]
push ecx
push edx
lea ecx, [eax + esi + 4]
push ecx
call fcn.00c4a61b
mov edx, dword [ebp - 4]
add esp, 0xc
sub dword [esi + 0x20], edx
jne 0xb2763d
mov edx, dword [esi + 4]
mov eax, edx
shr eax, 8
and eax, 0x7f
cmp eax, 0x7e
jge 0xb2742f
mov dword [ebp - 0x10], 0
jmp 0xb2743f
lea ecx, [eax - 0x7e]
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
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 0xb2746f
mov eax, dword [ebp - 0x14]
mov edx, eax
sub edx, ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
jmp 0xb2763a
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0xb27484
test ebx, ebx
je 0xb27659
test ecx, ecx
jne 0xb2748c
test ebx, ebx
jg 0xb27659
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0xb27498
cdq
mov ecx, eax
jmp 0xb274d1
cmp ecx, 2
jne 0xb274af
shr edx, 0x10
push edx
call dword [0x1017132c]
movzx eax, ax
cdq
mov ecx, eax
jmp 0xb274d1
mov eax, dword [esi + 0xa]
mov edi, dword [esi + 6]
push eax
call dword [0x101712fc]
push edi
mov dword [ebp - 0x28], eax
call dword [0x101712fc]
xor ecx, ecx
or ecx, dword [ebp - 0x28]
mov edx, eax
xor eax, eax
or edx, eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
test ebx, ebx
jle 0xb274ea
mov eax, dword [ebp - 0x10]
lea edi, [eax + esi + 6]
jmp 0xb274ec
xor edi, edi
mov dword [esi + 0x14], edi
mov al, byte [esi + 4]
and al, 0xf
mov byte [ebp - 0x18], al
mov eax, dword [esi + 4]
mov ebx, eax
shr eax, 7
and eax, 1
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
push eax
mov eax, dword [ebp - 0x18]
push edi
push eax
shr ebx, 4
and bl, 7
mov byte [ebp - 0x1c], bl
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
push ecx
mov ecx, edx
mov edx, dword [ebx + 0x2c]
call edx
mov edi, eax
cmp edi, 2
je 0xb27650
cmp dword [esi + 0x2c], 0
ja 0xb2755c
cmp dword [esi + 0x28], 0
jbe 0xb27568
mov dword [esi + 0x18], 0
jmp 0xb2763a
call fcn.00b2780b
mov edi, eax
cmp edi, 2
jmp 0xb27638
mov edi, dword [esi + 0x30]
mov eax, ebx
cdq
cmp dword [esi + 0x34], edx
ja 0xb2758d
jb 0xb27588
cmp edi, eax
jae 0xb2758d
mov dword [ebp - 4], edi
jmp 0xb27592
mov dword [ebp - 4], ebx
mov edi, ebx
cmp dword [esi + 0x14], 0
je 0xb275c1
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x30]
and ecx, 3
test edi, edi
jle 0xb275c1
mov eax, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x14], edi
mov ebx, dword [esi + 0x14]
lea edx, [ecx + eax]
and edx, 3
mov dl, byte [edx + ebx]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x14]
jne 0xb275ad
mov eax, edi
cdq
sub dword [esi + 0x30], eax
mov eax, dword [esi]
push edi
sbb dword [esi + 0x34], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
push dword [ebp - 8]
mov ecx, dword [eax + reloc.MSVCRT.dll_strncpy]
mov edx, dword [edx + 4]
mov ebx, dword [ecx]
push edx
push eax
mov eax, dword [ebx + 0x30]
call eax
mov edi, eax
cmp edi, 2
je 0xb27650
mov ecx, dword [esi + 0x30]
or ecx, dword [esi + 0x34]
jne 0xb2763a
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + reloc.MSVCRT.dll_strncpy]
mov edx, dword [edx + 4]
mov edi, dword [ecx]
push edx
push eax
mov eax, dword [edi + 0x34]
call eax
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 0xb27650
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jg 0xb273d8
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