Function at 0x4036b0
Capabilities:
Copy file
Create directory
Get common file path
Persist via lnk shortcut
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x530
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0xf003f
push ebp
push str.SYSTEMCurrentControlSetControlClass6BDD1FC6_810F_11D0_BEC7_08002BE2092F
push 0x80000002
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037e5
push ebp
push ebp
mov edx, dword [esp + 0x1c]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x30]
push ebp
push ecx
push ebp
push ebp
push ebp
push edx
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
lea esi, [eax - 1]
cmp esi, ebp
jl 0x4037d1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 0x104
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x338]
push ebx
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4037ca
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
lea ecx, [esp + 0x340]
push ebp
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037ca
lea eax, [esp + 0x24]
lea ecx, [esp + 0x43c]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
push ebp
push str.NTMPDriver
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x4037ca
lea ecx, [esp + 0x43c]
push str.BisonCam.sys
push ecx
call fcn.00403de0
add esp, 8
test eax, eax
jne 0x4037ca
mov dword [esp + 0x20], esi
dec esi
jns 0x40374b
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x10
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
call ebp
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x130]
push edx
push eax
call ebx
mov edi, str.Acer_OrbiCam.lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
push 2
push 0
rep movsb byte es:[edi], byte [esi]
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
mov edi, str.Acer_OrbiCam
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.Acer_OrbiCam.lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea edx, [esp + 0x234]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4099e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x234]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov edi, str.BisonCamAcer_OrbiCam.lnk
je 0x4038fa
mov edi, str.BisonCamAcer_OrbiCam_1.lnk
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x23c]
push ecx
call esi
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x238]
push edx
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x530
ret