Function at 0x1400228a0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov r13, rcx
mov dword [rbp - 0x78], 0
lea rax, [0x14006ace0]
mov qword [rbp - 0x70], rax
lea r8, [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.1400221b0
nop
movabs rdi, 0xcccccccccccccccd
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
cmp dword [rbp - 0x78], 0
je 0x140022904
xor bl, bl
jmp 0x140023287
cmp r12, rax
je 0x140023285
mov r8, rax
sub r8, r12
sar r8, 3
imul r8, rdi
movzx r9d, byte [rbp + 0x320]
mov rdx, rax
mov rcx, r12
call fcn.140025720
xor esi, esi
mov r12, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x80], rax
cmp r12, rax
je 0x140023285
lea r14, [rsi - 1]
nop dword [rax + rax]
mov r15, r12
cmp qword [r12 + 0x18], 8
jb 0x14002295f
mov r15, qword [r12]
mov rcx, r15
cmp esi, 0xa
jge 0x14002325d
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 7]
call qword [0x14006a020]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140022a0d
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1400229b0
cmp eax, 2
jne 0x140022a03
test ebx, ebx
jle 0x140022a03
mov ecx, 0xc8
cmp ebx, ecx
cmovl ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0xc8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, r15
call qword [0x14006a020]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400229a0
jmp 0x140022a0d
cmp rdi, 0xffffffffffffffff
je 0x140023263
test rdi, rdi
je 0x140023263
inc esi
mov dword [rbp + 0x320], esi
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x140022a53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
test eax, eax
cmovne rbx, r14
mov qword [rsp + 0x40], rbx
mov esi, dword [rsp + 0x40]
jmp 0x140022a58
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14002324c
mov rcx, rbx
call fcn.14002a22c
mov r14, rax
mov qword [rsp + 0x58], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14002c2a0
mov qword [rbp + 0x170], r14
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x328]
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov r14, 0xffffffffffffffff
je 0x140022ab6
mov r14d, dword [rbp + 0x328]
mov rcx, rdi
call qword [0x14006a018]
cmp r14, rbx
mov r14, qword [rsp + 0x58]
jne 0x14002311f
xor ebx, ebx
mov qword [rbp + 0x270], rbx
lea rax, [rbp + 0x238]
mov qword [rsp + 0x28], rax
mov r8d, esi
mov rdx, r14
lea rcx, [rbp + 0x110]
call fcn.14000c390
nop
cmp byte [rbp + 0x125], bl
jne 0x140022b33
cmp byte [rbp + 0x124], bl
jne 0x140022b33
mov eax, dword [rbp + 0x120]
cmp eax, 0xffffffff
je 0x140023240
mov rcx, qword [rbp + 0x110]
cmp qword [rcx + 0x20], rbx
je 0x140022b27
add rax, qword [rcx + 0x10]
jmp 0x140022b2a
mov rax, rbx
cmp byte [rax], 7
je 0x140023240
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x70], 0xffffffff
mov word [rbp + 0x74], 0x100
mov byte [rbp + 0x76], 0
movdqu xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov qword [rbp + 0x98], rbx
lea rax, str.type
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rbx
mov dword [rbp + 0xb0], 4
mov byte [rbp + 0xb4], 0
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x110]
call fcn.14000b510
cmp byte [rbp + 0x19d], 0
je 0x140022bae
mov sil, 3
jmp 0x140022be6
cmp byte [rbp + 0x19c], 0
je 0x140022bbc
mov sil, 1
jmp 0x140022be6
mov eax, dword [rbp + 0x198]
cmp eax, 0xffffffff
jne 0x140022bcc
mov sil, 7
jmp 0x140022be6
mov rcx, qword [rbp + 0x188]
cmp qword [rcx + 0x20], 0
je 0x140022be0
add rax, qword [rcx + 0x10]
jmp 0x140022be3
mov rax, rbx
movzx esi, byte [rax]
lea rcx, [rbp + 0x1a8]
call fcn.14000ada0
mov rcx, qword [rbp + 0x190]
mov rdi, 0xffffffffffffffff
test rcx, rcx
je 0x140022c48
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140022c48
mov rbx, qword [rbp + 0x190]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022c48
mov rcx, qword [rbp + 0x190]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400543b8]
nop
lea rcx, [rbp + 0x80]
call fcn.14000ada0
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x140022c94
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140022c94
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022c94
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov dword [rbp + 0x18], 0xffffffff
mov word [rbp + 0x1c], 0x100
mov byte [rbp + 0x1e], 0
movdqu xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
xor ebx, ebx
mov qword [rbp + 0x40], rbx
lea rax, str.deviceId
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rbx
mov dword [rbp + 0x58], 8
mov byte [rbp + 0x5c], bl
lea r8, [rbp + 8]
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x110]
call fcn.14000b510
cmp byte [rbp + 0x1f5], bl
je 0x140022cfd
mov dil, 3
jmp 0x140022d35
cmp byte [rbp + 0x1f4], 0
je 0x140022d0b
mov dil, 1
jmp 0x140022d35
mov eax, dword [rbp + 0x1f0]
cmp eax, 0xffffffff
jne 0x140022d1b
mov dil, 7
jmp 0x140022d35
mov rcx, qword [rbp + 0x1e0]
cmp qword [rcx + 0x20], 0
je 0x140022d2f
add rax, qword [rcx + 0x10]
jmp 0x140022d32
mov rax, rbx
movzx edi, byte [rax]
lea rcx, [rbp + 0x200]
call fcn.14000ada0
mov rcx, qword [rbp + 0x1e8]
test rcx, rcx
je 0x140022d96
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140022d96
mov rbx, qword [rbp + 0x1e8]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022d96
mov rcx, qword [rbp + 0x1e8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400543b8]
nop
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x140022ddc
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140022ddc
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022ddc
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x140022e22
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140022e22
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022e22
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x140022e68
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140022e68
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022e68
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
cmp sil, 7
je 0x140023240
cmp dil, 7
je 0x140023240
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb8], xmm0
mov dword [rbp + 0xc8], 0xffffffff
mov word [rbp + 0xcc], 0x100
mov byte [rbp + 0xce], 0
movdqu xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe0], xmm1
xor esi, esi
mov qword [rbp + 0xf0], rsi
lea rax, str.type
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], rsi
mov dword [rbp + 0x108], 4
mov byte [rbp + 0x10c], sil
lea r8, [rbp + 0xb8]
lea rdx, [rbp + 0x278]
lea rcx, [rbp + 0x110]
call fcn.14000b510
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x278]
call fcn.14000bc40
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140022f28
lock inc dword [rcx + 8]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rcx
movdqu xmmword [rbp - 0x58], xmm0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140022f4a
lock inc dword [rcx + 8]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rcx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x40], rax
mov eax, dword [rbp]
mov dword [rbp - 0x38], eax
movzx eax, byte [rbp + 4]
mov byte [rbp - 0x34], al
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
lea rbx, str.UI_STATS
mov rdi, 0xffffffffffffffff
lea r14, str.unknown_error
lea rcx, [rbp - 0x68]
call fcn.14000d530
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140022fa0
mov qword [rbp + 0x178], rdx
mov r10, qword [rbx + 8]
mov qword [rbp + 0x180], r10
mov r8, r10
cmp rdx, r10
cmovb r8, rdx
test r8, r8
je 0x140022fe5
mov r9, qword [rbx]
sub r9, rax
movzx ecx, word [r9 + rax]
cmp cx, word [rax]
jne 0x140022fec
add rax, 2
sub r8, 1
jne 0x140022fd1
cmp r10, rdx
jb 0x140022fec
jbe 0x140022ff5
add rbx, 0x18
cmp rbx, r14
jne 0x140022f91
lea rcx, [rbp - 0x68]
call fcn.14000ada0
lea rax, str.unknown_error
cmp rbx, rax
je 0x14002300f
mov ebx, dword [rbx + 0x10]
jmp 0x140023011
mov ebx, edi
lea rcx, [rbp - 0x30]
call fcn.14000ada0
mov dword [r13 + 0x178], ebx
lea rcx, [rbp + 0x298]
call fcn.14000ada0
mov rbx, qword [rbp + 0x280]
test rbx, rbx
mov r14, qword [rsp + 0x58]
je 0x140023076
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140023076
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140023076
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
nop
lea rcx, [rbp + 0xd8]
call fcn.14000ada0
mov rbx, qword [rbp + 0xc0]
test rbx, rbx
je 0x1400230c5
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400230c5
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400230c5
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
cmp dword [r13 + 0x178], 0xffffffff
jne 0x140023139
lea rcx, [rbp + 0x130]
call fcn.14000ada0
mov rbx, qword [rbp + 0x118]
test rbx, rbx
je 0x14002311f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14002311f
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400543b8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14002311f
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400543b8]
nop
mov rcx, r14
call fcn.14002a1e8
mov esi, dword [rbp + 0x320]
mov r14, 0xffffffffffffffff
jmp 0x140023263
mov r8, rdi
nop dword [rax]
inc r8
cmp word [r15 + r8*2], 0
jne 0x140023140
lea rcx, [r13 + 0x100]
mov rdx, r15
call fcn.140020aa0
mov rcx, r13
call fcn.1400240a0
test al, al
jne 0x140023190
cmp qword [r13 + 0x130], 0
je 0x1400230cf
lea rcx, [r13 + 0x120]
cmp qword [rcx + 0x18], 8
jb 0x140023185
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400230cf
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
cmp qword [r13 + 0x60], 0
setne r8b
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140023710
mov edx, eax
cmp qword [r13 + 0x60], 0
je 0x1400231be
cmp eax, 0xc
je 0x1400231c3
cmp eax, 0xd
jne 0x1400231d5
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140023710
mov edx, eax
xor bl, bl
test edx, edx
je 0x140023203
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x54]
lea rcx, str.result:_d__chs_sessionid_d__chs_reply_d__chs_exitcode_d__chs_waitminutes_d_n
call fcn.1400269f0
jmp 0x140023213
movzx ebx, bl
cmp dword [rsp + 0x48], 4
mov eax, 1
cmove ebx, eax
lea rcx, [r13 + 0x120]
cmp qword [rcx + 0x18], 8
jb 0x140023224
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x1400230cf
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400230cf
mov rdi, 0xffffffffffffffff
jmp 0x1400230cf
mov rcx, rdi
call qword [0x14006a018]
mov esi, dword [rbp + 0x320]
jmp 0x140023263
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add r12, 0x28
cmp r12, qword [rbp - 0x80]
jne 0x140022950
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
movabs rdi, 0xcccccccccccccccd
mov bl, 1
test r12, r12
je 0x1400232da
mov rdx, rax
mov rcx, r12
call fcn.1400253f0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 3
imul rax, rdi
lea rdx, [rax + rax*4]
shl rdx, 3
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400232d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400232f8
call fcn.14002a1e8
movzx eax, bl
mov rbx, qword [rsp + 0x410]
add rsp, 0x3d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140032848
int3
cmp byte [rcx + 0x1c], 0
mov rdx, rcx
jne 0x140028afc
mov al, 1
ret
mov rdx, qword [rdx + 0x20]
add rcx, 0x28
jmp 0x1400228a0