Function at 0x1400d4ae0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x14039f0c0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, rcx
lea rcx, reloc.WS2_32.dll_accept
call fcn.14027ddb0
mov cl, 0x3a
mov word [rsp + 0x30], Ordinal_60
movsx edi, cl
movzx eax, di
xor ax, 0x61
mov word [rsp + 0x32], ax
movzx eax, di
xor ax, 6
mov word [rsp + 0x34], ax
movzx eax, di
xor ax, 0x67
mov word [rsp + 0x36], ax
movzx ebx, di
xor bx, 0x1a
mov word [rsp + 0x38], bx
movzx eax, di
xor ax, 0x6f
mov word [rsp + 0x3a], ax
movzx ecx, di
xor cx, 0x54
mov word [rsp + 0x3c], cx
movzx r11d, di
xor r11w, 0x56
mov word [rsp + 0x3e], r11w
movzx eax, di
xor ax, 0x55
mov word [rsp + 0x40], ax
movzx r8d, di
xor r8w, 0x5b
mov word [rsp + 0x42], r8w
movzx r10d, di
xor r10w, 0x5e
mov word [rsp + 0x44], r10w
movzx r9d, di
xor r9w, 0x53
mov word [rsp + 0x46], r9w
mov word [rsp + 0x48], cx
movzx eax, di
xor ax, 0x5d
mov word [rsp + 0x4a], ax
mov word [rsp + 0x4c], bx
movzx edx, di
xor dx, 0x4c
mov word [rsp + 0x4e], dx
movzx eax, di
xor ax, 0x4f
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], r11w
mov word [rsp + 0x54], cx
movzx ecx, di
xor cx, 0x5f
mov word [rsp + 0x56], cx
movzx eax, di
xor ax, 0x48
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], r8w
xor di, 0x58
mov word [rsp + 0x5c], di
mov word [rsp + 0x5e], r11w
mov word [rsp + 0x60], cx
mov word [rsp + 0x62], bx
mov word [rsp + 0x64], r10w
mov word [rsp + 0x66], ax
mov word [rsp + 0x68], r9w
mov word [rsp + 0x6a], dx
mov word [rsp + 0x6c], cx
mov word [rsp + 0x6e], ax
xor r15d, r15d
mov word [rsp + 0x70], r15w
lea rdx, [rsp + 0x32]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400dcb30
lea rdx, [0x1400dcd20]
mov rcx, rax
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]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d4c8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x70]
call fcn.1400d25d0
nop
mov rcx, rax
call fcn.1400e23b0
movzx ebx, al
lea rcx, [rbp - 0x70]
call fcn.1400cdb20
test bl, bl
jne 0x1400d4cb5
xor al, al
jmp 0x1400d509d
lea rcx, [rbp - 0x50]
call fcn.1400d2750
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400dc820
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
imul rcx, rbx
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x13
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x1e8480
sub rcx, rax
add ecx, 0x8af0
movsxd rdi, ecx
mov rcx, rdi
call fcn.14027cd9c
mov rsi, rax
mov rbx, r15
test rdi, rdi
je 0x1400d4d73
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rsi + rbx], r9b
inc rbx
cmp rbx, rdi
jb 0x1400d4d40
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x30]
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 rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400d4f07
mov cl, 0x3d
mov word [rsp + 0x30], 0x3d
movsx edi, cl
movzx eax, di
xor ax, 0x66
mov word [rsp + 0x32], ax
movzx eax, di
xor ax, 0x1c
mov word [rsp + 0x34], ax
movzx eax, di
xor ax, 0x60
mov word [rsp + 0x36], ax
movzx ebx, di
xor bx, 0x1d
mov word [rsp + 0x38], bx
movzx eax, di
xor ax, 0x78
mov word [rsp + 0x3a], ax
movzx ecx, di
xor cx, 0x4f
mov word [rsp + 0x3c], cx
mov word [rsp + 0x3e], cx
movzx eax, di
xor ax, 0x52
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], cx
mov word [rsp + 0x44], bx
movzx r11d, di
xor r11w, 0x59
mov word [rsp + 0x46], r11w
movzx eax, di
xor ax, 0x48
mov word [rsp + 0x48], ax
movzx eax, di
xor ax, 0x50
mov word [rsp + 0x4a], ax
movzx eax, di
xor ax, 0x4d
mov word [rsp + 0x4c], ax
movzx r10d, di
xor r10w, 0x54
mov word [rsp + 0x4e], r10w
movzx ecx, di
xor cx, 0x53
mov word [rsp + 0x50], cx
movzx eax, di
xor ax, 0x5a
mov word [rsp + 0x52], ax
mov word [rsp + 0x54], bx
movzx r9d, di
xor r9w, 0x4e
mov word [rsp + 0x56], r9w
movzx r8d, di
xor r8w, 0x55
mov word [rsp + 0x58], r8w
mov word [rsp + 0x5a], r10w
movzx edx, di
xor dx, 0x49
mov word [rsp + 0x5c], dx
mov word [rsp + 0x5e], bx
mov word [rsp + 0x60], r10w
mov word [rsp + 0x62], cx
mov word [rsp + 0x64], r9w
mov word [rsp + 0x66], r10w
mov word [rsp + 0x68], r11w
movzx eax, di
xor ax, 0x58
mov word [rsp + 0x6a], ax
mov word [rsp + 0x6c], bx
mov word [rsp + 0x6e], dx
mov word [rsp + 0x70], r8w
mov word [rsp + 0x72], ax
mov word [rsp + 0x74], bx
mov word [rsp + 0x76], r11w
mov word [rsp + 0x78], r10w
mov word [rsp + 0x7a], r9w
xor di, 0x56
mov word [rsp + 0x7c], di
mov word [rsp + 0x7e], r15w
jmp 0x1400d4fdd
mov al, 0x6a
mov dword [rsp + 0x30], 0x31006a
mov dword [rsp + 0x34], 0x370041
mov dword [rsp + 0x38], 0x3c004a
mov dword [rsp + 0x3c], 0x6001f
mov dword [rsp + 0x40], 0xe004a
mov dword [rsp + 0x44], 0x30018
mov dword [rsp + 0x48], 0xf001c
mov dword [rsp + 0x4c], 0x4a0018
mov dword [rsp + 0x50], 0xb000e
mov dword [rsp + 0x54], 0xb001e
mov dword [rsp + 0x58], 0xe004a
mov dword [rsp + 0x5c], 0x19000f
mov dword [rsp + 0x60], 0x18001e
mov dword [rsp + 0x64], 0x130005
mov dword [rsp + 0x68], 0xe000f
mov dword [rsp + 0x6c], 0x8004a
mov dword [rsp + 0x70], 0xc000f
mov dword [rsp + 0x74], 0x180005
mov dword [rsp + 0x78], 0x4a000f
mov dword [rsp + 0x7c], 0x4001f
mov dword [rbp - 0x80], 0x30006
mov dword [rbp - 0x7c], 0x10004
mov word [rbp - 0x78], r15w
mov rcx, r15
nop
movsx eax, al
xor word [rsp + rcx*2 + 0x32], ax
inc rcx
cmp rcx, 0x2b
jae 0x1400d4fd8
movzx eax, byte [rsp + 0x30]
jmp 0x1400d4fc0
mov word [rbp - 0x78], r15w
lea rdx, [rsp + 0x32]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400dcb30
lea rdx, [0x1400dcd20]
mov rcx, rax
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]
lea rcx, [rbp - 0x28]
call fcn.140057970
test rax, rax
jne 0x1400d5029
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rsi
call fcn.14027c920
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
test eax, eax
sete bl
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rbp + rdx - 0x34], r8d
lea rcx, [rbp - 0x28]
call fcn.140053dc0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x50]
call fcn.1400cdb20
movzx eax, bl
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14027c900
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret