Function at 0x105c150
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
call fcn.0105c0e0
mov eax, dword [ebp + 8]
push eax
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
sar edi, 2
push esi
lea ebx, [edi + 6]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 8]
and edi, 2
mov eax, ebx
add edi, 3
add esi, ecx
mov ecx, dword [ebp - 8]
shl eax, 4
shl ebx, 5
mov dword [ebp - 0xc], edi
lea edi, [eax + ecx + 0x10]
add esp, 0xc
mov dword [ecx + reloc.Secur32.dll_LsaDeregisterLogonProcess], ebx
mov dword [ebp - 0x10], edi
mov dword [ecx + reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov bl, 1
cmp esi, edi
jae 0x105c2e4
jmp 0x105c1c0
cmp byte [0x10630a8], 0
lea edi, [esi - 4]
je 0x105c1db
lea edx, [ebp - 4]
mov ecx, edi
call fcn.0105c023
mov al, byte [ebp - 3]
jmp 0x105c211
movzx edx, byte [edi]
movzx eax, byte [edx + 0x1010400]
movzx ecx, byte [edi + 1]
movzx edx, byte [edi + 2]
mov byte [ebp - 4], al
mov al, byte [ecx + 0x1010400]
movzx ecx, byte [edx + 0x1010400]
movzx edx, byte [edi + 3]
mov byte [ebp - 2], cl
movzx ecx, byte [edx + 0x1010400]
mov byte [ebp - 3], al
mov byte [ebp - 1], cl
mov dl, byte [ebp - 2]
mov cl, byte [ebp - 4]
mov edi, dword [ebp + 8]
xor al, bl
mov byte [esi + 1], dl
mov byte [esi + 3], cl
mov byte [esi], al
mov al, byte [ebp - 1]
mov edx, esi
sub edx, edi
mov byte [esi + 2], al
mov eax, dword [edx]
xor dword [esi], eax
mov cl, bl
and cl, 0x80
add esi, 4
neg cl
sbb cl, cl
and cl, 0x1b
add bl, bl
xor bl, cl
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x105c265
mov eax, 4
sub eax, edi
mov edx, dword [eax + esi - 4]
xor edx, dword [esi - 4]
add esi, 4
sub ecx, 1
mov dword [esi - 4], edx
jne 0x105c253
cmp edi, 0x20
jne 0x105c2d6
cmp byte [0x10630a8], 0
lea ecx, [esi - 4]
je 0x105c27f
mov edx, esi
call fcn.0105c023
jmp 0x105c2b4
movzx eax, byte [ecx]
movzx edx, byte [eax + 0x1010400]
mov byte [esi], dl
movzx eax, byte [ecx + 1]
movzx edx, byte [eax + 0x1010400]
mov byte [esi + 1], dl
movzx eax, byte [ecx + 2]
movzx edx, byte [eax + 0x1010400]
mov byte [esi + 2], dl
movzx eax, byte [ecx + 3]
mov cl, byte [eax + 0x1010400]
mov byte [esi + 3], cl
mov edx, dword [esi - 0x20]
xor dword [esi], edx
mov eax, dword [esi - 0x1c]
xor eax, dword [esi]
add esi, 4
mov dword [esi], eax
mov ecx, dword [esi - 0x1c]
xor ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi - 0x18]
xor eax, ecx
mov dword [esi + 8], eax
add esi, 0xc
mov edi, dword [ebp - 0x10]
cmp esi, edi
jb 0x105c1c0
mov ecx, dword [ebp - 8]
lea ebx, [ecx + 0x20]
mov esi, edi
cmp edi, ebx
jbe 0x105c3d6
sub esi, 0x20
cmp byte [0x10630a8], 0
je 0x105c30b
mov edx, edi
mov ecx, esi
call fcn.0105c03a
jmp 0x105c3c5
movzx ecx, byte [esi + 3]
mov eax, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx edx, byte [esi + 2]
xor eax, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx ecx, byte [esi + 1]
xor eax, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx edx, byte [esi]
xor eax, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [edi], eax
movzx eax, byte [esi + 7]
mov edx, dword [eax*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx ecx, byte [esi + 4]
xor edx, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [edi + 4], edx
movzx edx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
mov ecx, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
xor ecx, dword [eax*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx edx, byte [esi + 9]
xor ecx, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx eax, byte [esi + 8]
xor ecx, dword [eax*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [edi + 8], ecx
movzx ecx, byte [esi + 0xf]
movzx edx, byte [esi + 0xe]
mov eax, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
xor eax, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xc]
xor eax, dword [ecx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
xor eax, dword [edx*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [edi + 0xc], eax
add esi, 0x10
add edi, 0x10
cmp esi, ebx
ja 0x105c2f1
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4