Function at 0x438960
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 4], 0x3c3d3e3f
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x4389ae
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 0x438980
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 4]
mov ecx, dword [0x444100]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x438a07
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0x148ef213
je 0x4389e1
add eax, 8
cmp eax, ecx
jne 0x4389d0
jmp 0x438a07
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x438a07
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 2
push edi
push 5
push dword [0x444104]
push eax
call fcn.00435b40
add esp, 0x20
mov ebp, eax
cmp ebp, 0xc0000023
jne 0x438c23
push dword [esp + 8]
call fcn.00433e20
add esp, 4
mov ecx, dword [esp + 8]
mov dword [esp + 4], 0x3c3d3e3f
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 3
ja 0x438a70
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 0x438a40
mov ebp, dword [esp + 4]
mov ebx, dword [0x444100]
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
cmp edx, ebx
je 0x438ac9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx], 0x148ef213
je 0x438aa1
add edx, 8
cmp edx, ebx
jne 0x438a90
jmp 0x438ac9
mov edx, dword [edx + 4]
cmp edx, ebp
je 0x438ac9
lea esi, [esp + 8]
push esi
push ecx
push eax
push 2
push edi
push 5
push dword [0x444104]
push edx
mov edi, eax
call fcn.00435b40
add esp, 0x20
mov ebp, eax
mov eax, edi
test ebp, ebp
js 0x438c1a
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x438bca
mov edi, dword [esp + 0x30]
test edi, edi
je 0x438bc3
mov edx, dword [eax + 0x10]
shr edx, 1
mov ecx, dword [esi]
cmp ecx, edx
jb 0x438afa
mov ecx, edx
mov dword [esp + 0x14], ebp
test ecx, ecx
je 0x438bb6
mov esi, eax
add esi, 0x2c
mov ebp, ecx
and ebp, 3
je 0x438b4c
mov dword [esp + 0x10], ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [esi]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [esi + ebx*2]
mov word [edi], cx
add edi, 2
inc edx
cmp ebp, edx
jne 0x438b20
mov ecx, dword [esp + 0x10]
mov ebp, ecx
sub ebp, edx
mov ebx, dword [esp + 0x38]
cmp ecx, 4
jae 0x438b60
jmp 0x438bb6
mov ebp, ecx
cmp ecx, 4
jb 0x438bb6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [esi]
xor edx, edx
test cx, cx
setne dl
lea ebx, [esi + edx*2]
mov word [edi], cx
movzx ecx, word [esi + edx*2]
xor edx, edx
test cx, cx
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 2], cx
movzx ecx, word [ebx + edx*2]
xor edx, edx
test cx, cx
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 4], cx
movzx edx, word [esi + edx*2]
xor ecx, ecx
test dx, dx
setne cl
mov word [edi + 6], dx
add edi, 8
lea esi, [ebx + ecx*2]
add ebp, 0xfffffffc
jne 0x438b60
mov ebx, dword [esp + 0x38]
mov word [edi], 0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov ecx, dword [eax + 0x10]
shr ecx, 1
mov dword [esi], ecx
mov edx, dword [esp + 0x3c]
test ebx, ebx
je 0x438bd7
mov ecx, dword [eax + 0x14]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x40]
test edx, edx
je 0x438be6
mov esi, dword [eax + 0x18]
shr esi, 1
mov dword [edx], esi
mov edx, dword [esp + 0x44]
test ecx, ecx
je 0x438bf5
mov esi, dword [eax + 0x1c]
shr esi, 1
mov dword [ecx], esi
mov ecx, dword [esp + 0x48]
test edx, edx
je 0x438c02
mov esi, dword [eax + 0x20]
mov dword [edx], esi
mov edx, dword [esp + 0x4c]
test ecx, ecx
je 0x438c11
mov esi, dword [eax + 0x24]
shr esi, 1
mov dword [ecx], esi
test edx, edx
je 0x438c1a
mov ecx, dword [eax + 0x28]
mov dword [edx], ecx
push eax
call fcn.00433ea0
add esp, 4
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret