Function at 0x6a5518
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6a57d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x6a57e8
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x48]
mov ecx, 0x10
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x200
mov edx, 1
call fcn.00407ba0
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x6a5804
mov eax, dword [ebp - 4]
call fcn.0040f894
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004074b4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x3a4
call fcn.004076a4
mov eax, dword [ebp - 8]
test eax, eax
je 0x6a55ea
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x6a55ea
lea eax, [ebp - 8]
mov cx, 0x3a4
mov edx, dword [ebp - 8]
call fcn.00406b98
test eax, eax
je 0x6a55f3
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x6a563e
mov eax, ebx
sub eax, 0xa
cmp word [eax], 1
je 0x6a563e
lea eax, [ebp - 8]
mov cx, 0x3a4
mov edx, dword [ebp - 8]
call fcn.00406b98
mov ebx, eax
lea eax, [ebp - 8]
call fcn.00406f1c
mov edx, eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 1]
shl edx, 8
or eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 2]
mov ecx, 0xb
xor edx, edx
div ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 3]
mov ecx, 0xe
xor edx, edx
div ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
movzx ebx, byte [eax + 4]
mov eax, dword [ebp - 8]
movzx esi, byte [eax + 5]
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
call fcn.0043efd4
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x6a56d6
cmp eax, dword [esp]
pop edx
pop eax
ja 0x6a56de
jmp 0x6a57af
pop edx
pop eax
jle 0x6a57af
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x6a56b6
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x24], eax
and dword [ebp - 0x24], 0xffff
mov eax, dword [ebp - 0x1c]
inc eax
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
and eax, 0xffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add ebx, dword [eax*4 + 0x70ac78]
add ebx, dword [ebp - 0x24]
and ebx, 0xffff
mov eax, dword [ebp - 0x30]
add esi, dword [eax*4 + 0x70aca4]
add esi, dword [ebp - 0x24]
and esi, 0xffff
mov eax, dword [ebp - 0x2c]
inc eax
mov ecx, 0xb
cdq
idiv ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
inc eax
mov ecx, 0xe
cdq
idiv ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
add eax, ebx
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
xor dword [ebp - 0x20], esi
and dword [ebp - 0x20], 0xffff
movzx eax, word [ebp - 0x20]
mov word [ebp - 0x32], ax
lea edx, [ebp - 0x32]
mov ecx, 2
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x10]
add esi, dword [ebp - 0x20]
and esi, 0xffff
add ebx, dword [ebp - 0x20]
and ebx, 0xffff
inc dword [ebp - 0x1c]
dec dword [ebp - 0x38]
jne 0x6a56f1
jmp 0x6a56b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a57dc
lea eax, [ebp - 0xc]
call fcn.00407450
lea eax, [ebp - 8]
call fcn.004069b8
lea eax, [ebp - 4]
call fcn.00407450
ret