Function at 0x435fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0x100000
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0xb8bbba85
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
lea edx, [eax + 0x43f64ddf]
mov esi, 0x20
sub esi, eax
xor esi, edx
and esi, ecx
xor esi, edx
mov ecx, esi
and ecx, 0x24
xor esi, 0xa4
lea ecx, [esi + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x435ff0
mov eax, dword [esp + 8]
mov ecx, dword [0x448588]
test ecx, ecx
je 0x43608e
xor edx, edx
mov esi, dword [0x44858c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x436060
inc edx
cmp ecx, edx
jne 0x436050
jmp 0x43608e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43608e
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push ecx
push dword [0x448590]
call fcn.00437d80
add esp, 0x24
test eax, eax
js 0x436772
cmp dword [edi + 4], 0
je 0x436700
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 8], 0xd9dddbc4
mov dword [esp + 0xc], 0
mov ecx, 0xc119ce4f
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x3ee631b9]
xor edx, ecx
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0x74
mov byte [esp + ecx + 0x3ee631b9], dl
inc ecx
cmp ecx, 0xc119ce57
jne 0x4360f0
mov dword [esp + 0x38], 0x7fff
cmp eax, 2
je 0x43612c
mov dword [esp + 0x38], 0
mov eax, 0xfffeffff
je 0x436138
mov eax, SysReAllocString
mov edx, dword [esp + 8]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x1c], eax
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
sbb eax, dword [esp + 0x38]
jae 0x43667a
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov dword [esp + 0x34], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x28], edx
mov ecx, edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x3c]
push edx
call fcn.00435b60
mov edx, dword [esp + 0x28]
cmp eax, 0xbfffffff
ja 0x43667a
test eax, eax
js 0x436640
cmp dword [esp + 0x60], 0x1000
jne 0x436640
test byte [esp + 0x5c], 0x66
je 0x436640
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x30], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x43636e
mov dword [esp + 8], 0xb8bbba85
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
lea edx, [eax + 0x43f64ddf]
mov edi, 0x20
sub edi, eax
xor edi, edx
and edi, ecx
xor edi, edx
mov ecx, edi
and ecx, 0x24
xor edi, 0xa4
lea ecx, [edi + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x436200
mov eax, dword [0x448588]
test eax, eax
je 0x43629a
mov ecx, dword [esp + 8]
xor edx, edx
mov edi, dword [0x44858c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x436270
inc edx
cmp eax, edx
jne 0x436260
jmp 0x43629a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x43629a
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 4
push eax
push dword [0x448590]
call fcn.00437d80
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], esi
mov dword [esp + 8], 0xb8bbba85
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
lea edx, [eax + 0x43f64ddf]
mov edi, 0x20
sub edi, eax
xor edi, edx
and edi, ecx
xor edi, edx
mov ecx, edi
and ecx, 0x24
xor edi, 0xa4
lea ecx, [edi + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x4362c0
mov eax, dword [esp + 8]
mov ecx, dword [0x448588]
test ecx, ecx
je 0x43635e
xor edx, edx
mov edi, dword [0x44858c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x436330
inc edx
cmp ecx, edx
jne 0x436320
jmp 0x43635e
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43635e
push 4
push 0x3000
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 6
push ecx
push dword [0x448590]
call fcn.00437d80
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
js 0x43667a
mov ecx, edi
lea eax, [esp + 0x70]
push eax
push ebx
push esi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push edx
call fcn.00435e30
test eax, eax
jns 0x436394
cmp eax, 0x8000000d
jne 0x436640
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x436640
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
call fcn.004367c0
add esp, 0x18
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
cmp esi, eax
mov ebx, dword [esp + 0x14]
je 0x43661f
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 4]
jmp 0x43643a
push dword [esp + 0x14]
call fcn.00408780
add esp, 4
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
lea eax, [edi + eax*8]
mov dword [esp + 0x24], eax
mov edx, edi
mov ecx, dword [esp + 0x20]
add edx, ecx
mov ebx, edi
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
mov dword [ebx + ecx], edi
mov edi, ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + edi + 4], ecx
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x58]
je 0x4365df
mov edi, dword [esi]
sub edi, dword [esp + 0x18]
mov ecx, edi
sar ecx, 0x1f
add edi, eax
mov dword [esp + 0x6c], edi
adc ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov ecx, edx
sub ecx, ebx
cmp edx, dword [esp + 0x24]
jne 0x436419
mov edi, ecx
mov ecx, edx
xor ecx, ebx
mov eax, ebx
not eax
mov dword [esp + 4], edx
and eax, edx
add eax, eax
sub eax, ecx
sar eax, 3
mov ecx, eax
shr ecx, 1
add ecx, eax
mov dword [esp + 0x20], edi
mov eax, edi
sar eax, 3
inc eax
cmp ecx, eax
ja 0x43648a
mov ecx, eax
mov eax, ecx
and eax, 0xfffffff7
mov edi, ecx
and edi, 8
mov edx, ecx
mov dword [esp + 0x24], ecx
or edx, 8
imul edx, edi
xor edi, 8
imul edi, eax
add edx, edi
push edx
call fcn.00408770
add esp, 4
mov edi, eax
test ebx, ebx
je 0x436400
cmp edi, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], edi
jbe 0x436592
cmp eax, edi
jbe 0x436592
test ecx, ecx
je 0x4363f0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x54]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x436528
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x436510
add eax, edx
add ecx, edx
add edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edi, ebx
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x4363f0
neg edx
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x436540
jmp 0x4363f0
shr ecx, 2
mov edx, ebx
mov eax, edi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, dword [esp + 0x20]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, ebx
mov ebx, ecx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 4], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x4363f0
mov eax, dword [esp + 0x20]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
jmp 0x4363f0
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x64]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x43666c
mov dword [esp + 4], edx
cmp eax, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
je 0x436666
mov dword [esp + 0x14], ebx
push eax
call fcn.00408780
add esp, 4
mov dword [esp + 8], 0
jmp 0x436644
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
adc eax, dword [esp + 0x4c]
cmp edx, esi
mov dword [esp + 0x2c], eax
sbb eax, dword [esp + 0x38]
jb 0x436180
jmp 0x43667a
mov dword [esp + 0x14], ebx
jmp 0x436644
mov dword [esp + 4], edx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
jmp 0x436644
mov dword [esp + 8], 0xb8bbba85
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
lea edx, [eax + 0x43f64ddf]
mov esi, 0x20
sub esi, eax
xor esi, edx
and esi, ecx
xor esi, edx
mov ecx, esi
and ecx, 0x24
xor esi, 0xa4
lea ecx, [esi + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x436690
mov eax, dword [0x448588]
test eax, eax
je 0x436772
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [0x44858c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x436748
inc edx
cmp eax, edx
jne 0x4366f0
jmp 0x436772
push 0xbbf966b4
push dword [0x44857c]
call fcn.0043ae20
add esp, 8
test eax, eax
je 0x43677f
mov ecx, dword [edi]
test ecx, ecx
je 0x4360a0
mov dword [esp + 8], 0
lea edx, [esp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x43678b
cmp dword [esp + 8], 0
je 0x43678b
mov dword [edi + 4], 3
jmp 0x4360a0
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x436772
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 4
push eax
push dword [0x448590]
call fcn.00437d80
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [edi + 4], 1
jmp 0x4360a0
lea eax, [esp + 0x48]
push eax
call fcn.0043b6b0
add esp, 4
test al, al
je 0x4360a0
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x4367b0
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x4360a0