Function at 0x436b60
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 + 0x1c], 0
mov dword [esp + 8], 0xc0c7c6c5
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xb1
xor cl, byte [esp + eax + 8]
add cl, 0x8b
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 7
jne 0x436bc0
mov eax, dword [esp + 8]
mov ecx, dword [0x44a8e4]
test ecx, ecx
je 0x436c2e
xor edx, edx
mov esi, dword [0x44a8e8]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x436c00
inc edx
cmp ecx, edx
jne 0x436bf0
jmp 0x436c2e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x436c2e
lea eax, [esp + 0x30]
lea edx, [esp + 0x1c]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44a8ec]
call fcn.004390d0
add esp, 0x24
test eax, eax
js 0x437282
cmp dword [edi + 4], 0
je 0x437210
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], 0x41454744
mov ecx, 0xe
mov edx, 0xf1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0xe9]
mov ebx, ecx
xor ebx, edx
and ebx, esi
xor ebx, edx
add bl, 0x4b
mov byte [esp + edx - 0xe9], bl
dec ecx
inc edx
cmp ecx, 0xa
jne 0x436c90
mov dword [esp + 0x38], 0x7fff
cmp eax, 2
je 0x436cc6
mov dword [esp + 0x38], 0
mov eax, 0xfffeffff
je 0x436cd2
mov eax, SysReAllocString
mov edx, dword [esp + 8]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x18], eax
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
sbb eax, dword [esp + 0x38]
jae 0x4371ae
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov dword [esp + 0x34], edi
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.00436750
mov edx, dword [esp + 0x28]
cmp eax, 0xbfffffff
ja 0x4371ae
test eax, eax
js 0x437170
cmp dword [esp + 0x60], 0x1000
jne 0x437170
test byte [esp + 0x5c], 0x66
je 0x437170
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x30], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x436ebe
mov dword [esp + 8], 0xc0c7c6c5
lea eax, [esp + 0xc]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xb1
xor cl, byte [esp + eax + 8]
add cl, 0x8b
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 7
jne 0x436da0
mov eax, dword [0x44a8e4]
test eax, eax
je 0x436e0a
mov ecx, dword [esp + 8]
xor edx, edx
mov edi, dword [0x44a8e8]
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x436de0
inc edx
cmp eax, edx
jne 0x436dd0
jmp 0x436e0a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x436e0a
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44a8ec]
call fcn.004390d0
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], esi
mov dword [esp + 8], 0xc0c7c6c5
lea eax, [esp + 0xc]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xb1
xor cl, byte [esp + eax + 8]
add cl, 0x8b
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 7
jne 0x436e40
mov eax, dword [esp + 8]
mov ecx, dword [0x44a8e4]
test ecx, ecx
je 0x436eae
xor edx, edx
mov edi, dword [0x44a8e8]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x436e80
inc edx
cmp ecx, edx
jne 0x436e70
jmp 0x436eae
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x436eae
push 4
push 0x3000
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44a8ec]
call fcn.004390d0
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
js 0x4371ae
mov ecx, edi
lea eax, [esp + 0x70]
push eax
push ebx
push esi
push dword [esp + 0x28]
push dword [esp + 0x3c]
push edx
call fcn.00436a00
test eax, eax
jns 0x436ee4
cmp eax, 0x8000000d
jne 0x437170
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x437170
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.004372d0
add esp, 0x18
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x58], ecx
cmp eax, ecx
mov ebx, dword [esp + 0x14]
je 0x437157
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 4]
jmp 0x436f88
push dword [esp + 0x14]
call fcn.00408360
add esp, 4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov ebx, eax
lea eax, [eax + edi*8]
mov dword [esp + 0x24], eax
mov ecx, ebx
mov edi, dword [esp + 0x20]
add ecx, edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
mov dword [ebx + edi], esi
mov dword [ebx + edi + 4], eax
add ecx, 8
mov eax, dword [esp + 0x6c]
add eax, 4
cmp eax, dword [esp + 0x58]
je 0x437117
mov dword [esp + 4], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
mov ecx, eax
not ecx
and ecx, esi
not esi
and esi, eax
sub esi, ecx
mov ecx, dword [esp + 4]
mov eax, esi
sar eax, 0x1f
add esi, edx
adc eax, dword [esp + 0x2c]
mov edi, ecx
sub edi, ebx
cmp ecx, dword [esp + 0x24]
jne 0x436f6d
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], edi
mov ecx, edi
sar ecx, 3
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x436fd7
mov edi, eax
lea eax, [edi*8]
push eax
call fcn.00408350
add esp, 4
test ebx, ebx
je 0x436f54
mov dword [esp + 0x24], edi
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
jbe 0x4370c2
cmp ecx, eax
jbe 0x4370c2
test edx, edx
je 0x436f40
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 0x437058
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x437040
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 0x436f40
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 0x437070
jmp 0x436f40
mov ecx, edx
shr ecx, 2
mov dword [esp + 4], ebx
mov edi, eax
mov edx, dword [esp + 4]
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 0x436f40
mov eax, dword [esp + 0x20]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
jmp 0x436f40
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x43719c
mov dword [esp + 4], ecx
cmp eax, dword [esp + 0x58]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
je 0x437196
mov dword [esp + 0x14], ebx
push eax
call fcn.00408360
add esp, 4
mov dword [esp + 8], 0
jmp 0x437174
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
mov esi, dword [esp + 0x18]
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 0x436d10
jmp 0x4371ae
mov dword [esp + 0x14], ebx
jmp 0x437174
mov dword [esp + 4], ecx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
jmp 0x437174
mov dword [esp + 8], 0xc0c7c6c5
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xb1
xor cl, byte [esp + eax + 8]
add cl, 0x8b
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 7
jne 0x4371d0
mov eax, dword [0x44a8e4]
test eax, eax
je 0x437282
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [0x44a8e8]
nop
cmp dword [esi + edx*8], 0x16194952
je 0x437258
inc edx
cmp eax, edx
jne 0x437200
jmp 0x437282
push 0xbbf966b4
push dword [0x44a8d8]
call fcn.0043c0e0
add esp, 8
test eax, eax
je 0x43728f
mov ecx, dword [edi]
test ecx, ecx
je 0x436c40
mov dword [esp + 8], 0
lea edx, [esp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x43729b
cmp dword [esp + 8], 0
je 0x43729b
mov dword [edi + 4], 3
jmp 0x436c40
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x437282
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x1c]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44a8ec]
call fcn.004390d0
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 0x436c40
lea eax, [esp + 0x48]
push eax
call fcn.0043c930
add esp, 4
test al, al
je 0x436c40
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x4372c0
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x436c40