Function at 0x140003390
Capabilities:
Delete file
Enumerate files on windows
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x6d0
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov rbp, rcx
mov qword [rsp + 0x38], rdx
lea rcx, str.Entering_ProcessHostStorageRequest_n
mov rsi, rdx
xor r14d, r14d
call fcn.140001650
cmp dword [rbp], 2
jne 0x140003a12
movzx ecx, word [rbp + 8]
sub ecx, 0x26
je 0x1400038ac
sub ecx, 1
je 0x14000374d
sub ecx, 1
je 0x1400035d3
cmp ecx, 0x12
je 0x14000342e
lea rcx, str.Received_Invalid_Host_Storage_Request_n
call fcn.140001650
lea ecx, [r14 + 0x10]
call fcn.140009630
mov rdi, rax
test rax, rax
je 0x14000376b
mov word [rax + 0xa], r14w
mov dword [rax + 0xc], 0x100010
jmp 0x140003a40
lea rcx, str.Delete_All_Object_request_received_n
call fcn.140001650
mov ecx, 0x10
call fcn.140009630
mov rdi, rax
test rax, rax
jne 0x140003465
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed_while_creating_Host_Store_DeleteAll_Request__error_code___d_n
call fcn.140001650
jmp 0x140003a65
xorps xmm0, xmm0
lea rcx, str.Command_received_is_for_Deleting_the_Object_n
movups xmmword [rax], xmm0
mov dword [rax], 2
mov eax, 0x29
mov word [rdi + 8], ax
mov dword [rdi + 4], 0x10
call fcn.140001650
mov ecx, 0x104
call fcn.140009630
mov rsi, rax
test rax, rax
je 0x1400037cf
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400056a0
mov r8d, 0x104
lea rcx, str._programdata_BroadcomHostStorage_
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.Host_Storage_location_set_successfully.
call fcn.140001650
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rsi + r9*2], r14w
jne 0x1400034e0
inc r9
lea rcx, [rsp + 0x4b0]
mov r8, rsi
mov edx, 0x104
call fcn.1400097f8
mov r9d, 3
lea r8, [0x140021760]
mov edx, 0x104
lea rcx, [rsp + 0x4b0]
call fcn.1400096f8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400035cb
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400035a4
test byte [rsp + 0x50], 0x10
jne 0x140003592
lea rax, [rsp + 0x7c]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.1400016f0
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400035c2
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003553
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
jne 0x1400035cb
mov rcx, rsi
jmp 0x14000385b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
jmp 0x140003873
lea rcx, str.Retrieve_Object_request_received_n
call fcn.140001650
lea rcx, str.Entering_ProcessRetrieveRequest_n
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x34], r14d
mov edi, r14d
call fcn.140001650
lea rcx, str.Command_received_is_for_Retrieving_the_Object_n
call fcn.140001650
mov ecx, 0x1000
mov esi, 0xc
call fcn.140009630
mov r15, rax
test rax, rax
jne 0x140003648
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_Allocation_failed_while_getting_the_Retrive_request__error_code___d_n
call fcn.140001650
lea rcx, str.Exiting_ProcessRetrieveRequest_n
call fcn.140001650
mov rsi, qword [rsp + 0x38]
mov rdi, r14
jmp 0x140003a56
xor edx, edx
mov r8d, 0x1000
mov rcx, r15
call fcn.1400056a0
nop dword [rax + rax]
mov eax, esi
lea rcx, str.Retrieving_the_Object_from_hard_drive_with_Object_ID__d_n
add esi, 4
mov ebx, dword [rax + rbp]
mov edx, ebx
call fcn.140001650
lea r8, [rsp + 0x34]
mov ecx, ebx
lea rdx, [rsp + 0x40]
call fcn.140001940
mov r12, qword [rsp + 0x40]
test al, al
je 0x14000371f
mov eax, edi
mov rdx, r12
add edi, 8
mov ecx, edi
add rcx, r15
mov dword [rax + r15], ebx
mov ebx, dword [rsp + 0x34]
mov r8d, ebx
mov dword [rax + r15 + 4], ebx
call fcn.140005ea0
add edi, ebx
cmp esi, dword [rbp + 4]
jb 0x140003660
lea rcx, [rdi + 0x10]
mov esi, edi
call fcn.140009630
mov rbx, rax
test rax, rax
jne 0x1400036e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed_while_creating_host_retrieve_object_request__error_code___d_n
call fcn.140001650
jmp 0x14000371f
lea r8, [rdi + 0x10]
xor edx, edx
mov rcx, rbx
call fcn.1400056a0
mov eax, 0x28
mov dword [rbx], 2
mov word [rbx + 8], ax
lea rcx, [rbx + 0x10]
lea eax, [rdi + 0x10]
mov dword [rbx + 0xc], r14d
mov r8, rsi
mov dword [rbx + 4], eax
mov rdx, r15
call fcn.140005ea0
mov r14, rbx
mov rcx, r15
call fcn.14000961c
test r12, r12
je 0x140003734
mov rcx, r12
call fcn.14000961c
lea rcx, str.Exiting_ProcessRetrieveRequest_n
call fcn.140001650
mov rsi, qword [rsp + 0x38]
mov rdi, r14
jmp 0x140003a56
lea rcx, str.Delete_Object_request_received_n
call fcn.140001650
mov ecx, 0x10
call fcn.140009630
mov rdi, rax
test rax, rax
jne 0x140003784
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed_while_creating_Host_Store_Get_Request__error_code___d_n
call fcn.140001650
jmp 0x140003a65
xorps xmm0, xmm0
lea rcx, str.Command_received_is_for_Deleting_the_Object_n
movups xmmword [rax], xmm0
mov dword [rax], 2
mov eax, 0x29
mov word [rdi + 8], ax
mov dword [rdi + 4], 0x10
call fcn.140001650
mov esi, dword [rbp + 0xc]
lea rcx, str.Object_ID_to_be_deleted___d_n
mov edx, esi
call fcn.140001650
mov ecx, 0x104
call fcn.140009630
mov rbx, rax
test rax, rax
jne 0x1400037e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_Allocation_failed__error_code___d
call fcn.140001650
jmp 0x140003878
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
call fcn.1400056a0
mov r8d, 0x104
lea rcx, str._programdata_BroadcomHostStorage_
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.Host_Storage_location_set_successfully.
call fcn.140001650
mov r9, rbx
mov dword [rsp + 0x20], esi
lea r8, str._s_d.bcm
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.1400016f0
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140003870
lea rcx, str.Objects_Deleted_Successfully
call fcn.140001650
mov rcx, rbx
call fcn.14000961c
lea rcx, str.Delete_request_processed_successfully_n
call fcn.140001650
mov bl, 1
jmp 0x14000387a
mov rcx, rbx
call fcn.14000961c
xor bl, bl
lea rax, str.Object_Delete_Request_failed._n
test bl, bl
lea rcx, str.Object_Delete_Request_Processed_successfully_n
cmove rcx, rax
call fcn.140001650
mov rsi, qword [rsp + 0x38]
test bl, bl
mov eax, 0x100011
cmove r14d, eax
mov dword [rdi + 0xc], r14d
jmp 0x140003a56
lea rcx, str.Store_Object_request_received_n
call fcn.140001650
mov ecx, 0x10
call fcn.140009630
mov rdi, rax
test rax, rax
jne 0x1400038e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed_while_creating_Host_Store_Operation_Status__error_code___d_n
call fcn.140001650
jmp 0x140003a65
xorps xmm0, xmm0
mov qword [rsp + 0x720], r13
movups xmmword [rax], xmm0
mov dword [rax], 2
lea rcx, str.Entering__ProcessStoreRequest_n
mov eax, 0x29
mov dword [rdi + 4], 0x10
mov word [rdi + 8], ax
mov byte [rsp + 0x30], r14b
call fcn.140001650
lea rcx, str.Command_received_is_for_Storing_the_Object_into_Hard_Drive_n
call fcn.140001650
mov esi, 0xc
nop dword [rax]
mov eax, esi
add esi, 8
mov r15d, dword [rax + rbp + 4]
mov r13d, dword [rax + rbp]
mov ecx, r15d
call fcn.140009630
mov rbx, rax
test rax, rax
je 0x1400039b6
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400056a0
mov edx, esi
mov r8d, r15d
add rdx, rbp
mov rcx, rbx
call fcn.140005ea0
mov edx, r13d
lea rcx, str.Writing_the_Object_into_hard_drive_with_Object_ID__d_n
add esi, r15d
call fcn.140001650
mov r8, rbx
mov edx, r15d
mov ecx, r13d
call fcn.140001750
mov rcx, rbx
test al, al
je 0x1400039af
call fcn.14000961c
cmp esi, dword [rbp + 4]
jb 0x140003930
lea rcx, str.Store_Object_Request_processed_successfully_n
mov byte [rsp + 0x30], 1
call fcn.140001650
jmp 0x1400039ca
call fcn.14000961c
jmp 0x1400039ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed_while_creating_Object_Value_Buffer__error_code___d_n
call fcn.140001650
lea rcx, str.Exiting_ProcessStoreRequest_successfully_n
call fcn.140001650
movzx ebx, byte [rsp + 0x30]
lea rax, str.Store_Object_Request_from_CV_failed_n
test bl, bl
lea rcx, str.Store_Object_Request_from_CV_executed_successfully_n
cmove rcx, rax
call fcn.140001650
mov rsi, qword [rsp + 0x38]
test bl, bl
mov eax, 0x100011
cmove r14d, eax
mov dword [rdi + 0xc], r14d
mov r13, qword [rsp + 0x720]
jmp 0x140003a56
lea rcx, str.Received_Invalid_Host_Storage_Request_n
call fcn.140001650
mov ecx, 0x10
call fcn.140009630
mov rdi, rax
test rax, rax
je 0x14000376b
mov word [rax + 0xa], r14w
mov dword [rax + 0xc], 0x10000f
mov dword [rax], 2
mov eax, 0x29
mov dword [rdi + 4], 0x10
mov word [rdi + 8], ax
lea rcx, str.Exiting_ProcessHostStorageRequest_successfully_n
mov qword [rsi], rdi
call fcn.140001650
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1400046a0
add rsp, 0x6d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret