Function at 0x10006f30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x184
xor eax, eax
mov ecx, 6
nop
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x19c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1a0]
test eax, eax
je 0x10006f68
cmp eax, 2
je 0x10006f6f
cmp dword [esp + 0x1a4], 1
sbb eax, eax
inc eax
jmp 0x10006f74
mov eax, 3
jmp 0x10006f74
mov eax, 2
lea ecx, [esp + 0x14]
mov edx, 2
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x10006f7d
mov eax, dword [esp + 0x1a0]
cmp eax, 1
jne 0x1000721f
mov eax, dword [esp + 0x198]
mov edx, 0x18
mov eax, dword [eax + 4]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x10006fae
mov eax, dword [esp + 0x198]
mov edx, dword [eax + 8]
mov eax, 7
sub edx, 0x12
mov esi, edx
add ecx, 2
sar edx, 1
and si, 1
dec eax
mov word [ecx - 2], si
jne 0x10006fd2
mov eax, dword [esp + 0x198]
mov edx, dword [eax + 0x2c]
mov eax, 2
mov esi, edx
add ecx, 2
sar edx, 1
and si, 1
dec eax
mov word [ecx - 2], si
jne 0x10006ff3
mov eax, dword [esp + 0x198]
mov edx, dword [eax + 0xc]
mov eax, 7
sub edx, 0x12
mov esi, edx
add ecx, 2
sar edx, 1
and si, 1
dec eax
mov word [ecx - 2], si
jne 0x10007017
mov eax, dword [esp + 0x198]
mov edx, 2
mov eax, dword [eax + 0x64]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x10007038
mov esi, dword [esp + 0x198]
mov edi, 4
add esi, 0x14
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x1a4]
test edx, edx
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
jne 0x10007077
mov eax, dword [esi + 0xc]
shl eax, 0xb
add ebx, eax
mov eax, 0xc
mov edx, ebx
add ecx, 2
sar ebx, 1
and dx, 1
dec eax
mov word [ecx - 2], dx
jne 0x1000707c
add esi, 0x1c
dec edi
jne 0x10007059
mov edx, dword [esp + 0x198]
mov eax, 4
add edx, 0x1c
mov esi, dword [edx]
add ecx, 2
mov word [ecx - 2], si
add edx, 0x1c
dec eax
jne 0x100070a3
mov eax, dword [esp + 0x1a4]
test eax, eax
jne 0x1000726d
mov eax, dword [esp + 0x198]
mov word [ecx], 0
add ecx, 2
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x44]
mov edx, dword [eax + 0x60]
mov esi, dword [eax + 0x7c]
mov ebp, ebx
mov eax, edi
sar ebp, 0x10
sar eax, 0xe
lea ebp, [ebp + ebp*8]
add ebp, eax
mov eax, edx
sar eax, 0x10
lea ebp, [ebp + ebp*4]
mov dword [esp + 0x10], 0xd
lea ebp, [eax + ebp*2]
mov eax, esi
sar eax, 0xe
lea ebp, [ebp + ebp*8]
add eax, ebp
mov ebp, eax
add ecx, 2
sar eax, 1
and bp, 1
mov word [ecx - 2], bp
mov ebp, dword [esp + 0x10]
dec ebp
mov dword [esp + 0x10], ebp
jne 0x1000710b
and ebx, 0xffff
mov eax, 0x10
mov ebp, ebx
add ecx, 2
sar ebx, 1
and bp, 1
dec eax
mov word [ecx - 2], bp
jne 0x10007130
and edi, 0x3fff
mov eax, 0xe
mov ebx, edi
add ecx, 2
sar edi, 1
and bx, 1
dec eax
mov word [ecx - 2], bx
jne 0x1000714d
and edx, 0xffff
mov eax, 0x10
mov edi, edx
add ecx, 2
sar edx, 1
and di, 1
dec eax
mov word [ecx - 2], di
jne 0x1000716a
and esi, 0x3fff
mov eax, 0xe
mov edx, esi
add ecx, 2
sar esi, 1
and dx, 1
dec eax
mov word [ecx - 2], dx
jne 0x10007187
mov eax, dword [esp + 0x198]
mov edx, 6
mov eax, dword [eax + 0x24]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x100071a8
mov eax, dword [esp + 0x198]
mov edx, 5
mov eax, dword [eax + 0x40]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x100071c9
mov eax, dword [esp + 0x198]
mov edx, 6
mov eax, dword [eax + 0x5c]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x100071ea
mov eax, dword [esp + 0x198]
mov edx, dword [eax + 0x78]
mov eax, 5
mov esi, edx
add ecx, 2
sar edx, 1
and si, 1
dec eax
mov word [ecx - 2], si
jne 0x1000720b
jmp 0x1000726d
mov eax, dword [esp + 0x1a0]
cmp eax, 2
jne 0x1000726d
mov eax, dword [esp + 0x198]
mov edx, dword [eax + 4]
mov eax, 0x18
mov esi, edx
add ecx, 2
sar edx, 1
and si, 1
dec eax
mov word [ecx - 2], si
jne 0x1000723a
mov eax, dword [esp + 0x198]
mov edx, 6
mov eax, dword [eax + 0x18]
mov esi, eax
add ecx, 2
sar eax, 1
and si, 1
dec edx
mov word [ecx - 2], si
jne 0x1000725b
mov eax, dword [esp + 0x1a0]
cmp eax, 1
jne 0x1000728e
cmp dword [esp + 0x1a4], 1
sbb esi, esi
and esi, 0x20
add esi, 0xa0
jmp 0x100072a3
mov eax, dword [esp + 0x1a0]
sub eax, 2
cmp eax, 1
sbb esi, esi
and esi, 0x1e
add esi, 2
xor edx, edx
test esi, esi
jle 0x100072ce
mov bx, word [esp + edx*2 + 0x14]
mov edi, edx
sar edi, 3
mov ecx, edx
and cl, 7
mov eax, dword [esp + 0x19c]
shl bl, cl
mov cl, byte [edi + eax]
inc edx
xor cl, bl
cmp esi, edx
mov byte [edi + eax], cl
jg 0x100072a9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x184
ret