Function at 0x100c5970
Capabilities:
Encode data using xor
Encrypt data using sosemanuk

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x54], 0
movzx edx, byte [ecx + 1]
push ebx
push ebp
push esi
movzx esi, byte [ecx]
movzx ebx, byte [ecx + 8]
shl esi, 8
or esi, edx
movzx edx, byte [ecx + 2]
shl esi, 8
or esi, edx
movzx edx, byte [ecx + 3]
push edi
movzx edi, byte [ecx + 4]
movzx ebp, byte [ecx + 0xd]
shl esi, 8
or esi, edx
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 6]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 7]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 9]
shl ebx, 8
or ebx, edx
movzx edx, byte [ecx + 0xa]
shl ebx, 8
or ebx, edx
movzx edx, byte [ecx + 0xb]
shl ebx, 8
or ebx, edx
movzx edx, byte [ecx + 0xc]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0xe]
movzx ecx, byte [ecx + 0xf]
shl edx, 8
or edx, ebp
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x20]
movzx ebp, byte [ecx + 1]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 2]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 3]
shl edx, 8
or edx, ebp
mov dword [eax + 0x3c], edx
movzx edx, byte [ecx + 4]
movzx ebp, byte [ecx + 5]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 6]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 7]
shl edx, 8
or edx, ebp
mov dword [eax + 0x38], edx
movzx edx, byte [ecx + 8]
movzx ebp, byte [ecx + 9]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0xa]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0xb]
shl edx, 8
or edx, ebp
mov dword [eax + 0x34], edx
movzx edx, byte [ecx + 0xc]
movzx ebp, byte [ecx + 0xd]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0xe]
shl edx, 8
or edx, ebp
shl edx, 8
cmp dword [esp + 0x24], 0x10
jne 0x100c5afb
movzx ecx, byte [ecx + 0xf]
or edx, ecx
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x30], edx
mov edx, ecx
not edx
mov dword [esp + 0x1c], edx
mov dword [eax + 0x2c], edx
mov edx, dword [eax + 0x38]
not edx
mov dword [esp + 0x28], edx
mov dword [eax + 0x28], edx
mov edx, dword [eax + 0x34]
not edx
mov dword [esp + 0x24], edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0x30]
mov ebp, edx
not ebp
mov dword [esp + 0x10], ebp
mov dword [eax + 0x20], ebp
mov ebp, dword [eax + 0x38]
mov dword [eax + 0x18], ebp
mov ebp, dword [eax + 0x34]
mov dword [eax + 0x14], ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x28]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x10]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], edx
jmp 0x100c5bcd
movzx ebp, byte [ecx + 0xf]
or edx, ebp
mov dword [eax + 0x30], edx
movzx edx, byte [ecx + 0x10]
movzx ebp, byte [ecx + 0x11]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x12]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x13]
shl edx, 8
or edx, ebp
mov dword [eax + 0x2c], edx
movzx edx, byte [ecx + 0x14]
movzx ebp, byte [ecx + 0x15]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x16]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x17]
shl edx, 8
or edx, ebp
mov dword [eax + 0x28], edx
movzx edx, byte [ecx + 0x18]
movzx ebp, byte [ecx + 0x19]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x1a]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x1b]
shl edx, 8
or edx, ebp
mov dword [eax + 0x24], edx
movzx edx, byte [ecx + 0x1c]
movzx ebp, byte [ecx + 0x1d]
shl edx, 8
or edx, ebp
movzx ebp, byte [ecx + 0x1e]
movzx ecx, byte [ecx + 0x1f]
shl edx, 8
or edx, ebp
shl edx, 8
or edx, ecx
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x20], edx
mov edx, ecx
not edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0x38]
not edx
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0x34]
not edx
mov dword [eax + 0x14], edx
mov edx, dword [eax + 0x30]
mov ebp, edx
not ebp
mov dword [eax + 0x10], ebp
mov ebp, dword [eax + 0x2c]
not ebp
mov dword [eax + 0xc], ebp
mov ebp, dword [eax + 0x28]
not ebp
mov dword [eax + 8], ebp
mov ebp, dword [eax + 0x24]
not ebp
mov dword [eax + 4], ebp
mov ebp, dword [eax + 0x20]
not ebp
xor ecx, dword [esp + 0x14]
xor dword [eax + 0x28], edi
xor dword [eax + 0x24], esi
xor edx, ebx
mov dword [eax + 0x3c], ecx
mov ebx, eax
xor ecx, ecx
mov dword [eax], ebp
mov dword [eax + 0x30], edx
xor esi, esi
mov edi, 0xfffffffb
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0x10
jmp 0x100c5c00
mov ebx, dword [ebx]
mov dword [esp + 0x24], ebx
shr ebx, 0x18
lea ebp, [edi + 4]
and ebp, 0xf
mov ebp, dword [eax + ebp*4]
add ebp, ecx
xor ebp, dword [ebx*4 + 0x101bcc48]
mov edx, edi
and edx, 0xf
mov edx, dword [eax + edx*4]
lea ebx, [edi + 7]
and ebx, 0xf
xor ebp, dword [eax + ebx*4]
mov ebx, edx
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x101bd048]
mov ebx, dword [esp + 0x24]
shl ebx, 8
xor ebp, ebx
mov ebx, dword [esp + 0x1c]
shr edx, 8
xor ebp, edx
xor ebp, esi
mov dword [ebx], ebp
lea edx, [edi - 6]
and edx, 0xf
mov edx, dword [eax + edx*4]
add edx, esi
mov esi, ecx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x101bdc48]
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
xor esi, dword [ebp*4 + 0x101bd848]
mov ebp, ecx
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x101be048]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101bd448]
add ebx, 4
inc edi
sub dword [esp + 0x28], 1
mov ecx, edx
mov dword [esp + 0x1c], ebx
jne 0x100c5c00
mov ebp, eax
mov edi, 0xfffffffb
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], 0x10
mov ebp, dword [ebp]
mov dword [esp + 0x1c], ebp
lea ebp, [edi + 4]
and ebp, 0xf
mov ebp, dword [eax + ebp*4]
add ebp, edx
mov edx, dword [esp + 0x1c]
shr edx, 0x18
xor ebp, dword [edx*4 + 0x101bcc48]
mov ebx, edi
and ebx, 0xf
mov ebx, dword [eax + ebx*4]
lea edx, [edi + 7]
and edx, 0xf
xor ebp, dword [eax + edx*4]
mov edx, ebx
and edx, 0xff
xor ebp, dword [edx*4 + 0x101bd048]
mov edx, dword [esp + 0x1c]
shl edx, 8
xor ebp, edx
shr ebx, 8
xor ebp, ebx
xor ebp, esi
mov edx, ebp
mov ebp, dword [esp + 0x28]
mov dword [ebp], edx
lea edx, [edi - 6]
and edx, 0xf
mov edx, dword [eax + edx*4]
add edx, esi
mov esi, ecx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x101bdc48]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x101bd848]
mov ebx, ecx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x101be048]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101bd448]
add ebp, 4
inc edi
sub dword [esp + 0x24], 1
mov ecx, edx
mov dword [esp + 0x28], ebp
jne 0x100c5cc1
pop edi
mov dword [eax + 0x44], esi
pop esi
pop ebp
mov dword [eax + 0x40], edx
mov dword [eax + 0x50], 0
xor eax, eax
pop ebx
add esp, 8
ret