Function at 0x30473e60
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 fcn.304030cc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x30473ebd
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 fcn.30402998
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
sub al, 1
je 0x30473edf
sub al, 4
jne 0x30473f23
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 fcn.30402998
jmp 0x30473f8d
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 8
jle 0x30473f5b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x30473f45
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 fcn.30402998
jmp 0x30473f6b
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call fcn.30402998
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 0x30473f70
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x21]
mov ecx, 8
call fcn.30402998
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.30473e50
pop ecx
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x2a], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x30473fa6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
test eax, eax
jle 0x30474104
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.30473e58
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.30473e58
pop ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x21], al
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jne 0x30473fe4
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x30474057
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 0x3047407c
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 0x3047401c
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x304740c7
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 0x304740ec
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 0x3047408d
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x30473fdf
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call fcn.304030cc
mov esp, ebp
pop ebp
ret