Function at 0x2703b67f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0xb8], 1
test ebx, ebx
je 0x2703b713
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x2703b713
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
cmp eax, esi
jb 0x2703b713
mov edx, dword [ebx + 0x18]
sub eax, esi
cmp eax, edx
jb 0x2703b713
add esi, ecx
lea eax, [edi + 0x8c]
mov ecx, dword [eax]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], eax
test ecx, ecx
je 0x2703b713
mov ecx, dword [ecx + 4]
cmp ecx, 7
jne 0x2703b726
and dword [ebp - 0xac], 0
push esi
push edx
push esi
push dword [edi + 4]
lea ecx, [edi + 0x24]
push ecx
lea esi, [ebp - 0xbc]
call fcn.2703cbe9
add esp, 0x14
test eax, eax
jne 0x2703b718
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 0xbc]
je 0x2703b8ce
mov eax, 0xffff9400
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret
cmp ecx, 6
je 0x2703b9b9
cmp ecx, 8
je 0x2703b9b9
cmp ecx, 0xa
je 0x2703b9b9
cmp ecx, 2
jne 0x2703b713
xor eax, eax
cmp dword [edi + 0xcc], ecx
jl 0x2703b753
mov eax, dword [edi + 4]
mov ecx, dword [edi + 4]
add ecx, eax
cmp edx, ecx
jb 0x2703b9cd
mov ecx, dword [edi + 0xc]
lea eax, [ecx + eax + 1]
cmp edx, eax
jb 0x2703b9cd
mov ecx, dword [edi + 4]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
jne 0x2703b9cd
cmp dword [edi + 0xcc], 2
jl 0x2703b7ac
push ecx
lea eax, [edi + 0x24]
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esi, dword [edi + 4]
add dword [ebx + 0x14], eax
mov eax, dword [edi + 4]
add esp, 0xc
sub dword [ebx + 0x18], eax
mov dword [ebp - 0xb0], esi
push esi
push dword [ebx + 0x18]
lea eax, [edi + 0x24]
push esi
push dword [edi + 4]
lea esi, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0xac]
call fcn.2703cbe9
add esp, 0x14
test eax, eax
jne 0x2703b718
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 0xbc]
jne 0x2703b713
cmp dword [edi + 0xcc], 2
jge 0x2703b802
push dword [edi + 4]
lea eax, [edi + 0xb4]
push eax
lea eax, [edi + 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 0xb0]
movzx edx, byte [ecx + eax - 1]
mov eax, dword [edi + 0xc]
lea eax, [eax + edx + 1]
push eax
mov eax, ecx
call fcn.2703b47c
mov esi, eax
and esi, 1
and edx, eax
add esp, 4
inc edx
cmp dword [edi + 0xcc], 0
mov dword [ebp - 0xb8], esi
jle 0x2703b713
and dword [ebp - 0xac], 0
mov eax, ecx
sub eax, edx
mov dword [ebp - 0xc0], eax
mov eax, 0x100
mov dword [ebp - 0xb4], ecx
cmp ecx, eax
jbe 0x2703b863
mov dword [ebp - 0xb4], eax
mov esi, ecx
sub esi, dword [ebp - 0xb4]
cmp esi, ecx
jae 0x2703b8a5
lea eax, [edx - 1]
push eax
mov eax, dword [ebp - 0xb0]
mov al, byte [esi + eax]
movzx eax, al
call fcn.2703b48e
pop ecx
push dword [ebp - 0xc0]
mov ecx, eax
mov eax, esi
call fcn.2703b47c
and eax, ecx
add dword [ebp - 0xac], eax
add esp, 4
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x2703b86f
mov eax, dword [ebp - 0xac]
push edx
call fcn.2703b48e
and dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
pop ecx
call fcn.2703b46a
and edx, eax
sub dword [ebx + 0x18], edx
mov dword [ebp - 0xac], edx
mov eax, dword [edi + 0xc]
sub dword [ebx + 0x18], eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, ebx
lea esi, [ebp - 0x44]
call fcn.2703b08b
cmp dword [edi + 0xcc], 0
pop ecx
jle 0x2703b713
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0xac]
add ecx, eax
lea esi, [ecx - 0x100]
mov edx, 0x100
cmp edx, ecx
mov edx, esi
sbb esi, esi
and esi, edx
lea edx, [ebp - 0x74]
push edx
push ecx
push esi
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x44]
push dword [ebp - 0xb4]
mov dword [ebp - 0xac], ecx
push eax
lea ecx, [edi + 0x40]
call fcn.2703b4e1
add esp, 0x1c
test eax, eax
jne 0x2703b718
push dword [edi + 0xc]
lea eax, [ebp - 0xa4]
push dword [ebp - 0xac]
push dword [ebx + 0x18]
push dword [ebp - 0xb0]
push eax
mov eax, esi
call fcn.2703b655
xor esi, esi
add esp, 0x14
xor eax, eax
mov byte [ebp - 0xa5], 0
cmp dword [edi + 0xc], esi
jbe 0x2703b99a
mov cl, byte [ebp + eax - 0xa4]
movzx edx, byte [ebp + eax - 0x74]
movzx ecx, cl
xor edx, ecx
movzx ecx, byte [ebp - 0xa5]
or edx, ecx
inc eax
mov byte [ebp - 0xa5], dl
cmp eax, dword [edi + 0xc]
jb 0x2703b974
mov al, byte [ebp - 0xa5]
test al, al
je 0x2703b9aa
mov dword [ebp - 0xb8], esi
cmp dword [ebp - 0xb8], esi
je 0x2703b9cd
xor eax, eax
jmp 0x2703b718
mov eax, edi
call fcn.2703b0c0
cmp eax, 1
jne 0x2703b9f3
mov ecx, dword [ebx + 0x18]
cmp ecx, 8
jae 0x2703b9d7
mov eax, 0xffff8e80
jmp 0x2703b718
mov eax, dword [ebx + 0x14]
mov edx, esi
add esi, 8
add eax, 8
add ecx, 0xfffffff8
mov dword [ebp - 0xb0], esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
jmp 0x2703b9f5
mov edx, ebx
mov eax, dword [ebx + 0x18]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jb 0x2703b9cd
sub eax, ecx
mov dword [ebx + 0x18], eax
push edx
push dword [edi + 8]
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x14]
call fcn.2703b0ce
lea eax, [ebp - 0xb4]
add esp, 0xc
push eax
mov ecx, ebx
lea esi, [ebp - 0x44]
call fcn.2703b08b
mov eax, dword [edi + 0x10]
pop ecx
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebp - 0xb0]
add ecx, dword [ebx + 0xc]
push ecx
push dword [ebp - 0xb0]
mov ecx, dword [ebx + 0x18]
add ecx, eax
push ecx
push dword [ebp - 0xb0]
mov eax, esi
push dword [ebp - 0xb4]
push eax
push dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xac]
call fcn.2703cdbf
add esp, 0x2c
test eax, eax
je 0x2703ba85
cmp eax, 0xffff9d00
jne 0x2703b718
jmp 0x2703b9cd
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebx + 0x18]
je 0x2703b9b2
jmp 0x2703b713