Function at 0x10008be0
Capabilities:
Check if file exists
Get session user name
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b1c7
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
lea esi, [edi + 0x80]
mov dword [ebp - 0x298], edx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10008c27
mov eax, dword [esi]
push str.InstallLocation
push eax
lea eax, [ebp - 0x230]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.100061f0
add esp, 0x10
cmp dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
jbe 0x10008c8e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10005ed0
mov ecx, 1
add esp, 8
mov dword [ebp - 0x298], ecx
cmp dword [eax + 0x10], 0
ja 0x10008c94
mov byte [ebp - 0x291], cl
jmp 0x10008c9b
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 0x291], 0
test cl, 1
je 0x10008cb4
and ecx, 0xfffffffe
mov dword [ebp - 0x298], ecx
lea ecx, [ebp - 0x248]
call fcn.10003730
cmp byte [ebp - 0x291], 0
je 0x10008ce0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp byte [edi + 0x98], 0
jne 0x10008df2
cmp dword [ebp - 0x220], 0
ja 0x10009041
cmp dword [esi + 0x14], 8
jb 0x10008d02
mov esi, dword [esi]
push str.InstallLocation
push esi
lea eax, [ebp - 0x248]
push SysReAllocString
push eax
call fcn.100061f0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10008d59
mov ecx, eax
call fcn.10003730
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x248]
call fcn.10003730
cmp dword [ebp - 0x220], 0
jbe 0x10008da9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10005ed0
mov edx, dword [ebp - 0x298]
add esp, 8
or edx, 2
cmp dword [eax + 0x10], 0
ja 0x10008daf
mov byte [ebp - 0x291], 1
jmp 0x10008db6
mov edx, dword [ebp - 0x298]
mov byte [ebp - 0x291], 0
test dl, 2
je 0x10008dc6
lea ecx, [ebp - 0x248]
call fcn.10003730
cmp byte [ebp - 0x291], 0
je 0x10008df2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
ja 0x10009041
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002fe40
add esp, 0xc
mov dword [ebp - 0x298], 0x104
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp - 0x298]
xor eax, eax
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 7
push eax
call fcn.100039c0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
call fcn.10007230
add esp, 4
cmp byte [edi + 0x98], 0
mov byte [ebp - 4], 2
jne 0x10008ee2
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x260]
cmovae ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.10006bd0
add esp, 8
test al, al
je 0x10008ee2
push 0
lea eax, [ebp - 0x278]
push 0x1c
push eax
call fcn.10006070
add esp, 0xc
lea ecx, [ebp - 0x230]
push eax
call fcn.10003790
jmp 0x10008f81
lea eax, [ebp - 0x278]
push eax
call fcn.100073f0
add esp, 4
push 0x42
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.10003840
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push str.Local_AppData
cmovae eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x290]
push VariantInit
push eax
call fcn.100061f0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10008f72
mov ecx, eax
call fcn.10003730
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x290]
call fcn.10003730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.10003730
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008fbd
push 0x16
push str.C:Program_Files__x86_
lea ecx, [ebp - 0x230]
call fcn.100039c0
cmp dword [ebp - 0x220], 0
jbe 0x10009027
lea eax, [ebp - 0x230]
push eax
call fcn.10006b90
add esp, 4
test eax, eax
jne 0x10008feb
push 1
push 0x10051f04
lea ecx, [ebp - 0x230]
call fcn.10003840
lea eax, [ebp - 0x290]
push str.SOFT_NAME_EN
push eax
call fcn.1000cd10
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x1000900d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10003840
lea ecx, [ebp - 0x290]
call fcn.10003730
lea ecx, [ebp - 0x248]
call fcn.10003730
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.10003730
lea eax, [ebp - 0x230]
push eax
call fcn.10006b90
add esp, 4
test eax, eax
jne 0x10009066
push 1
push 0x10051f04
lea ecx, [ebp - 0x230]
call fcn.10003840
lea ecx, [edi + 8]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x1000908d
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.100039c0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x100090c9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100090bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090e6
push edx
push ecx
call fcn.10018a63
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret
call fcn.10034149
int3