Function at 0x10006b70
Capabilities:
Encode data using xor

Disassembly:
dec esp
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x6c], ebp
mov ebp, dword [esp + 0x10]
mov dword [ecx + 0x34], ebx
mov ebx, dword [esp + 0x40]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x54]
push ebp
mov dword [ecx + 0x78], ebx
mov dword [ecx + 0x3c], esi
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x24], eax
push dword [ebp + 0x94]
push ebx
call fcn.100063ca
mov ecx, dword [esp + 0x20]
push ebp
mov dword [ecx + 0x58], eax
push dword [ebp + 0xcc]
push ebx
call fcn.100063ca
mov ebx, dword [esp + 0x20]
push ebp
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0x14]
push dword [ebp + 0x6c]
push dword [esp + 0x20]
call fcn.100063ca
mov edx, dword [ebp + 0x28]
xor ecx, ecx
add edx, esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [edx + 4]
mov edi, dword [edx]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xa0]
xor eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], ecx
cmp edi, eax
je 0x10006cc5
push edi
push 0x40
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
mov esi, eax
push edi
add ecx, 8
push ecx
push esi
call fcn.1000662a
add esp, 0xc
xor eax, eax
test edi, edi
je 0x10006c45
mov ecx, dword [esp + 0x50]
xor dword [eax + esi], ecx
add eax, 4
cmp eax, edi
jb 0x10006c3b
push 0x20a
push 0x40
call dword [esp + 0x1c]
mov cl, byte [esi]
mov edi, eax
test cl, cl
je 0x10006c6e
mov edx, edi
movsx ax, cl
lea esi, [esi + 1]
lea edx, [edx + 2]
mov word [edx - 2], ax
mov cl, byte [esi]
test cl, cl
jne 0x10006c5a
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push ebx
call fcn.100061ba
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.1000682a
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push esi
call fcn.1000667a
test al, al
je 0x10006e1c
push ebp
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.10005f7a
test al, al
je 0x10006e1c
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0xc]
mov eax, dword [ebx + 0x64]
mov esi, dword [ecx + 8]
push edi
push 0x40
call eax
mov ecx, dword [esp + 0x1c]
mov ebp, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
mov eax, dword [ebx + 0x3c]
add ecx, 0x10
push esi
push ecx
push edi
push ebp
push 2
call eax
test eax, eax
jne 0x10006e1c
lea eax, [ebp + 0x90]
xor esi, esi
push eax
call fcn.100065ca
test eax, eax
jne 0x10006d14
mov esi, dword [ebp + 0x160]
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x3dd]
add eax, ebp
mov dword [esp + 0x34], 0
add ecx, eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x34], ecx
and al, 0x34
push dword [eax + 0xe4]
lea eax, [esp + 0x3c]
push eax
push ecx
push ebx
call fcn.1000626a
push 0x20a
push 0x40
mov dword [esp + 0x5c], eax
call dword [esp + 0x1c]
mov esi, eax
lea ecx, [ebp + 0xf4]
push esi
push ecx
call fcn.1000675a
invalid
push dword [ebx]
leave
cmp word [esi], cx
je 0x10006d72
nop
inc ecx
cmp word [esi + ecx*2], 0
jne 0x10006d6a
cmp word [esi + ecx*2], 0x5c
je 0x10006d82
nop
dec ecx
cmp word [esi + ecx*2], 0x5c
jne 0x10006d7a
lea ecx, [ecx + 1]
lea eax, [esi + ecx*2]
push eax
push ebx
call fcn.1000637a
mov edi, dword [esp + 0x34]
push edi
push 0x40
mov ecx, dword [eax + 0x3c]
mov ebx, dword [ecx + eax + 0x2c]
add ebx, eax
call dword [esp + 0x1c]
push edi
mov esi, eax
push ebx
push esi
call fcn.1000662a
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, esi
mov esi, dword [esp + 0x10]
cdq
mov dword [ecx + 0xcc0], eax
lea eax, [esp + 0x24]
push eax
mov dword [ecx + 0xcc4], edx
mov dword [esp + 0x28], 0
push dword [esi + 0x3c]
push edi
push ebx
call dword [esp + 0x7c]
push edi
push dword [esp + 0x58]
push ebx
call fcn.1000662a
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
push edi
push ebx
call dword [esp + 0x7c]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x5c], eax
pop esp