Function at 0x40a3c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
add eax, dword [ecx + 0x60]
mov dword [esp + 0x14], 0x58a399
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 3
ja 0x40a425
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x14]
add edx, 0xcd9b8f9f
xor edx, esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
add dl, 7
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x14], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 4
jb 0x40a3f0
mov dword [esp + 8], 0x2a24283e
mov word [esp + 0xc], 0x1922
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xb
ja 0x40a497
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [edx + esi]
and edx, esi
add edx, edx
sub edi, edx
add edi, 0xe1f0f900
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
add dl, 0xe4
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xc
jb 0x40a460
mov dword [esp + 0x18], 0x24221213
mov dword [esp + 0x1c], 0x2020f6fa
mov dword [esp + 0x20], 0x2d382ef3
mov dword [esp + 0x24], 0x28252825
mov dword [esp + 0x28], 0xe0353d3c
mov dword [esp + 0x2c], 0x3a17d9df
mov dword [esp + 0x30], 0x373d2338
mov dword [esp + 0x34], 0x3418f62e
mov dword [esp + 0x38], 0x120f2f2d
mov dword [esp + 0x3c], 0xa0d170b
mov dword [esp + 0x40], 0xfc8dd08
mov dword [esp + 0x44], 0xc0011905
mov dword [esp + 0x48], 0x10040e0a
mov dword [esp + 0x4c], 0x141ad3c9
mov dword [esp + 0x50], 0xdbc5121b
mov byte [esp + 0x54], 0xfa
mov dword [esp + 0x55], 0
mov byte [esp + 0x59], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x41
ja 0x40a573
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x18]
add edx, 0x5f31fe
xor edx, esi
mov dword [esp], edx
mov edx, dword [esp]
add dl, 0x40
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x18], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x42
jb 0x40a540
mov esi, dword [esp + 0x70]
movzx ebx, byte [esp + 0x18]
mov edx, eax
test bl, bl
je 0x40a59b
lea edi, [esp + 0x19]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40a590
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40a5bb
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a5b0
mov esi, dword [esp + 0x74]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40a5db
lea edi, [esp + 9]
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40a5d0
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40a5fb
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a5f0
mov byte [edx], 0
movzx ebx, byte [esp + 0x14]
test bl, bl
je 0x40a61b
lea esi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a610
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
add esp, 0x5c
pop esi
pop edi
pop ebx
ret 0xc