Function at 0x40a620
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x80]
mov dword [esp + 0x1c], eax
mov word [esp + 4], 0x3735
mov byte [esp + 6], 0x4e
mov dword [esp + 7], 0
mov byte [esp + 0xb], 0
mov ebx, 0xd23994f3
mov edi, 0x2dc66b0c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ebx + 0x2dc66b11]
mov eax, edx
not eax
lea ecx, [edi - 0x2dc66aff]
or eax, ecx
mov ebp, edi
sub ebp, eax
and ecx, edx
add eax, ebx
and eax, 0xc96519b1
and ebp, 0x369ae64e
or ebp, eax
xor ebp, 0x369ae64e
or ebp, ecx
mov eax, ebp
and eax, 0x45
xor ebp, 0x45
lea eax, [eax*2]
add eax, ebp
inc al
mov byte [esp + ebx + 0x2dc66b11], al
inc ebx
dec edi
cmp ebx, 0xd23994fb
jne 0x40a670
mov dword [esp + 0x10], 0x8a8c88b2
mov word [esp + 0x14], 0xa78e
mov dword [esp + 0x16], 0
mov ebx, 0xb
mov ebp, 0x24
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebp
and ecx, 0x30
mov eax, ebx
and eax, 0xf
or eax, ecx
xor al, byte [esp + ebx + 5]
xor al, 0x70
add al, 0x39
mov byte [esp + ebx + 5], al
inc ebx
dec ebp
cmp ebx, 0x15
jne 0x40a6f0
mov dword [esp + 0x24], 0x84d11b25
mov dword [esp + 0x28], 0x89f3818a
mov dword [esp + 0x2c], 0xf2d6cc84
mov dword [esp + 0x30], 0x94919597
mov dword [esp + 0x34], 0x94eb9de9
mov dword [esp + 0x38], 0xe12ed79a
mov dword [esp + 0x3c], 0xde9f9b9f
mov dword [esp + 0x40], 0xd6aad4d8
mov dword [esp + 0x44], 0xd2a411eb
mov dword [esp + 0x48], 0x1dfbd0a9
mov byte [esp + 0x4c], 0x38
mov dword [esp + 0x4d], 0
mov word [esp + 0x51], 0
lea ebx, [esp + 0x24]
mov ebp, 0x3b
nop
nop
nop
nop
movzx eax, byte [ebx]
lea ecx, [ebp - 0x152ff300]
or ecx, eax
and eax, ebp
xor eax, ecx
lea ecx, [eax + eax]
not ecx
add eax, ecx
add eax, 0x3dda07ce
mov ecx, eax
xor ecx, 0xa3
and eax, 0x5c
add eax, eax
sub eax, ecx
inc al
mov byte [ebx], al
inc ebx
dec ebp
cmp ebp, 0xc
jne 0x40a780
mov eax, dword [esp + 0x1c]
add dword [esp + 0xc], eax
mov dword [esp], 0x4e9495
mov edi, 0x12
mov ebx, 0x38858af2
nop
nop
movzx eax, byte [esp + edi - 0x12]
mov ecx, edi
and ecx, eax
add ecx, ecx
sub eax, ecx
add eax, edi
add eax, 0xe9ce83a5
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov byte [esp + edi - 0x12], al
lea eax, [edi - 1]
and eax, 7
mov ecx, ebx
and ecx, 0xe
sub ecx, eax
inc edi
add ebx, 2
cmp ecx, 4
jb 0x40a7d0
movzx ebx, byte [esp]
mov ecx, dword [esp + 0xc]
mov edi, ecx
test bl, bl
mov edx, dword [esp + 0x70]
je 0x40a83c
lea ebp, [esp + 1]
mov edi, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ebp]
inc ebp
test bl, bl
jne 0x40a830
mov byte [edi], 0
mov eax, dword [esp + 0x20]
movzx ebx, byte [eax + 0x60]
test bl, bl
je 0x40a85c
lea ebp, [eax + 0x61]
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ebp]
inc ebp
test bl, bl
jne 0x40a850
mov byte [edi], 0
movzx ebx, byte [esp + 0x24]
test bl, bl
je 0x40a87c
lea ebp, [esp + 0x25]
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ebp]
inc ebp
test bl, bl
jne 0x40a870
mov byte [edi], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40a89b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a890
mov byte [edi], 0
movzx ebx, byte [esp + 0x10]
test bl, bl
je 0x40a8bb
lea esi, [esp + 0x11]
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a8b0
mov byte [edi], 0
movzx ebx, byte [edx]
test bl, bl
je 0x40a8db
inc edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [edx]
inc edx
test bl, bl
jne 0x40a8d0
mov byte [edi], 0
movzx edx, byte [esp + 4]
test dl, dl
je 0x40a8fb
lea esi, [esp + 5]
nop
nop
nop
nop
nop
mov byte [edi], dl
inc edi
movzx edx, byte [esi]
inc esi
test dl, dl
jne 0x40a8f0
mov byte [edi], 0
sub edi, ecx
add dword [eax + 0x80], edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0xc