Function at 0x438880
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 + 0x5c], 0
mov dword [esp + 0x24], 0x100000
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0x28292e2f
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x43893e
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x40]
lea edx, [eax + 0xf2ffc5a]
and edx, ecx
add eax, ecx
add eax, 0xf2ffc5a
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x8a
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x40], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x4388f0
mov eax, dword [esp + 0x40]
mov ecx, dword [0x448ad4]
test ecx, ecx
je 0x43899e
xor edx, edx
mov esi, dword [0x448ad8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x438970
inc edx
cmp ecx, edx
jne 0x438960
jmp 0x43899e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43899e
lea eax, [esp + 0x24]
lea edx, [esp + 8]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x448adc]
push ecx
call fcn.00439d10
add esp, 0x24
test eax, eax
js 0x43903a
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 + 0x30], 0x10000
mov dword [esp + 0x3c], edi
jmp 0x438a07
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
cmp eax, 0x7fffffff
jae 0x438f6a
mov ecx, dword [edi]
mov dword [esp + 0x10], 0x28292e2f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x438a88
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + 0xf2ffc5a]
and esi, edx
add eax, edx
add eax, 0xf2ffc5a
add esi, esi
sub eax, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8a
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
mov eax, dword [esp]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 0xd
jb 0x438a40
mov eax, dword [esp + 0x10]
mov edx, dword [0x448ad4]
test edx, edx
je 0x438af0
xor esi, esi
mov edi, dword [0x448ad8]
nop
nop
cmp dword [edi + esi*8], 0x1a7c99fc
je 0x438ac0
inc esi
cmp edx, esi
jne 0x438aa0
mov edi, dword [esp + 0x3c]
jmp 0x438af0
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, dword [esp + 0x3c]
je 0x438af0
push 0
push 0x1c
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x40]
push ecx
push 6
push dword [0x448adc]
push edx
call fcn.00439d10
add esp, 0x24
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x438f6a
test eax, eax
js 0x4389f0
cmp dword [esp + 0x50], 0x1000
jne 0x4389f0
cmp dword [esp + 0x54], 1
je 0x4389f0
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x4c], eax
jbe 0x438cec
mov dword [esp + 0x10], 0x28292e2f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x438ba8
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 + 0xf2ffc5a]
and edx, ecx
add eax, ecx
add eax, 0xf2ffc5a
add edx, edx
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 0xd
jb 0x438b60
mov eax, dword [0x448ad4]
test eax, eax
je 0x438c00
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x448ad8]
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x438bd0
inc edx
cmp eax, edx
jne 0x438bc0
jmp 0x438c00
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x438c00
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448adc]
push eax
call fcn.00439d10
add esp, 0x1c
nop
nop
nop
nop
nop
nop
mov dword [esp + 8], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x28292e2f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x438c88
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0xf2ffc5a]
and edx, ecx
add eax, ecx
add eax, 0xf2ffc5a
add edx, edx
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 0xd
jb 0x438c40
mov eax, dword [esp + 0x10]
mov ecx, dword [0x448ad4]
test ecx, ecx
je 0x438ce0
xor edx, edx
mov esi, dword [0x448ad8]
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x438cb0
inc edx
cmp ecx, edx
jne 0x438ca0
jmp 0x438ce0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x438ce0
push 4
push 0x3000
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 6
push dword [0x448adc]
push ecx
call fcn.00439d10
add esp, 0x24
nop
nop
test eax, eax
js 0x438f6a
mov eax, dword [esp + 0x24]
mov ecx, edi
lea edx, [esp + 4]
push edx
push eax
push dword [esp + 0x10]
push dword [esp + 0x3c]
call fcn.00438700
cmp eax, 0xbfffffff
ja 0x4389f0
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.00439050
add esp, 0x18
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp esi, ecx
je 0x4389f0
mov eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
mov dword [esp + 0xc], ecx
mov edi, dword [ebx + 4]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
jmp 0x438d85
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 0x438f40
mov ebx, dword [esi]
sub ebx, dword [esp + 8]
add ebx, dword [esp + 0x30]
mov dword [esp + 0x70], ebx
mov edx, edi
mov ebx, dword [esp + 0xc]
sub edx, ebx
mov ecx, edx
sar ecx, 2
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x6c], esi
jne 0x438d60
mov dword [esp + 0x28], edx
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x68], ecx
add edx, ecx
cmp edx, eax
ja 0x438dc1
mov edx, eax
mov dword [esp + 0x34], edx
lea eax, [edx*4]
push eax
call fcn.004093a0
add esp, 4
mov ecx, eax
mov edx, dword [esp + 0xc]
test edx, edx
mov ebx, dword [ebp + 8]
je 0x438f1a
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jbe 0x438ebf
cmp edi, ecx
jbe 0x438ebf
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x438f07
lea ecx, [ebx - 0x65e64b]
mov eax, dword [esp + 0xc]
add eax, ecx
add eax, 0x65e64a
mov edx, dword [esp + 0x2c]
add ecx, edx
add ecx, 0x65e64a
mov edx, dword [esp + 0xc]
not edx
add edx, edi
and ebx, 7
je 0x438e58
mov dword [esp + 0x38], edx
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x438e40
add eax, edi
add ecx, edi
add dword [esp + 0x28], edi
mov edx, dword [esp + 0x38]
cmp edx, 7
mov edi, dword [esp + 0x28]
jb 0x438f07
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
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
add edx, 0xfffffff8
cmp edi, edx
jne 0x438e70
jmp 0x438f07
mov ebx, dword [esp + 0x28]
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, dword [esp + 0x2c]
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 + 0x2c]
lea edi, [eax + edx]
add edx, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x38], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x438f07
and ebx, 2
movzx ecx, byte [edx + ebx]
mov eax, dword [esp + 0x38]
mov byte [eax + ebx], cl
push dword [esp + 0xc]
call fcn.004093b0
add esp, 4
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], ecx
mov edx, dword [esp + 0x68]
lea edi, [ecx + edx*4]
mov eax, dword [esp + 0x34]
lea eax, [ecx + eax*4]
mov dword [esp + 0x34], eax
mov dword [ebx + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x64]
mov esi, ecx
jmp 0x438d67
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x60]
test eax, eax
mov edi, dword [esp + 0x3c]
je 0x4389f0
cmp eax, ecx
je 0x4389f0
push eax
call fcn.004093b0
add esp, 4
jmp 0x4389f0
mov dword [esp + 0x10], 0x28292e2f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x438fe8
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 + 0xf2ffc5a]
and edx, ecx
add eax, ecx
add eax, 0xf2ffc5a
add edx, edx
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 0xd
jb 0x438fa0
mov eax, dword [0x448ad4]
test eax, eax
je 0x43903a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x448ad8]
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x439010
inc edx
cmp eax, edx
jne 0x439000
jmp 0x43903a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43903a
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448adc]
push eax
call fcn.00439d10
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10