Function at 0x1006f930
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
push edi
mov dword [esp + 0x18], 0
mov edi, 2
mov edx, dword [esi + 4]
movzx eax, byte [edx + 0xe1c]
mov byte [esp + 0x28], al
mov al, byte [edx + 0xe1d]
movzx ebx, al
shr ebx, 1
mov byte [esp + 0x29], al
and ebx, 1
nop
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
mov eax, dword [esp + 0x10]
cmp eax, 0xff
je 0x1006ff79
mov byte [esp + edi + 0x28], al
inc edi
mov dword [esp + 0x14], edi
lea eax, [edi - 2]
cmp eax, 2
jb 0x1006f970
movzx edi, byte [esp + 0x2a]
mov ebp, ebx
mov ecx, edi
shr ecx, 4
cmp ecx, 0xf
ja case.default.0x1006f9c4
movzx eax, byte [ecx + 0x1006ffe0]
jmp dword [eax*4 + 0x1006ffcc]
mov ebp, 1
jmp case.default.0x1006f9c4
mov eax, dword [esi + 4]
mov dword [eax + 0x470], 0xc0
jmp case.default.0x1006f9c4
add ecx, 0xfffffffe
mov edx, 0x240
jmp 0x1006f9f9
mov dword [esp + 0x1c], ecx
jmp case.default.0x1006f9c4
add ecx, 0xfffffff8
mov edx, 0x100
mov eax, dword [esi + 4]
shl edx, cl
mov dword [eax + 0x470], edx
and edi, 0xf
cmp edi, 0xf
ja case.default.0x1006fa10
jmp dword [edi*4 + 0x1006fff0]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je 0x1006fa34
mov eax, dword [ecx + 0x120]
mov dword [ecx + 0x474], eax
jmp case.default.0x1006fa10
mov ebp, 1
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x15888
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x2b110
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x2ee00
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x1f40
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x3e80
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x5622
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x5dc0
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x7d00
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0xac44
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0xbb80
jmp case.default.0x1006fa10
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x17700
jmp case.default.0x1006fa10
mov dword [esp + 0x18], edi
mov bl, byte [esp + 0x2b]
mov eax, dword [esi + 4]
movzx edx, bl
mov ecx, edx
shr ecx, 4
test cl, 8
je 0x1006fb51
and ecx, 7
mov dword [eax + 0x478], 2
sub ecx, 0
je 0x1006fb42
sub ecx, 1
je 0x1006fb33
sub ecx, 1
je 0x1006fb24
mov ebp, 1
jmp 0x1006fb65
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 3
jmp 0x1006fb65
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 2
jmp 0x1006fb65
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 1
jmp 0x1006fb65
inc ecx
mov dword [eax + 0x478], ecx
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 0
shr edx, 1
and edx, 7
mov dword [esp + 0x10], edx
cmp edx, 7
ja case.default.0x1006fb73
jmp dword [edx*4 + 0x10070030]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je case.0x1006fb73.3
mov eax, dword [ecx + 0x128]
mov dword [ecx + 0x480], eax
jmp case.default.0x1006fb73
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 8
jmp case.default.0x1006fb73
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0xc
jmp case.default.0x1006fb73
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x10
jmp case.default.0x1006fb73
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x14
jmp case.default.0x1006fb73
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x18
jmp case.default.0x1006fb73
mov ebp, 1
test bl, 1
mov ebx, 1
cmovne ebp, ebx
test byte [esp + 0x29], bl
jne 0x1006fca2
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je 0x1006fc17
mov eax, dword [ecx + 0x110]
cmp eax, dword [ecx + 0x114]
jne 0x1006fca2
mov ecx, dword [ecx + 0x38]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
call fcn.10072510
add esp, 8
test eax, eax
je 0x1006ffbf
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
jne 0x1006fc87
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov al, byte [esp + eax + 0x27]
mov byte [ecx + 0xe1e], al
mov eax, dword [esi + 4]
mov dword [eax + 0xdc0], ebx
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xe48], 0
jne 0x1006fc75
push dword [ecx + 0x30]
mov ecx, dword [ecx + 0x20]
push 1
push esi
call ecx
add esp, 0xc
mov ecx, dword [esi]
mov eax, ebx
mov dword [ecx], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 4]
mov dword [eax + 0x484], 0
mov eax, dword [esi + 4]
mov dword [eax + 0x488], ecx
jmp 0x1006fd35
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [ecx + 0x38]
lea edx, [esp + 0x28]
call fcn.10072650
add esp, 8
test eax, eax
je 0x1006ffbf
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
and eax, edx
cmp eax, 0xffffffff
jne 0x1006fd1d
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov al, byte [esp + eax + 0x27]
mov byte [ecx + 0xe1e], al
mov eax, dword [esi + 4]
mov dword [eax + 0xdc0], ebx
mov eax, dword [esi + 4]
cmp dword [eax + 0xe48], 0
jne 0x1006fd0b
push dword [eax + 0x30]
mov eax, dword [eax + 0x20]
push 1
push esi
call eax
add esp, 0xc
mov eax, dword [esi]
mov dword [eax], 2
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 4]
mov dword [eax + 0x484], ebx
mov eax, dword [esi + 4]
mov dword [eax + 0x488], ecx
mov dword [eax + 0x48c], edx
cmp dword [esp + 0x1c], 0
je 0x1006fda8
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov byte [esp + edi + 0x28], bl
inc edi
cmp dword [esp + 0x1c], 7
jne 0x1006fd9a
mov ecx, dword [esi + 4]
lea edx, [esp + 0x1c]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
mov eax, dword [esp + 0x1c]
mov byte [esp + edi + 0x28], al
inc edi
shl ebx, 8
or ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 4]
lea ecx, [ebx + 1]
mov dword [eax + 0x470], ecx
jmp 0x1006fdac
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x1006fe39
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
mov ebx, dword [esp + 0x10]
mov byte [esp + edi + 0x28], bl
inc edi
cmp dword [esp + 0x18], 0xc
je 0x1006fe2a
mov ecx, dword [esi + 4]
lea edx, [esp + 0x1c]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
mov eax, dword [esp + 0x1c]
shl ebx, 8
mov byte [esp + edi + 0x28], al
or ebx, eax
mov eax, dword [esi + 4]
inc edi
cmp dword [esp + 0x18], 0xd
mov dword [esp + 0x10], ebx
jne 0x1006fe23
mov dword [eax + 0x474], ebx
jmp 0x1006fe39
lea ecx, [ebx + ebx*4]
add ecx, ecx
jmp 0x1006fe33
mov eax, dword [esi + 4]
imul ecx, ebx, 0x3e8
mov dword [eax + 0x474], ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push 8
mov ecx, dword [ecx + 0x38]
call fcn.10071d10
add esp, 4
test eax, eax
je 0x1006ffbf
xor al, al
lea edx, [esp + 0x28]
test edi, edi
je 0x1006fe76
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x100cbb38]
sub edi, 1
jne 0x1006fe60
cmp al, byte [esp + 0x10]
mov eax, dword [esi + 4]
jne 0x1006ff93
mov dword [eax + 0xe8], 0
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x484], 0
jne 0x1006ff27
mov eax, dword [ecx + 0x488]
mov dword [ecx + 0x484], 1
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xe4]
test edx, edx
je 0x1006febe
mul edx
jmp 0x1006ff1b
cmp dword [ecx + 0xf8], 0
je 0x1006fef4
mov edx, dword [ecx + 0x110]
cmp edx, dword [ecx + 0x114]
jne 0x1006ff2f
mul edx
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], edx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x114]
mov dword [ecx + 0xe8], eax
jmp 0x1006ff27
test eax, eax
jne 0x1006ff15
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x470]
mov dword [ecx + 0xe8], eax
jmp 0x1006ff27
mul dword [ecx + 0x470]
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], edx
test ebp, ebp
je 0x1006ffb2
mov eax, dword [esi + 4]
cmp dword [eax + 0xe48], 0
jne 0x1006ff5e
push dword [eax + 0x30]
mov eax, dword [eax + 0x20]
push 3
push esi
call eax
mov eax, dword [esi]
add esp, 0xc
mov dword [eax], 2
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
inc dword [eax + 0x1820]
mov eax, dword [esi]
mov dword [eax], 2
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 4]
mov byte [eax + 0xe1e], 0xff
mov eax, dword [esi + 4]
mov dword [eax + 0xdc0], 1
mov eax, dword [esi + 4]
cmp dword [eax + 0xe48], 0
jne 0x1006ffaa
push dword [eax + 0x30]
mov eax, dword [eax + 0x20]
push 1
push esi
call eax
add esp, 0xc
mov eax, dword [esi]
mov dword [eax], 2
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret