Function at 0x43c570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], 0x100000
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x9c9d9a9b
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
cmp eax, 3
ja 0x43c61e
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [esp + eax + 0x18]
lea edx, [ecx + ecx]
and edx, 0x7b3f7e34
mov esi, ecx
not esi
or esi, 0x3d9fbf1a
add esi, ecx
sub ecx, edx
lea ecx, [ecx + esi*2]
add ecx, 0x3d9fbf1c
xor ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
add al, 0x7e
mov ecx, dword [esp + 0x20]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, 4
jb 0x43c5d0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44e374]
test ecx, ecx
je 0x43c67e
xor edx, edx
mov esi, dword [0x44e378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x633c81d
je 0x43c650
inc edx
cmp ecx, edx
jne 0x43c640
jmp 0x43c67e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43c67e
lea eax, [esp + 0x40]
lea edx, [esp + 0x14]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x44e37c]
push ecx
call fcn.0043e4b0
add esp, 0x24
test eax, eax
js 0x43ccb2
cmp dword [ebx + 4], 0
je 0x43cc40
xor edx, edx
cmp dword [ebx + 4], 2
mov esi, 0x7fff
je 0x43c6a2
mov esi, 0
mov dword [esp + 0x4c], 0xfffeffff
je 0x43c6b4
mov dword [esp + 0x4c], SysStringLen
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov edi, 0x10000
mov dword [esp + 0x48], esi
jmp 0x43c70e
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
adc edx, dword [esp + 0x24]
cmp edi, dword [esp + 0x4c]
mov eax, edx
sbb eax, esi
jae 0x43cba9
mov dword [esp + 0x44], edx
mov ecx, ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push edx
push edi
call fcn.0043c020
cmp eax, 0xbfffffff
ja 0x43cba9
test eax, eax
js 0x43c6f0
cmp dword [esp + 0x58], 0x1000
jne 0x43c6f0
test byte [esp + 0x54], 0x66
je 0x43c6f0
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x40], eax
mov edx, dword [esp + 0x1c]
mov ecx, 0
sbb ecx, edx
jae 0x43c902
mov dword [esp + 0xc], 0x9c9d9a9b
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x43c7c9
nop
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0xc]
lea edx, [ecx + ecx]
and edx, 0x7b3f7e34
mov esi, ecx
not esi
or esi, 0x3d9fbf1a
add esi, ecx
sub ecx, edx
lea ecx, [ecx + esi*2]
add ecx, 0x3d9fbf1c
xor ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
add al, 0x7e
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x43c780
mov eax, dword [0x44e374]
test eax, eax
je 0x43c81a
mov ecx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [0x44e378]
nop
nop
cmp dword [esi + edx*8], 0x44caaeb6
je 0x43c7f0
inc edx
cmp eax, edx
jne 0x43c7e0
jmp 0x43c81a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43c81a
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x44e37c]
push eax
call fcn.0043e4b0
add esp, 0x1c
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], 0x9c9d9a9b
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x43c899
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0xc]
lea edx, [ecx + ecx]
and edx, 0x7b3f7e34
mov esi, ecx
not esi
or esi, 0x3d9fbf1a
add esi, ecx
sub ecx, edx
lea ecx, [ecx + esi*2]
add ecx, 0x3d9fbf1c
xor ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
add al, 0x7e
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x43c850
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44e374]
test ecx, ecx
je 0x43c8ee
xor edx, edx
mov esi, dword [0x44e378]
nop
cmp dword [esi + edx*8], 0x633c81d
je 0x43c8c0
inc edx
cmp ecx, edx
jne 0x43c8b0
jmp 0x43c8ee
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43c8ee
push 4
push 0x3000
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 6
push dword [0x44e37c]
push ecx
call fcn.0043e4b0
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x48]
js 0x43cba9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x50], edi
mov edi, esp
push edi
push edx
push eax
push dword [esp + 0x20]
push dword [esp + 0x54]
push dword [esp + 0x64]
call fcn.0043c310
test eax, eax
jns 0x43c92d
cmp eax, 0x8000000d
jne 0x43c6f0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, dword [ebp + 0x10]
sbb ecx, 0
jb 0x43c6f0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x48]
push eax
call fcn.0043cd00
add esp, 0x18
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp ecx, edx
je 0x43c6f0
mov dword [esp + 0x64], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x68], edx
jmp 0x43c9dc
push dword [esp + 0x10]
call fcn.0040c480
add esp, 4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
lea eax, [esi + eax*8]
mov dword [esp + 0x10], eax
mov edi, esi
add edi, ebx
mov eax, esi
mov esi, ebx
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov dword [eax + esi], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + esi + 4], ecx
add edi, 8
mov ecx, dword [esp + 0x78]
add ecx, 4
cmp ecx, edx
je 0x43cb68
mov dword [esp + 0x78], ecx
mov ecx, dword [ecx]
sub ecx, dword [esp + 0x14]
mov esi, ecx
sar esi, 0x1f
add ecx, dword [esp + 0x50]
adc esi, ebx
mov dword [esp + 0x74], esi
mov esi, edi
sub esi, eax
cmp edi, dword [esp + 0x10]
jne 0x43c9bf
mov dword [esp + 0x70], ecx
mov dword [esp + 0x10], eax
mov ecx, esi
sar ecx, 3
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
mov ebx, esi
ja 0x43ca1d
mov edx, eax
mov eax, edx
and eax, 0xfffffff7
mov ecx, edx
and ecx, 8
mov esi, edx
mov dword [esp + 0x6c], edx
or edx, 8
imul edx, ecx
xor ecx, 8
imul ecx, eax
add edx, ecx
push edx
call fcn.0040c470
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43c9a0
cmp esi, eax
mov dword [esp + 0x30], ebx
jbe 0x43cb12
cmp edi, esi
jbe 0x43cb12
test ebx, ebx
je 0x43c990
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
add eax, edx
dec eax
mov dword [esp + 0x2c], esi
lea ecx, [esi + edx]
dec ecx
mov esi, edx
and esi, 7
je 0x43caa4
neg esi
xor edx, edx
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x43ca90
add eax, edx
add ecx, edx
add edx, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
sub esi, edi
cmp esi, 0xfffffff8
mov esi, dword [esp + 0x2c]
ja 0x43c990
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 0x43cac0
jmp 0x43c990
mov ecx, ebx
shr ecx, 2
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x10]
mov eax, esi
mov edi, dword [esp + 0x2c]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
mov eax, dword [esp + 0x2c]
add eax, edx
add edx, esi
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x2c]
test bl, 1
je 0x43c990
mov ecx, dword [esp + 0x30]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
jmp 0x43c990
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x60]
test eax, eax
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x48]
je 0x43c6f0
cmp eax, edx
je 0x43c6f0
push eax
call fcn.0040c480
add esp, 4
mov dword [esp + 0x34], 0
jmp 0x43c6f0
mov dword [esp + 0xc], 0x9c9d9a9b
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x43cc09
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0xc]
lea edx, [ecx + ecx]
and edx, 0x7b3f7e34
mov esi, ecx
not esi
or esi, 0x3d9fbf1a
add esi, ecx
sub ecx, edx
lea ecx, [ecx + esi*2]
add ecx, 0x3d9fbf1c
xor ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
add al, 0x7e
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x43cbc0
mov eax, dword [0x44e374]
test eax, eax
je 0x43ccb2
mov ecx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [0x44e378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x44caaeb6
je 0x43cc88
inc edx
cmp eax, edx
jne 0x43cc30
jmp 0x43ccb2
push 0xfb1631b0
push dword [0x44e368]
call fcn.004411b0
add esp, 8
test eax, eax
je 0x43ccbf
mov ecx, dword [ebx]
test ecx, ecx
je 0x43c690
mov dword [esp + 0x34], 0
lea edx, [esp + 0x34]
push edx
push ecx
call eax
test eax, eax
je 0x43cccb
cmp dword [esp + 0x34], 0
je 0x43cccb
mov dword [ebx + 4], 3
jmp 0x43c690
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43ccb2
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x44e37c]
push eax
call fcn.0043e4b0
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [ebx + 4], 1
jmp 0x43c690
lea eax, [esp + 0x20]
push eax
call fcn.00441a70
add esp, 4
test al, al
je 0x43c690
mov eax, dword [esp + 0x20]
mov ecx, 2
cmp eax, 3
je 0x43ccf0
mov ecx, eax
mov dword [ebx + 4], ecx
jmp 0x43c690