Function at 0x438c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0x3c3d3e3f
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x438c7e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x2ef9e858
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x98
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x438c50
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 8]
mov ecx, dword [0x444100]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x438cd8
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0x9b15aa7a
je 0x438cb1
add eax, 8
cmp eax, ecx
jne 0x438ca0
jmp 0x438cd8
mov eax, dword [eax + 4]
cmp eax, esi
je 0x438cd8
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push ebx
push edi
push 6
push dword [0x444104]
push eax
call fcn.00435b40
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x438f1f
push dword [esp + 0xc]
call fcn.00433e20
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0x3c3d3e3f
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x438d3e
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
add eax, 0x2ef9e858
xor eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x98
mov edx, dword [esp]
mov byte [esp + edx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x438d10
mov esi, dword [esp + 8]
mov edx, dword [0x444100]
mov eax, dword [edx]
mov edx, dword [edx + 4]
cmp eax, edx
je 0x438d9a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0x9b15aa7a
je 0x438d71
add eax, 8
cmp eax, edx
jne 0x438d60
jmp 0x438d9a
mov edx, dword [eax + 4]
cmp edx, esi
je 0x438d9a
lea eax, [esp + 0xc]
push eax
push ecx
mov eax, dword [esp + 0xc]
push eax
push 1
push ebx
push edi
push 6
push dword [0x444104]
push edx
call fcn.00435b40
add esp, 0x24
mov esi, eax
test esi, esi
js 0x438f13
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x438e9a
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438e8f
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ebp, dword [edx]
cmp ebp, eax
jb 0x438dcf
mov ebp, eax
test ebp, ebp
je 0x438e8a
mov ebx, dword [esp + 4]
add ebx, 0x14
mov eax, ebp
and ebp, 3
je 0x438e20
mov dword [esp + 0x14], eax
xor edx, edx
nop
nop
nop
nop
nop
movzx eax, word [ebx]
xor ecx, ecx
test ax, ax
setne cl
lea ebx, [ebx + ecx*2]
mov word [edi], ax
add edi, 2
inc edx
cmp ebp, edx
jne 0x438df0
mov eax, dword [esp + 0x14]
mov ebp, eax
sub ebp, edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp eax, 4
jae 0x438e30
jmp 0x438e8a
mov ebp, eax
cmp eax, 4
jb 0x438e8a
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [ebx]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [ebx + ecx*2]
mov word [edi], ax
movzx eax, word [ebx + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea ebx, [edx + ecx*2]
mov word [edi + 2], ax
movzx eax, word [edx + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [ebx + ecx*2]
mov word [edi + 4], ax
movzx ecx, word [ebx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [edi + 6], cx
add edi, 8
lea ebx, [edx + eax*2]
add ebp, 0xfffffffc
jne 0x438e30
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov word [edi], 0
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [edx], eax
mov edi, dword [esp + 0x44]
test ecx, ecx
je 0x438eab
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edi, edi
je 0x438f13
mov eax, dword [esp + 0x40]
test eax, eax
je 0x438f0a
mov edx, dword [edi]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
cmp edx, ecx
jb 0x438ec6
mov edx, ecx
mov ecx, dword [esp + 4]
mov ebp, dword [ecx + 8]
add ebp, ecx
mov ecx, edx
shr ecx, 2
mov ebx, edx
and ebx, 0xfffffffc
mov edi, eax
add eax, ebx
add ebx, ebp
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebp, ebx
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
mov edi, dword [esp + 0x44]
je 0x438f0a
and edx, 2
movzx ecx, byte [ebx + edx]
mov byte [eax + edx], cl
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
push dword [esp + 4]
call fcn.00433ea0
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret