Function at 0x4386d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov dword [esp + 0x50], ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], 0x100000
mov dword [esp + 8], 0
mov dword [esp + 0x30], 0x32353437
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x438784
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x25adae87]
mov esi, edx
and esi, ecx
xor edx, ecx
lea edx, [edx + esi*2]
add eax, 0x79
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xb1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x438740
mov eax, dword [esp + 0x30]
mov ecx, dword [0x448868]
test ecx, ecx
je 0x4387de
xor edx, edx
mov esi, dword [0x44886c]
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x4387b0
inc edx
cmp ecx, edx
jne 0x4387a0
jmp 0x4387de
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4387de
lea eax, [esp + 0x28]
lea edx, [esp + 8]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x448870]
push ecx
call fcn.00439850
add esp, 0x24
test eax, eax
js 0x438e7a
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x10000
jmp 0x438847
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
cmp eax, 0x7fffffff
jae 0x438dad
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x10], 0x32353437
lea eax, [esp + 0x14]
mov dword [eax + 7], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x4388bf
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax - 0x25adae87]
mov edi, esi
and edi, edx
xor esi, edx
lea esi, [esi + edi*2]
add eax, 0x79
and eax, edx
add eax, eax
sub esi, eax
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add al, 0xb1
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x438880
mov eax, dword [esp + 0x10]
mov edx, dword [0x448868]
test edx, edx
je 0x438920
xor esi, esi
mov edi, dword [0x44886c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x1a7c99fc
je 0x4388f0
inc esi
cmp edx, esi
jne 0x4388e0
jmp 0x438920
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x438920
push 0
push 0x1c
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x3c]
push ecx
push 6
push dword [0x448870]
push edx
call fcn.00439850
add esp, 0x24
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x438dad
test eax, eax
js 0x438830
cmp dword [esp + 0x40], 0x1000
jne 0x438830
cmp dword [esp + 0x44], 1
je 0x438830
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jbe 0x438b1a
mov dword [esp + 0x10], 0x32353437
lea eax, [esp + 0x14]
mov dword [eax + 7], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x4389cf
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x25adae87]
mov esi, edx
and esi, ecx
xor edx, ecx
lea edx, [edx + esi*2]
add eax, 0x79
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x438990
mov eax, dword [0x448868]
test eax, eax
je 0x438a2a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x44886c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x438a00
inc edx
cmp eax, edx
jne 0x4389f0
jmp 0x438a2a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x438a2a
push 0x8000
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448870]
push eax
call fcn.00439850
add esp, 0x1c
mov dword [esp + 8], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x32353437
lea eax, [esp + 0x14]
mov dword [eax + 7], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x438aaf
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x25adae87]
mov esi, edx
and esi, ecx
xor edx, ecx
lea edx, [edx + esi*2]
add eax, 0x79
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x438a70
mov eax, dword [esp + 0x10]
mov ecx, dword [0x448868]
test ecx, ecx
je 0x438b0e
xor edx, edx
mov esi, dword [0x44886c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x438ae0
inc edx
cmp ecx, edx
jne 0x438ad0
jmp 0x438b0e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x438b0e
push 4
push 0x3000
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 6
push dword [0x448870]
push ecx
call fcn.00439850
add esp, 0x24
test eax, eax
js 0x438dad
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 4]
push edx
push eax
push dword [esp + 0x10]
push dword [esp + 0x38]
call fcn.00438550
cmp eax, 0xbfffffff
ja 0x438830
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.00438e90
add esp, 0x18
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp esi, ecx
je 0x438830
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 0x438bb3
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 0x438d87
mov dword [esp + 0x6c], esi
mov ebx, dword [esi]
sub ebx, dword [esp + 8]
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x70], ebx
mov edx, edi
mov esi, dword [esp + 0x24]
sub edx, esi
mov ecx, edx
sar ecx, 2
cmp edi, dword [esp + 0xc]
jne 0x438b90
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 0x438bef
mov edx, eax
mov dword [esp + 0x64], edx
lea eax, [edx*4]
push eax
call fcn.004090e0
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x24]
test edx, edx
mov ebx, dword [ebp + 8]
je 0x438d63
cmp esi, edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x54], esi
jbe 0x438c80
lea eax, [edx + ebx]
cmp eax, esi
jbe 0x438c80
test ebx, ebx
je 0x438d50
mov edx, dword [esp + 0x24]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0x54]
add ecx, ebx
dec ecx
mov esi, edx
not esi
add esi, edi
and ebx, 7
je 0x438cdb
neg ebx
xor edi, edi
nop
nop
nop
nop
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 0x438c60
mov ebx, dword [esp + 0xc]
add ebx, edi
add eax, edi
add ecx, edi
cmp esi, 7
jae 0x438ce4
jmp 0x438d50
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
xor ecx, 3
mov eax, ebx
or eax, 0xfffffffc
and eax, ecx
add eax, esi
mov ecx, edx
mov edx, ebx
and edx, 0xfffffffc
add edx, ecx
mov esi, ebx
and esi, 3
mov ecx, esi
shr 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 0x438d50
mov ecx, ebx
and ecx, 2
not ebx
or ebx, 0xfffffffe
add esi, ebx
movzx ecx, byte [edx + ecx]
mov byte [eax + esi + 1], cl
jmp 0x438d50
mov ebx, dword [esp + 0xc]
cmp esi, 7
jb 0x438d50
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
nop
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 0x438cf0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [esp + 0x24]
call fcn.004090f0
add esp, 4
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x54]
mov dword [ebx], esi
mov edx, dword [esp + 0x68]
lea edi, [esi + edx*4]
mov eax, dword [esp + 0x64]
lea eax, [esi + eax*4]
mov dword [esp + 0xc], eax
mov dword [ebx + 8], eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x60]
jmp 0x438b95
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x438830
cmp eax, ecx
je 0x438830
push eax
call fcn.004090f0
add esp, 4
jmp 0x438830
mov dword [esp + 0x10], 0x32353437
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x438e1f
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x25adae87]
mov esi, edx
and esi, ecx
xor edx, ecx
lea edx, [edx + esi*2]
add eax, 0x79
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x438de0
mov eax, dword [0x448868]
test eax, eax
je 0x438e7a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x44886c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x438e50
inc edx
cmp eax, edx
jne 0x438e40
jmp 0x438e7a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x438e7a
push 0x8000
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x448870]
push eax
call fcn.00439850
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10