Function at 0x18018f150
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x388
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov byte [rbp + 0x310], 0xeb
mov byte [rbp + 0x311], 8
mov byte [rbp + 0x312], 0x48
mov byte [rbp + 0x313], Ordinal_143
mov byte [rbp + 0x314], Ordinal_143
mov byte [rbp + 0x315], Ordinal_41
mov byte [rbp + 0x316], reloc.WS2_32.dll_recvfrom
mov byte [rbp + 0x317], 0xb7
mov byte [rbp + 0x318], 0x66
mov byte [rbp + 0x319], Ordinal_32
mov byte [rbp + 0x31a], Ordinal_200
lea rax, [rsp + 0x398]
test rax, rax
jne 0x18018f1e0
lea rax, [rbp + 0x310]
call rax
xor eax, eax
call rax
nop
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x40], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 9]
lea rcx, [rbp + 0xe0]
call fcn.180180560
mov rcx, rax
call fcn.180190270
mov qword [rbp + 0x38], rax
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
call fcn.18012eb00
mov qword [rbp + 0x48], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
cmp qword [rsp + 0x3a0], 0
je 0x18018f279
cmp qword [rsp + 0x3a0], 0xffffffffffffffff
je 0x18018f279
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xa8]
call fcn.18018c730
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp + 0x58]
call fcn.18019ba40
movzx eax, al
test eax, eax
jne 0x18018f2aa
mov dword [rbp + 0x10], 1
jmp 0x18018f2b1
mov dword [rbp + 0x10], 0
movzx eax, byte [rbp + 0x10]
mov byte [rbp + 2], al
lea rcx, [rbp + 0xa8]
call fcn.1800469b0
movzx eax, byte [rbp + 2]
test eax, eax
je 0x18018f2d3
xor al, al
jmp 0x18018f597
lea rcx, [rbp + 0x1e0]
call fcn.18018c890
nop
mov edx, 0x108
lea rcx, [rbp + 0x200]
call fcn.1800610f0
lea rcx, [rbp + 0x1e0]
call fcn.180061f00
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, Ordinal_35
mov rdx, rax
lea rcx, [rbp + 0x200]
call fcn.180187360
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov qword [rbp + 0x60], rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, qword [rbp + 0x60]
imul rcx, rax
mov rax, rcx
cqo
mov ecx, 0x1e8480
idiv rcx
mov rax, rdx
add rax, 0x8490
mov dword [rbp + 0xc], eax
movsxd rax, dword [rbp + 0xc]
mov rcx, rax
call fcn.1801f0230
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], 0
jmp 0x18018f383
mov rax, qword [rbp + 0x20]
inc rax
mov qword [rbp + 0x20], rax
movsxd rax, dword [rbp + 0xc]
cmp qword [rbp + 0x20], rax
jae 0x18018f3af
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x18018f378
movsxd rax, dword [rbp + 0xc]
mov r8, rax
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x200]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x18018f46f
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 0xa]
lea rcx, [rbp + 0x120]
call fcn.180181ea0
mov rcx, rax
call fcn.180190680
mov qword [rbp + 0x70], rax
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
call fcn.18012eb00
mov qword [rbp + 0x80], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
jmp 0x18018f4f5
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x90], rax
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 5]
movzx r8d, byte [rbp + 6]
movzx edx, byte [rbp + 0xb]
lea rcx, [rbp + 0x180]
call fcn.1801830d0
mov rcx, rax
call fcn.180190be0
mov qword [rbp + 0x88], rax
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x90]
call fcn.18012eb00
mov qword [rbp + 0x98], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x200]
call fcn.180068740
nop
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x30]
call fcn.1801f0228
cmp qword [rbp + 0x30], 0
jne 0x18018f527
mov qword [rbp + 0xa0], 0
jmp 0x18018f53a
mov qword [rbp + 0x18], 0x8123
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x1e0]
call fcn.180061f00
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x18018f576
mov byte [rbp + 7], 0
lea rcx, [rbp + 0x200]
call fcn.18005ad30
nop
lea rcx, [rbp + 0x1e0]
call fcn.1800469b0
movzx eax, byte [rbp + 7]
jmp 0x18018f597
mov byte [rbp + 8], 1
lea rcx, [rbp + 0x200]
call fcn.18005ad30
nop
lea rcx, [rbp + 0x1e0]
call fcn.1800469b0
movzx eax, byte [rbp + 8]
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x388
pop rdi
pop rbp
ret