Function at 0x401350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, 0x8e
mov word [ebp - 0x90], ax
mov dword [ebp - 0x84], 0x213d
cmp dword [ebp - 0x84], 0xf985
ja 0x401462
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0x213d
je 0x4013a8
cmp dword [ebp - 0xb4], 0xf017
je 0x401412
jmp 0x401462
mov dl, byte [ebp + 0x14]
mov byte [ebp - 0xb8], dl
cmp byte [ebp - 0xb8], 0
je 0x4013c5
cmp byte [ebp - 0xb8], 0x7d
je 0x4013f6
jmp 0x401406
movzx eax, word [ebp - 0x90]
add eax, 0x14c
mov word [ebp - 0x90], ax
mov ecx, 0x431
mov word [ebp - 0xa0], cx
lea edx, [ebp - 0x84]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x80], 0x1f92
jmp 0x401406
mov eax, dword [ebp - 0x84]
sub eax, 0xf22
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov dword [ebp - 0x9c], 0x6ffd
jmp 0x401462
movzx edx, byte [ebp + 8]
push edx
movzx eax, byte [ebp + 8]
push eax
movzx ecx, byte [ebp + 8]
push ecx
movzx edx, byte [ebp + 0x14]
push edx
call fcn.00401350
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x84]
and ecx, 0xd944
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
push 0x5a
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00401820
lea edx, [ebp - 0x90]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0x1f92
je 0x401495
cmp dword [ebp - 0xbc], 0x7581
je 0x4017c5
jmp 0x4017ca
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0x213d
je 0x4014c8
cmp dword [ebp - 0xc0], 0x5bcd
je 0x40162b
jmp 0x40171e
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x88]
shl edx, cl
cmp eax, edx
jne 0x4015ad
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x90]
sub ecx, edx
mov eax, dword [ebp - 0x3c]
mov word [eax], cx
movzx ecx, word [ebp - 0x90]
sub ecx, 0x633
mov edx, dword [ebp - 0x3c]
mov word [edx], cx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
mov al, byte [ebp + 0xc]
mov byte [ebp + 0x10], al
mov ecx, dword [ebp - 0x80]
and ecx, dword [ebp - 0x88]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
sub eax, 0x35a5
mov dword [ebp - 0x84], eax
movzx ecx, byte [ebp + 8]
movzx edx, byte [ebp + 0x14]
add ecx, edx
mov byte [ebp + 0x10], cl
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x90]
add ecx, edx
mov eax, dword [ebp - 0x3c]
mov word [eax], cx
mov ecx, dword [ebp - 0x9c]
add ecx, 0xdf
mov dword [ebp - 0x9c], ecx
mov dl, byte [ebp + 0x14]
mov byte [ebp + 0xc], dl
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x90]
sub ecx, edx
mov eax, dword [ebp - 0x3c]
mov word [eax], cx
mov ecx, dword [ebp - 0x84]
xor ecx, 0x2944
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
cmp dword [ebp - 0x9c], 0x8e7a
jbe 0x4014e1
jmp 0x4015ff
movzx eax, word [ebp - 0x90]
sar eax, 0xf2
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx]
cmp eax, edx
jl 0x4015ff
push 0x72
lea eax, [ebp - 0xac]
push eax
push fcn.00401820
mov ecx, dword [ebp - 0x8c]
push ecx
call sub.COMCTL32.dll_SetWindowSubclass
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x90]
add eax, ecx
mov edx, dword [ebp - 0x3c]
mov word [edx], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], eax
movzx ecx, byte [ebp + 0x14]
movzx edx, byte [ebp + 0x10]
xor ecx, edx
movzx eax, byte [ebp + 8]
movzx edx, byte [ebp + 0xc]
and eax, edx
cmp ecx, eax
je 0x401626
movzx eax, byte [ebp + 0xc]
push eax
push 0xffffffffffffff97
call fcn.0049f890
add esp, 8
jmp 0x40171e
movzx ecx, word [ebp - 0x90]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0x891
je 0x40170c
cmp dword [ebp - 0xc4], 0xf1e
je 0x401659
jmp 0x40171e
push 0
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x38], eax
mov dl, byte [ebp + 0x10]
mov byte [ebp + 0xc], dl
movzx eax, word [ebp - 0x90]
sub eax, 0x764
mov ecx, dword [ebp - 0x3c]
mov word [ecx], ax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xc8], 0x3565
je 0x4016f9
cmp dword [ebp - 0xc8], 0x7b8f
je 0x4016b4
jmp 0x40170a
lea eax, [ebp - 0xac]
push eax
push fcn.00401120
mov ecx, dword [ebp - 0x94]
push ecx
call sub.COMCTL32.dll_RemoveWindowSubclass
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x90]
add eax, ecx
mov edx, dword [ebp - 0x3c]
mov word [edx], ax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
mov dword [ebp - 0x88], eax
jmp 0x40170a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
sub edx, 0x9f16
mov dword [ebp - 0x84], edx
jmp 0x40171e
movzx eax, word [ebp - 0x90]
add eax, 0x27d
mov ecx, dword [ebp - 0x3c]
mov word [ecx], ax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x84]
shl eax, cl
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
movzx edx, word [ebp - 0x90]
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0x15c
je 0x40174b
jmp 0x40175b
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
and ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
mov eax, dword [ebp - 0x80]
sar eax, 0x76
cmp eax, dword [ebp - 0x78]
jle 0x401779
mov cl, byte [ebp + 8]
mov byte [ebp + 0x10], cl
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0x90]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x61
je 0x401793
jmp 0x40179c
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x78]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x90]
add eax, ecx
mov edx, dword [ebp - 0x3c]
mov word [edx], ax
push 0xffffffffffffff8a
movzx eax, word [ebp - 0xa0]
push eax
call fcn.00401120
add esp, 8
jmp 0x4017ca
call fcn.0049fde0
mov cl, byte [ebp + 0xc]
mov byte [ebp + 8], cl
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x90]
xor ecx, edx
mov eax, dword [ebp - 0x3c]
mov word [eax], cx
movsx ecx, word [ebp - 0xa0]
or ecx, 0x48b
mov word [ebp - 0xa0], cx
mov eax, 0xc2
mov esp, ebp
pop ebp
ret 0x10