Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x14]
push eax
push 0x4181dc
call dword [sym.imp.ole32.dll_CoGetObjectContext]
push 3
pop edi
mov dword [0x4194d8], eax
mov ebx, edi
xor esi, esi
mov ecx, dword [0x4193b8]
mov eax, esi
shl eax, 2
add eax, 0x402785
mov eax, dword [eax]
sub eax, dword [0x4194d8]
push 0xd5
sub eax, 0x1635cd1c
mov dword [ecx], eax
add dword [0x4193b8], 4
push 0
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor eax, eax
cmp ebx, edi
setne al
lea ebx, [eax + 2]
add esi, ebx
cmp esi, 0xa2
jb 0x401039
mov esi, dword [0x4193b8]
push str.qwshn8
xor ebx, ebx
push ebx
mov ebp, edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0x42
push 0
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [0x4194d8]
mov ecx, dword [esp + 0x34]
xor eax, 0xf4fdf873
add eax, dword [ecx + ebx*4]
push 0xfffffffffffffff8
push 0xffeb
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor eax, eax
add esi, 4
cmp ebp, edi
setne al
lea ebp, [eax + 2]
add ebx, ebp
cmp ebx, 0xa7
jb 0x401096
push str.AViXO9xKSWURd
push 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
push str.6P8bhe
xor ebx, ebx
push ebx
mov ebp, esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
mov ecx, dword [0x4194d8]
lea eax, [eax + ecx + 0x3922c8e4]
mov dword [ebp], eax
call esi
xor eax, eax
add ebp, 4
cmp dword [esp + 0x10], edi
setne al
add eax, 2
add ebx, eax
mov dword [esp + 0x10], eax
cmp ebx, 0xcf
jb 0x401100
push 0
push edi
push 0
call dword [sym.imp.USER32.dll_EnableScrollBar]
mov ebx, ebp
mov dword [esp + 0x10], edi
call dword [sym.imp.USER32.dll_GetClipboardOwner]
xor ebp, ebp
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ebp*4]
sub eax, dword [0x4194d8]
add eax, 0x47a62a32
mov dword [ebx], eax
add ebx, 4
call esi
xor eax, eax
cmp dword [esp + 0x10], edi
setne al
add eax, 2
add ebp, eax
mov dword [esp + 0x10], eax
cmp ebp, 0xb4
jb 0x40114f
mov ebx, edi
xor ebp, ebp
mov eax, dword [0x4193f0]
mov ecx, dword [0x4194d8]
mov eax, dword [eax + ebp*4]
lea eax, [eax + ecx + 0x37c48614]
mov ecx, dword [0x419488]
mov dword [ecx], eax
call esi
add dword [0x419488], 4
xor eax, eax
cmp ebx, edi
setne al
lea ebx, [eax + 2]
add ebp, ebx
cmp ebp, 0xcf
jb 0x401186
call esi
mov ebp, dword [0x419488]
xor ebx, ebx
mov ecx, edi
xor eax, eax
mov edx, dword [0x419418]
mov edx, dword [edx + eax*4]
sub edx, dword [0x4194d8]
sub edx, 0x364f5d41
mov dword [ebp], edx
xor edx, edx
add ebp, 4
cmp ecx, edi
setne dl
lea ecx, [edx + 2]
add eax, ecx
cmp eax, 0xeb
jb 0x4011ce
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_EnableScrollBar]
mov dword [esp + 0x10], edi
call esi
mov eax, dword [0x419478]
mov eax, dword [eax + ebx*4]
mov ecx, dword [0x4194d8]
lea eax, [eax + ecx + 0x230ff55d]
mov dword [ebp], eax
add ebp, 4
call dword [sym.imp.USER32.dll_GetClipboardOwner]
xor eax, eax
cmp dword [esp + 0x10], edi
setne al
add eax, 2
add ebx, eax
mov dword [esp + 0x10], eax
cmp ebx, 0xa2
jb 0x401209
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret