Function at 0x40aba0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41ac4c]
sub esp, 0x6c8
test eax, eax
jne 0x40abdb
mov eax, dword [0x41a660]
mov ecx, dword [0x4130d8]
cmp eax, ecx
ja 0x40abdb
mov eax, dword [esp + 0x6d8]
mov dword [0x41ac4c], 0
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7ed4
jle 0x40abe5
mov dword [0x41ac4c], 1
mov cl, byte [0x438f78]
mov eax, dword [0x41306c]
push ebx
push ebp
push esi
push edi
test cl, 0x40
mov dword [esp + 0x10], eax
je 0x40ac12
push eax
lea ecx, [esp + 0x2c]
push str.__d.
push ecx
call fcn.0040c060
add esp, 0xc
jmp 0x40ac38
mov edi, 0x417070
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x6ec]
mov esi, 1
cmp byte [edx + 0x105], 1
jb 0x40ad2a
mov ebp, dword [esp + 0x6e0]
lea ebx, [edx + 4]
test byte [0x438f78], 0x40
je 0x40ac92
cmp esi, 1
jle 0x40ac92
test ebp, ebp
je 0x40ac92
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x28]
push ecx
or ecx, 0xffffffff
xor eax, eax
push str.__d.
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x30]
push edx
call fcn.0040c060
add esp, 0xc
mov eax, dword [ebx]
push ebp
push esi
push eax
call fcn.00408010
push eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._s
lea ecx, [esp + ecx + 0x3c]
push ecx
call fcn.0040c060
mov edx, dword [ebx]
push ebp
push edx
push esi
call fcn.00404f50
add esp, 0x24
xor ebp, 1
je 0x40acd0
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x6ec]
xor eax, eax
inc esi
add ebx, 4
mov al, byte [ecx + 0x105]
cmp esi, eax
jle 0x40ac5b
mov edx, ecx
cmp byte [edx + 0x104], 1
jne 0x40aec0
xor eax, eax
mov al, byte [edx + 0x105]
inc eax
cmp eax, 0x41
mov dword [esp + 0x14], eax
jge 0x40aec0
mov esi, 0x43819c
lea ecx, [eax + 0x417f7c]
sub esi, edx
mov dword [esp + 0x10], ecx
lea ebx, [edx + eax*4]
mov dword [esp + 0x18], esi
jmp 0x40ad3b
mov ebp, dword [esp + 0x6e0]
jmp 0x40aced
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push edx
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
push 0
push eax
call fcn.004020b0
mov eax, dword [esi + ebx]
add esp, 0x18
test eax, eax
mov dword [esp + 0x24], eax
je 0x40aeb9
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x228]
push edx
push ebp
mov cl, byte [eax]
push 0x41
mov byte [0x417fbd], cl
call fcn.00405210
push eax
push ebp
push 0x41
call fcn.00405590
mov edi, eax
lea eax, [esp + 0x240]
add esp, 0x18
cmp eax, edi
lea esi, [esp + 0x228]
jae 0x40aeb9
mov eax, ebp
xor eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [esi]
push ebp
push ecx
push 0x41
call fcn.00404f50
mov al, byte [0x417fc4]
add esp, 0xc
test ebp, ebp
jne 0x40adca
mov al, byte [0x437a58]
mov edx, dword [esp + 0x20]
movsx eax, al
push edx
push eax
call fcn.00401900
add esp, 8
test eax, eax
jne 0x40ade9
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
cmp ecx, eax
je 0x40ae04
mov edx, dword [esi]
push ebp
push edx
push 0x41
call fcn.0040a790
add esi, 4
add esp, 0xc
cmp esi, edi
jae 0x40aeb9
jmp 0x40adae
mov eax, dword [esi]
push ebp
push eax
push 0x41
call fcn.0040a790
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6f8]
add esp, 0xc
mov ecx, dword [ecx + ebx]
cmp edx, 0x417f7d
mov dword [ebx], ecx
mov eax, 1
jle 0x40ae4e
lea edx, [esi + 4]
cmp ecx, dword [edx]
je 0x40ae48
mov edi, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, edi
jl 0x40ae36
jmp 0x40ae4e
cmp eax, dword [esp + 0x14]
jl 0x40aeb9
mov al, byte [esi + 0x105]
mov edx, dword [esp + 0x14]
inc al
push ebp
mov byte [esi + 0x105], al
mov eax, dword [ebx]
push edx
push eax
call fcn.00408010
push eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._s
lea ecx, [esp + ecx + 0x3c]
push ecx
call fcn.0040c060
mov edx, dword [ebx]
mov esi, dword [esp + 0x2c]
push ebp
push edx
push esi
call fcn.00404f50
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x44]
add esp, 0x24
inc esi
inc eax
add ebx, 4
cmp eax, 0x417fbd
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jl 0x40ad33
mov edx, dword [esp + 0x6ec]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x419e00
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x41ac4c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40af22
mov al, byte [0x438ee2]
test al, al
jne 0x40af22
mov eax, dword [0x438ea8]
test eax, eax
je 0x40af22
push 0x419e00
push 0x413048
call fcn.0040bbe1
push 0x4170a0
call fcn.0040b8df
mov edx, dword [esp + 0x6f8]
add esp, 0xc
xor ecx, ecx
mov cl, byte [edx + 0x105]
mov esi, ecx
test esi, esi
jle 0x40af4b
lea edi, [edx + esi*4]
mov edx, dword [edi]
xor ebp, 1
push ebp
push edx
push esi
call fcn.0040a790
add esp, 0xc
dec esi
sub edi, 4
test esi, esi
jg 0x40af33
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c8
ret