Function at 0x10790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
cmp dword [edi], 0
je 0x107a5
push 0xfffffffffffffffb
jmp 0x107b3
cmp dword [edi + 4], 2
je 0x107b9
cmp dword [edi + 8], 0
jne 0x107b9
push 0xfffffffffffffffa
pop eax
jmp 0x10a2f
mov esi, dword [ebp + 8]
test esi, esi
je 0x10a2d
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10a2d
mov ebx, 0x80
cdq
mov ecx, ebx
idiv ecx
mov ecx, eax
mov eax, dword [edi + 4]
sub eax, 0
mov dword [ebp - 4], ecx
je 0x10a0b
dec eax
je 0x1098b
dec eax
je 0x107fc
or eax, 0xffffffff
jmp 0x10a2f
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
test ecx, ecx
mov dword [ebp - 8], eax
jle 0x10a25
mov dword [ebp + 0xc], ecx
and dword [ebp + 8], 0
mov eax, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00010cec
mov al, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x12]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x11]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x10]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0xf]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xe]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xd]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xb]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xa]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 9]
shr al, 7
shl cl, 1
or al, cl
mov byte [ebp - 0xa], al
mov al, byte [ebp - 8]
mov cl, byte [ebp - 9]
push 8
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 8]
mov byte [ebp - 9], al
mov al, byte [ebp - 7]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 7]
mov byte [ebp - 8], al
mov al, byte [ebp - 6]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 6]
mov byte [ebp - 7], al
mov al, byte [ebp - 5]
shr al, 7
shl cl, 1
or al, cl
pop ecx
mov byte [ebp - 6], al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], eax
cdq
idiv ecx
and dword [ebp + 0x14], 7
mov cl, 7
sub cl, byte [ebp + 0x14]
mov dl, byte [eax + esi]
shr dl, cl
mov cl, byte [ebp - 5]
shl cl, 1
and dl, 1
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 5], dl
mov dl, byte [ebp - 0x24]
add eax, ecx
mov cl, byte [ebp + 0x14]
and dl, bl
shr dl, cl
xor byte [eax], dl
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jl 0x10823
dec dword [ebp + 0xc]
jne 0x1081f
jmp 0x10a25
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
test ecx, ecx
mov dword [ebp - 8], eax
jle 0x10a25
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
lea eax, [ebp - 0x24]
push edi
push eax
push esi
call fcn.00011012
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
add esi, 0x10
add ebx, 0x10
dec dword [ebp + 0x14]
jne 0x109ad
jmp 0x10a25
test ecx, ecx
jle 0x10a25
mov ebx, ecx
push edi
push dword [ebp + 0x10]
push esi
call fcn.00011012
add dword [ebp + 0x10], 0x10
add esi, 0x10
dec ebx
jne 0x10a11
mov eax, dword [ebp - 4]
shl eax, 7
jmp 0x10a2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10