Function at 0x40d6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 0x80]
mov dword [esp + 0x14], 0x25e01ec9
mov dword [esp + 0x18], 0x9a26ddd7
mov dword [esp + 0x1c], 0xde262cc0
mov dword [esp + 0x20], 0x29d99be2
mov dword [esp + 0x24], 0xc9dbdc28
mov dword [esp + 0x28], 0x31ccc4cf
mov dword [esp + 0x2c], 0x38893ff5
mov dword [esp + 0x30], 0xc8cdc1ca
mov dword [esp + 0x34], 0xdea4a038
mov word [esp + 0x38], 0xd3da
mov dword [esp + 0x3a], 0
xor esi, esi
nop
nop
nop
movzx ebx, byte [esp + esi + 0x14]
lea edi, [esi - 0x5df95ae3]
and edi, ebx
add edi, edi
neg edi
lea eax, [esi + edi]
add eax, 0xa206a51d
add al, bl
add al, 0x6f
mov byte [esp + esi + 0x14], al
mov eax, esi
and eax, 1
xor esi, 1
lea esi, [esi + eax*2]
cmp esi, 0x2a
jb 0x40d720
mov dword [esp + 8], 0x818c9066
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
xor esi, esi
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ebp + 8]
mov ebx, esi
and ebx, 2
mov edi, ebp
xor edi, 0xa9a4a9e
sub edi, ebx
xor edi, eax
lea ebx, [edi + edi]
not ebx
add ebx, edi
add bl, 0x1b
mov byte [esp + ebp + 8], bl
inc ebp
add esi, 2
cmp ebp, 7
jne 0x40d770
mov dword [esp + 0x44], 0x84511b25
mov dword [esp + 0x48], 0x8973818a
mov dword [esp + 0x4c], 0x72564c84
mov dword [esp + 0x50], 0x94919597
mov dword [esp + 0x54], 0x946b9d69
mov dword [esp + 0x58], 0x612e579a
mov dword [esp + 0x5c], 0x5e9f9b9f
mov dword [esp + 0x60], 0x56aa5458
mov dword [esp + 0x64], 0x52a4116b
mov dword [esp + 0x68], 0x1d7b50a9
mov dword [esp + 0x6c], 0x56ae5056
mov dword [esp + 0x70], 0x49067e06
mov dword [esp + 0x74], 0xb54fb549
mov dword [esp + 0x78], 0x6a43b84d
mov dword [esp + 0x7c], 0x290a
xor ebx, ebx
mov ecx, dword [esp + 0x94]
nop
nop
mov eax, ebx
add al, 0x84
xor al, byte [esp + ebx + 0x44]
add al, 0x6c
mov byte [esp + ebx + 0x44], al
inc ebx
cmp ebx, 0x3c
jne 0x40d820
add ecx, edx
mov word [esp], 0x5c5d
mov byte [esp + 2], 0xb6
mov dword [esp + 3], 0
xor edx, edx
mov edi, dword [esp + 0x10]
nop
mov eax, edx
add al, 0xde
xor al, byte [esp + edx]
add al, 0xaa
mov byte [esp + edx], al
inc edx
cmp edx, 7
jne 0x40d850
movzx ebx, byte [esp]
mov edx, ecx
test bl, bl
je 0x40d88b
lea esi, [esp + 1]
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 [esi]
inc esi
test bl, bl
jne 0x40d880
mov byte [edx], 0
movzx ebx, byte [edi + 0x60]
test bl, bl
mov eax, dword [esp + 0x98]
je 0x40d8ab
lea esi, [edi + 0x61]
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d8a0
mov byte [edx], 0
movzx ebx, byte [esp + 0x44]
test bl, bl
je 0x40d8cb
lea esi, [esp + 0x45]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d8c0
mov byte [edx], 0
movzx ebx, byte [eax]
test bl, bl
mov dword [esp + 0x40], ecx
je 0x40d8eb
inc eax
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [eax]
inc eax
test bl, bl
jne 0x40d8e0
mov byte [edx], 0
movzx ecx, byte [esp + 8]
test cl, cl
je 0x40d90b
lea esi, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40d900
mov byte [edx], 0
movzx ecx, byte [esp + 0x14]
test cl, cl
je 0x40d92b
lea esi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40d920
mov byte [edx], 0
mov eax, dword [esp + 0xa0]
mov ecx, eax
mov esi, eax
shr ecx, 2
mov ebp, dword [esp + 0x9c]
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
mov ebx, esi
and ebx, 0xfffffffc
lea esi, [edx + ebx]
add ebx, ebp
mov ecx, eax
mov ebp, eax
shr ecx, 1
and ecx, 1
mov eax, ebx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, ebp
test al, 1
je 0x40d980
mov eax, dword [esp + 0xa0]
and eax, 2
movzx ecx, byte [ebx + eax]
mov byte [esi + eax], cl
mov dword [esp + 0x44], 0x1f191d1f
mov byte [esp + 0x48], 8
mov dword [esp + 0x49], 0
mov byte [esp + 0x4d], 0
mov ecx, 0x43
mov esi, 0xbc
mov edi, dword [esp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 1]
mov eax, ecx
or eax, ebx
not ebx
or ebx, esi
and ebx, eax
add bl, 0xb1
mov byte [esp + ecx + 1], bl
inc ecx
dec esi
cmp ecx, 0x4d
jne 0x40d9b0
mov dword [esp + 0x14], 0x2a290577
mov byte [esp + 0x18], pe_nt_image_headers32
mov dword [esp + 0x19], 0
mov dword [esp + 0x1c], 0
xor ecx, ecx
xor ebx, ebx
nop
nop
mov eax, ebx
xor al, 0xbf
add al, cl
xor al, byte [esp + ebx + 0x14]
add al, 0x45
mov byte [esp + ebx + 0x14], al
inc ebx
add cl, 2
cmp ebx, 0xc
jne 0x40d9f0
add edx, dword [esp + 0xa0]
movzx ecx, byte [esp + 0x14]
test cl, cl
je 0x40da2b
lea esi, [esp + 0x15]
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40da20
mov byte [edx], 0
movzx ecx, byte [edi + 0x60]
test cl, cl
je 0x40da4b
lea esi, [edi + 0x61]
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40da40
mov byte [edx], 0
movzx ecx, byte [esp + 0x44]
test cl, cl
je 0x40da6b
lea esi, [esp + 0x45]
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40da60
mov byte [edx], 0
sub edx, dword [esp + 0x40]
add dword [edi + 0x80], edx
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret 0x10