Function at 0x1007dbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1039b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edx
lea eax, [ecx - 1]
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0x14], eax
cmp edx, eax
jge 0x1007dcef
mov ebx, eax
nop
add esi, esi
lea ecx, [esi + 2]
mov eax, ecx
shl eax, 4
sub eax, ecx
lea ecx, [edi + eax*4]
lea eax, [ecx - 0x3c]
push eax
push ecx
lea ecx, [ebp + 0x10]
call fcn.10071f60
mov ecx, dword [ebp - 0xc]
movzx eax, al
xor eax, 1
shl ecx, 4
sub ecx, dword [ebp - 0xc]
inc eax
add esi, eax
mov edx, esi
mov dword [ebp - 0xc], esi
shl edx, 4
sub edx, esi
mov eax, dword [edi + edx*4]
mov dword [edi + ecx*4], eax
mov eax, dword [edi + edx*4 + 4]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [edi + edx*4 + 8]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [edi + edx*4 + 0xc]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [edi + edx*4 + 0x10]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [edi + edx*4 + 0x14]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [edi + edx*4 + 0x18]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [edi + edx*4 + 0x1c]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [edi + edx*4 + 0x20]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [edi + edx*4 + 0x24]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [edi + edx*4 + 0x28]
mov dword [edi + ecx*4 + 0x28], eax
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [edi + ecx*4 + 0x2c], eax
mov eax, dword [edi + edx*4 + 0x30]
mov dword [edi + ecx*4 + 0x30], eax
mov eax, dword [edi + edx*4 + 0x34]
mov dword [edi + ecx*4 + 0x34], eax
mov al, byte [edi + edx*4 + 0x38]
mov byte [edi + ecx*4 + 0x38], al
cmp esi, ebx
jl 0x1007dc30
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov dword [ebp - 0xc], edx
cmp esi, eax
jne 0x1007dd93
mov dword [ebp - 0xc], edx
test cl, 1
jne 0x1007dd93
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, esi
shl ecx, 4
sub ecx, esi
mov eax, dword [edi + edx*4 - 0x3c]
mov dword [edi + ecx*4], eax
mov eax, dword [edi + edx*4 - 0x38]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [edi + edx*4 - 0x34]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [edi + edx*4 - 0x30]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [edi + edx*4 - 0x2c]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [edi + edx*4 - 0x28]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [edi + edx*4 - 0x24]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [edi + edx*4 - 0x20]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [edi + edx*4 - 0x1c]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [edi + edx*4 - 0x18]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [edi + edx*4 - 0x14]
mov dword [edi + ecx*4 + 0x28], eax
mov eax, dword [edi + edx*4 - 0x10]
mov dword [edi + ecx*4 + 0x2c], eax
mov eax, dword [edi + edx*4 - 0xc]
mov dword [edi + ecx*4 + 0x30], eax
mov eax, dword [edi + edx*4 - 8]
mov dword [edi + ecx*4 + 0x34], eax
mov al, byte [edi + edx*4 - 4]
mov edx, dword [ebp - 8]
mov byte [edi + ecx*4 + 0x38], al
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], edx
jge 0x1007de4b
push dword [ebp - 0x10]
lea ebx, [edx - 1]
sar ebx, 1
lea ecx, [ebp - 8]
mov eax, ebx
shl eax, 4
sub eax, ebx
lea esi, [edi + eax*4]
push esi
call fcn.10071f60
test al, al
je 0x1007de45
mov eax, dword [esi]
mov edx, ebx
mov ecx, dword [ebp - 0xc]
shl ecx, 4
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov dword [edi + ecx*4], eax
mov eax, dword [esi + 4]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + ecx*4 + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + ecx*4 + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + ecx*4 + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + ecx*4 + 0x34], eax
mov al, byte [esi + 0x38]
mov byte [edi + ecx*4 + 0x38], al
cmp dword [ebp - 0x18], ebx
jl 0x1007dda2
jmp 0x1007de48
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ecx, edx
shl ecx, 4
sub ecx, edx
mov dword [edi + ecx*4], eax
mov eax, dword [ebx + 4]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + ecx*4 + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + ecx*4 + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + ecx*4 + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [edi + ecx*4 + 0x34], eax
mov al, byte [ebx + 0x38]
mov byte [edi + ecx*4 + 0x38], al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012583c
mov esp, ebp
pop ebp
ret