Function at 0x43f470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
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 + 0x34], 0
mov dword [esp + 0x24], 0x100000
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0xe0e7e6e5
mov byte [esp + 0xc], 0
mov eax, 0x33dd2a9
nop
movzx ecx, byte [esp + eax - 0x33dd2a1]
lea edx, [eax - 0x33dd200]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x32
xor ecx, 0xb2
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x33dd2a1], cl
inc eax
cmp eax, 0x33dd2ae
jne 0x43f4c0
mov eax, dword [esp + 8]
mov ecx, dword [0x450b18]
test ecx, ecx
je 0x43f54e
xor edx, edx
mov esi, dword [0x450b1c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xf3285e74
je 0x43f520
inc edx
cmp ecx, edx
jne 0x43f510
jmp 0x43f54e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43f54e
lea eax, [esp + 0x24]
lea edx, [esp + 0x14]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x450b20]
push ecx
call fcn.00441600
add esp, 0x24
test eax, eax
js 0x43fb72
cmp dword [edi + 4], 0
je 0x43fb00
xor edx, edx
cmp dword [edi + 4], 2
mov dword [esp + 0x50], 0x7fff
je 0x43f578
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0xfffeffff
je 0x43f58a
mov dword [esp + 0x4c], SysStringLen
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov esi, 0x10000
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x28], edi
jmp 0x43f610
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
nop
nop
mov esi, dword [esp + 0x38]
add esi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
adc edx, dword [esp + 0x44]
cmp esi, dword [esp + 0x4c]
mov eax, edx
sbb eax, dword [esp + 0x50]
jae 0x43fa88
mov dword [esp + 0x30], edx
mov ecx, edi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
push edx
push esi
call fcn.0043f040
mov edx, dword [esp + 0x30]
cmp eax, 0xbfffffff
ja 0x43fa88
mov dword [esp + 0x20], esi
test eax, eax
js 0x43f5f0
cmp dword [esp + 0x5c], 0x1000
jne 0x43f5f0
test byte [esp + 0x58], 0x66
je 0x43f5f0
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x24], esi
mov ecx, dword [esp + 0x3c]
mov eax, 0
mov dword [esp + 0x2c], ecx
sbb eax, ecx
mov ebx, dword [esp + 0x20]
jae 0x43f7e2
mov dword [esp + 8], 0xe0e7e6e5
mov byte [esp + 0xc], 0
mov eax, 0x33dd2a9
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x33dd2a1]
lea edx, [eax - 0x33dd200]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x32
xor ecx, 0xb2
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x33dd2a1], cl
inc eax
cmp eax, 0x33dd2ae
jne 0x43f690
mov eax, dword [0x450b18]
test eax, eax
je 0x43f71a
mov ecx, dword [esp + 8]
xor edx, edx
mov edi, dword [0x450b1c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x731cdbf3
je 0x43f6f0
inc edx
cmp eax, edx
jne 0x43f6e0
jmp 0x43f71a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x43f71a
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x450b20]
push eax
call fcn.00441600
add esp, 0x1c
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], esi
mov dword [esp + 8], 0xe0e7e6e5
mov byte [esp + 0xc], 0
mov eax, 0x33dd2a9
movzx ecx, byte [esp + eax - 0x33dd2a1]
lea edx, [eax - 0x33dd200]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x32
xor ecx, 0xb2
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x33dd2a1], cl
inc eax
cmp eax, 0x33dd2ae
jne 0x43f740
mov eax, dword [esp + 8]
mov ecx, dword [0x450b18]
test ecx, ecx
je 0x43f7ce
xor edx, edx
mov edi, dword [0x450b1c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xf3285e74
je 0x43f7a0
inc edx
cmp ecx, edx
jne 0x43f790
jmp 0x43f7ce
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43f7ce
push 4
push 0x3000
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 6
push dword [0x450b20]
push ecx
call fcn.00441600
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
js 0x43fa88
mov ecx, edi
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x30]
push esi
push dword [esp + 0x20]
push edx
push ebx
call fcn.0043f2f0
test eax, eax
jns 0x43f808
cmp eax, 0x8000000d
jne 0x43f5f0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x43f5f0
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
call fcn.0043fbc0
add esp, 0x18
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
cmp esi, eax
mov ebx, dword [esp + 4]
je 0x43f5dc
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp]
jmp 0x43f8aa
push dword [esp + 4]
call fcn.0040ce80
add esp, 4
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
lea eax, [edi + eax*8]
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x18]
add edx, eax
mov ebx, edi
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov dword [ebx + eax], edi
mov edi, eax
mov eax, dword [esp + 0x64]
mov dword [ebx + edi + 4], eax
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x54]
je 0x43fa31
mov edi, dword [esi]
sub edi, dword [esp + 0x14]
mov eax, edi
sar eax, 0x1f
add edi, ecx
mov dword [esp + 0x2c], edi
adc eax, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, edx
sub eax, ebx
cmp edx, dword [esp + 0x1c]
jne 0x43f889
mov dword [esp], edx
mov dword [esp + 0x18], eax
mov ecx, eax
sar ecx, 3
lea edx, [ecx + 1]
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, edx
ja 0x43f8e8
mov eax, edx
mov edi, eax
and edi, 8
mov ecx, eax
or ecx, 8
imul ecx, edi
xor edi, 8
mov dword [esp + 0x1c], eax
and eax, 0xfffffff7
imul eax, edi
add ecx, eax
push ecx
call fcn.0040ce70
add esp, 4
mov edi, eax
test ebx, ebx
je 0x43f870
cmp edi, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp]
mov dword [esp + 0x48], edi
jbe 0x43f9e2
cmp eax, edi
jbe 0x43f9e2
cmp dword [esp + 0x18], 0
je 0x43f860
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x18]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x48]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43f978
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 0x43f960
add eax, edx
add ecx, edx
add edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x43f860
neg edx
xor edi, edi
nop
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 0x43f990
jmp 0x43f860
mov ecx, dword [esp + 0x18]
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 + 0x18]
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], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43f860
mov eax, dword [esp + 0x18]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
jmp 0x43f860
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x60]
test eax, eax
je 0x43fa78
mov dword [esp], edx
cmp eax, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
je 0x43fa6f
mov dword [esp + 4], ebx
push eax
call fcn.0040ce80
add esp, 4
mov dword [esp + 8], 0
jmp 0x43f5f0
mov dword [esp + 4], ebx
jmp 0x43f5f0
mov dword [esp], edx
mov dword [esp + 4], ebx
mov edi, dword [esp + 0x28]
jmp 0x43f5f0
mov dword [esp + 8], 0xe0e7e6e5
mov byte [esp + 0xc], 0
mov eax, 0x33dd2a9
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x33dd2a1]
lea edx, [eax - 0x33dd200]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x32
xor ecx, 0xb2
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x33dd2a1], cl
inc eax
cmp eax, 0x33dd2ae
jne 0x43faa0
mov eax, dword [0x450b18]
test eax, eax
je 0x43fb72
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [0x450b1c]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x731cdbf3
je 0x43fb48
inc edx
cmp eax, edx
jne 0x43faf0
jmp 0x43fb72
push 0xf8eb88df
push dword [0x450b0c]
call fcn.00443d50
add esp, 8
test eax, eax
je 0x43fb7f
mov ecx, dword [edi]
test ecx, ecx
je 0x43f560
mov dword [esp + 8], 0
lea edx, [esp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x43fb8b
cmp dword [esp + 8], 0
je 0x43fb8b
mov dword [edi + 4], 3
jmp 0x43f560
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43fb72
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x450b20]
push eax
call fcn.00441600
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 0x43f560
lea eax, [esp + 0x40]
push eax
call fcn.00444680
add esp, 4
test al, al
je 0x43f560
mov eax, dword [esp + 0x40]
mov ecx, 2
cmp eax, 3
je 0x43fbb0
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x43f560