Function at 0x493430
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, ecx
mov esi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
cmp dword [edi], 0
je 0x493493
mov ecx, esi
xor eax, eax
mov dword [ebp - 4], ecx
test ebx, ebx
jle 0x49348d
xor edi, edi
mov esi, ebx
lea ebx, [ebx]
movzx eax, byte [ecx]
dec esi
lea ecx, [edi*8]
movzx edx, byte [eax + 0x5205b0]
xor edx, ecx
mov ecx, dword [ebp - 4]
inc ecx
xor edi, edx
mov dword [ebp - 4], ecx
test esi, esi
jg 0x493460
mov esi, dword [ebp - 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor edx, edx
div dword [edi]
jmp 0x493495
xor edx, edx
push edx
mov dword [ebp - 4], edx
mov ecx, edi
push ebx
mov edx, esi
call fcn.00493300
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x493519
mov eax, dword [ebp + 0xc]
mov ebx, dword [ecx + 8]
test eax, eax
jne 0x49350a
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x4934c3
mov dword [edx], eax
jmp 0x4934c6
mov dword [edi + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0x4934d2
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4934eb
mov edx, dword [ebp - 4]
cmp dword [esi + edx*8 + 4], ecx
jne 0x4934e8
mov eax, dword [ecx]
mov dword [esi + edx*8 + 4], eax
dec dword [esi + edx*8]
push ecx
call fcn.00490120
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x493510
mov ecx, edi
call fcn.004930f0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x49361e
push 0x14
call fcn.004900b0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x493540
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov edx, dword [edi + 4]
inc edx
mov dword [edi + 4], edx
cmp edx, 0xa
jb 0x4935b1
mov eax, dword [edi]
add eax, eax
cmp edx, eax
jbe 0x4935b1
add edx, edx
mov ecx, edi
call fcn.004931a0
test eax, eax
je 0x4935b1
xor eax, eax
test ebx, ebx
jle 0x4935a9
mov esi, dword [ebp - 8]
xor edi, edi
jmp 0x493580
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x5205b0]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x493580
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [edi]
mov eax, edx
jmp 0x4935b4
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x493605
lea ebx, [ecx + eax*8]
test ebx, ebx
je 0x493605
mov eax, dword [ebx]
test eax, eax
je 0x4935cd
mov ecx, dword [ebx + 4]
jmp 0x4935cf
xor ecx, ecx
inc eax
mov dword [ebx + 4], esi
mov dword [ebx], eax
test ecx, ecx
je 0x493605
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4935f6
mov dword [eax], esi
xor eax, eax
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], esi
xor eax, eax
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x493614
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret