Function at 0x180002230
Capabilities:
Copy file
Create thread
Delete file
Get common file path
Read file on windows
Write 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 - 0x340]
sub rsp, 0x440
mov rax, qword [0x180024008]
xor rax, rsp
mov qword [rbp + 0x330], rax
xor ebx, ebx
mov qword [rsp + 0x60], r8
lea rax, [rdx + 4]
mov dword [rsp + 0x58], ebx
mov qword [rbp - 0x80], rax
mov rsi, 0xffffffffffffffff
lea rax, [rdx + 0x20e]
mov dword [rsp + 0x48], ebx
lea ecx, [rbx + 0x40]
mov qword [rsp + 0x50], rbx
mov edx, 0x20a
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x78], rsi
mov r12d, ebx
mov r13d, ebx
mov qword [rsp + 0x68], rbx
mov r15d, ebx
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
mov rdi, rax
test rax, rax
je 0x180002444
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180002444
lea rax, [0x180020848]
mov r9, rdi
lea r8, str._ws_ws
mov qword [rsp + 0x20], rax
mov edx, 0x104
mov rcx, rdi
call fcn.180001520
mov edx, 0x20a
mov dword [rbp - 0x4c], ebx
lea ecx, [rbx + 0x40]
mov edi, ebx
mov r13, rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1800023ea
mov edx, 0x20a
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800023ea
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1800023ea
lea r8, str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE
mov edx, 0x104
mov rcx, rdi
call fcn.180009b30
mov r9, rdi
lea r8, str._wsAdobe_.cat
mov edx, 0x104
mov rcx, r14
call fcn.180001520
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, rsi
jne 0x1800023bb
mov r9, rdi
lea r8, str._wsWindowsSearchEngineSKU_.cat
mov edx, 0x104
mov rcx, r14
call fcn.180001520
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, rsi
je 0x1800023ea
lea rax, [rbp - 4]
mov r9, rdi
lea r8, str._ws_ws
mov qword [rsp + 0x20], rax
mov edx, 0x104
mov rcx, rdi
call fcn.180001520
mov eax, 1
mov qword [rsp + 0x50], rdi
mov dword [rbp - 0x4c], eax
jmp 0x1800023ec
mov eax, ebx
mov r9, r14
mov dword [rsp + 0x20], eax
mov r8, rdi
lea rdx, str.Server::FindCatalogFile
lea rcx, str._PPLmedic___ws__File_path:__ws__Search_path:__ws__Result:__d_r_n
call fcn.180001010
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000241c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14, r14
je 0x18000242a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rbp - 0x4c], ebx
jne 0x18000254d
test rdi, rdi
je 0x180002441
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, rbx
mov esi, ebx
mov rdi, qword [rsp + 0x60]
mov dword [rdi], 3
mov dword [rdi + 4], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rsp + 0x58]
lea rdx, str.Server::DoFakeSignDll
mov r8d, eax
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
mov r9d, edi
call fcn.180001010
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180002493
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x1800024a1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x1800024af
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800024c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800024d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1800024ed
cmp dword [rsp + 0x48], edi
je 0x1800024ed
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180002500
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x18000250e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x180002521
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.180002ad0
mov rbx, qword [rsp + 0x480]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x180002441
mov rcx, qword [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
cmp rax, rsi
je 0x180002441
mov rdi, qword [rbp - 0x40]
mov r14d, 1
mov rcx, qword [rsp + 0x78]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x180002441
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov dword [rsp + 0x48], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
cmp rax, rsi
je 0x180002441
mov edx, 0x400
mov ecx, 0x40
mov r13d, ebx
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18000272a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r9, rax
cmp rax, qword [rsp + 0x50]
je 0x18000272a
movzx r8d, bx
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], bx
jne 0x180002645
test rcx, rcx
je 0x180002679
mov rdx, rbx
nop word [rax + rax]
movzx eax, byte [r9 + rdx*2]
inc r8w
mov byte [rbp + rdx + 0x220], al
movzx edx, r8w
cmp rdx, rcx
jb 0x180002660
movzx eax, r8w
cmp rax, 0x104
jae 0x180002ab6
mov byte [rbp + rax + 0x220], bl
lea rax, [rbp + 0x220]
mov dword [rdi], ebx
mov word [rdi + 4], 0xf00
nop
inc rsi
cmp byte [rax + rsi], bl
jne 0x1800026a0
lea eax, [rsi + 4]
mov word [rdi + 6], ax
lea r8, [rsi + 1]
movups xmm0, xmmword [str._CI.CATALOGHINT]
lea rdx, [rbp + 0x220]
movups xmmword [rdi + 8], xmm0
movzx ecx, byte [rdi + 5]
add rcx, rdi
mov word [rcx + 9], 1
mov word [rcx + 0xb], si
add rcx, 0xd
call fcn.180006610
mov rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x70]
mov eax, 0xfffc
add si, 0x1f
and si, ax
mov r8, rdi
movzx r9d, si
call qword [sym.imp.ntdll.dll_NtSetEaFile]
mov r14d, eax
test eax, eax
js 0x18000272a
mov eax, 1
mov r13d, eax
mov r9d, eax
lea rdx, str.Server::SetFileCatalogHint
mov r8d, ebx
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
call fcn.180001010
jmp 0x180002764
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.Server::SetFileCatalogHint
mov r8d, eax
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
call fcn.180001010
test r14d, r14d
jns 0x18000275f
mov ecx, r14d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x18000276d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13d, r13d
je 0x180002441
mov r14, qword [rsp + 0x50]
lea rdx, str.Server::DoFakeSignDll
mov r9, qword [rbp - 0x40]
lea rcx, str._PPLmedic___ws__Catalog_hint__ws_set_on:__ws_r_n
mov r8, r14
call fcn.180001010
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rsi, rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
je 0x180002a6f
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002a6f
lea rax, [rbp - 0x70]
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rdi
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x90000
mov qword [rsp + 0x20], rbx
mov rcx, rsi
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000283f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180002a6f
mov r9d, 1
lea rdx, str.Server::SetFileOpLock
xor r8d, r8d
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
call fcn.180001010
mov r8, r14
lea rdx, str.Server::DoFakeSignDll
lea rcx, str._PPLmedic___ws__Oplock_set_on:__ws_r_n
call fcn.180001010
lea r9, [rbp - 0x78]
mov qword [rsp + 0x28], rbx
lea r8, [0x180001e00]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov r12, rsi
mov r13, rdi
mov r14, rax
test rax, rax
je 0x180002444
mov edx, 0x1388
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180002444
lea rdx, str.Server::DoFakeSignDll
lea rcx, str._PPLmedic___ws__Oplock_triggerred._r_n
call fcn.180001010
mov rdi, qword [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
lea r9, [rbp - 0x48]
mov qword [rsp + 0x20], rbx
mov r8d, 0x10000
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180002926
mov r8d, dword [rbp - 0x48]
lea r9, [rbp - 0x38]
mov rcx, qword [rbp - 0x78]
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180002926
cmp dword [rbp - 0x48], 0x10000
je 0x1800028e0
lea rdx, str.Server::DoFakeSignDll
lea rcx, str._PPLmedic___ws__Replaced_target_file_content__releasing_oplock..._r_n
call fcn.180001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x1388
mov rcx, r14
mov r12, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
lea r8, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea rdx, [rbp - 0x4c]
mov dword [rbp - 0x4c], 0xffffffff
mov byte [rbp - 0x50], bl
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtGetCachedSigningLevel]
mov edi, eax
shr edi, 0x1f
xor edi, 1
mov r14d, edi
test eax, eax
js 0x180002997
movzx eax, byte [rbp - 0x50]
mov esi, eax
mov dword [rsp + 0x40], eax
jmp 0x1800029b1
mov ecx, eax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rbp - 0x50]
mov esi, ebx
test edi, edi
je 0x180002a3f
mov r8d, dword [rbp - 0x4c]
lea rdx, str.Server::GetFileSigningLevel
movzx r9d, al
lea rcx, str._PPLmedic___ws__Flags:_0x_08x__Signing_level:__d__LE:__d__Result:__d_r_n
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
call fcn.180001010
mov rcx, qword [rsp + 0x60]
lea rdx, str.Server::DoFakeSignDll
mov eax, 1
mov r8d, ebx
mov edi, eax
mov r9d, edi
mov dword [rsp + 0x48], edi
mov qword [rcx + 4], rax
mov eax, dword [rsp + 0x40]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov dword [rcx], 3
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
mov qword [rsp + 0x68], rax
call fcn.180001010
mov rcx, qword [rsp + 0x68]
jmp 0x18000248d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, byte [rbp - 0x50]
lea rdx, str.Server::GetFileSigningLevel
mov r8d, dword [rbp - 0x4c]
lea rcx, str._PPLmedic___ws__Flags:_0x_08x__Signing_level:__d__LE:__d__Result:__d_r_n
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.180001010
jmp 0x180002446
mov r13, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.Server::SetFileOpLock
mov r8d, eax
lea rcx, str._PPLmedic___ws__LE:__d__Result:__d_r_n
call fcn.180001010
test rdi, rdi
je 0x180002a9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x180002444
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002444
call fcn.180002c3c
int3