Function at 0x436ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0x100000
mov dword [esp + 0x10], 0
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
nop
nop
nop
nop
nop
movzx edx, byte [esp + edi + 0x14c498d1]
mov ebx, edx
xor ebx, edi
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x3d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x436d40
mov eax, dword [esp]
mov ecx, dword [0x4490f4]
test ecx, ecx
je 0x436dde
xor edx, edx
mov esi, dword [0x4490f8]
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x436db0
inc edx
cmp ecx, edx
jne 0x436da0
jmp 0x436dde
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x436dde
lea eax, [esp + 0x38]
lea edx, [esp + 0x10]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4490fc]
call fcn.00438910
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x24]
js 0x4374ce
cmp dword [esi + 4], 0
je 0x437460
mov eax, dword [esi + 4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp], 0x57574948
xor ecx, ecx
mov edx, ecx
add dl, 0x8e
xor dl, byte [esp + ecx]
add dl, 0x3a
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 4
jne 0x436e30
mov ebx, 0x7fff
cmp eax, 2
je 0x436e53
mov ebx, 0
mov eax, 0xfffeffff
je 0x436e5f
mov eax, SysReAllocString
mov edx, dword [esp]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x20], eax
cmp edx, eax
mov dword [esp + 0x34], ecx
mov eax, ecx
sbb eax, ebx
jae 0x4373bc
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], ebx
jmp 0x436ec4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
add edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
adc ecx, dword [esp + 0x54]
cmp edx, eax
mov dword [esp + 0x34], ecx
mov eax, ecx
sbb eax, ebx
jae 0x4373bc
mov dword [esp + 0x2c], edx
mov ecx, esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x44]
push edx
call fcn.00436800
mov edx, dword [esp + 0x2c]
cmp eax, 0xbfffffff
ja 0x4373bc
test eax, eax
js 0x436ea0
cmp dword [esp + 0x60], 0x1000
mov eax, dword [esp + 0x20]
jne 0x436ea4
test byte [esp + 0x5c], 0x66
je 0x436ea4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x38], eax
mov ecx, dword [esp + 0x4c]
mov eax, 0
mov dword [esp + 0x28], ecx
sbb eax, ecx
jae 0x4370de
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + edi + 0x14c498d1]
mov ebx, edx
xor ebx, edi
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x3d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x436f50
mov eax, dword [0x4490f4]
test eax, eax
je 0x436fea
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x4490f8]
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x436fc0
inc edx
cmp eax, edx
jne 0x436fb0
jmp 0x436fea
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x436fea
push 0x8000
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x1c
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
nop
nop
nop
nop
nop
movzx edx, byte [esp + edi + 0x14c498d1]
mov ebx, edx
xor ebx, edi
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x3d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x437020
mov eax, dword [esp]
mov ecx, dword [0x4490f4]
test ecx, ecx
mov ebx, dword [esp + 0x3c]
je 0x4370ce
xor edx, edx
mov esi, dword [0x4490f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x4370a0
inc edx
cmp ecx, edx
jne 0x437090
jmp 0x4370ce
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4370ce
push 4
push 0x3000
lea eax, [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4490fc]
call fcn.00438910
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
js 0x4373bc
mov ecx, esi
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x1c]
push dword [esp + 0x44]
push edx
call fcn.00436b20
test eax, eax
jns 0x437106
cmp eax, 0x8000000d
jne 0x437118
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jae 0x437125
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
jmp 0x4373b3
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
call fcn.00437520
add esp, 0x18
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ecx
cmp eax, ecx
je 0x43738a
mov dword [esp + 0x64], eax
mov esi, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
jmp 0x4371b8
push dword [esp + 0xc]
call fcn.004081c0
add esp, 4
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*8]
mov dword [esp + 0x18], eax
mov edx, ecx
mov edi, dword [esp + 0x6c]
add edx, edi
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov dword [ecx + edi], ebx
mov ebx, edi
mov edi, dword [esp + 0x14]
mov dword [ecx + ebx + 4], edi
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x28]
je 0x43734b
mov ebx, dword [esi]
sub ebx, dword [esp + 0x10]
mov edi, ebx
sar edi, 0x1f
add ebx, eax
mov dword [esp + 0x30], ebx
adc edi, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov edi, edx
sub edi, ecx
cmp edx, dword [esp + 0x18]
jne 0x437197
mov eax, edi
mov edi, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x6c], eax
mov ecx, eax
sar ecx, 3
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x4371fb
mov edx, eax
mov dword [esp + 0x18], edx
lea eax, [edx*8]
push eax
call fcn.004081b0
add esp, 4
mov ecx, eax
mov edx, dword [esp + 0xc]
test edx, edx
je 0x437180
mov eax, edx
xor eax, edi
mov ebx, edx
not ebx
and ebx, edi
add ebx, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x40], eax
sub ebx, eax
cmp ecx, edx
mov dword [esp + 0x58], ecx
jbe 0x4372f6
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4372f6
test ebx, ebx
je 0x437170
mov eax, dword [esp + 0x58]
add eax, ebx
dec eax
mov ecx, dword [esp + 0xc]
add ecx, ebx
dec ecx
mov edx, ebx
and edx, 7
je 0x437286
mov dword [esp + 0x1c], ebx
neg edx
xor edi, edi
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
dec edi
cmp edx, edi
jne 0x437270
add ecx, edi
add eax, edi
mov ebx, dword [esp + 0x1c]
add ebx, edi
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x68]
cmp edx, 0xfffffff8
ja 0x437170
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
mov edi, ebx
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
movzx ebx, byte [ecx + edx - 1]
mov byte [eax + edx - 1], bl
movzx ebx, byte [ecx + edx - 2]
mov byte [eax + edx - 2], bl
movzx ebx, byte [ecx + edx - 3]
mov byte [eax + edx - 3], bl
movzx ebx, byte [ecx + edx - 4]
mov byte [eax + edx - 4], bl
movzx ebx, byte [ecx + edx - 5]
mov byte [eax + edx - 5], bl
movzx ebx, byte [ecx + edx - 6]
mov byte [eax + edx - 6], bl
movzx ebx, byte [ecx + edx - 7]
mov byte [eax + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x4372a0
jmp 0x437170
mov dword [esp + 0x1c], ebx
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, dword [esp + 0x1c]
and edx, 0xfffffffc
lea edi, [ebx + edx]
mov ebx, dword [esp + 0x1c]
add edx, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x40], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x437170
and ebx, 2
movzx eax, byte [edx + ebx]
mov ecx, dword [esp + 0x40]
mov byte [ecx + ebx], al
jmp 0x437170
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov esi, dword [esp + 0x18]
mov dword [eax + 8], esi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4373a3
mov dword [esp + 0xc], ecx
cmp eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
je 0x4373af
push eax
mov edi, edx
call fcn.004081c0
mov edx, edi
add esp, 4
mov dword [esp], 0
jmp 0x4373af
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
jmp 0x4373af
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
jmp 0x436ea4
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + edi + 0x14c498d1]
mov ebx, edx
xor ebx, edi
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x3d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x4373e0
mov eax, dword [0x4490f4]
test eax, eax
je 0x4374ce
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x4490f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x4374a4
inc edx
cmp eax, edx
jne 0x437450
jmp 0x4374ce
push 0xbbf966b4
push dword [0x4490e8]
call fcn.0043b9b0
add esp, 8
test eax, eax
je 0x4374db
mov ecx, dword [esi]
test ecx, ecx
je 0x436df4
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x4374e7
cmp dword [esp], 0
je 0x4374e7
mov dword [esi + 4], 3
jmp 0x436df4
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x4374ce
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esi + 4], 1
jmp 0x436df4
lea eax, [esp + 0x50]
push eax
call fcn.0043c2d0
add esp, 4
test al, al
je 0x436df4
mov eax, dword [esp + 0x50]
mov ecx, 2
cmp eax, 3
je 0x43750c
mov ecx, eax
mov dword [esi + 4], ecx
jmp 0x436df4