Function at 0x4b6b70
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 - 0xc], esi
mov dword [ebp - 0x10], edi
cmp dword [edi], 0
je 0x4b6bd3
mov ecx, esi
xor eax, eax
mov dword [ebp - 8], ecx
test ebx, ebx
jle 0x4b6bcd
xor edi, edi
mov esi, ebx
nop word [eax + eax]
movzx eax, byte [ecx]
dec esi
lea ecx, [edi*8]
movzx edx, byte [eax + 0x54a7a0]
xor edx, ecx
mov ecx, dword [ebp - 8]
inc ecx
xor edi, edx
mov dword [ebp - 8], ecx
test esi, esi
jg 0x4b6ba0
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [edi]
jmp 0x4b6bd5
xor edx, edx
push edx
mov dword [ebp - 4], edx
mov ecx, edi
push ebx
mov edx, esi
call fcn.004b6a40
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4b6ccd
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
test ecx, ecx
jne 0x4b6cbe
mov edx, dword [eax + 4]
mov ecx, dword [eax]
test edx, edx
je 0x4b6c0c
mov dword [edx], ecx
jmp 0x4b6c0f
mov dword [edi + 8], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4b6c1e
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4b6c3a
mov ecx, dword [ebp - 4]
cmp dword [edx + ecx*8 + 4], eax
jne 0x4b6c37
mov eax, dword [eax]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [ebp - 8]
dec dword [edx + ecx*8]
cmp dword [0x562cd0], 0
je 0x4b6c9e
mov eax, dword [0x5654a8]
test eax, eax
je 0x4b6c56
push eax
call dword [0x562d18]
add esp, 4
mov esi, dword [ebp - 8]
push esi
call dword [0x562cf4]
mov ecx, dword [0x565330]
neg eax
add ecx, eax
add esp, 4
mov eax, dword [0x565354]
cmp ecx, eax
mov dword [0x565330], ecx
cmovg eax, ecx
push esi
mov dword [0x565354], eax
call dword [0x562cec]
mov eax, dword [0x5654a8]
add esp, 4
test eax, eax
je 0x4b6ca8
push eax
call dword [0x562d20]
jmp 0x4b6ca5
push eax
call dword [0x562cec]
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x4b6cc4
mov ecx, edi
call fcn.004b6760
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x4b6dce
push 0x14
call fcn.004b3470
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
jne 0x4b6cf4
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
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 0x4b6d61
mov eax, dword [edi]
add eax, eax
cmp edx, eax
jbe 0x4b6d61
add edx, edx
mov ecx, edi
call fcn.004b6870
test eax, eax
je 0x4b6d61
xor eax, eax
test ebx, ebx
jle 0x4b6d59
mov esi, dword [ebp - 0xc]
xor edi, edi
nop
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x54a7a0]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x4b6d30
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [edi]
mov eax, edx
jmp 0x4b6d64
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4b6db5
lea edx, [ecx + eax*8]
test edx, edx
je 0x4b6db5
mov eax, dword [edx]
test eax, eax
je 0x4b6d7d
mov ecx, dword [edx + 4]
jmp 0x4b6d7f
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x4b6db5
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4b6da6
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 0x4b6dc4
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