Function at 0x1400231c0
Capabilities:
Access pe header
Encode data using xor
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400deb80]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
lea rcx, [0x14007c230]
call fcn.1400238f0
xor ebx, ebx
mov dword [rbp - 0x18], eax
test rsi, rsi
jne 0x1400232f2
xor edx, edx
mov cl, 0x5b
call fcn.14001a420
lea edx, [rbx + 1]
mov byte [rbp - 0x40], al
mov cl, 0x5d
call fcn.14001a420
lea edx, [rbx + 2]
mov byte [rbp - 0x3f], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
lea edx, [rbx + 3]
mov byte [rbp - 0x3e], al
mov cl, 0x49
call fcn.14001a420
lea edx, [rbx + 4]
mov byte [rbp - 0x3d], al
mov cl, WSAGetLastError
call fcn.14001a420
lea edx, [rbx + 5]
mov byte [rbp - 0x3c], al
mov cl, 0x76
call fcn.14001a420
lea edx, [rbx + 6]
mov byte [rbp - 0x3b], al
mov cl, 0x61
call fcn.14001a420
lea edx, [rbx + 7]
mov byte [rbp - 0x3a], al
mov cl, 0x69
call fcn.14001a420
lea edx, [rbx + 8]
mov byte [rbp - 0x39], al
mov cl, 0x6c
call fcn.14001a420
lea edx, [rbx + 9]
mov byte [rbp - 0x38], al
mov cl, 0x64
call fcn.14001a420
lea edx, [rbx + 0xa]
mov byte [rbp - 0x37], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
lea edx, [rbx + 0xb]
mov byte [rbp - 0x36], al
mov cl, 0x44
call fcn.14001a420
lea edx, [rbx + 0xc]
mov byte [rbp - 0x35], al
mov cl, 0x4c
call fcn.14001a420
lea edx, [rbx + 0xd]
mov byte [rbp - 0x34], al
mov cl, 0x4c
call fcn.14001a420
lea edx, [rbx + 0xe]
mov byte [rbp - 0x33], al
mov cl, 0xa
call fcn.14001a420
mov byte [rbp - 0x32], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x31], al
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xf
jb 0x1400232d0
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x31], bl
call fcn.140029010
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x1400233f2
xor edx, edx
mov cl, 0x5b
call fcn.14001a420
lea edx, [rdi + 1]
mov byte [rbp - 0x40], al
mov cl, 0x5d
call fcn.14001a420
lea edx, [rdi + 2]
mov byte [rbp - 0x3f], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
lea edx, [rdi + 3]
mov byte [rbp - 0x3e], al
mov cl, 0x49
call fcn.14001a420
lea edx, [rdi + 4]
mov byte [rbp - 0x3d], al
mov cl, WSAGetLastError
call fcn.14001a420
lea edx, [rdi + 5]
mov byte [rbp - 0x3c], al
mov cl, 0x76
call fcn.14001a420
lea edx, [rdi + 6]
mov byte [rbp - 0x3b], al
mov cl, 0x61
call fcn.14001a420
lea edx, [rdi + 7]
mov byte [rbp - 0x3a], al
mov cl, 0x69
call fcn.14001a420
lea edx, [rdi + 8]
mov byte [rbp - 0x39], al
mov cl, 0x6c
call fcn.14001a420
lea edx, [rdi + 9]
mov byte [rbp - 0x38], al
mov cl, 0x64
call fcn.14001a420
lea edx, [rdi + 0xa]
mov byte [rbp - 0x37], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
lea edx, [rdi + 0xb]
mov byte [rbp - 0x36], al
mov cl, 0x50
call fcn.14001a420
lea edx, [rdi + 0xc]
mov byte [rbp - 0x35], al
mov cl, 0x45
call fcn.14001a420
lea edx, [rdi + 0xd]
mov byte [rbp - 0x34], al
mov cl, 0xa
call fcn.14001a420
mov byte [rbp - 0x33], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x32], al
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xe
jb 0x1400233d0
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x32], bl
call fcn.140029010
mov ecx, dword [rbp - 0x18]
call fcn.140024f40
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r15d, eax
cmp dword [rbp - 0x18], ebx
je 0x1400236ff
test eax, eax
je 0x1400236ff
mov qword [rsp + 0x88], r14
call fcn.14001e2b0
mov edx, dword [rbp - 0x18]
mov rcx, rax
call fcn.140019310
call fcn.14001e2b0
mov edx, dword [rdi + 0x50]
mov r8d, 0x40
mov rcx, rax
call fcn.140019520
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov r14, rax
call fcn.1400263e0
test eax, eax
jne 0x14002346e
call fcn.14001e2b0
mov rdx, r14
mov rcx, rax
call fcn.1400195c0
mov r8, rdi
mov rdx, rsi
mov ecx, r15d
call fcn.1400266a0
test eax, eax
jne 0x140023490
call fcn.14001e2b0
mov rdx, r14
mov rcx, rax
call fcn.1400195c0
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140026900
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov ecx, r15d
call fcn.140024610
mov rdx, rdi
mov rcx, r14
call fcn.140024e10
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov cl, 0x5b
call fcn.14001a420
mov edx, 1
mov byte [rbp - 0x40], al
mov cl, 0x5d
call fcn.14001a420
mov edx, 2
mov byte [rbp - 0x3f], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, 3
mov byte [rbp - 0x3e], al
mov cl, 0x53
call fcn.14001a420
mov edx, 4
mov byte [rbp - 0x3d], al
mov cl, 0x75
call fcn.14001a420
mov edx, 5
mov byte [rbp - 0x3c], al
mov cl, 0x63
call fcn.14001a420
mov edx, 6
mov byte [rbp - 0x3b], al
mov cl, 0x63
call fcn.14001a420
mov edx, 7
mov byte [rbp - 0x3a], al
mov cl, 0x65
call fcn.14001a420
mov edx, 8
mov byte [rbp - 0x39], al
mov cl, reloc.WS2_32.dll_WSAStartup
call fcn.14001a420
mov edx, 9
mov byte [rbp - 0x38], al
mov cl, reloc.WS2_32.dll_WSAStartup
call fcn.14001a420
mov edx, 0xa
mov byte [rbp - 0x37], al
mov cl, 0x66
call fcn.14001a420
mov edx, listen
mov byte [rbp - 0x36], al
mov cl, 0x75
call fcn.14001a420
mov edx, listen
mov byte [rbp - 0x35], al
mov cl, 0x6c
call fcn.14001a420
mov edx, reloc.WS2_32.dll_listen
mov byte [rbp - 0x34], al
mov cl, 0x6c
call fcn.14001a420
mov edx, reloc.WS2_32.dll_ntohl
mov byte [rbp - 0x33], al
mov cl, 0x79
call fcn.14001a420
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x32], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov byte [rbp - 0x31], al
mov edx, reloc.WS2_32.dll_recv
mov cl, 0x49
call fcn.14001a420
mov edx, reloc.WS2_32.dll_recvfrom
mov byte [rbp - 0x30], al
mov cl, WSAGetLastError
call fcn.14001a420
mov edx, reloc.WS2_32.dll_select
mov byte [rbp - 0x2f], al
mov cl, 0x6a
call fcn.14001a420
mov edx, reloc.WS2_32.dll_send
mov byte [rbp - 0x2e], al
mov cl, 0x65
call fcn.14001a420
mov edx, reloc.WS2_32.dll_sendto
mov byte [rbp - 0x2d], al
mov cl, 0x63
call fcn.14001a420
mov edx, reloc.WS2_32.dll_setsockopt
mov byte [rbp - 0x2c], al
mov cl, reloc.WS2_32.dll_WSACleanup
call fcn.14001a420
mov edx, reloc.WLDAP32.dll_Ordinal_22
mov byte [rbp - 0x2b], al
mov cl, 0x65
call fcn.14001a420
mov edx, reloc.WS2_32.dll_socket
mov byte [rbp - 0x2a], al
mov cl, 0x64
call fcn.14001a420
mov edx, Ordinal_27
mov byte [rbp - 0x29], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, Ordinal_27
mov byte [rbp - 0x28], al
mov cl, 0x45
call fcn.14001a420
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov byte [rbp - 0x27], al
mov cl, WSAGetLastError
call fcn.14001a420
mov edx, reloc.WLDAP32.dll_Ordinal_27
mov byte [rbp - 0x26], al
mov cl, 0x6a
call fcn.14001a420
mov edx, Ordinal_32
mov byte [rbp - 0x25], al
mov cl, reloc.WS2_32.dll_WSAGetLastError
call fcn.14001a420
mov edx, Ordinal_32
mov byte [rbp - 0x24], al
mov cl, 0x79
call fcn.14001a420
mov edx, reloc.WLDAP32.dll_Ordinal_30
mov byte [rbp - 0x23], al
mov cl, reloc.WLDAP32.dll_Ordinal_33
call fcn.14001a420
mov edx, Ordinal_35
mov byte [rbp - 0x22], al
mov cl, reloc.WLDAP32.dll_Ordinal_33
call fcn.14001a420
mov r14, qword [rsp + 0x88]
mov byte [rbp - 0x21], al
xor eax, eax
mov byte [rbp - 0x20], al
nop word [rax + rax]
movsxd rax, ebx
lea rdx, [rbp - 0x40]
add rdx, rax
lea eax, [rbx + 0x13]
inc ebx
xor byte [rdx], al
cmp ebx, 0x20
jb 0x1400236c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x40]
mov byte [rbp - 0x20], 0
call fcn.140019a60
lea rdx, [0x14001c690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140023863
xor edx, edx
mov cl, 0x5b
call fcn.14001a420
mov edx, 1
mov byte [rbp - 0x40], al
mov cl, 0x5d
call fcn.14001a420
mov edx, 2
mov byte [rbp - 0x3f], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, 3
mov byte [rbp - 0x3e], al
mov cl, 0x47
call fcn.14001a420
mov edx, 4
mov byte [rbp - 0x3d], al
mov cl, 0x61
call fcn.14001a420
mov edx, 5
mov byte [rbp - 0x3c], al
mov cl, 0x6d
call fcn.14001a420
mov edx, 6
mov byte [rbp - 0x3b], al
mov cl, 0x65
call fcn.14001a420
mov edx, 7
mov byte [rbp - 0x3a], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, 8
mov byte [rbp - 0x39], al
mov cl, 0x69
call fcn.14001a420
mov edx, 9
mov byte [rbp - 0x38], al
mov cl, reloc.WS2_32.dll_WSAStartup
call fcn.14001a420
mov edx, 0xa
mov byte [rbp - 0x37], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, listen
mov byte [rbp - 0x36], al
mov cl, WSAGetLastError
call fcn.14001a420
mov edx, listen
mov byte [rbp - 0x35], al
mov cl, reloc.WS2_32.dll_WSAGetLastError
call fcn.14001a420
mov edx, reloc.WS2_32.dll_listen
mov byte [rbp - 0x34], al
mov cl, reloc.WS2_32.dll_WSACleanup
call fcn.14001a420
mov edx, reloc.WS2_32.dll_ntohl
mov byte [rbp - 0x33], al
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.14001a420
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x32], al
mov cl, reloc.WS2_32.dll_WSAGetLastError
call fcn.14001a420
mov edx, reloc.WS2_32.dll_recv
mov byte [rbp - 0x31], al
mov cl, reloc.WS2_32.dll_WSASetLastError
call fcn.14001a420
mov edx, reloc.WS2_32.dll_recvfrom
mov byte [rbp - 0x30], al
mov cl, 0x65
call fcn.14001a420
mov edx, reloc.WS2_32.dll_select
mov byte [rbp - 0x2f], al
mov cl, WSAGetLastError
call fcn.14001a420
mov edx, reloc.WS2_32.dll_send
mov byte [rbp - 0x2e], al
mov cl, reloc.WLDAP32.dll_Ordinal_33
call fcn.14001a420
mov byte [rbp - 0x2d], al
mov edx, reloc.WS2_32.dll_sendto
mov cl, 0xa
call fcn.14001a420
mov byte [rbp - 0x2c], al
xor eax, eax
mov byte [rbp - 0x2b], al
nop dword [rax]
movsxd rax, ebx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rbx + 0x13]
inc ebx
xor byte [rcx], al
cmp ebx, 0x15
jb 0x140023840
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x2b], 0
call fcn.140029010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140023890
call fcn.140023890
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3