Function at 0x386a5a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
cmp ecx, 0x80
je 0x386a5a97
cmp ecx, 0xc0
je 0x386a5a97
cmp ecx, 0x100
je 0x386a5a97
push 0xf4
push 0
push dword [ebp + 0x10]
call 0x382f1010
add esp, 0xc
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
cmp ecx, 0x80
jne 0x386a5aaf
mov dword [edi + 0xf0], 0xa
jmp 0x386a5ac7
xor eax, eax
cmp ecx, 0xc0
setne al
lea eax, [eax*2 + 0xc]
mov dword [edi + 0xf0], eax
mov edx, dword [ebp + 8]
push ebx
push esi
lea esi, [edi + 4]
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 3]
shl ebx, 8
xor ebx, eax
mov dword [edi], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 4], ebx
movzx ebx, byte [edx + 4]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 6]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 7]
shl ebx, 8
xor ebx, eax
mov dword [esi], ebx
movzx eax, byte [edx + 9]
mov dword [ebp - 8], ebx
movzx ebx, byte [edx + 8]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xa]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xb]
shl ebx, 8
xor ebx, eax
mov dword [edi + 8], ebx
movzx eax, byte [edx + 0xd]
mov dword [ebp - 0xc], ebx
movzx ebx, byte [edx + 0xc]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xe]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xf]
shl ebx, 8
xor ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [edi + 0xc], ebx
cmp ecx, 0x80
jne 0x386a5c5f
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x7417880]
mov eax, ebx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x7417c80]
and eax, 0xff0000
xor ecx, eax
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x7417480]
xor ecx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor ecx, eax
xor ecx, dword [ebp - 4]
mov dword [edi + 0x10], ecx
xor ecx, dword [ebp - 8]
mov dword [edi + 0x14], ecx
xor ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], ecx
xor ecx, ebx
mov dword [edi + 0x1c], ecx
mov edi, 0x7419184
lea esp, [esp]
mov edx, dword [esi + 0x18]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [eax*4 + 0x7417c80]
mov eax, edx
shr eax, 0x10
and ecx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + 0x7417880]
and eax, 0xff000000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x7417480]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor ecx, eax
xor ecx, dword [esi - 4]
xor ecx, dword [edi]
add edi, 4
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
xor eax, ecx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
xor ecx, eax
xor edx, ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
cmp edi, 0x74191a8
jne 0x386a5be0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 0x10]
movzx eax, byte [edx + 0x11]
mov esi, dword [ebp + 0xc]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x13]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0x10], ecx
movzx ebx, byte [edx + 0x14]
movzx eax, byte [edx + 0x15]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0x16]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0x17]
shl ebx, 8
xor ebx, eax
mov dword [edi + 0x14], ebx
cmp esi, 0xc0
jne 0x386a5dbd
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x7417880]
mov eax, ebx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x7417c80]
and eax, 0xff0000
xor ecx, eax
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x7417480]
xor ecx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor ecx, eax
lea eax, [edi + 0x28]
xor ecx, dword [ebp - 4]
mov dword [edi + 0x18], ecx
xor ecx, dword [ebp - 8]
mov dword [edi + 0x1c], ecx
xor ecx, dword [ebp - 0xc]
mov dword [edi + 0x20], ecx
xor ecx, dword [ebp - 0x10]
mov dword [edi + 0x24], ecx
mov edi, 0x7419184
mov edx, dword [eax - 0x18]
lea eax, [eax + 0x18]
xor edx, dword [eax - 0x1c]
mov ecx, dword [eax - 0x2c]
xor ecx, edx
mov dword [eax - 0x18], edx
mov dword [eax - 0x14], ecx
mov edx, dword [eax - 0x14]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x7417c80]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x7417880]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x7417480]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x7417080]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 0x28]
xor esi, dword [edi]
add edi, 4
mov dword [eax - 0x10], esi
mov ecx, dword [eax - 0x24]
xor ecx, esi
mov dword [eax - 0xc], ecx
mov edx, dword [eax - 0x20]
xor edx, ecx
mov dword [eax - 8], edx
mov ecx, dword [eax - 0x1c]
xor ecx, edx
mov dword [eax - 4], ecx
cmp edi, 0x74191a0
jne 0x386a5d23
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 0x18]
movzx eax, byte [edx + 0x19]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x1a]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x1b]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0x18], ecx
movzx ebx, byte [edx + 0x1c]
movzx eax, byte [edx + 0x1d]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0x1e]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0x1f]
shl ebx, 8
xor ebx, eax
mov dword [edi + 0x1c], ebx
cmp esi, 0x100
jne 0x386a5f6c
mov eax, ebx
mov esi, 0x7419184
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x7417880]
mov eax, ebx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x7417c80]
and eax, 0xff0000
xor ecx, eax
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x7417480]
xor ecx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor ecx, eax
xor ecx, dword [ebp - 4]
mov dword [edi + 0x20], ecx
xor ecx, dword [ebp - 8]
mov dword [edi + 0x24], ecx
xor ecx, dword [ebp - 0xc]
mov dword [edi + 0x28], ecx
xor ecx, dword [ebp - 0x10]
mov dword [edi + 0x2c], ecx
add edi, 0x30
mov edi, edi
mov ecx, dword [edi - 4]
lea edi, [edi + 0x20]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [eax*4 + 0x7417c80]
mov eax, ecx
shr eax, 8
and edx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x7417880]
and eax, 0xff000000
xor edx, eax
movzx eax, cl
mov ecx, dword [edi - 0x38]
movzx eax, byte [eax*4 + 0x7417480]
xor edx, eax
mov eax, dword [edi - 0x3c]
xor edx, dword [edi - 0x40]
xor eax, edx
mov dword [edi - 0x20], edx
mov dword [edi - 0x1c], eax
xor ecx, eax
mov eax, dword [edi - 0x34]
xor eax, ecx
mov dword [edi - 0x18], ecx
mov dword [edi - 0x14], eax
mov ecx, dword [edi - 0x14]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + 0x7417c80]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + 0x7417880]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x7417480]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x7417080]
and eax, 0xff00
xor edx, eax
xor edx, dword [edi - 0x30]
xor edx, dword [esi]
add esi, 4
mov dword [edi - 0x10], edx
mov eax, dword [edi - 0x2c]
xor eax, edx
mov dword [edi - 0xc], eax
mov ecx, dword [edi - 0x28]
xor ecx, eax
mov dword [edi - 8], ecx
mov eax, dword [edi - 0x24]
xor eax, ecx
mov dword [edi - 4], eax
cmp esi, 0x741919c
jne 0x386a5e80
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret