Function at 0x10014820
Capabilities:
Copy file
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dcaca
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x29c], esi
mov eax, dword [ebp + 0x10]
mov ecx, 0x10103149
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x298], eax
call fcn.100d96c4
cmp dword [edi + 0x10], 0
je 0x100153b2
cmp dword [ebx + 0x10], 0
je 0x100153b2
mov ecx, dword [esi]
test ecx, ecx
je 0x100153b2
mov ecx, dword [ecx + 4]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
test eax, ecx
je 0x100153b2
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100148b5
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100148bf
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push eax
push ecx
call esi
test eax, eax
jne 0x100149c3
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x291], al
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x228]
mov ecx, edi
call fcn.100320a0
movzx ecx, byte [ebp - 0x291]
test al, al
mov edx, 1
mov dword [ebp - 0x240], 0
cmovne ecx, edx
mov dword [ebp - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x250]
mov ecx, ebx
call fcn.100320a0
test al, al
jne 0x10014970
cmp byte [ebp - 0x290], al
je 0x100149d6
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
push 1
cmovae ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
push ecx
cmovae eax, dword [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x100149d6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100044d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov eax, dword [ebp - 0x298]
mov dword [eax], 1
mov al, 1
jmp 0x100153bc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100044d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov byte [ebp - 0x291], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x298]
push 2
mov dword [ecx], eax
mov ecx, 0x10101274
call fcn.10034d10
mov dword [ebp - 0x290], eax
test eax, eax
je 0x10014ae9
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x28c], ebx
jb 0x10014a72
mov eax, dword [ebx]
mov dword [ebp - 0x28c], eax
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x10014a7c
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x28c]
push esi
push eax
lea eax, [ebp - 0x228]
push str.normal_copy_file_failed_errcode___d_with___s___s__
push eax
call fcn.10035220
add esp, 0x14
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push 0x4b
push str.RC::RCRestoreFile::DoRealCopyFile
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.10034d60
cmp dword [ebp - 0x290], 1
jbe 0x10014ad7
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov esi, dword [ebp - 0x29c]
mov ecx, dword [esi]
call fcn.10004900
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x1001518a
push 0x30
lea eax, [ebp - 0x284]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x284]
push ebx
call fcn.100080a0
mov dword [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x26c], xmm0
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x258], 5
je 0x10014c0d
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
mov word [ebp - 0x234], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10014c0d
mov eax, dword [ebp - 0x28c]
xorps xmm0, xmm0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x268]
push eax
push 0
lea eax, [ebp - 0x230]
movlpd qword [ebp - 0x224], xmm0
push eax
push 1
mov dword [ebp - 0x230], 0x10000000
mov dword [ebp - 0x22c], 2
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x284]
call fcn.1001eb70
test al, al
je 0x10015027
mov esi, dword [ebp - 0x264]
cmp esi, dword [ebp - 0x260]
je 0x10015027
mov bl, 1
nop dword [eax + eax]
push dword [esi]
lea ecx, [ebp - 0x284]
call fcn.1001e8c0
neg al
sbb al, al
add esi, 4
and bl, al
cmp esi, dword [ebp - 0x260]
jne 0x10014c40
mov byte [ebp - 0x291], bl
test bl, bl
mov ebx, dword [ebp - 0x254]
je 0x1001502e
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x10014c7c
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10014c86
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ecx
push eax
call esi
test eax, eax
jne 0x10014d91
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x291], al
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x250]
mov ecx, edi
call fcn.100320a0
movzx ecx, byte [ebp - 0x291]
test al, al
mov eax, 1
mov dword [ebp - 0x218], 0
cmovne ecx, eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x228]
mov ecx, ebx
call fcn.100320a0
test al, al
jne 0x10014d3d
cmp byte [ebp - 0x290], al
je 0x10014ff7
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x228]
push 1
cmovae ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
push ecx
cmovae eax, dword [ebp - 0x250]
push eax
call esi
test eax, eax
je 0x10014ff7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call fcn.100044d0
mov eax, 1
mov byte [ebp - 0x291], al
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x298]
mov dword [ecx + 4], eax
je 0x10014f20
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x28c], 0x80
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x80
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10014f20
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x10014f20
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10014f16
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x290]
push ecx
push 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push ecx
push 0
push 0
push 4
lea eax, [ebp - 0x284]
mov dword [ebp - 0x290], 0
cmovae eax, dword [ebp - 0x284]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x10014f16
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
push 0
cmovae eax, dword [ebp - 0x284]
push 0
push 0
push esi
push 1
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x10014f12
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x10014f20
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x284]
call fcn.1001eae0
push 2
mov ecx, 0x10101274
call fcn.10034d10
mov esi, eax
test esi, esi
je 0x1001503d
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov byte [ebp - 4], 8
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10014f80
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10014f8a
mov eax, dword [edi]
push ecx
push eax
mov eax, dword [ebp - 0x298]
push dword [eax + 4]
movzx eax, byte [ebp - 0x291]
push eax
lea eax, [ebp - 0x228]
push str.acl_copy_file_ret___d_errcode___d_with___s___s__
push eax
call fcn.10035220
add esp, 0x18
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push 0x59
push str.RC::RCRestoreFile::DoRealCopyFile
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.10034d60
cmp esi, 1
jbe 0x10014fe6
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.100044d0
jmp 0x1001503d
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call fcn.100044d0
mov byte [ebp - 0x291], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10014d9c
mov byte [ebp - 0x291], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x298]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x284]
call fcn.1001eae0
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x1001506c
push eax
call esi
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x10015083
push eax
call esi
mov dword [ebp - 0x268], 0
mov esi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x260]
cmp esi, eax
je 0x100150d4
mov edi, dword [esi]
test edi, edi
je 0x100150c1
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.100044d0
push 0x24
push edi
call fcn.100d83a8
mov dword [esi], 0
add esp, 8
mov eax, dword [ebp - 0x260]
add esi, 4
cmp esi, eax
jne 0x10015093
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x2a0]
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
mov dword [ebp - 0x260], esi
cmovae eax, dword [ebp - 0x284]
xor ecx, ecx
mov dword [ebp - 0x274], 0
mov word [eax], cx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x10015165
mov eax, dword [ebp - 0x25c]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001513d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001513d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d83a8
add esp, 8
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.100044d0
cmp byte [ebp - 0x291], 0
jne 0x100153aa
mov esi, dword [ebp - 0x29c]
mov ecx, dword [esi]
cmp dword [ecx + 0xc], 0
je 0x100153aa
call fcn.10004900
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
test al, al
je 0x100153aa
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
jb 0x100151bb
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x100151c5
mov edx, dword [edi]
mov eax, dword [esi + 4]
push 1
push ecx
push edx
mov eax, dword [eax + 0x50]
lea ecx, [esi + 4]
call eax
mov byte [ebp - 0x291], al
test al, al
jne 0x100152d0
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 4], 0xc
lea edx, [ebp - 0x250]
mov ecx, ebx
call fcn.10026cf0
mov esi, dword [ebp - 0x29c]
lea edx, [ebp - 0x250]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 4]
add ecx, 4
cmp dword [ebp - 0x23c], 8
cmovae edx, dword [ebp - 0x250]
mov eax, dword [eax + 0x4c]
push edx
call eax
test al, al
jne 0x100152ad
mov eax, dword [esi]
lea edx, [ebp - 0x250]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 4]
add ecx, 4
cmp dword [ebp - 0x23c], 8
cmovae edx, dword [ebp - 0x250]
mov eax, dword [eax + 0x3c]
push edx
call eax
test al, al
je 0x100152ad
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
jb 0x1001528e
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x10015298
mov edx, dword [edi]
mov eax, dword [esi + 4]
push 1
push ecx
push edx
mov eax, dword [eax + 0x50]
lea ecx, [esi + 4]
call eax
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.100044d0
cmp byte [ebp - 0x291], 0
jne 0x100152d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100152d5
mov eax, 1
mov ecx, dword [ebp - 0x298]
push 2
mov dword [ecx + 8], eax
mov ecx, 0x10101274
call fcn.10034d10
mov esi, eax
test esi, esi
je 0x100153aa
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], 0xd
cmp dword [ebx + 0x14], 8
jb 0x10015334
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x1001533c
mov edi, dword [edi]
mov eax, dword [ebp - 0x298]
push ebx
push edi
push dword [eax + 8]
movzx eax, byte [ebp - 0x291]
push eax
lea eax, [ebp - 0x228]
push str.drive_copy_file_ret___d_errcode___d_with___s___s__
push eax
call fcn.10035220
add esp, 0x18
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push 0x72
push str.RC::RCRestoreFile::DoRealCopyFile
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.10034d60
cmp esi, 1
jbe 0x10015398
lea eax, [ebp - 0x228]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100044d0
mov al, byte [ebp - 0x291]
jmp 0x100153bc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d8362
mov esp, ebp
pop ebp
ret 0xc