Function at 0x408620
Capabilities:
Create thread
Hide graphical window
Log keystrokes via application hook
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471665
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x48d030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xe8], edi
cmp dword [0x491a88], 0
jne 0x408697
push 0x68
call fcn.0046fb41
mov esi, eax
mov dword [ebp - 0xec], esi
push 0x68
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
push 0x68
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
mov ecx, esi
call fcn.00406e50
mov dword [0x491a88], eax
mov eax, dword [ebp + 8]
push 0x100
push 0x491a90
push 0x67
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x4801d0
push 0x10
call fcn.0046fb71
mov esi, eax
add esp, 8
test esi, esi
je 0x4086f6
mov dword [ebp - 4], 1
mov ecx, dword [0x491c04]
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2WebMessageReceivedEventHandler_.0
test ecx, ecx
je 0x4086e9
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [esi + 0xc], edi
mov eax, esi
mov dword [esi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2WebMessageReceivedEventHandler_.virtual_0
jmp 0x4086f8
xor eax, eax
mov ecx, dword [edi + 0x60]
mov dword [edi + 0x60], eax
mov dword [ebp - 4], 2
test ecx, ecx
je 0x40870f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 4]
push 0
push 0
push 0
push bind
push 0
push bind
push 0xcf0000
push 0x491a90
push 0x491988
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [edi + 8], eax
test eax, eax
je 0x408afa
push edi
push 0xffffffffffffffeb
push eax
mov dword [0x491a8c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.00405b40
push 0
push 0
push 0
push 0x4083a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x48]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x38]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x34]
add eax, 0x1fe
push 0x11
push dword [edi + 8]
mov dword [edi + 0xc], eax
lea eax, [ecx + 0x4b]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push 0
push 0x406f60
push 0xe
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x491c18], eax
test eax, eax
jne 0x4087ef
call esi
push eax
push str.Error:__x__n
call fcn.004010b0
add esp, 8
push 0
push 0
push 0x406fe0
push 0xd
call edi
mov dword [0x491c1c], eax
test eax, eax
jne 0x408815
call esi
push eax
push str.Error:__x__n
call fcn.004010b0
add esp, 8
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
mov esi, eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xe4]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push 0x40008
push 0xffffffffffffffec
push dword [ebp - 0xec]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0xbc], 0x180000
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x90000000
push 0xfffffffffffffff0
push dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x40
push edi
push esi
mov esi, dword [ebp - 0xec]
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 3
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
mov edi, dword [ebp - 0xe8]
push dword [ebp + 0xc]
push dword [edi + 8]
call esi
push dword [edi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [ebp - 0x28]
call fcn.0040fe30
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 0xa
push str.User_Data
cmp eax, 0xa
jb 0x40890b
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 0xa]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xa], 0
jmp 0x408922
mov byte [ebp - 0xe8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xe8]
push 0xa
call fcn.00416f70
push 0x4801d0
push 0x10
xor esi, esi
call fcn.0046fb71
add esp, 8
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x40896f
mov byte [ebp - 4], 5
mov ecx, dword [0x491c04]
mov dword [eax + 8], 1
mov dword [eax], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
test ecx, ecx
je 0x408964
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp - 0xe8]
mov dword [eax + 0xc], edi
mov esi, eax
mov dword [eax], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
mov dword [ebp - 0x108], esi
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x104], xmm0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4089a7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x104]
call fcn.004170d0
lea edx, [ebp - 0x104]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x120]
call fcn.00407050
cmp dword [eax + 0x14], 8
jb 0x4089da
mov eax, dword [eax]
push esi
push 0
push eax
push 0
call dword [sym.imp.WebView2Loader.dll_CreateCoreWebView2EnvironmentWithOptions]
mov ecx, dword [ebp - 0x10c]
mov edi, eax
cmp ecx, 8
jb 0x408a24
mov edx, dword [ebp - 0x120]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408a1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a71
push ecx
push edx
call fcn.0046ff2c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
cmp ecx, 0x10
jb 0x408a81
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408a77
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0046ff2c
add esp, 8
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0xf
mov byte [ebp - 0x104], 0
mov byte [ebp - 4], 8
test esi, esi
je 0x408aaa
mov eax, dword [esi]
push esi
call dword [eax + 8]
test edi, edi
jns 0x408abd
push str.Content_WebViews_environment_creation_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
jmp 0x408ac2
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x408af8
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408aee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408aee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0046ff2c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f931
mov esp, ebp
pop ebp
ret 8