Function at 0x30084c30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x44c]
cmp dword [esi], 0
je 0x30084fcb
push edi
mov edi, dword [esp + 0x448]
test edi, edi
je 0x30084fca
mov eax, dword [edi + 0x10]
test eax, eax
je 0x30084fca
mov eax, dword [edi + 0x44]
test eax, eax
je 0x30084c6e
mov ecx, dword [edi + 0x34]
jmp 0x30084c71
mov ecx, dword [edi + 0x18]
test eax, eax
je 0x30084c7a
mov eax, dword [edi + 0x30]
jmp 0x30084c7d
mov eax, dword [edi + 0x14]
push ebx
lea edx, [esp + 0x24]
push edx
push ecx
push eax
push 0
push 0
call fcn.30077090
mov edx, dword [esp + 0x464]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.30077350
mov ebx, dword [esp + 0x34]
add esp, 0x20
cmp ebx, 0x7ffffff
je 0x30084fc9
push ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.300802a0
mov ebp, eax
mov eax, dword [esp + 0x1c]
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x30084fc8
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub ecx, edx
sub edi, ebx
mov bx, word [esi + 0x10]
mov edx, 0x100
cmp bx, dx
mov dword [esp + 0x14], ecx
jne 0x30084dea
cmp word [esi + 0x12], 0
jne 0x30084dea
cmp word [esi + 0xc], dx
jne 0x30084dea
cmp word [esi + 0xe], 0
jne 0x30084dea
cmp word [esi + 8], dx
jne 0x30084dea
cmp word [esi + 0xa], 0
jne 0x30084dea
cmp word [esi + 6], 0
jne 0x30084dea
movsx edx, word [esi + 4]
test edx, edx
jge 0x30084d59
xor edx, edx
jmp 0x30084d66
cmp edx, 0x100
jle 0x30084d66
mov edx, 0x100
test ecx, ecx
jle 0x30084fc8
shl eax, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea esp, [esp]
xor ecx, ecx
test edi, edi
jle 0x30084dce
jmp 0x30084d90
mov eax, dword [ebp + ecx*4]
mov esi, eax
and esi, 0xff00ff
mov ebx, eax
imul esi, edx
shr ebx, 8
and ebx, 0xffff00ff
shr eax, 8
imul ebx, edx
and eax, 0xff00ff
imul eax, edx
shr esi, 8
xor esi, ebx
and esi, 0xff00ff
xor esi, eax
mov dword [ebp + ecx*4], esi
inc ecx
cmp ecx, edi
jl 0x30084d90
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebp, ecx
dec eax
mov dword [esp + 0x14], eax
jne 0x30084d80
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x43c
ret
mov bx, word [esi + 4]
cmp bx, dx
jl 0x30084e0e
cmp word [esi + 6], 0
jl 0x30084e0e
mov ecx, dword [esp + 0x450]
cmp dword [ecx], 8
mov byte [esp + 0x438], 0
jne 0x30084e16
mov byte [esp + 0x438], 1
mov ecx, esi
call fcn.3007ff50
test eax, eax
mov word [esp + 0x442], bx
je 0x30084e36
mov byte [esp + 0x438], 3
jmp 0x30084eec
mov dx, word [esi + 0xc]
mov cx, word [esi + 0x10]
mov ax, word [esi + 8]
mov word [esp + 0x43e], dx
mov dx, word [esi + 0xe]
mov word [esp + 0x43c], cx
mov cx, word [esi + 6]
mov word [esp + 0x446], dx
mov dx, word [esi + 0x12]
mov word [esp + 0x44a], cx
mov cx, word [esi + 0xa]
mov word [esp + 0x444], dx
mov word [esp + 0x448], cx
lea edx, [esp + 0x38]
push edx
movsx ecx, cx
movsx edx, ax
push ecx
push edx
mov word [esp + 0x44c], ax
call fcn.300a41d0
movsx ecx, word [esi + 0xe]
movsx edx, word [esi + 0xc]
lea eax, [esp + 0x144]
push eax
push ecx
push edx
call fcn.300a41d0
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x10]
lea eax, [esp + 0x250]
push eax
push ecx
push edx
call fcn.300a41d0
movsx ecx, word [esi + 6]
movsx edx, word [esi + 4]
lea eax, [esp + 0x35c]
push eax
push ecx
push edx
call fcn.300a41d0
add esp, 0x30
mov byte [esp + 0x338], 0
lea eax, [edi*8]
push eax
call fcn.3007a1f0
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jle 0x30084fbf
mov ecx, dword [esp + 0x10]
lea edx, [ecx*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea ecx, [ecx]
xor esi, esi
test edi, edi
jle 0x30084f66
lea eax, [ebx + 4]
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
mov edx, ecx
shr edx, 0x18
mov word [eax + 2], dx
mov edx, ecx
shr edx, 0x10
movzx dx, dl
mov word [eax], dx
mov edx, ecx
shr edx, 8
movzx dx, dl
movzx cx, cl
mov word [eax - 2], dx
mov word [eax - 4], cx
inc esi
add eax, 8
cmp esi, edi
jl 0x30084f30
push edi
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.300a4210
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x30084faa
lea eax, [ebx + 4]
mov edi, edi
movzx edx, word [eax + 2]
movzx esi, word [eax]
shl edx, 8
or edx, esi
movzx esi, word [eax - 2]
shl edx, 8
or edx, esi
movzx esi, word [eax - 4]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4], edx
inc ecx
add eax, 8
cmp ecx, edi
jl 0x30084f80
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebp, ecx
dec eax
mov dword [esp + 0x14], eax
jne 0x30084f20
push ebx
call fcn.30208320
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x43c
ret