Function at 0xa40300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov dword [esp + 8], ecx
cmp dword [ecx + 8], 0
je 0xa40390
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0xa40390
mov ebx, dword [ebp + 0xc]
mov dword [esp], 0xf4f5f6f7
mov eax, 0x92bb3fd4
nop
movzx edx, byte [esp + eax + 0x6d44c02c]
xor edx, eax
mov esi, edx
not esi
add edx, 0x2257c0db
or esi, edx
and esi, 1
or edx, 1
add edx, esi
mov byte [esp + eax + 0x6d44c02c], dl
inc eax
cmp eax, 0x92bb3fd8
jne 0xa40330
mov eax, dword [esp]
mov esi, dword [0xa20374]
test esi, esi
je 0xa403fc
xor edx, edx
mov edi, dword [0xa20378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x2dedf0b8
je 0xa403df
inc edx
cmp esi, edx
jne 0xa40380
jmp 0xa403fc
mov dword [esp], 0x21e6e79c
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0xa78346d9
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x587cb927]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xc3
mov byte [esp + eax + 0x587cb927], cl
inc eax
cmp eax, 0xa78346e0
jne 0xa403b0
mov eax, dword [esp]
jmp 0xa405ba
mov edx, dword [edi + edx*8 + 4]
cmp edx, eax
je 0xa403fc
push dword [ebp + 8]
push ecx
push 2
push dword [0xa2037c]
push edx
call fcn.00a42b10
add esp, 0x14
cmp ebx, 1
mov ecx, dword [ebp + 0x10]
sbb ecx, 0
jl 0xa404ff
cmp eax, 0xc000010a
jne 0xa404ff
mov ecx, ebx
and ecx, 0x270f
mov edi, ebx
and edi, 0xffffd8f0
mov eax, edi
xor eax, 0xffffd8f0
mov esi, ebx
mov ebx, dword [ebp + 0x10]
not ebx
imul ebx, ecx
mul ecx
mov dword [esp + 0x10], eax
mov ecx, edx
add ecx, ebx
or esi, 0xffffd8f0
mov ebx, dword [ebp + 0x10]
imul ebx, esi
mov eax, esi
mul edi
add edx, ebx
sub edx, edi
add eax, dword [esp + 0x10]
adc edx, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xf4f5f6f7
mov eax, 0x92bb3fd4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + eax + 0x6d44c038]
xor ebx, eax
mov ecx, ebx
not ecx
add ebx, 0x2257c0db
or ecx, ebx
and ecx, 1
or ebx, 1
add ebx, ecx
mov byte [esp + eax + 0x6d44c038], bl
inc eax
cmp eax, 0x92bb3fd8
jne 0xa40480
mov eax, dword [esp + 0xc]
mov esi, dword [0xa20374]
test esi, esi
je 0xa404ff
xor edi, edi
mov ecx, dword [0xa20378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0x4e66b5a3
je 0xa404e0
inc edi
cmp esi, edi
jne 0xa404d0
jmp 0xa404ff
mov ecx, dword [ecx + edi*8 + 4]
cmp ecx, eax
je 0xa404ff
mov eax, esp
push eax
push 0
push edx
push 3
push dword [0xa2037c]
push ecx
call fcn.00a42b10
add esp, 0x18
test eax, eax
js 0xa405ba
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
test edx, edx
je 0xa405ba
mov dword [esp], 0xf4f5f6f7
mov esi, 0x92bb3fd4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + esi + 0x6d44c02c]
xor ebx, esi
mov ecx, ebx
not ecx
add ebx, 0x2257c0db
or ecx, ebx
and ecx, 1
or ebx, 1
add ebx, ecx
mov byte [esp + esi + 0x6d44c02c], bl
inc esi
cmp esi, 0x92bb3fd8
jne 0xa40530
mov esi, dword [0xa20374]
test esi, esi
je 0xa405b0
mov ecx, dword [esp]
xor ebx, ebx
mov edi, dword [0xa20378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xb62b8d10
je 0xa40590
inc ebx
cmp esi, ebx
jne 0xa40580
jmp 0xa405b0
mov esi, ecx
mov ecx, dword [edi + ebx*8 + 4]
cmp ecx, esi
je 0xa405b0
push edx
push 1
push dword [0xa2037c]
push ecx
mov esi, eax
call fcn.00a42b10
mov eax, esi
add esp, 0x10
mov ecx, dword [esp + 8]
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc