Function at 0x438680
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [esp + 4], 0x3c3d3e3f
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x4386ce
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0x2ef9e858
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x98
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x4386a0
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 4]
mov ecx, dword [0x444100]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x438728
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0x84aa3bd1
je 0x438701
add eax, 8
cmp eax, ecx
jne 0x4386f0
jmp 0x438728
mov eax, dword [eax + 4]
cmp eax, esi
je 0x438728
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push ebx
push 6
push dword [0x444104]
push eax
call fcn.00435b40
add esp, 0x24
mov esi, eax
mov dword [esp + 0xc], 0x7b3839d3
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x438781
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x3d8473d7
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x1f
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x438750
cmp esi, dword [esp + 0xc]
jne 0x438942
push dword [esp + 0x14]
call fcn.00433e20
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], 0x3c3d3e3f
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 3
ja 0x4387f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
add edx, 0x2ef9e858
xor edx, esi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x98
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 4
jb 0x4387c0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov edi, dword [0x444100]
mov edx, dword [edi]
mov edi, dword [edi + 4]
cmp edx, edi
je 0x43884e
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx], 0x84aa3bd1
je 0x438821
add edx, 8
cmp edx, edi
jne 0x438810
jmp 0x43884e
mov edx, dword [edx + 4]
cmp edx, esi
je 0x43884e
lea esi, [esp + 0x14]
push esi
push ecx
mov eax, dword [esp + 0x10]
push eax
push 0
push ebp
push ebx
push 6
push dword [0x444104]
push edx
call fcn.00435b40
add esp, 0x24
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x438936
test esi, esi
js 0x438936
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x438927
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cmp eax, edx
jb 0x43887f
mov eax, edx
test eax, eax
je 0x438922
mov edx, dword [esp + 8]
add edx, 0x10
mov ebx, eax
and ebx, 3
je 0x43894c
mov dword [esp + 0x18], eax
xor edi, edi
nop
movzx ebp, word [edx]
xor eax, eax
test bp, bp
setne al
lea edx, [edx + eax*2]
mov word [ecx], bp
add ecx, 2
inc edi
cmp ebx, edi
jne 0x4388a0
mov eax, dword [esp + 0x18]
mov ebp, eax
sub ebp, edi
cmp eax, 4
jb 0x438922
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
lea edi, [edx + ebx*2]
mov word [ecx], ax
movzx eax, word [edx + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [edi + edx*2]
mov word [ecx + 2], ax
movzx eax, word [edi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea edi, [ebx + edx*2]
mov word [ecx + 4], ax
movzx eax, word [ebx + edx*2]
xor edx, edx
test ax, ax
setne dl
mov word [ecx + 6], ax
add ecx, 8
lea edx, [edi + edx*2]
add ebp, 0xfffffffc
jne 0x4388d0
mov word [ecx], 0
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
shr eax, 1
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
push dword [esp + 8]
call fcn.00433ea0
add esp, 4
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, eax
cmp eax, 4
jae 0x4388d0
jmp 0x438922