Function at 0x140021890
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp], rax
mov edi, edx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
lea r14, [0x1404b6aa0]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.14002eb20
nop
movzx ebx, byte [0x1404b6af0]
lea rcx, [rsp + 0x58]
call fcn.14001e8e0
test bl, bl
je 0x1400218fd
mov eax, 0xe0001000
jmp 0x140021c08
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r12w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x140445990]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
test edi, edi
je 0x140021a3c
cmp edi, 1
je 0x14002196f
mov edi, 0xe0001005
jmp 0x140021b87
lea rcx, [rbp - 0x80]
call fcn.1400a0bb0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, recvfrom
lea rdx, str.SHBridge.exe
lea rcx, [rsp + 0x60]
call fcn.140031e00
nop
mov r9, rbx
lea r8, [rsp + 0x60]
mov edx, 0xfde8
lea rcx, [rbp - 0x60]
call fcn.140017a60
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x80]
call fcn.1400166f0
test bl, bl
jne 0x1400219df
mov edi, 0xe0001004
jmp 0x140021b87
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140031cb0
mov eax, 1
mov dword [rsp + 0x50], eax
movdqa xmm0, xmmword [0x140445990]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x140445990]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
and eax, 0xfffffffe
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
jmp 0x140021ab5
cmp dword [rsi + 0x10], 0
je 0x140021b82
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.14002eb20
nop
mov ebx, dword [0x1404b6af4]
lea rcx, [rsp + 0x58]
call fcn.14001e8e0
cmp ebx, 1
jne 0x140021b82
lea rcx, [rbp - 0x80]
call fcn.1400c0de0
nop
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x140021ab1
movdqa xmm0, xmmword [0x140445990]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rcx, [rbp - 0x80]
call fcn.1400166f0
call fcn.14001e910
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
lea r15, str.Protected
lea rbx, [0x1404166c0]
mov rcx, rbx
cmp dword [rsi + 0x10], 0
cmovne rcx, r15
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rcx
lea rcx, str._hsProcess_start___Method__u_
mov qword [rsp + 0x30], rcx
lea r14, str.Sledgehammer
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 3
mov r9d, 0xc3
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.94_build_nativeincludeChildInstance.h
lea rdx, [0x14041a6b8]
mov rcx, rax
call r10
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140024950
mov edi, eax
call fcn.14001e910
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
cmp dword [rsi + 0x10], 0
cmovne rbx, r15
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rcx, str._hsProcess_exited__Code__08X_
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 3
mov r9d, 0xc5
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.94_build_nativeincludeChildInstance.h
lea rdx, [0x14041a6b8]
mov rcx, rax
call r10
jmp 0x140021b87
mov edi, 0xe0001007
lea rcx, [rbp - 0x20]
call fcn.1400166f0
nop
cmp qword [rbp - 0x30], 0
jbe 0x140021bc2
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x30], r12
mov word [rax], r12w
cmp qword [rbp - 0x50], 0
jbe 0x140021bf3
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
mov qword [rbp - 0x50], r12
mov word [rcx], r12w
lea rcx, [rbp - 0x40]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x60]
call fcn.1400166f0
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret