Function at 0x10027690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
test edi, edi
mov dword [esp], eax
mov eax, dword [ecx + 8]
mov dword [esp + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
je 0x10027b80
mov eax, dword [esp + 0x48]
xor edx, edx
add dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x20]
adc dword [ecx + 0x2c], edx
test eax, eax
jle 0x10027a12
cmp eax, 0xf
jg 0x100278f8
lea edi, [eax + 1]
mov ebp, dword [esp + 0x48]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx]
dec ebp
mov byte [ecx + eax + 0x10], dl
je 0x10027b80
cmp edi, 0x10
je 0x10027c0d
lea ebp, [eax + 2]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 1]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 2
je 0x10027b80
cmp ebp, 0x10
je 0x10027c17
lea edi, [eax + 3]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 2]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 3
je 0x10027b80
cmp edi, 0x10
je 0x10027c23
lea ebp, [eax + 4]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 3]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 4
je 0x10027b80
cmp ebp, 0x10
je 0x10027c2f
lea edi, [eax + 5]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 4]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 5
je 0x10027b80
cmp edi, 0x10
je 0x10027c3b
lea ebp, [eax + 6]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 5]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 6
je 0x10027b80
cmp ebp, 0x10
je 0x10027c47
lea edi, [eax + 7]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 6]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 7
je 0x10027b80
cmp edi, 0x10
je 0x10027c53
lea ebp, [eax + 8]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 7]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 8
je 0x10027b80
cmp ebp, 0x10
je 0x10027c5f
lea edi, [eax + 9]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 8]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 9
je 0x10027b80
cmp edi, 0x10
je 0x10027c6b
lea ebp, [eax + 0xa]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 9]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 0xa
je 0x10027b80
cmp ebp, 0x10
je 0x10027c77
lea edi, [eax + 0xb]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 0xa]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 0xb
je 0x10027b80
cmp edi, 0x10
je 0x10027caa
lea ebp, [eax + 0xc]
mov dword [ecx + 0x20], ebp
movzx edx, byte [ebx + 0xb]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 0xc
je 0x10027b80
cmp ebp, 0x10
je 0x10027cb6
lea edi, [eax + 0xd]
mov dword [ecx + 0x20], edi
movzx edx, byte [ebx + 0xc]
mov byte [ecx + ebp + 0x10], dl
mov ebp, dword [esp + 0x48]
sub ebp, 0xd
je 0x10027b80
cmp edi, 0x10
je 0x10027cc2
add eax, 0xe
mov dword [ecx + 0x20], eax
movzx edx, byte [ebx + 0xd]
mov byte [ecx + edi + 0x10], dl
mov edx, dword [esp + 0x48]
sub edx, 0xe
je 0x10027b80
cmp eax, 0xf
jne 0x10027cce
mov dword [ecx + 0x20], 0x10
lea edx, [ebx + 0xf]
movzx eax, byte [ebx + 0xe]
sub dword [esp + 0x48], 0xf
mov byte [ecx + 0x1f], al
je 0x10027b80
mov ebx, edx
mov eax, dword [ecx + 0x10]
mov esi, 0x114253d5
imul ebp, dword [ecx + 0x14], 0x114253d5
mov dword [ecx + 0x20], 0
imul edx, eax, 0x87c37b91
lea edi, [ebp + edx]
mul esi
imul esi, dword [ecx + 0x1c], 0x2745937f
add edx, edi
mov edi, eax
shld edi, edx, 0x1f
mov ebp, edx
mov dword [esp + 0x18], edi
shld ebp, eax, 0x1f
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x1c], ebp
imul edx, eax, 0x4cf5ad43
add esi, edx
mov edx, 0x2745937f
mul edx
add edx, esi
mov esi, eax
shrd esi, edx, 0x1f
mov edi, edx
mov dword [esp + 8], esi
shrd edi, eax, 0x1f
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
imul eax, esi, 0x4cf5ad43
imul edx, edi, 0x2745937f
mov edi, dword [esp + 4]
lea ebp, [edx + eax]
mov eax, 0x2745937f
mul esi
mov esi, dword [esp]
add edx, ebp
xor eax, esi
xor edx, edi
mov esi, eax
mov edi, dword [esp + 8]
shld eax, edx, 0x1b
mov ebp, 5
shld edx, esi, 0x1b
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
lea esi, [edx + edx*4]
mul ebp
mov ebp, dword [esp + 0xc]
add edx, esi
add eax, 0x52dce729
mov dword [esp], eax
adc edx, 0
mov dword [esp + 4], edx
imul eax, edi, 0x87c37b91
imul edx, ebp, 0x114253d5
mov ebp, dword [esp + 0x10]
lea esi, [edx + eax]
mov eax, edi
mov edi, 0x114253d5
mul edi
mov edi, 5
add edx, esi
mov esi, dword [esp + 0x14]
xor eax, ebp
mov ebp, eax
xor edx, esi
shld eax, edx, 0x1f
shld edx, ebp, 0x1f
add eax, dword [esp]
adc edx, dword [esp + 4]
lea ebp, [edx + edx*4]
mul edi
add edx, ebp
add eax, 0x38495ab5
mov dword [esp + 0x10], eax
adc edx, 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x48]
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
add eax, ebx
mov dword [esp + 0x18], eax
cmp ebx, eax
jae 0x10027b5d
mov esi, dword [esp]
mov ebp, ebx
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 4]
mov dword [esp + 0x44], ebx
lea esi, [esi]
mov eax, dword [ebp]
mov ebx, 0x114253d5
imul ecx, dword [ebp + 4], 0x114253d5
imul edx, eax, 0x87c37b91
add ecx, edx
mul ebx
mov ebx, 0x2745937f
add edx, ecx
mov ecx, edx
mov edx, eax
shld edx, ecx, 0x1f
mov dword [esp + 8], edx
shld ecx, eax, 0x1f
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ecx
imul ecx, dword [ebp + 0xc], 0x2745937f
imul edx, eax, 0x4cf5ad43
add ecx, edx
mul ebx
add edx, ecx
mov ecx, eax
shrd ecx, edx, 0x1f
mov ebx, edx
mov edx, dword [esp + 0xc]
mov dword [esp], ecx
shrd ebx, eax, 0x1f
imul eax, dword [esp + 8], 0x4cf5ad43
mov dword [esp + 4], ebx
mov ebx, 5
imul ecx, edx, 0x2745937f
add ecx, eax
mov eax, 0x2745937f
mul dword [esp + 8]
add edx, ecx
xor eax, esi
xor edx, edi
mov ecx, eax
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
lea ecx, [edx + edx*4]
mul ebx
add edx, ecx
mov esi, eax
mov edi, edx
mov edx, dword [esp + 4]
add esi, 0x52dce729
adc edi, 0
imul eax, dword [esp], 0x87c37b91
imul ecx, edx, 0x114253d5
add ecx, eax
mov eax, 0x114253d5
mul dword [esp]
add edx, ecx
mov ecx, dword [esp + 0x10]
xor eax, ecx
mov ecx, dword [esp + 0x14]
xor edx, ecx
mov ecx, eax
shld eax, edx, 0x1f
shld edx, ecx, 0x1f
add eax, esi
adc edx, edi
lea ecx, [edx + edx*4]
mul ebx
add edx, ecx
add eax, 0x38495ab5
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
adc edx, 0
mov dword [esp + 0x14], edx
add ebp, 0x10
cmp ebp, eax
jb 0x10027a40
mov ebx, dword [esp + 0x44]
mov dword [esp], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x40]
add ebx, eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0xc], edx
and eax, 0xf
jne 0x10027b90
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
mov edi, eax
lea esi, [ecx + 0x10]
jae 0x10027bd0
xor edx, edx
test edi, 2
je 0x10027baf
movzx edx, word [ebx]
mov word [esi], dx
mov edx, 2
and edi, 1
je 0x10027bbb
movzx ebx, byte [ebx + edx]
mov byte [esi + edx], bl
mov dword [ecx + 0x20], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, 1
jne 0x10027c98
test esi, 2
jne 0x10027c83
cmp edi, 4
jb 0x10027b9a
mov dword [esp], eax
mov ebp, edi
xor edx, edx
and ebp, 0xfffffffc
mov eax, dword [ebx + edx]
mov dword [esi + edx], eax
add edx, 4
cmp edx, ebp
jb 0x10027bf7
mov eax, dword [esp]
add esi, edx
add ebx, edx
jmp 0x10027b9a
mov dword [esp + 0x48], ebp
inc ebx
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 2
jmp 0x100278f8
mov dword [esp + 0x48], ebp
add ebx, 3
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 4
jmp 0x100278f8
mov dword [esp + 0x48], ebp
add ebx, 5
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 6
jmp 0x100278f8
mov dword [esp + 0x48], ebp
add ebx, 7
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 8
jmp 0x100278f8
mov dword [esp + 0x48], ebp
add ebx, 9
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 0xa
jmp 0x100278f8
movzx edx, word [ebx]
add esi, 2
add ebx, 2
sub edi, 2
mov word [esi - 2], dx
jmp 0x10027be8
movzx edx, byte [ebx]
lea esi, [ecx + 0x11]
inc ebx
lea edi, [eax - 1]
mov byte [ecx + 0x10], dl
jmp 0x10027bdc
mov dword [esp + 0x48], ebp
add ebx, 0xb
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 0xc
jmp 0x100278f8
mov dword [esp + 0x48], ebp
add ebx, 0xd
jmp 0x100278f8
mov dword [esp + 0x48], edx
add ebx, 0xe
jmp 0x100278f8