Function at 0x4103e0
Capabilities:
Create thread
Encode data using xor
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x460b40
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4780bc]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
mov ecx, 0x478a60
mov dword [ebp - 4], 0
call fcn.0040ae40
cmp byte [0x478784], 0
je 0x410832
mov ecx, 0x478a60
call fcn.00408580
cmp byte [0x478784], 0
je 0x410832
sub esp, 0x18
mov esi, esp
push 8
push str.44436152
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 8], 0
mov ecx, 0x478a60
call fcn.00407850
cmp byte [0x478784], 0
je 0x410832
mov esi, dword [0x4787bc]
xor eax, eax
xor edi, edi
mov dword [ebp + 8], eax
mov ebx, eax
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x44], eax
sub esi, dword [0x4787b8]
je 0x410536
cmp esi, 0x7fffffff
ja 0x41083a
cmp esi, 0x1000
jb 0x410500
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x41083f
push eax
call fcn.0045e3f0
add esp, 4
test eax, eax
je 0x410803
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41050b
push esi
call fcn.0045e3f0
add esp, 4
mov edi, eax
mov ecx, dword [0x4787b8]
lea eax, [edi + esi]
mov esi, dword [0x4787bc]
sub esi, ecx
mov dword [ebp], edi
push esi
push ecx
push edi
mov dword [ebp + 8], eax
call sub.VCRUNTIME140.dll_memmove
lea ebx, [esi + edi]
mov dword [ebp + 0x44], edi
add esp, 0xc
mov dword [ebp + 4], ebx
push 1
push 0x40
push 0x22
push str.Testy.exe
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.0040e980
sub ebx, dword [ebp + 0x44]
lea ecx, [ebp - 0xbc]
push 0
push ebx
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0xb8]
call fcn.0040f890
test eax, eax
jne 0x41058e
push eax
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
push str.Welcome_to_EG__n_n
call fcn.004121c0
push 6
push str.Login_Key:__n
call fcn.004121c0
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
add esp, 0x10
mov eax, dword [esi]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
push eax
push 0x478a60
push esi
call fcn.0040e600
add esp, 0xc
mov ecx, 0x478a60
call fcn.00408a80
cmp al, 1
jne 0x410832
cmp byte [0x478784], 0
je 0x410832
push 0x462f28
push 0x478788
call fcn.004064d0
add esp, 8
test al, al
jne 0x410832
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
push 0x462e84
push dword [0x478780]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
push eax
call fcn.0040e350
add esp, 8
mov dword [ebp + 0x40], 0x7c797579
mov dword [ebp + 0x44], 0x65666168
xor ecx, ecx
mov word [ebp + 0x48], 0x100
mov al, cl
add al, 0x4c
xor byte [ebp + ecx + 0x40], al
inc ecx
cmp ecx, 8
jb 0x410647
lea eax, [ebp + 0xf]
mov byte [ebp + 0x49], 0
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x10]
call fcn.004063e0
lea eax, [ebp + 0x10]
mov ecx, 0x478ad8
push eax
call fcn.004076e0
lea ecx, [ebp + 0x10]
call fcn.004017f0
mov dword [ebp + 0x44], 0x2a3c220f
xor ecx, ecx
mov word [ebp + 0x48], 0x100
mov al, cl
add al, 0x4c
xor byte [ebp + ecx + 0x44], al
inc ecx
cmp ecx, 4
jb 0x410692
lea eax, [ebp + 0x10]
mov byte [ebp + 0x49], 0
push eax
mov ecx, 0x478a60
call fcn.0040b6b0
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.004064d0
add esp, 8
lea ecx, [ebp + 0x10]
mov bl, al
call fcn.004017f0
test bl, bl
jne 0x410832
cmp byte [0x478784], bl
je 0x410832
mov dword [ebp + 0x44], 0x2a3c220f
xor ecx, ecx
mov word [ebp + 0x48], 0x100
nop dword [eax]
mov al, cl
add al, 0x4c
xor byte [ebp + ecx + 0x44], al
inc ecx
cmp ecx, 4
jb 0x4106f0
lea eax, [ebp + 0x44]
mov byte [ebp + 0x49], 0
push eax
push 0x478788
call fcn.004064d0
add esp, 8
test al, al
jne 0x410832
sub esp, 0x18
mov esi, esp
push 0xc
push str.Message_Here
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 0xc
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xc], 0
mov ecx, 0x478a60
call fcn.0040cc50
push 0
push 0
push 0
push 0x40f660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x44], 0x2a202208
xor ecx, ecx
mov word [ebp + 0x48], 0x100
mov al, cl
add al, 0x4c
xor byte [ebp + ecx + 0x44], al
inc ecx
cmp ecx, 4
jb 0x410776
lea eax, [ebp + 0x44]
mov byte [ebp + 0x49], 0
push 2
push eax
call fcn.004121c0
lea eax, [ebp + 0x28]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.0040e770
add esp, 0x10
lea ecx, [ebp - 0xbc]
call fcn.0040f380
test edi, edi
je 0x4107dd
mov ecx, dword [ebp + 8]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4107d3
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410803
push ecx
push edi
call fcn.0045e420
add esp, 8
mov ecx, dword [ebp + 0x3c]
cmp ecx, 0x10
jb 0x410813
mov edx, dword [ebp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410809
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410809
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.0045e42e
lea esp, [ebp + 0x50]
pop ebp
ret
push 0x2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.0040ac80
call fcn.00401750
int3