Function at 0x10361e52
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor eax, eax
jmp 0x10361e62
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
and dl, 1
mov byte [eax + 0x10051908], dl
inc eax
cmp eax, 0x40
jl 0x10361e62
xor eax, eax
movsx ecx, byte [eax + 0x10041da8]
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041da9]
mov byte [eax + 0x10051170], dl
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041daa]
mov byte [eax + 0x10051171], dl
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041dab]
mov byte [eax + 0x10051172], dl
mov dl, byte [ecx + 0x10051907]
mov byte [eax + 0x10051173], dl
add eax, 4
cmp eax, 0x40
jl 0x10361e82
mov al, byte [esp + 0x24]
test al, al
mov ebx, dword [esp + 0x20]
mov edx, 0x10
mov ecx, edx
mov esi, 0x10051170
mov edi, 0x10051908
rep movsd dword es:[edi], dword [esi]
jne 0x10361f8a
mov eax, dword [0x1004cee4]
mov ebp, dword [0x1004cee0]
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
lea esp, [esp]
push ebx
mov ecx, 8
mov esi, ebp
mov edi, 0x100518e8
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.10361a32
mov ecx, dword [0x1004cee4]
add esp, 8
add ecx, 2
mov eax, ebp
mov esi, 8
jmp 0x10361f42
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x10361f42
mov eax, dword [esp + 0x24]
mov edi, dword [0x1004cee4]
add ebx, 0x30
mov ecx, 8
mov esi, 0x100518e8
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
jne 0x10361f12
jmp 0x10362015
mov eax, dword [0x1004cee0]
mov ebp, dword [0x1004cee4]
sub eax, ebp
mov dword [esp + 0x10], eax
add ebx, 0x2d0
mov dword [esp + 0x24], edx
push ebx
mov ecx, 8
mov esi, ebp
mov edi, 0x100518e8
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.10361a32
mov ecx, dword [0x1004cee0]
add esp, 8
add ecx, 2
mov eax, ebp
mov esi, 8
jmp 0x10361fd2
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x10361fd2
mov eax, dword [esp + 0x24]
mov edi, dword [0x1004cee0]
sub ebx, 0x30
mov ecx, 8
mov esi, 0x100518e8
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
jne 0x10361fa5
xor eax, eax
jmp 0x10362022
movsx ecx, byte [eax + 0x10041de8]
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041de9]
mov byte [eax + 0x10051170], dl
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041dea]
mov byte [eax + 0x10051171], dl
mov dl, byte [ecx + 0x10051907]
movsx ecx, byte [eax + 0x10041deb]
mov byte [eax + 0x10051172], dl
mov dl, byte [ecx + 0x10051907]
mov byte [eax + 0x10051173], dl
add eax, 4
cmp eax, 0x40
jl 0x10362022
mov ebp, dword [esp + 0x18]
mov ecx, 0x10
mov esi, 0x10051170
mov edi, 0x10051908
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
xor edx, edx
mov edi, 3
mov esi, 2
mov eax, 1
mov bl, byte [eax + 0x10051907]
mov ecx, edx
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, edx
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add edx, 4
or byte [ecx], bl
mov bl, byte [eax + 0x10051908]
mov ecx, eax
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, eax
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add eax, 4
or byte [ecx], bl
mov bl, byte [esi + 0x10051908]
mov ecx, esi
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, esi
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add esi, 4
or byte [ecx], bl
mov bl, byte [edi + 0x10051908]
mov ecx, edi
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, edi
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add edi, 4
or byte [ecx], bl
cmp eax, 0x41
jl 0x103620a5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret