Function at 0x40a760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x368
mov eax, dword [0x445bbc]
mov cl, byte [esp + 0x20]
mov byte [esp + 0x24], cl
mov byte [esp + 0x28], 0x57
mov byte [esp + 0x29], 0xcd
mov byte [esp + 0x2a], 0x9b
mov byte [esp + 0x2b], 0xf3
mov byte [esp + 0x2c], 0x62
mov byte [esp + 0x2d], 0xf1
mov byte [esp + 0x2e], 0x9e
mov byte [esp + 0x2f], 0xf7
mov byte [esp + 0x30], 0x60
mov byte [esp + 0x31], 0xf5
mov byte [esp + 0x32], 0x6e
mov byte [esp + 0x33], 0xfb
mov byte [esp + 0x34], 0x68
mov byte [esp + 0x35], 0xf9
mov byte [esp + 0x36], 0xac
mov byte [esp + 0x37], 0xff
mov byte [esp + 0x38], 0x98
mov byte [esp + 0x39], 0xfd
mov byte [esp + 0x3a], 0x8e
mov byte [esp + 0x3b], 0xe3
mov byte [esp + 0x3c], 0x8c
mov byte [esp + 0x3d], 0xe1
mov byte [esp + 0x3e], 0xe6
mov byte [esp + 0x3f], 0xe7
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
cmp ecx, 0x1c
jae 0x40a86e
jmp 0x40a80f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx esi, byte [esp + ecx + 0x28]
mov ecx, edx
add ecx, 0x3f263e5e
lea edx, [edx + esi + 0x3f263e5e]
and ecx, esi
add ecx, ecx
mov esi, ecx
not esi
mov edi, edx
and edi, esi
not edx
and ecx, edx
sub edi, ecx
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x5c]
mov edx, ecx
xor edx, 0x6d
and ecx, 0x6d
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 0x14]
mov byte [esp + edx + 0x28], cl
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, 0x1c
jb 0x40a80f
jmp 0x40a86e
lea ecx, [esp + 0x28]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x800
call eax
sub esp, 0xc
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
lea ecx, [0x445b84]
mov dword [esp], eax
call fcn.00436550
sub esp, 4
test al, 1
jne 0x40a8bb
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 1
jmp 0x40ab6d
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0xcd5bd590
call fcn.00438df0
mov dword [0x445b8c], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x3098095e
call fcn.00438df0
mov dword [0x445b90], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x4133be71
call fcn.00438df0
mov dword [0x445b94], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x1c8a781f
call fcn.00438df0
mov dword [0x445b98], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x71c23cd8
call fcn.00438df0
mov dword [0x445b9c], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x1c121576
call fcn.00438df0
mov dword [0x445ba0], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x21bbc64b
call fcn.00438df0
mov dword [0x445ba4], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x8d2eb73e
call fcn.00438df0
mov dword [0x445ba8], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0xde1934d7
call fcn.00438df0
mov dword [0x445bac], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0xa2add3c4
call fcn.00438df0
mov dword [0x445bb0], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0x1f4c40ff
call fcn.00438df0
mov dword [0x445bb4], eax
mov eax, dword [0x445b84]
mov dword [esp], eax
mov dword [esp + 4], 0xfe8974d2
call fcn.00438df0
mov dword [0x445bb8], eax
lea eax, [0x43c5f4]
mov dword [esp + 0x60], eax
lea eax, [0x43c5f4]
mov dword [esp + 0x18], eax
lea eax, [0x43c5f4]
add eax, 0x24
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x54]
jne 0x40aa2b
mov dword [esp + 0x10], 2
jmp 0x40ab55
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004337b0
lea esi, [esp + 0x64]
lea ebx, [esp + 0x164]
mov eax, ebx
add eax, 0x200
mov dword [esp + 0x1c], eax
mov ecx, esi
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40aa61
sub eax, esi
mov edi, esi
add edi, eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
cmp edi, esi
ja 0x40aa88
jmp 0x40aad5
mov dword [esp + 0x1c], eax
jmp 0x40aa8e
cmp byte [esi], 0
jne 0x40aa97
mov eax, ebx
jmp 0x40aad3
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040f350
add esi, eax
mov cx, word [esp + 0x4c]
mov eax, ebx
add eax, 2
mov word [ebx], cx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
setb cl
mov edx, esi
sub edx, edi
setb dl
and cl, dl
test cl, 1
mov ebx, eax
jne 0x40aa8e
mov ebx, eax
mov word [ebx], 0
lea eax, [esp + 0x164]
mov dword [esp], eax
call fcn.0040ab80
test al, 1
jne 0x40aaef
jmp 0x40ab1b
lea eax, [esp + 0x164]
lea ecx, [0x445bc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040b5f0
jmp 0x40ab0a
mov byte [esp + 0xf], 1
jmp 0x40ab11
mov dword [esp + 0x10], 1
jmp 0x40ab25
mov dword [esp + 0x10], 0
jmp 0x40ab25
mov eax, dword [esp + 0x10]
cmp eax, 0
jne 0x40ab38
mov dword [esp + 0x10], 0
jmp 0x40ab38
cmp dword [esp + 0x10], 0
jne 0x40ab53
jmp 0x40ab41
mov eax, dword [esp + 0x18]
add eax, 4
jmp 0x40ab4a
mov dword [esp + 0x18], eax
jmp 0x40aa14
jmp 0x40ab55
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40ab6d
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 1
jmp 0x40ab6d
mov al, byte [esp + 0xf]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret