Function at 0x4100e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x4100f5
push 0xfffffffffffffffb
jmp 0x410103
cmp dword [edi + 4], 2
je 0x410109
cmp dword [edi + 8], 0
jne 0x410109
push 0xfffffffffffffffa
pop eax
jmp 0x410386
mov esi, dword [ebp + 8]
test esi, esi
je 0x410384
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x410384
mov ebx, 0x80
cdq
mov ecx, ebx
idiv ecx
mov ecx, eax
mov eax, dword [edi + 4]
sub eax, 0
mov dword [ebp - 8], ecx
je 0x410361
dec eax
je 0x4102dc
dec eax
je 0x41014c
or eax, 0xffffffff
jmp 0x410386
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x18]
test ecx, ecx
mov dword [ebp - 0xc], eax
jle 0x41037c
mov dword [ebp - 4], ecx
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
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
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041063b
mov al, byte [ebp - 0x17]
mov cl, byte [ebp - 0x18]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x17]
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x16]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x15]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x14]
shr al, 7
shl cl, 1
or al, cl
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x13]
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 byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
mov cl, byte [ebp - 0xd]
push 8
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
pop ecx
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
cdq
idiv ecx
and dword [ebp + 8], 7
mov cl, 7
sub cl, byte [ebp + 8]
mov dl, byte [eax + esi]
shr dl, cl
mov cl, byte [ebp - 9]
shl cl, 1
and dl, 1
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 9], dl
mov dl, byte [ebp - 0x28]
add eax, ecx
mov cl, byte [ebp + 8]
and dl, bl
shr dl, cl
xor byte [eax], dl
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jl 0x410173
dec dword [ebp - 4]
jne 0x41016f
jmp 0x41037c
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x18]
test ecx, ecx
mov dword [ebp - 0xc], eax
jle 0x41037c
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push esi
call fcn.00410970
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x28], eax
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 [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
add esi, 0x10
add ebx, 0x10
dec dword [ebp + 8]
jne 0x410302
jmp 0x41037c
test ecx, ecx
jle 0x41037c
mov ebx, ecx
push dword [ebp + 0x10]
mov ecx, edi
push esi
call fcn.00410970
add dword [ebp + 0x10], 0x10
add esi, 0x10
dec ebx
jne 0x410367
mov eax, dword [ebp - 8]
shl eax, 7
jmp 0x410386
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc