Function at 0x1e0c25c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov eax, dword [esi + 8]
mov ebx, eax
test eax, eax
jge 0x1e0c25de
neg ebx
mov dword [ebp - 4], ebx
jmp 0x1e0c25e1
mov dword [ebp - 4], eax
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1e0c2615
push ebx
call sym.python27.dll__PyLong_New
mov esi, eax
add esp, 4
test esi, esi
je 0x1e0c2654
mov edx, dword [ebp + 8]
add edx, 0xc
lea eax, [esi + 0xc]
mov ecx, ebx
call fcn.1e0c2570
mov dword [ebp + 8], esi
jmp 0x1e0c2617
inc dword [esi]
mov eax, dword [edi + 8]
mov esi, eax
test eax, eax
jge 0x1e0c2622
neg esi
xor ebx, ebx
test eax, eax
setl bl
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x1e0c266f
push esi
call sym.python27.dll__PyLong_New
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x1e0c265d
mov eax, dword [ebp + 8]
add dword [eax], 0xffffffff
jne 0x1e0c2654
mov edx, dword [eax + 4]
push eax
mov eax, dword [edx + 0x18]
call eax
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0xc]
add eax, 0xc
mov ecx, esi
call fcn.1e0c2570
mov edi, dword [ebp - 8]
jmp 0x1e0c2671
inc dword [edi]
mov ecx, dword [ebp - 4]
cmp ecx, esi
jge 0x1e0c2696
mov eax, dword [ebp + 8]
mov dword [ebp + 8], edi
mov edi, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, eax
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov ebx, ecx
mov ecx, dword [ebp - 4]
jmp 0x1e0c2699
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp edx, 0x26
je 0x1e0c26e2
cmp edx, 0x5e
je 0x1e0c26d8
cmp edx, 0x7c
je 0x1e0c26c8
mov ecx, dword [sym.python27.dll_PyExc_TypeError]
push str.bad_argument_type_for_built_in_operation
push ecx
call sym.python27.dll_PyErr_SetString
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
or edx, eax
mov dword [ebp - 0xc], edx
test ebx, ebx
jne 0x1e0c26f0
mov dword [ebp - 4], ecx
jmp 0x1e0c26f3
xor ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
jmp 0x1e0c26f3
mov edx, ebx
and edx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x1e0c26f3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, eax
push edx
call sym.python27.dll__PyLong_New
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x1e0c273f
mov eax, dword [ebp + 8]
add dword [eax], 0xffffffff
jne 0x1e0c2721
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
add dword [edi], 0xffffffff
jne 0x1e0c2654
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x26
je 0x1e0c28ad
cmp eax, 0x5e
je 0x1e0c283c
cmp eax, 0x7c
je 0x1e0c2767
call sym.python27.dll_PyErr_BadArgument
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
jle 0x1e0c2799
mov ecx, dword [ebp + 8]
sub ecx, edi
mov edx, ebx
mov dword [ebp - 0x14], ecx
lea eax, [edi + 0xc]
sub edx, edi
mov dword [ebp - 0x10], esi
mov ecx, esi
mov esi, dword [ebp - 0x14]
mov si, word [esi + eax]
or si, word [eax]
add eax, 2
sub dword [ebp - 0x10], 1
mov word [edx + eax - 2], si
jne 0x1e0c2781
cmp ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
jge 0x1e0c27bb
mov edx, dword [ebp - 4]
sub edx, ecx
add edx, edx
push edx
lea eax, [esi + ecx*2 + 0xc]
push eax
lea ecx, [ebx + ecx*2 + 0xc]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x1e0c27e1
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 4]
neg edx
mov dword [ebx + 8], edx
mov eax, 0x7fff
mov word [ebx + ecx*2 + 0xc], ax
lea eax, [ebx + 0xc]
inc ecx
mov edx, eax
call fcn.1e0c2570
add dword [esi], 0xffffffff
jne 0x1e0c27f2
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x18]
push esi
call edx
add esp, 4
add dword [edi], 0xffffffff
jne 0x1e0c2803
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
mov esi, dword [ebx + 8]
mov edx, esi
test esi, esi
jge 0x1e0c280e
neg edx
mov eax, edx
test edx, edx
jle 0x1e0c2833
lea ecx, [ebx + edx*2 + 0xa]
cmp word [ecx], 0
jne 0x1e0c2826
dec eax
sub ecx, 2
test eax, eax
jg 0x1e0c2818
cmp eax, edx
je 0x1e0c2833
test esi, esi
jge 0x1e0c2830
neg eax
mov dword [ebx + 8], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
jle 0x1e0c2869
mov edx, dword [ebp + 8]
sub edx, edi
lea eax, [edi + 0xc]
sub ebx, edi
mov dword [ebp - 0x14], esi
mov ecx, esi
mov si, word [eax + edx]
xor si, word [eax]
add eax, 2
sub dword [ebp - 0x14], 1
mov word [eax + ebx - 2], si
jne 0x1e0c2851
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x10], 0
je 0x1e0c2799
mov edx, dword [ebp - 4]
cmp ecx, edx
mov esi, dword [ebp + 8]
jge 0x1e0c27bb
sub esi, ebx
lea eax, [ebx + ecx*2 + 0xc]
sub edx, ecx
lea esp, [esp]
mov ecx, 0x7fff
xor cx, word [esi + eax]
add eax, 2
sub edx, 1
mov word [eax - 2], cx
jne 0x1e0c2890
mov esi, dword [ebp + 8]
jmp 0x1e0c27bb
xor ecx, ecx
test esi, esi
jle 0x1e0c2799
mov edx, dword [ebp + 8]
sub edx, edi
lea eax, [edi + 0xc]
sub ebx, edi
mov dword [ebp - 0x14], esi
mov ecx, esi
mov si, word [eax + edx]
and si, word [eax]
add eax, 2
sub dword [ebp - 0x14], 1
mov word [eax + ebx - 2], si
jne 0x1e0c28c6
mov ebx, dword [ebp - 8]
jmp 0x1e0c2799