Function at 0x1e0870d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [ebx + 8]
mov esi, eax
test eax, eax
jge 0x1e0870f4
neg esi
mov dword [ebp - 4], esi
jmp 0x1e0870f7
mov dword [ebp - 4], eax
xor ecx, ecx
test eax, eax
setl cl
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1e08712c
push esi
call sym.python27.dll__PyLong_New
mov esi, eax
pop ecx
test esi, esi
jne 0x1e087119
xor eax, eax
jmp 0x1e0872d2
mov ecx, dword [ebp - 4]
lea edx, [ebx + 0xc]
lea eax, [esi + 0xc]
call fcn.1e08709c
mov dword [ebp + 8], esi
jmp 0x1e08712e
inc dword [ebx]
mov eax, dword [edi + 8]
mov ebx, eax
test eax, eax
jge 0x1e087139
neg ebx
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1e08717a
push ebx
call sym.python27.dll__PyLong_New
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1e087168
mov eax, dword [ebp + 8]
dec dword [eax]
jne 0x1e087112
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
jmp 0x1e087112
lea edx, [edi + 0xc]
add eax, 0xc
mov ecx, ebx
call fcn.1e08709c
mov edi, dword [ebp - 0x14]
jmp 0x1e08717c
inc dword [edi]
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jge 0x1e08719f
mov eax, dword [ebp + 8]
mov dword [ebp + 8], edi
mov edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
mov ebx, ecx
mov ecx, dword [ebp - 4]
mov edx, esi
mov dword [ebp - 0x10], eax
mov esi, eax
jmp 0x1e0871a2
mov edx, dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0x26
je 0x1e0871d7
cmp dword [ebp + 0xc], 0x5e
je 0x1e0871cb
cmp dword [ebp + 0xc], 0x7c
je 0x1e0871be
call sym.python27.dll_PyErr_BadArgument
jmp 0x1e087112
mov eax, esi
or eax, edx
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1e0871e5
jmp 0x1e0871d2
mov eax, esi
xor eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x1e0871e8
mov eax, esi
and eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1e0871e8
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, ecx
push eax
call sym.python27.dll__PyLong_New
mov esi, eax
pop ecx
test esi, esi
jne 0x1e087220
mov eax, dword [ebp + 8]
dec dword [eax]
jne 0x1e08720c
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
dec dword [edi]
jne 0x1e087112
mov eax, dword [edi + 4]
push edi
call dword [eax + 0x18]
jmp 0x1e087165
cmp dword [ebp + 0xc], 0x26
je 0x1e08733c
cmp dword [ebp + 0xc], 0x5e
je 0x1e0872d7
cmp dword [ebp + 0xc], 0x7c
jne 0x1e0871b4
xor ecx, ecx
test ebx, ebx
jle 0x1e08726d
mov ecx, dword [ebp + 8]
sub ecx, edi
mov edx, esi
mov dword [ebp - 8], ecx
lea eax, [edi + 0xc]
sub edx, edi
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov bx, word [ebx + eax]
or bx, word [eax]
mov word [edx + eax], bx
inc eax
inc eax
dec dword [ebp - 0x10]
jne 0x1e087258
cmp ecx, dword [ebp - 4]
jge 0x1e08728f
mov edx, dword [ebp - 4]
sub edx, ecx
lea eax, [ecx + ecx + 0xc]
mov ecx, dword [ebp + 8]
add edx, edx
push edx
add ecx, eax
push ecx
add eax, esi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x1e0872b0
neg dword [esi + 8]
mov ecx, dword [ebp - 4]
mov eax, 0x7fff
mov word [esi + ecx*2 + 0xc], ax
lea eax, [esi + 0xc]
inc ecx
mov edx, eax
call fcn.1e08709c
mov eax, dword [ebp + 8]
dec dword [eax]
jne 0x1e0872bf
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
dec dword [edi]
jne 0x1e0872cb
mov eax, dword [edi + 4]
push edi
call dword [eax + 0x18]
pop ecx
mov eax, esi
call fcn.1e08334d
pop edi
pop esi
pop ebx
leave
ret
xor ecx, ecx
test ebx, ebx
jle 0x1e087306
mov ecx, dword [ebp + 8]
sub ecx, edi
mov edx, esi
mov dword [ebp - 8], ecx
lea eax, [edi + 0xc]
sub edx, edi
mov dword [ebp - 0x14], ebx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov bx, word [eax + ebx]
xor bx, word [eax]
mov word [eax + edx], bx
inc eax
inc eax
dec dword [ebp - 0x14]
jne 0x1e0872f1
cmp dword [ebp - 0x10], 0
je 0x1e08726d
mov edx, dword [ebp - 4]
cmp ecx, edx
jge 0x1e08728f
mov ebx, dword [ebp + 8]
sub ebx, esi
lea eax, [esi + ecx*2 + 0xc]
sub edx, ecx
mov ecx, 0x7fff
xor cx, word [ebx + eax]
mov word [eax], cx
inc eax
inc eax
dec edx
jne 0x1e087326
jmp 0x1e08728f
xor ecx, ecx
test ebx, ebx
jle 0x1e08726d
mov ecx, dword [ebp + 8]
sub ecx, edi
mov edx, esi
mov dword [ebp - 8], ecx
lea eax, [edi + 0xc]
sub edx, edi
mov dword [ebp - 0x14], ebx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov bx, word [eax + ebx]
and bx, word [eax]
mov word [eax + edx], bx
inc eax
inc eax
dec dword [ebp - 0x14]
jne 0x1e08735a
jmp 0x1e08726d