Function at 0x40dbe0
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 + 0x10], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x80]
mov dword [esp + 0x1c], eax
mov word [esp], 0x1715
mov byte [esp + 2], 0xe
mov dword [esp + 3], 0
mov byte [esp + 7], 0
mov eax, 0x1e2fc2
mov edi, 0x5561d03d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x1e2fc2]
mov ebp, edi
and ebp, 0x5400902d
mov ebx, eax
and ebx, 0x1a0e42
or ebx, ebp
xor ebx, ecx
xor ebx, 0x7e84b1ad
lea ebp, [ebx + 0x2ae91135]
mov ecx, ebp
not ecx
mov edx, ebp
xor edx, 0xfe
or ebp, 1
and ebp, edx
or ecx, 0xfe
add ecx, ebx
add ecx, ebp
add cl, 0x37
mov byte [esp + eax - 0x1e2fc2], cl
inc eax
dec edi
cmp eax, 0x1e2fca
jne 0x40dc30
mov dword [esp + 0x14], 0xfef8fcc2
mov dword [esp + 0x18], 0xe5fe
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x14]
xor cl, al
xor cl, 0xa8
add cl, 0xb8
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 8
jne 0x40dca0
mov dword [esp + 0x24], 0x182fe5f7
mov dword [esp + 0x28], 0x1f051b1a
mov dword [esp + 0x2c], 0x1e36c018
mov dword [esp + 0x30], 0x70705
mov dword [esp + 0x34], 0x8150f1b
mov dword [esp + 0x38], 0x17dec10a
mov dword [esp + 0x3c], 0xb271750d
mov dword [esp + 0x40], 0x62726064
mov dword [esp + 0x44], 0x6e78abb9
mov dword [esp + 0x48], 0xab4d647b
mov byte [esp + 0x4c], 0x8c
mov dword [esp + 0x4d], 0
mov byte [esp + 0x51], 0
xor eax, eax
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x27
xor cl, byte [esp + eax + 0x24]
add cl, 0x3d
mov byte [esp + eax + 0x24], cl
inc eax
cmp eax, 0x2e
jne 0x40dd20
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], eax
mov word [esp + 8], 0xe0e3
mov byte [esp + 0xa], 0xe
mov dword [esp + 0xb], 0
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edi + 8]
lea edx, [edi + 0x7d]
mov eax, 0x82
sub eax, edi
xor eax, edx
and eax, ecx
xor eax, edx
add al, 0x8f
mov byte [esp + edi + 8], al
mov eax, edi
not eax
or eax, 1
add eax, edi
xor edi, 1
lea edi, [edi + eax*2]
add edi, 2
cmp edi, 7
jb 0x40dd60
movzx ebx, byte [esp + 8]
mov ecx, dword [esp + 0x10]
mov edi, ecx
test bl, bl
je 0x40ddbc
lea ebp, [esp + 9]
mov edi, ecx
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 0x40ddb0
mov byte [edi], 0
mov eax, dword [esp + 0x20]
movzx ebx, byte [eax + 0x60]
test bl, bl
mov edx, dword [esp + 0x70]
je 0x40ddec
lea ebp, [eax + 0x61]
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 0x40dde0
mov byte [edi], 0
movzx ebx, byte [esp + 0x24]
test bl, bl
je 0x40de0c
lea ebp, [esp + 0x25]
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ebp]
inc ebp
test bl, bl
jne 0x40de00
mov byte [edi], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40de2b
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 0x40de20
mov byte [edi], 0
movzx ebx, byte [esp + 0x14]
test bl, bl
je 0x40de4b
lea esi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40de40
mov byte [edi], 0
movzx ebx, byte [edx]
test bl, bl
je 0x40de6b
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 0x40de60
mov byte [edi], 0
movzx edx, byte [esp]
test dl, dl
je 0x40de8b
lea esi, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edi], dl
inc edi
movzx edx, byte [esi]
inc esi
test dl, dl
jne 0x40de80
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