Function at 0x436240
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 + 0x34], 0x100000
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x1c1d1a1b
mov dword [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x3a
xor cl, byte [esp + eax + 4]
add cl, 0xde
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 8
jne 0x4362a0
mov eax, dword [esp + 4]
mov ecx, dword [0x4497f8]
test ecx, ecx
je 0x43630e
xor edx, edx
mov esi, dword [0x4497fc]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x4362e0
inc edx
cmp ecx, edx
jne 0x4362d0
jmp 0x43630e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43630e
lea eax, [esp + 0x34]
lea edx, [esp + 0x18]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x449800]
call fcn.00438810
add esp, 0x24
test eax, eax
js 0x436942
cmp dword [edi + 4], 0
je 0x4368d0
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 + 4], 0xe3e3e1e0
mov dword [esp + 8], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0xa8
xor dl, byte [esp + ecx + 4]
add dl, 0xb8
mov byte [esp + ecx + 4], dl
inc ecx
cmp ecx, 8
jne 0x436370
mov dword [esp + 0x38], 0x7fff
cmp eax, 2
je 0x43639b
mov dword [esp + 0x38], 0
mov eax, 0xfffeffff
je 0x4363a7
mov eax, SysReAllocString
mov ecx, dword [esp + 4]
mov edx, ecx
sar edx, 0x1f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
cmp ecx, eax
mov dword [esp + 0x2c], edx
mov eax, edx
sbb eax, dword [esp + 0x38]
jae 0x436874
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x58], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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 dword [esp + 0x44]
call fcn.00435dc0
cmp eax, 0xbfffffff
ja 0x436874
test eax, eax
js 0x436820
cmp dword [esp + 0x60], 0x1000
jne 0x436820
test byte [esp + 0x5c], 0x66
je 0x436820
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x34], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x43657a
mov dword [esp + 4], 0x1c1d1a1b
mov dword [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x3a
xor cl, byte [esp + eax + 4]
add cl, 0xde
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 8
jne 0x436470
mov eax, dword [0x4497f8]
test eax, eax
je 0x4364da
mov ecx, dword [esp + 4]
xor edx, edx
mov edi, dword [0x4497fc]
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x4364b0
inc edx
cmp eax, edx
jne 0x4364a0
jmp 0x4364da
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x4364da
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x449800]
call fcn.00438810
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], esi
mov dword [esp + 4], 0x1c1d1a1b
mov dword [esp + 8], 0
xor eax, eax
mov ecx, eax
add cl, 0x3a
xor cl, byte [esp + eax + 4]
add cl, 0xde
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 8
jne 0x436500
mov eax, dword [esp + 4]
mov ecx, dword [0x4497f8]
test ecx, ecx
je 0x43656e
xor edx, edx
mov edi, dword [0x4497fc]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x436540
inc edx
cmp ecx, edx
jne 0x436530
jmp 0x43656e
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43656e
push 4
push 0x3000
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x449800]
call fcn.00438810
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x58]
js 0x436874
mov ecx, edi
lea eax, [esp + 0x70]
push eax
push ebx
push esi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x44]
call fcn.004360f0
test eax, eax
jns 0x4365a3
cmp eax, 0x8000000d
jne 0x436820
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x436820
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
call fcn.00436990
add esp, 0x18
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp esi, eax
mov ebx, dword [esp + 0x14]
je 0x436803
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
jmp 0x436646
push dword [esp + 0x14]
call fcn.00408640
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
lea eax, [ecx + eax*8]
mov dword [esp + 0x20], eax
mov ebx, ecx
mov edx, dword [esp + 0x24]
add ecx, edx
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x6c]
mov dword [ebx + edx], edi
mov edi, edx
mov edx, dword [esp + 0x68]
mov dword [ebx + edi + 4], edx
add ecx, 8
add esi, 4
cmp esi, eax
je 0x4367c3
mov edi, dword [esi]
sub edi, dword [esp + 0x18]
mov edx, edi
sar edx, 0x1f
add edi, dword [esp + 0x30]
mov dword [esp + 0x6c], edi
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x68], edx
mov edx, ecx
sub edx, ebx
cmp ecx, dword [esp + 0x20]
jne 0x436627
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov ecx, edx
sar ecx, 3
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x436687
mov edx, eax
mov dword [esp + 0x20], edx
lea eax, [edx*8]
push eax
call fcn.00408630
add esp, 4
mov ecx, eax
test ebx, ebx
je 0x436610
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
jbe 0x436772
cmp eax, ecx
jbe 0x436772
test edx, edx
je 0x436600
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x28]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x436708
neg edi
xor edx, edx
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4366f0
add eax, edx
add ecx, edx
add edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov edi, ebx
sub edi, dword [esp + 0x10]
cmp edi, 0xfffffff8
ja 0x436600
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 0x436720
jmp 0x436600
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, dword [esp + 0x28]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov ecx, edx
and edx, 0xfffffffc
mov eax, dword [esp + 0x28]
lea edi, [eax + edx]
add edx, ebx
mov ebx, ecx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x10], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x436600
mov eax, dword [esp + 0x24]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x10]
mov byte [edx + eax], cl
jmp 0x436600
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x64]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x43686a
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x54]
je 0x436864
mov dword [esp + 0x14], ebx
push eax
call fcn.00408640
add esp, 4
mov dword [esp + 4], 0
jmp 0x436824
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edi, ecx
and edi, edx
xor ecx, edx
mov edx, ebx
and edx, eax
xor ebx, eax
shld edi, edx, 1
add edx, edx
add ebx, edx
adc ecx, edi
mov dword [esp + 0x30], ebx
cmp ebx, esi
mov dword [esp + 0x2c], ecx
sbb ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x58]
jb 0x4363f0
jmp 0x436874
mov dword [esp + 0x14], ebx
jmp 0x436824
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jmp 0x436824
mov dword [esp + 4], 0x1c1d1a1b
mov dword [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x3a
xor cl, byte [esp + eax + 4]
add cl, 0xde
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 8
jne 0x436890
mov eax, dword [0x4497f8]
test eax, eax
je 0x436942
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0x4497fc]
nop
cmp dword [esi + edx*8], 0x16194952
je 0x436918
inc edx
cmp eax, edx
jne 0x4368c0
jmp 0x436942
push 0xbbf966b4
push dword [0x4497ec]
call fcn.0043b560
add esp, 8
test eax, eax
je 0x43694f
mov ecx, dword [edi]
test ecx, ecx
je 0x436320
mov dword [esp + 4], 0
lea edx, [esp + 4]
push edx
push ecx
call eax
test eax, eax
je 0x43695b
cmp dword [esp + 4], 0
je 0x43695b
mov dword [edi + 4], 3
jmp 0x436320
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x436942
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x449800]
call fcn.00438810
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 0x436320
lea eax, [esp + 0x48]
push eax
call fcn.0043be00
add esp, 4
test al, al
je 0x436320
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x436980
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x436320