Function at 0x4385a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, 4
push edi
lea edi, [esi + 0x2c]
mov edx, dword [edi - 4]
lea edi, [edi + 0x10]
mov ecx, edx
mov eax, edx
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, edx
shl eax, 0x10
and edx, 0xff00
or eax, edx
shr ecx, 8
shl eax, 8
or ecx, eax
mov dword [edi - 0x14], ecx
mov ecx, dword [edi - 0x10]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 0x10], edx
mov ecx, dword [edi - 0xc]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 0xc], edx
mov ecx, dword [edi - 8]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 8], edx
sub ebx, 1
jne 0x4385b3
lea ecx, [esi + 0x28]
lea edx, [ebx + 0x40]
nop dword [eax]
mov eax, dword [ecx + 0x34]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x1c]
xor eax, dword [ecx + 4]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x3c], eax
sub edx, 1
jne 0x438670
mov eax, dword [esi + 0x14]
mov dword [esi], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp edx, 0x14
jae 0x4386da
mov eax, ebx
not eax
and eax, ecx
mov ecx, ebx
and ecx, edi
or eax, ecx
jmp 0x4386f9
cmp edx, 0x28
jb 0x4386f3
cmp edx, 0x3c
jae 0x4386f3
mov eax, edi
or eax, ecx
mov ecx, edi
and ecx, dword [ebp - 0xc]
and eax, ebx
or eax, ecx
jmp 0x4386f9
mov eax, ebx
xor eax, edi
xor eax, ecx
cmp edx, 0x14
jae 0x438705
mov ecx, 0x5a827999
jmp 0x438722
cmp edx, 0x28
jae 0x438711
mov ecx, 0x6ed9eba1
jmp 0x438722
cmp edx, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add dword [ebp - 8], 4
rol ebx, 5
add ebx, dword [edx + esi]
add ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
add dword [ebp - 4], eax
inc edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov dword [ebp - 0xc], edi
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x14]
ror edi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov dword [ebp - 0x14], ebx
mov dword [esi + 4], ebx
mov dword [esi], eax
mov dword [ebp - 0x18], edx
jb 0x4386c2
add dword [esi + 0x14], eax
mov eax, ebx
add dword [esi + 0x18], eax
mov eax, edi
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x24], eax
pop edi
mov dword [esi + 0x168], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret