Function at 0x140024e80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov byte [rsp + 0x48], 0
mov edx, 0x2e
mov qword [rsp + 0x70], 0
lea r8, str..mailslot_
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x80]
call fcn.1400473ec
lea r8, str.AMLTJOM_MailBox
mov edx, 0x2e
lea rcx, [rsp + 0x80]
call fcn.14004ee5c
mov r14d, 3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0x40000000
lea r8d, [r14 - 2]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025126
lea r9d, [r14 + 0xd]
lea r8, str.AMLTJOM_MailBox
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x48]
call fcn.14004ed74
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x70], rbx
test rbx, rbx
jne 0x140024f60
lea r14d, [rbx + 5]
jmp 0x1400250f4
test rdi, rdi
je 0x1400250b8
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x290], rbp
mov r9, rbx
mov qword [rsp + 0x2a0], rsi
inc r9
cmp byte [rdi + r9], 0
jne 0x140024f83
inc r9
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140024f93
inc rdx
lea rcx, [rsp + 0xb0]
mov r8, rdi
call fcn.14004ed74
mov rax, rbx
inc rax
cmp byte [rdi + rax], 0
jne 0x140024fb2
lea rsi, [rsp + 0xb0]
mov r9, rbx
add rsi, rax
mov byte [rsi], 0x2c
inc rsi
nop
inc r9
cmp byte [r9 + rdi + 0x12], 0
jne 0x140024fd0
inc r9
mov rdx, rbx
inc rdx
cmp byte [rdx + rdi + 0x12], 0
jne 0x140024fe1
inc rdx
lea r8, [rdi + 0x12]
mov rcx, rsi
call fcn.14004ed74
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rax + rdi + 0x12], 0
jne 0x140025000
add rsi, rax
mov r9, rbx
mov byte [rsi], 0x2c
inc rsi
nop word [rax + rax]
inc r9
cmp byte [r9 + rdi + 0x34], 0
jne 0x140025020
inc r9
mov rdx, rbx
inc rdx
cmp byte [rdx + rdi + 0x34], 0
jne 0x140025031
inc rdx
lea r8, [rdi + 0x34]
mov rcx, rsi
call fcn.14004ed74
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rax + rdi + 0x34], 0
jne 0x140025050
mov rbp, qword [rsp + 0x290]
add rsi, rax
mov r9, rbx
mov byte [rsi], 0x2c
nop dword [rax + rax]
inc r9
cmp byte [rdi + r9 + 0x56], 0
jne 0x140025070
inc r9
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx + 0x56], 0
jne 0x140025081
inc rdx
lea r8, [rdi + 0x56]
lea rcx, [rsi + 1]
call fcn.14004ed74
nop dword [rax + rax]
cmp byte [rdi + rbx + 0x57], 0
lea rbx, [rbx + 1]
jne 0x1400250a0
mov byte [rsi + rbx + 1], 0
mov rsi, qword [rsp + 0x2a0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenA]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x20], 0
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x140025107
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140025102
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, r14d
jmp 0x14002512b
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140025122
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140025122
mov eax, 2
jmp 0x14002512b
xor eax, eax
jmp 0x14002512b
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003d770
add rsp, 0x270
pop r14
pop rdi
pop rbx
ret