Function at 0x421ea8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f4
push ebx
push esi
push edi
call fcn.0041be84
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0xd4]
call fcn.00425ecc
mov ebx, eax
lea edi, [esp + 0x38]
xor eax, eax
mov ecx, 0xff
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x4c], 0
xor esi, esi
pop edi
mov dword [esp + 0x4c], edi
mov word [esp + 0x38], ax
mov ax, word [ebx + 0x18]
and ax, cx
lea ecx, [esp + 0x38]
xor ax, word [ebx + esi*2]
movzx eax, ax
push eax
call fcn.00419e3d
inc esi
mov ecx, 0xff
cmp esi, 0xc
jb 0x421ef3
cmp dword [esp + 0x4c], edi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x38]
cmova eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004128ca
push dword [esp + 0x10]
lea ecx, [esp + 0xc0]
push str.a.ico
call fcn.00425f4a
lea ecx, [esp + 0xa4]
push ecx
mov ecx, eax
call fcn.00422367
mov ebx, eax
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0x14], edi
jbe 0x421f65
mov ebx, dword [ebx]
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0xa4]
call fcn.004128ca
push dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push str.Error
call fcn.00425f4a
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00422367
lea ecx, [esp + 0x14]
call fcn.004128ca
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0xf0]
call fcn.00425f9f
mov ebx, eax
lea edi, [esp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x24], 0
mov edi, 0xff
mov dword [esp + 0x28], 7
xor esi, esi
mov word [esp + 0x14], ax
mov ax, word [ebx + 0x48]
lea ecx, [esp + 0x14]
and ax, di
xor ax, word [ebx + esi*2]
movzx eax, ax
push eax
call fcn.00419e3d
inc esi
cmp esi, 0x23
jb 0x421fd0
mov edx, dword [esp + 0x28]
push 7
pop esi
cmp edx, esi
jbe 0x422009
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
call fcn.00415f66
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004260f6
mov ebx, eax
lea edi, [esp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
xor esi, esi
mov word [esp + 0x14], ax
mov ax, word [ebx + 0x38]
mov ecx, 0xff
and ax, cx
lea ecx, [esp + 0x14]
xor ax, word [ebx + esi*2]
movzx eax, ax
push eax
call fcn.00419e3d
inc esi
cmp esi, 0x1b
jb 0x422038
mov edx, dword [esp + 0x28]
push 7
pop esi
cmp edx, esi
jbe 0x422076
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
call fcn.00415f66
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004261fe
mov ebx, eax
lea edi, [esp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x28], esi
xor eax, eax
mov dword [esp + 0x24], edi
mov word [esp + 0x14], ax
mov esi, edi
mov ax, word [ebx + 0x54]
mov ecx, 0xff
and ax, cx
lea ecx, [esp + 0x14]
xor ax, word [ebx + esi*2]
movzx eax, ax
push eax
call fcn.00419e3d
inc esi
cmp esi, 0x29
jb 0x4220a6
mov edx, dword [esp + 0x28]
cmp edx, 7
jbe 0x4220e2
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
call fcn.00415f66
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x7f00
mov dword [esp + 0x54], edi
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x34]
push 0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x5c], 0x421e80
mov dword [esp + 0x68], esi
mov dword [esp + 0x7c], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x42235c
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x80]
call fcn.0042636d
push ecx
push 5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.00412319
mov ebx, dword [esp + 0x30]
xor edx, edx
mov ax, word [ebx + edx + 2]
xor ax, word [ebx]
cmp dword [esp + 0x28], 7
movzx ecx, ax
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
mov word [eax + edx], cx
add edx, 2
cmp edx, 0xa
jb 0x422174
cmp dword [esp + 0x28], 7
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
xor ecx, ecx
push ecx
push esi
push ecx
push ecx
push dword [esp + 0x44]
push dword [esp + 0x24]
push ecx
push ecx
push SysReAllocString
push eax
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004128ca
mov ebx, dword [esp + 0x2c]
test edi, edi
je 0x42235c
push 0x3a4
lea eax, [esp + 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x144], edi
xor eax, eax
mov dword [esp + 0x140], 0x3bc
inc eax
mov dword [esp + 0x150], 0x8001
mov dword [esp + 0x148], eax
push 7
pop edi
push 0x8050
push 0
push 0
push eax
push ebx
push esi
mov dword [esp + 0x164], edi
call dword [sym.imp.USER32.dll_LoadImageW]
push dword [esp + 0x10]
mov dword [esp + 0x158], eax
push ecx
lea ecx, [esp + 0x80]
call fcn.0042636d
push ecx
push 5
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00412319
xor ebx, ebx
mov edx, ebx
mov ax, word [esi + edx + 2]
xor ax, word [esi]
cmp dword [esp + 0x28], edi
movzx ecx, ax
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
mov word [eax + edx], cx
add edx, 2
cmp edx, 0xa
jb 0x422264
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004128ca
lea eax, [esp + 0x140]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x42235c
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
mov edi, 0x5217c0
mov esi, str.CONOUT_
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
call fcn.0041c8b0
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
jmp 0x422337
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x42231b
lea eax, [esp + 0x140]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10