Function at 0x40a7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov edx, dword [ecx + 0x80]
mov dword [esp + 0x14], 0x576c6e03
mov dword [esp + 0x18], 0x2a526b61
mov dword [esp + 0x1c], 0x6e5a507c
mov dword [esp + 0x20], 0x5b6f2d16
mov dword [esp + 0x24], 0x1b111024
mov dword [esp + 0x28], 0x23181019
mov dword [esp + 0x2c], 0x14572157
mov dword [esp + 0x30], 0x1c1b171e
mov dword [esp + 0x34], 0xaea8ac34
mov word [esp + 0x38], 0xa5ae
mov dword [esp + 0x3a], 0
mov word [esp + 0x3e], 0
xor edi, edi
mov ebp, edi
and ebp, 0x10
xor ebp, 0xd0
mov ebx, edi
and ebx, 0x2f
sub ebx, ebp
xor bl, byte [esp + edi + 0x14]
add bl, 0x10
mov byte [esp + edi + 0x14], bl
inc edi
cmp edi, 0x2c
jne 0x40a860
mov dword [esp + 0xc], 0xd9c4c822
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi + 0xc]
lea esi, [edi + 0xaf]
mov ebx, esi
or ebx, ebp
and esi, ebp
sub ebx, esi
add bl, 0x95
mov byte [esp + edi + 0xc], bl
mov esi, edi
and esi, 1
xor edi, 1
lea edi, [edi + esi*2]
cmp edi, 7
jb 0x40a8a0
mov dword [esp], ecx
mov dword [esp + 0x44], 0x84e92f2d
mov dword [esp + 0x48], 0x818f9986
mov dword [esp + 0x4c], 0x96f2c49c
mov dword [esp + 0x50], 0x84999d83
mov dword [esp + 0x54], 0x949f8591
mov dword [esp + 0x58], 0x9922c396
mov dword [esp + 0x5c], 0xeaab8f93
mov dword [esp + 0x60], 0xdab6dca0
mov dword [esp + 0x64], 0xd6a419ff
mov dword [esp + 0x68], 0xedf7a8a1
mov dword [esp + 0x6c], 0xb2baa8aa
mov dword [esp + 0x70], 0xb10aeaf2
mov dword [esp + 0x74], 0xb5bbbdb1
mov dword [esp + 0x78], 0xe6bfb0c5
mov word [esp + 0x7c], 0x21fe
mov dword [esp + 0x7e], 0
xor edi, edi
nop
nop
movzx ebx, byte [esp + edi + 0x44]
mov esi, 0xb9
sub esi, edi
or esi, ebx
lea ebp, [edi + 0x46]
not ebx
or ebx, ebp
and ebx, esi
mov al, 0xa1
sub al, bl
mov byte [esp + edi + 0x44], al
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, 0x3e
jb 0x40a950
mov ecx, dword [esp + 0x98]
add ecx, edx
mov word [esp + 4], 0x686f
mov byte [esp + 6], 0x1a
mov word [esp + 7], 0
xor edx, edx
nop
nop
nop
movzx eax, byte [esp + edx + 4]
mov esi, 0x44
sub esi, edx
lea edi, [edx - 0x33ae0645]
xor esi, edi
and esi, eax
xor esi, edi
mov eax, esi
and eax, 0x58
xor esi, 0x58
lea eax, [esi + eax*2]
inc al
mov byte [esp + edx + 4], al
lea eax, [edx + edx]
and eax, 2
mov esi, eax
and esi, edx
or eax, edx
xor eax, 1
add eax, esi
mov edx, eax
cmp eax, 5
jb 0x40a9a0
movzx ebx, byte [esp + 4]
mov edx, ecx
test bl, bl
je 0x40aa0b
lea edi, [esp + 5]
mov edx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40aa00
mov byte [edx], 0
mov eax, dword [esp]
movzx ebx, byte [eax + 0x60]
test bl, bl
je 0x40aa3d
lea edi, [eax + 0x61]
mov eax, dword [esp + 0x9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40aa30
jmp 0x40aa44
mov eax, dword [esp + 0x9c]
mov byte [edx], 0
movzx ebx, byte [esp + 0x44]
test bl, bl
je 0x40aa6b
lea edi, [esp + 0x45]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40aa60
mov byte [edx], 0
movzx ebx, byte [eax]
test bl, bl
mov dword [esp + 0x40], ecx
je 0x40aa8b
inc eax
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [eax]
inc eax
test bl, bl
jne 0x40aa80
mov byte [edx], 0
movzx ecx, byte [esp + 0xc]
test cl, cl
je 0x40aaab
lea edi, [esp + 0xd]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40aaa0
mov byte [edx], 0
movzx ecx, byte [esp + 0x14]
test cl, cl
je 0x40aacb
lea edi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40aac0
mov byte [edx], 0
mov ebx, dword [esp + 0xa4]
mov ecx, ebx
shr ecx, 2
mov esi, dword [esp + 0xa0]
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and ebx, 0xfffffffc
add edx, ebx
add ebx, esi
mov ecx, eax
mov esi, eax
and ecx, 3
not eax
or eax, 0xfffffffe
lea ebp, [ecx + eax]
inc ebp
shr ecx, 1
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
add edx, ebp
mov eax, esi
test al, 1
je 0x40ab1c
movzx eax, byte [ebx + ebp]
mov byte [edx], al
inc edx
mov dword [esp + 0x44], 0x90f0b0d
mov byte [esp + 0x48], 4
mov word [esp + 0x49], 0
mov byte [esp + 0x4b], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 0x44]
lea ebx, [ecx - 0x7923b240]
mov ebp, ebx
and ebp, edi
mov eax, ebp
and eax, 0xffffffc5
mov esi, ebp
and esi, 2
or ebp, 2
imul ebp, esi
xor esi, 2
imul esi, eax
add ebp, esi
xor ebx, ebp
mov eax, ecx
xor eax, 0x7923b23f
and eax, ebp
add eax, eax
not eax
add ebx, edi
add ebx, eax
mov eax, ebx
and eax, 1
xor ebx, 1
add ebx, 0x40
or ebx, eax
add ebx, eax
mov byte [esp + ecx + 0x44], bl
inc ecx
cmp ecx, 8
jne 0x40ab40
mov dword [esp + 0x14], 0x4e412523
mov byte [esp + 0x18], 0x10
mov word [esp + 0x19], 0
mov byte [esp + 0x1b], 0
xor ecx, ecx
nop
nop
mov eax, ecx
add al, 5
xor al, byte [esp + ecx + 0x14]
add al, 0xe7
mov byte [esp + ecx + 0x14], al
inc ecx
cmp ecx, 8
jne 0x40abb0
movzx ecx, byte [esp + 0x14]
test cl, cl
je 0x40abed
lea edi, [esp + 0x15]
mov eax, dword [esp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40abe0
jmp 0x40abf0
mov eax, dword [esp]
mov byte [edx], 0
movzx ecx, byte [eax + 0x60]
test cl, cl
je 0x40ac0b
lea edi, [eax + 0x61]
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40ac00
mov byte [edx], 0
movzx ecx, byte [esp + 0x44]
test cl, cl
je 0x40ac2b
lea edi, [esp + 0x45]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40ac20
mov byte [edx], 0
sub edx, dword [esp + 0x40]
add dword [eax + 0x80], edx
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret 0x10