Function at 0x405970
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x409c73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
mov dx, word [0x40ee3c]
push ebx
push ebp
push esi
push edi
mov ecx, 0x43
xor eax, eax
lea edi, [esp + 0x344]
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x146]
mov word [esp + 0x144], dx
mov word [esp + 0x44], dx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x244], dx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x246]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x13]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x24], al
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
lea ecx, [esp + 0x244]
push 0xff
push ecx
push ebp
mov dword [esp + 0x464], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
lea ecx, [esp + 0x18]
mov dl, byte [esp + 0x17]
mov byte [esp + 0x18], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x405a73
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
mov esi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x464], 2
call fcn.00404b30
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x458], 1
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x45c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
jne 0x405b05
xor eax, eax
jmp 0x405b0e
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 4
shl eax, 4
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea eax, [eax + ecx - 0x10]
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x405b24
mov edx, eax
lea ecx, [esp + 0x44]
mov esi, 0xff
lea eax, [esp + 0x44]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x405b42
mov byte [eax], cl
inc eax
dec esi
jne 0x405b33
jmp 0x405b46
cmp esi, ebp
jne 0x405b47
dec eax
mov edx, str.notepad.exe
lea ecx, [esp + 0x144]
mov byte [eax], 0
mov esi, 0xff
lea eax, [esp + 0x144]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x405b73
mov byte [eax], cl
inc eax
dec esi
jne 0x405b64
jmp 0x405b77
cmp esi, ebp
jne 0x405b78
dec eax
mov byte [eax], 0
mov edx, 0xff
lea eax, [esp + 0x44]
mov cl, byte [eax]
test cl, cl
je 0x405b92
mov byte [eax], cl
inc eax
dec edx
jne 0x405b84
jmp 0x405b96
cmp edx, ebp
jne 0x405b97
dec eax
lea edx, [esp + 0x144]
mov byte [eax], 0
push edx
lea eax, [esp + 0x348]
push 0xff
push eax
call fcn.00405c70
lea ecx, [esp + 0x144]
push ecx
call fcn.00404ca0
lea edx, [esp + 0x48]
mov esi, eax
push edx
call fcn.00404ca0
add esp, 8
mov dword [esp + 0x444], eax
lea eax, [esp + 0x344]
mov dword [esp + 0x448], esi
push ebp
push ebp
push eax
push 0x404fb0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push eax
push 0
push 0x1f0fff
call ebp
mov esi, eax
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
call edi
push str.Sleep_1000__Login
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
push 0
push 0
push 0
push 0x4052d0
push 0
push 0
call fcn.00408b50
push 1
push 0
push 0
push 0
push 0x405610
push 0
push 0
mov esi, eax
call fcn.00408b50
add esp, 0x38
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
jmp 0x405c07