Function at 0x4097b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x80]
mov dword [esp + 0x1c], eax
mov word [esp + 8], 0x3b3d
mov byte [esp + 0xa], 0x22
mov word [esp + 0xb], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
add cl, 0xc8
xor cl, byte [esp + ebx + 8]
add cl, 0x18
mov byte [esp + ebx + 8], cl
inc ebx
cmp ebx, 5
jne 0x4097f0
mov dword [esp + 0x10], 0x8a8c88b2
mov word [esp + 0x14], 0xa78e
mov dword [esp + 0x16], 0
mov byte [esp + 0x1a], 0
mov edi, 0x5b
mov ebp, 0x6d607fa5
nop
nop
nop
nop
movzx ecx, byte [esp + edi - 0x4b]
mov ebx, edi
and ebx, ecx
lea eax, [ebx*2]
add eax, ebp
add ebx, ebx
xor eax, ecx
not ebx
add ebx, edi
and ebx, ecx
add ebx, ebx
sub ebx, eax
add ebx, 0x3fd0f19e
mov eax, ebx
and eax, 0x1b
xor ebx, 0x9b
lea eax, [ebx + eax*2]
mov byte [esp + edi - 0x4b], al
inc edi
dec ebp
cmp edi, 0x66
jne 0x409830
mov dword [esp + 0x24], 0xc4b17b65
mov dword [esp + 0x28], 0xc9d3c1ca
mov dword [esp + 0x2c], 0xd2b68cc4
mov dword [esp + 0x30], 0xf4f1f5f7
mov dword [esp + 0x34], 0xf4ebfde9
mov dword [esp + 0x38], 0xe1aeb7fa
mov dword [esp + 0x3c], 0xbefffbff
mov dword [esp + 0x40], 0xf6eaf4f8
mov dword [esp + 0x44], 0xf2e4b1ab
mov dword [esp + 0x48], 0xbd9bf0e9
mov byte [esp + 0x4c], 0x58
mov dword [esp + 0x4d], 0
mov ebx, 0x94
mov ebp, 0x6b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ebx - 0x70]
mov ecx, ebp
xor ecx, ebx
and ecx, eax
xor ecx, ebx
add cl, 0x1c
mov byte [esp + ebx - 0x70], cl
inc ebx
dec ebp
cmp ebp, 0x3e
jne 0x4098e0
mov ebp, dword [esp + 0x68]
add ebp, dword [esp + 0x1c]
mov word [esp], 0x7c7d
mov byte [esp + 2], 0x56
mov dword [esp + 3], 0
mov edi, 0xe
mov ebx, 0xf1
movzx ecx, byte [esp + edi - 0xe]
mov eax, edi
or eax, ecx
not ecx
or ecx, ebx
and ecx, eax
add cl, 0xba
mov byte [esp + edi - 0xe], cl
inc edi
dec ebx
cmp edi, 0x15
jne 0x409920
movzx ebx, byte [esp]
mov edi, ebp
test bl, bl
je 0x40995b
lea ecx, [esp + 1]
mov edi, ebp
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ecx]
inc ecx
test bl, bl
jne 0x409950
mov byte [edi], 0
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 0x60]
test cl, cl
je 0x40997b
lea ebx, [eax + 0x61]
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [ebx]
inc ebx
test cl, cl
jne 0x409970
mov byte [edi], 0
movzx ecx, byte [esp + 0x24]
test cl, cl
je 0x40999b
lea ebx, [esp + 0x25]
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [ebx]
inc ebx
test cl, cl
jne 0x409990
mov byte [edi], 0
movzx ecx, byte [esi]
test cl, cl
je 0x4099bb
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x4099b0
mov byte [edi], 0
movzx ecx, byte [esp + 0x10]
test cl, cl
je 0x4099db
lea esi, [esp + 0x11]
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x4099d0
mov byte [edi], 0
movzx ecx, byte [edx]
test cl, cl
je 0x4099fb
inc edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x4099f0
mov byte [edi], 0
movzx ecx, byte [esp + 8]
test cl, cl
je 0x409a1b
lea edx, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x409a10
mov byte [edi], 0
sub edi, ebp
add dword [eax + 0x80], edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0xc