Function at 0x438f6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
add al, 0xfc
sub al, 4
setb al
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x200
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call sub.rtl60.bpl__System__FillChar_qqrpvic
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x438fc9
mov dword [ebp - 0x10], 8
lea edx, [ebp - 0x2a]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x10]
call sub.rtl60.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
sub al, 1
je 0x438feb
sub al, 4
jne 0x43902f
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x28]
xor al, 0x81
mov byte [ebp - 0x25], al
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x27]
xor al, byte [ebp - 0x26]
xor al, 0x42
mov byte [ebp - 0x24], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x28]
xor al, byte [ebp - 0x26]
xor al, 0x24
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x27]
xor al, 0x18
mov byte [ebp - 0x22], al
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call sub.rtl60.bpl__System_Move_qqrpxvpvi
jmp 0x439099
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 8
jle 0x439067
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x439051
mov dword [ebp - 0x10], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 8
lea edx, [ebp - 0x21]
mov ecx, dword [ebp - 0x10]
call sub.rtl60.bpl__System_Move_qqrpxvpvi
jmp 0x439077
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call sub.rtl60.bpl__System_Move_qqrpxvpvi
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x2a]
xor byte [ebp - 0x22], al
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x21]
xor byte [ebp - 0x19], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x43907c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x21]
mov ecx, 8
call sub.rtl60.bpl__System_Move_qqrpxvpvi
add dword [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x10], eax
push ebp
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x2a]
call fcn.00438f5c
pop ecx
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x2a], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x4390b2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
test eax, eax
jle 0x439210
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x2a]
call fcn.00438f64
pop ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x2a], al
push ebp
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x21]
call fcn.00438f64
pop ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x21], al
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jne 0x4390f0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x439163
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
dec eax
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 1]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x439188
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x439128
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x4391d3
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 0xa]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x4391f8
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x439199
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4390eb
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call sub.rtl60.bpl__System__FillChar_qqrpvic
mov esp, ebp
pop ebp
ret