Function at 0x40fdbb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2d4
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], 0xdbf4eba2
xor esi, esi
mov byte [esp + 0x14], 0xad
mov al, byte [esp + esi + 0x10]
xor al, 0x87
movzx eax, al
mov word [esp + esi*2 + 0x44], ax
inc esi
cmp esi, 5
jl 0x40fdda
push dword [esp + 0x2e8]
xor eax, eax
mov word [esp + 0x52], ax
lea eax, [esp + 0x48]
push eax
call fcn.0041b96a
mov edi, eax
mov dword [esp + 0x18], edi
pop ecx
pop ecx
test edi, edi
je 0x41008c
lea eax, [esp + 0x90]
xor ecx, ecx
push eax
push edi
mov edx, 0x54e1cc7b
inc ecx
call fcn.00412cbc
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410085
mov dword [esp + 0x18], 0xc9cecdec
xor ecx, ecx
mov word [esp + 0x1c], 0xc4dd
mov byte [esp + 0x1e], 0xdc
mov al, byte [esp + ecx + 0x18]
xor al, 0xa8
movzx eax, al
mov word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 7
jl 0x40fe4f
push dword [esp + 0x2ec]
mov edi, dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x62], ax
mov edx, ebp
lea eax, [esp + 0x54]
mov ecx, edi
push eax
push dword [esp + 0x2f0]
call fcn.00410097
add esp, 0xc
xor ecx, ecx
mov edx, 0x17299c7b
inc ecx
call fcn.00412cbc
push 0x2e
mov dword [esp + 0x44], eax
mov esi, 0xff
mov word [esp + 0x24], 0xeaea
pop eax
mov word [esp + 0x24], ax
xor eax, eax
mov word [esp + 0x26], ax
xor ecx, ecx
mov al, byte [esp + ecx + 0x20]
xor al, 0xc4
movzx eax, al
mov word [esp + ecx*2 + 0x18], ax
inc ecx
cmp ecx, 2
jl 0x40febb
xor eax, eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x410059
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x410059
test byte [esp + 0x90], 0x10
je 0x410059
lea eax, [esp + 0xbc]
push eax
call fcn.0040581e
pop ecx
cmp eax, 7
jb 0x410059
mov dword [esp + 0x28], 0x1d262907
xor ecx, ecx
mov word [esp + 0x2c], 0x2320
mov byte [esp + 0x2e], 0x1c
movzx eax, byte [esp + ecx + 0x28]
add ax, 0x49
and ax, si
mov word [esp + ecx*2 + 0x60], ax
inc ecx
cmp ecx, 7
jl 0x40ff49
xor eax, eax
mov dword [esp + 0x30], 0x292e2d0c
mov word [esp + 0x6e], ax
xor ecx, ecx
mov word [esp + 0x34], 0x243d
mov byte [esp + 0x36], 0x3c
mov al, byte [esp + ecx + 0x30]
xor al, 0x48
movzx eax, al
mov word [esp + ecx*2 + 0x70], ax
inc ecx
cmp ecx, 7
jl 0x40ff7d
xor eax, eax
mov word [esp + 0x7e], ax
lea eax, [esp + 0x60]
push 0xe
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004022e4
add esp, 0xc
test eax, eax
je 0x40ffd2
push 0xe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004022e4
add esp, 0xc
test eax, eax
jne 0x410059
mov dword [esp + 0x38], 0x5f766f28
xor ecx, ecx
mov word [esp + 0x3c], 0x6f28
mov byte [esp + 0x3e], 0x76
movzx eax, byte [esp + ecx + 0x38]
sub ax, 3
and ax, si
mov word [esp + ecx*2 + 0x80], ax
inc ecx
cmp ecx, 7
jl 0x40ffe8
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x2ec]
lea eax, [esp + 0x88]
push eax
call fcn.0041b96a
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410054
push dword [esp + 0x2ec]
lea eax, [esp + 0xc0]
mov edx, ebp
push eax
push esi
mov ecx, edi
call fcn.00410097
add esp, 0xc
push esi
call fcn.004056f0
pop ecx
mov esi, 0xff
lea eax, [esp + 0x90]
push eax
push ebx
call dword [esp + 0x48]
push 0x2e
test eax, eax
pop eax
jne 0x40fead
xor ecx, ecx
mov edx, 0x83fbc401
push ebx
inc ecx
call fcn.00412cbc
call eax
mov edi, dword [esp + 0x10]
push edi
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d4
ret