Function at 0x420c60
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x22c]
sub esp, 0x22c
push 0xffffffffffffffff
push 0x4687f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48fac0]
xor eax, ebp
mov dword [ebp + 0x228], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.COLShadow::CreateUserEnvironment
push str._____s__IN
mov edi, ecx
call fcn.00409e70
xor esi, esi
add esp, 8
mov dword [ebp - 4], esi
call dword [0x490f8c]
mov dword [ebp - 0x34], esi
push str.Before_CreateObject
mov byte [ebp - 4], 1
call fcn.00409e70
mov ebx, dword [edi + 0x54]
add esp, 4
push str.Redemption.SafeCurrentUser
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x420cf0
push 0x8007000e
call fcn.00401210
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
lea ecx, [ebp - 0x34]
push ecx
push esi
push ebx
mov byte [ebp - 4], 2
call edx
push esi
mov ebx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
jge 0x420d24
push 0x484ef4
lea eax, [ebp - 0x1b]
push eax
mov byte [ebp - 0x1b], 0
call fcn.004489f1
push str.Before_spUser
call fcn.00409e70
mov eax, dword [ebp - 0x34]
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [ebp - 0x2c], esi
je 0x420d4d
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x471ed4
push eax
mov eax, dword [ecx]
call eax
cmp dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
jne 0x420d68
push 0x484ef4
lea ecx, [ebp - 0x23]
push ecx
mov byte [ebp - 0x23], 0
call fcn.004489f1
mov dword [ebp - 0x38], esi
push str.Before_get_Address
mov byte [ebp - 4], 4
call fcn.00409e70
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push eax
call edx
cmp eax, esi
jge 0x420da1
push 0x484ef4
lea eax, [ebp - 0x25]
push eax
mov byte [ebp - 0x25], 0
call fcn.004489f1
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov bl, 5
push str.Before_get_Fields
mov byte [ebp - 4], bl
call fcn.00409e70
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
add esp, 4
lea ecx, [ebp - 0x48]
push ecx
push 0x39fe001e
push eax
call edx
cmp eax, esi
jge 0x420de7
push 0x484ef4
lea eax, [ebp - 0x27]
push eax
mov byte [ebp - 0x27], 0
call fcn.004489f1
mov ecx, dword [ebp - 0x2c]
call fcn.004179b0
push 0x208
lea ecx, [ebp + 0x1e]
push esi
push ecx
mov word [ebp + 0x1c], si
call fcn.004481f0
mov eax, dword [edi + 0x20]
add esp, 0xc
push esi
push 0x23
lea edx, [ebp + 0x1c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x420e39
push str.Error_when_SHGetSpecialFolderPath
call fcn.00409e70
add esp, 4
push 0x484ef4
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 0x1c], 0
call fcn.004489f1
lea edx, [ebp + 0x1c]
push edx
mov ecx, 0x4910b0
call fcn.00404b20
push 0x46e0a8
mov ecx, 0x4910b0
call fcn.00405800
push str.Trend_Micro_
mov ecx, 0x4910b0
call fcn.00405800
push 0x4910b0
mov ecx, 0x4910b4
call fcn.004037f0
push 0x473b88
mov ecx, 0x4910b0
call fcn.00405800
mov eax, dword [0x4910b0]
push esi
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
jne 0x420ebc
mov ecx, dword [0x4910b0]
push esi
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x420ebc
push 0x484ef4
lea edx, [ebp - 0x1f]
push edx
mov byte [ebp - 0x1f], 0
call fcn.004489f1
push str.Users_
lea eax, [ebp - 0x18]
push 0x4910b0
push eax
call fcn.0040bb70
add esp, 0xc
push eax
mov ecx, 0x4910b8
mov byte [ebp - 4], 6
call fcn.004037f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00408280
mov ecx, dword [0x4910b8]
push esi
push ecx
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
jne 0x420f33
push str.Before_CreateDirectory
call fcn.00409e70
mov edx, dword [0x4910b8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
push esi
push edx
call edi
test eax, eax
jne 0x420f39
mov byte [ebp - 0x21], al
push 0x484ef4
lea eax, [ebp - 0x21]
push eax
call fcn.004489f1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x420f43
push eax
jmp 0x420f47
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, 0x4910c4
call fcn.00404b20
push 0x4910c4
mov ecx, 0x4910b8
call fcn.004057e0
push 0x46e0a8
mov ecx, 0x4910b8
call fcn.00405800
push 0x46d9f4
lea ecx, [ebp]
call fcn.00406890
lea edx, [ebp]
push edx
mov byte [ebp - 4], 7
call fcn.0042f240
add esp, 4
test al, al
jne 0x420faf
push str.Failed_to_get_mui_resource_folder_path_for_loading_BlockEncodings.dat__
call fcn.00409e70
add esp, 4
push 0x484ef4
lea eax, [ebp - 0x22]
push eax
mov byte [ebp - 0x22], 0
call fcn.004489f1
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x420fbb
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406140
mov ecx, dword [0x4910b8]
push esi
push ecx
mov byte [ebp - 4], 8
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
jne 0x421061
mov edx, dword [0x4910b8]
push esi
push edx
call edi
test eax, eax
jne 0x42100e
push str.Error_when_CreateDirectory
call fcn.00409e70
add esp, 4
push 0x484ef4
lea eax, [ebp - 0x1e]
push eax
mov byte [ebp - 0x1e], 0
call fcn.004489f1
push str.BlockEncodings.dat
lea ecx, [ebp - 0x14]
push 0x4910b8
push ecx
call fcn.0040bb70
add esp, 0xc
mov esi, eax
push str.BlockEncodings.dat
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.0040bb70
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.00408280
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00408280
push str.BlockEncodings.dat
lea ecx, [ebp - 0x14]
push 0x4910b8
push ecx
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
test bl, bl
je 0x4210ee
push str.BlockEncodings.dat
lea edx, [ebp - 0x18]
push 0x4910b8
push edx
call fcn.0040bb70
add esp, 0xc
mov esi, eax
push str.BlockEncodings.dat
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0040bb70
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x14]
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
jmp 0x4211be
lea ecx, [ebp - 0x58]
call fcn.0040aa40
push str.BlockEncodings.dat
lea edx, [ebp - 0x18]
push 0x4910b8
push edx
mov byte [ebp - 4], 0xb
call fcn.0040bb70
add esp, 0xc
mov esi, eax
push str.BlockEncodings.dat
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0xc
call fcn.0040bb70
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.0040b060
test al, al
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.00408280
test bl, bl
je 0x4211b2
push str.BlockEncodings.dat
lea edx, [ebp - 0x18]
push 0x4910b8
push edx
call fcn.0040bb70
add esp, 0xc
mov esi, eax
push str.BlockEncodings.dat
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0xe
call fcn.0040bb70
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
push str.____Migrate_Blocked_Encodings_List_failed__Src_s__Dst_s
mov byte [ebp - 4], 0xf
call fcn.00409e70
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00408280
lea ecx, [ebp - 0x18]
call fcn.00408280
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.0040a330
push str.trained_
lea ecx, [ebp - 0x14]
push 0x4910b8
push ecx
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
test bl, bl
je 0x421233
push str.trained_
lea edx, [ebp - 0x14]
push 0x4910b8
push edx
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
test bl, bl
je 0x421233
push 0x484ef4
lea eax, [ebp - 0x26]
push eax
mov byte [ebp - 0x26], 0
call fcn.004489f1
push str.trained_
lea ecx, [ebp - 0x18]
push 0x4910b8
push ecx
call fcn.0040bb70
add esp, 0xc
push str.spam_
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 0x10
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4212ec
push str.trained_
lea eax, [ebp - 0x18]
push 0x4910b8
push eax
call fcn.0040bb70
add esp, 0xc
push str.spam_
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0x11
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4212ec
push 0x484ef4
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 0x20], 0
call fcn.004489f1
push str.trained_
lea eax, [ebp - 0x18]
push 0x4910b8
push eax
call fcn.0040bb70
add esp, 0xc
push str.normal_
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0x12
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4213a5
push str.trained_
lea edx, [ebp - 0x18]
push 0x4910b8
push edx
call fcn.0040bb70
add esp, 0xc
push str.normal_
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4213a5
push 0x484ef4
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 0x24], 0
call fcn.004489f1
push str.untrained_
lea edx, [ebp - 0x14]
push 0x4910b8
push edx
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
test bl, bl
je 0x42141a
push str.untrained_
lea eax, [ebp - 0x14]
push 0x4910b8
push eax
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
test bl, bl
je 0x42141a
push 0x484ef4
lea ecx, [ebp - 0x19]
push ecx
mov byte [ebp - 0x19], 0
call fcn.004489f1
push str.untrained_
lea edx, [ebp - 0x18]
push 0x4910b8
push edx
call fcn.0040bb70
add esp, 0xc
push str.spam_
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x14
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4214d3
push str.untrained_
lea ecx, [ebp - 0x18]
push 0x4910b8
push ecx
call fcn.0040bb70
add esp, 0xc
push str.spam_
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 0x15
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x4214d3
push 0x484ef4
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.004489f1
push str.untrained_
lea ecx, [ebp - 0x18]
push 0x4910b8
push ecx
call fcn.0040bb70
add esp, 0xc
push str.normal_
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 0x16
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call fcn.0044a108
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x42158c
push str.untrained_
lea eax, [ebp - 0x18]
push 0x4910b8
push eax
call fcn.0040bb70
add esp, 0xc
push str.normal_
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0x17
call fcn.0040bb70
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00408280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00408280
test bl, bl
je 0x42158c
push 0x484ef4
lea edx, [ebp - 0x1a]
push edx
mov byte [ebp - 0x1a], 0
call fcn.004489f1
mov eax, dword [0x4910b8]
push eax
push str.____Users_Profile_path:__s
call fcn.00409e70
add esp, 8
push str.TMAntispam.ini
lea ecx, [ebp - 0x14]
push 0x4910b8
push ecx
call fcn.0040bb70
add esp, 0xc
push eax
mov ecx, 0x4910bc
mov byte [ebp - 4], 0x18
call fcn.004037f0
lea ecx, [ebp - 0x14]
call fcn.00408280
lea ecx, [ebp - 0x30]
call fcn.00408280
lea ecx, [ebp]
call fcn.00403260
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 1
je 0x421603
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x34]
test eax, eax
mov byte [ebp - 4], 0
je 0x421616
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
push str.COLShadow::CreateUserEnvironment
push str._____s__OUT
call fcn.00409e70
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00448e02
add ebp, 0x22c
mov esp, ebp
pop ebp
ret