Function at 0x438490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0x100000
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0x20212e2f
mov dword [esp + 0x44], 0
mov byte [esp + 0x48], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x438548
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x40]
lea edx, [eax - 0x28ef967a]
add eax, 0x86
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x55
and eax, 0x55
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x438500
mov eax, dword [esp + 0x40]
mov ecx, dword [0x448a30]
test ecx, ecx
je 0x43859e
xor edx, edx
mov esi, dword [0x448a34]
nop
nop
cmp dword [esi + edx*8], 0x23b9d792
je 0x438570
inc edx
cmp ecx, edx
jne 0x438560
jmp 0x43859e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43859e
lea eax, [esp + 0x28]
lea edx, [esp + 8]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x448a38]
push ecx
call fcn.004395d0
add esp, 0x24
test eax, eax
js 0x438c1a
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0x10000
mov dword [esp + 0x30], edi
jmp 0x438607
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
cmp eax, 0x7fffffff
jae 0x438b53
mov ecx, dword [edi]
mov dword [esp + 0x10], 0x20212e2f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438673
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax - 0x28ef967a]
add eax, 0x86
and eax, edx
or esi, edx
sub esi, eax
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
mov edx, eax
xor edx, 0x55
and eax, 0x55
lea eax, [edx + eax*2]
inc al
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438630
mov eax, dword [esp + 0x10]
mov edx, dword [0x448a30]
test edx, edx
je 0x4386e0
xor esi, esi
mov edi, dword [0x448a34]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcceeb031
je 0x4386b0
inc esi
cmp edx, esi
jne 0x438690
mov edi, dword [esp + 0x30]
jmp 0x4386e0
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, dword [esp + 0x30]
je 0x4386e0
push 0
push 0x1c
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x3c]
push ecx
push 6
push dword [0x448a38]
push edx
call fcn.004395d0
add esp, 0x24
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x438b53
test eax, eax
js 0x4385f0
cmp dword [esp + 0x50], 0x1000
jne 0x4385f0
cmp dword [esp + 0x54], 1
je 0x4385f0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x4c], eax
jbe 0x4388cc
mov dword [esp + 0x10], 0x20212e2f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438783
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x28ef967a]
add eax, 0x86
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
mov ecx, eax
xor ecx, 0x55
and eax, 0x55
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438740
mov eax, dword [0x448a30]
test eax, eax
je 0x4387e0
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x448a34]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2cce4e79
je 0x4387b0
inc edx
cmp eax, edx
jne 0x4387a0
jmp 0x4387e0
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x4387e0
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448a38]
push eax
call fcn.004395d0
add esp, 0x1c
nop
nop
nop
nop
nop
nop
mov dword [esp + 8], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x20212e2f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438863
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x28ef967a]
add eax, 0x86
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
mov ecx, eax
xor ecx, 0x55
and eax, 0x55
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438820
mov eax, dword [esp + 0x10]
mov ecx, dword [0x448a30]
test ecx, ecx
je 0x4388c0
xor edx, edx
mov esi, dword [0x448a34]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x23b9d792
je 0x438890
inc edx
cmp ecx, edx
jne 0x438880
jmp 0x4388c0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4388c0
push 4
push 0x3000
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 6
push dword [0x448a38]
push ecx
call fcn.004395d0
add esp, 0x24
nop
nop
test eax, eax
js 0x438b53
mov eax, dword [esp + 0x28]
mov ecx, edi
lea edx, [esp + 4]
push edx
push eax
push dword [esp + 0x10]
push dword [esp + 0x38]
call fcn.00438320
cmp eax, 0xbfffffff
ja 0x4385f0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x10]
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.00438c30
add esp, 0x18
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp esi, ecx
je 0x4385f0
mov eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov edi, dword [ebx + 4]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
jmp 0x438965
mov esi, ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x70]
mov dword [esi + edx*4], ebx
add edi, 4
mov dword [ecx + 4], edi
mov esi, dword [esp + 0x6c]
add esi, 4
cmp esi, eax
je 0x438b29
mov ebx, dword [esi]
sub ebx, dword [esp + 8]
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x70], ebx
mov edx, edi
mov ebx, dword [esp + 0x24]
sub edx, ebx
mov ecx, edx
sar ecx, 2
cmp edi, dword [esp + 0xc]
mov dword [esp + 0x6c], esi
jne 0x438940
mov dword [esp + 0xc], edx
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x68], ecx
add edx, ecx
cmp edx, eax
ja 0x4389a1
mov edx, eax
mov dword [esp + 0x64], edx
lea eax, [edx*4]
push eax
call fcn.00409310
add esp, 4
mov ecx, eax
mov edx, dword [esp + 0x24]
test edx, edx
mov ebx, dword [ebp + 8]
je 0x438b03
cmp ecx, edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
jbe 0x438a34
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x438a34
test ebx, ebx
je 0x438af0
mov edx, dword [esp + 0x24]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0x38]
add ecx, ebx
dec ecx
not edx
add edx, edi
and ebx, 7
je 0x438a81
mov dword [esp + 0x34], edx
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x438a10
add eax, edi
mov ebx, dword [esp + 0xc]
add ebx, edi
add ecx, edi
mov edx, dword [esp + 0x34]
cmp edx, 7
jae 0x438a8a
jmp 0x438af0
mov edi, ecx
mov ecx, ebx
shr ecx, 2
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x34]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
mov edx, ebx
and edx, 0xfffffffc
mov eax, dword [esp + 0x38]
add eax, edx
add edx, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 0xc]
test bl, 1
je 0x438af0
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [eax + ebx], cl
jmp 0x438af0
mov ebx, dword [esp + 0xc]
cmp edx, 7
jb 0x438af0
neg ebx
xor edx, edx
nop
nop
mov edi, ebx
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x438a90
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [esp + 0x24]
call fcn.00409320
add esp, 4
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov dword [ebx], ecx
mov edx, dword [esp + 0x68]
lea edi, [ecx + edx*4]
mov eax, dword [esp + 0x64]
lea eax, [ecx + eax*4]
mov dword [esp + 0xc], eax
mov dword [ebx + 8], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x60]
mov esi, ecx
jmp 0x438947
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
mov edi, dword [esp + 0x30]
je 0x4385f0
cmp eax, ecx
je 0x4385f0
push eax
call fcn.00409320
add esp, 4
jmp 0x4385f0
mov dword [esp + 0x10], 0x20212e2f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438bc3
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x28ef967a]
add eax, 0x86
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
mov ecx, eax
xor ecx, 0x55
and eax, 0x55
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438b80
mov eax, dword [0x448a30]
test eax, eax
je 0x438c1a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x448a34]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2cce4e79
je 0x438bf0
inc edx
cmp eax, edx
jne 0x438be0
jmp 0x438c1a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x438c1a
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448a38]
push eax
call fcn.004395d0
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10