Function at 0x4add20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631e9d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6ad6b0
call fcn.00409430
mov eax, dword [0x6ad6b4]
lea ecx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov eax, dword [0x6ad6c8]
test al, 1
je 0x4add8f
lea esi, [edi + 2]
jmp 0x4adfa8
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], 0
test al, 2
jne 0x4addea
mov eax, dword [esi + 0xc]
xor edx, edx
xor eax, dword [esi + 4]
xor eax, dword [esi]
xor eax, dword [esi + 8]
div dword [0x6ad6c0]
mov eax, dword [0x6ad6c4]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4addea
mov edx, dword [esi]
mov eax, dword [esi + 4]
cmp dword [ecx + 4], edx
jne 0x4adde4
cmp dword [ecx + 8], eax
jne 0x4adde4
mov eax, dword [ecx + 0xc]
cmp eax, dword [esi + 8]
jne 0x4adde1
mov eax, dword [ecx + 0x10]
cmp eax, dword [esi + 0xc]
je 0x4ade18
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4addc7
mov edx, dword [0x6ad6bc]
mov eax, dword [0x6ad6b8]
cmp edx, eax
jb 0x4adf32
mov esi, 2
lea ecx, [eax + eax]
cmp eax, esi
cmovb ecx, esi
cmp ecx, edx
jae 0x4ade22
mov esi, 3
jmp 0x4adfa8
mov esi, 1
jmp 0x4adfa8
push dword [0x6ad6c8]
mov eax, dword [0x6ad6b0]
push 0x6ad6b0
push ecx
mov ecx, 0x6ad6b0
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4adf51
mov al, byte [esi + 0x18]
not al
test al, 1
je 0x4adf51
mov ecx, dword [0x6ad6c4]
test ecx, ecx
je 0x4adefa
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [0x6ad6c0], edx
jbe 0x4adefa
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
mov edi, dword [eax + ecx]
test edi, edi
je 0x4aded0
mov ecx, dword [ebp - 0x18]
nop word [eax + eax]
mov esi, dword [edi]
xor edx, edx
dec dword [0x6ad6bc]
mov eax, dword [edi + 0x10]
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 8]
xor eax, dword [edi + 4]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
mov edi, esi
mov ecx, dword [ebp - 0x18]
inc dword [ecx + 0xc]
test esi, esi
jne 0x4ade90
mov ecx, dword [0x6ad6c4]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [esi + ecx], 0
inc edx
add eax, 4
mov dword [ebp - 0x1c], edx
add esi, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
cmp edx, dword [0x6ad6c0]
jae 0x4adef7
mov ecx, dword [0x6ad6c4]
jmp 0x4ade80
mov esi, dword [ebp - 0x18]
mov eax, dword [0x6ad6b0]
mov ecx, 0x6ad6b0
push esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov esi, dword [ebx + 8]
xor edx, edx
mov eax, dword [esi + 0xc]
xor eax, dword [esi + 4]
xor eax, dword [esi]
xor eax, dword [esi + 8]
div dword [0x6ad6c0]
mov eax, dword [0x6ad6c4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, dword [0x6ad6b4]
push 0x6ad6b4
call fcn.004b2c60
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4adf5b
lea esi, [eax + 2]
jmp 0x4adfa8
mov edi, dword [ebp - 0x14]
mov esi, 2
jmp 0x4adfa8
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
inc dword [0x6ad6bc]
xor esi, esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4adfba
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004acd80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc