Function at 0x10061440
Capabilities:
Allocate thread local storage
Check os version
Get system information on windows
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100874cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [section..data]
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
push 0x110
lea eax, [ebp - 0x124]
mov dword [ebp - 0x138], 0
push 0
push eax
mov dword [ebp - 0x128], 0x114
call fcn.1006df00
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
jne 0x100614c2
mov eax, dword [ebp - 0x124]
cmp eax, 6
jne 0x10061536
cmp dword [ebp - 0x120], 2
jae 0x10061538
xor ecx, ecx
test ecx, ecx
mov edx, str.kernel32.dll
mov eax, str.kernelbase.dll
lea ecx, [ebp - 0x158]
cmove eax, edx
push eax
call fcn.1003eba0
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push str.CAMEYO_LDR_MITIGATION
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x13c]
call fcn.1003dc20
add esp, 4
mov ecx, 0x1009c75c
mov eax, dword [eax]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006153f
test dx, dx
je 0x10061532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006153f
add eax, 4
add ecx, 4
test dx, dx
jne 0x10061510
xor eax, eax
jmp 0x10061544
jbe 0x100614c2
mov ecx, 1
jmp 0x100614c4
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x13c]
test eax, eax
sete byte [ebp - 0x129]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1006156f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x129], 0
je 0x1006189d
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x1008fa70
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x154], esp
push str.Kernelbase.dll
call fcn.10022bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
call fcn.1003a340
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0
call fcn.1003a550
mov byte [ebp - 4], 3
add esp, 8
mov ecx, dword [ebp - 0x140]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
lea ecx, [ebp - 0x134]
mov dword [esi], eax
call fcn.10043450
add esp, 4
push str.10.0.17763.2268
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 4
call fcn.10022bb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x134]
cmp dword [eax - 0xc], 2
jle 0x10061645
push 2
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x134]
call fcn.10022df0
mov ecx, 1
mov edx, 0x100a0de4
mov dword [ebp - 0x138], ecx
mov ecx, eax
call fcn.1002d580
mov byte [ebp - 0x129], 1
test al, al
jne 0x1006164c
mov byte [ebp - 0x129], 0
mov eax, dword [ebp - 0x138]
test al, 1
je 0x1006167e
mov edx, dword [ebp - 0x13c]
and eax, 0xfffffffe
add edx, 0xfffffff0
mov dword [ebp - 0x138], eax
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1006167e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x129], 0
je 0x10061699
push 0xe
push str.6.2.17763.2268
lea ecx, [ebp - 0x144]
call fcn.10023530
push ecx
mov ecx, dword [ebp - 0x144]
mov esi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x150], esp
call fcn.100236e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, dword [ebp - 0x134]
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.1003d190
mov edi, eax
lea eax, [ebp - 0x14c]
push edi
push dword [ebp - 0x144]
push dword [ebp - 0x134]
push str.DllMain:_LdrMitigation_checking:_KernelVer_s__CompareTo_s__Comparison_d
push eax
call fcn.1003a800
add esp, 0x1c
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14c]
call fcn.100394f0
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x14c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1006172d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x144]
lea eax, [ebp - 0x13c]
push dword [ebp - 0x134]
push str.DllMain:_LdrMitigation_checking:_KernelVer_s__CompareTo_s__Comparison_d
push eax
call fcn.1003a800
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x14
push dword [eax]
call esi
mov edx, dword [ebp - 0x13c]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061777
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jns 0x100617c1
push ecx
mov ecx, esp
push str.CAMEYO_LDR_MITIGATION
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x13c]
call fcn.1003dc20
mov ecx, dword [ebp - 0x138]
add esp, 4
or ecx, 2
mov edx, 0x1009c75c
mov dword [ebp - 0x138], ecx
mov ecx, eax
call fcn.1002d580
mov byte [ebp - 0x129], 0
test al, al
je 0x100617c8
mov byte [ebp - 0x129], 1
mov eax, dword [ebp - 0x138]
test al, 2
je 0x100617fa
mov edx, dword [ebp - 0x13c]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x138], eax
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100617fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x129], 0
je 0x10061855
push str.DllMain:_LdrMitigation:_activating
lea ecx, [ebp - 0x14c]
call fcn.10022bb0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14c]
call fcn.100394f0
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x14c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DllMain:_LdrMitigation:_activating
call esi
push 1
push 0x12
call fcn.1001a264
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x144]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061878
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100618bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100618bc
push str.LdrMitigation:_false
lea ecx, [ebp - 0x140]
call fcn.10022bb0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x140]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x140]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100618df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [0x100b2d30]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [esi], eax
call fcn.100373a0
add esp, 4
push 0x10093064
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x10061918
mov ecx, str.ntdll.dll_not_found
call fcn.10060c40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push esi
call edi
push str.NtQueryValueKey
push esi
mov dword [0x100b1924], eax
call edi
push str.NtQueryInformationProcess
push esi
mov dword [0x100b2394], eax
call edi
push str.NtQueryKey
push esi
mov dword [0x100b10f4], eax
call edi
push str.NtOpenKey
push esi
mov dword [0x100b1b5c], eax
call edi
push str.NtClose
push esi
mov dword [0x100b2390], eax
call edi
push str.NtWriteVirtualMemory
push esi
mov dword [0x100b191c], eax
call edi
push str.NtProtectVirtualMemory
push esi
mov dword [0x100b1928], eax
call edi
push str.NtAllocateVirtualMemory
push esi
mov dword [0x100b1b58], eax
call edi
push str.NtUnmapViewOfSection
push esi
mov dword [0x100b2bb8], eax
call edi
push str.NtQueryVirtualMemory
push esi
mov dword [0x100b1b50], eax
call edi
push str.NtEnumerateValueKey
push esi
mov dword [0x100b238c], eax
call edi
mov dword [0x100b1918], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100af300], eax
cmp eax, 0xffffffff
jne 0x100619d4
mov ecx, str.TlsAlloc_out_of_index
call fcn.10060c40
push 0x100b192c
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.10025550
push 0x100b1044
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100b2bc0
mov dword [0x100b2bc0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [0x100b2bcc]
lea eax, [ebp - 0x140]
push dword [0x100b2bc8]
push dword [0x100b2bc4]
push str.Version.MajorVer_d__MinorVer_d__Build_d
push eax
call fcn.1003a800
add esp, 0x14
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x140]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x140]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061a5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
lea esi, [ebp - 0x154]
push str.InstallHooks
lea edi, [ebp - 0x150]
call fcn.10022bb0
mov edx, esi
mov ecx, edi
call fcn.1003e870
add esp, 4
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10061a9d
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
push 0
push 0
push 0
push ecx
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0x134]
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.PRODUCTVERSION
call fcn.10022bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xc
push str.SoftwareSymantecSymantec_Endpoint_ProtectionCurrentVersion
call fcn.10022bb0
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, SysReAllocStringLen
call fcn.1003b0d0
add esp, 0x14
test eax, eax
je 0x10061c64
mov esi, dword [ebp - 0x134]
cmp dword [esi - 0xc], 0
je 0x10061c6a
push ecx
mov eax, esp
push esi
push str._SEPMODE:_turning_on___s_
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
mov dword [0x100b1b54], 1
lea esi, [ebp - 0x134]
push 1
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.szAppName
call fcn.10022bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
push str.SoftwareMcAfeeManagedServicesAgent
call fcn.10022bb0
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, SysReAllocStringLen
call fcn.1003b0d0
add esp, 0x14
test eax, eax
je 0x10061bb9
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.SECURITY_AS_A_SERVICE
call fcn.10022bb0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x134]
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xb
call fcn.1003cab0
add esp, 8
cmp eax, 0xffffffff
jne 0x10061c3e
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.szAppName
lea esi, [ebp - 0x134]
call fcn.10022bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xf
push str.SoftwareWow6432NodeMcAfeeManagedServicesAgent
call fcn.10022bb0
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, SysReAllocStringLen
call fcn.1003b0d0
add esp, 0x14
test eax, eax
je 0x10061c64
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.SECURITY_AS_A_SERVICE
call fcn.10022bb0
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x134]
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xb
call fcn.1003cab0
add esp, 8
cmp eax, 0xffffffff
je 0x10061c6a
push ecx
mov eax, esp
push esi
push str._SEPMODE:_turning_off_because_of_MSAS___s_
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
mov dword [0x100b1b54], 0
jmp 0x10061c6a
mov esi, dword [ebp - 0x134]
call fcn.10016dac
mov eax, dword [0x100b2d10]
mov dword [ebp - 0x144], eax
mov eax, dword [0x100b2d30]
cmp dword [eax - 0xc], 0
jne 0x10061cc6
push ecx
mov ecx, esp
push str.CAMEYO_WEBFS
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x13c]
call fcn.1003dc20
or dword [ebp - 0x138], 4
add esp, 4
mov edx, 0x1009c75c
mov ecx, eax
call fcn.1002d580
mov dword [ebp - 0x14c], 0
test al, al
je 0x10061cd0
mov dword [ebp - 0x14c], 1
mov ecx, dword [ebp - 0x138]
test cl, 4
je 0x10061cfa
mov edx, dword [ebp - 0x13c]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061cfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100b2d34]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov eax, dword [0x100b2d08]
cmp dword [eax - 0xc], edi
je 0x10061d9a
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.FILES_
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 0x11
mov edi, esp
mov ecx, dword [0x100b2d08]
add ecx, 0xfffffff0
call fcn.100236e0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xb
call fcn.1003cab0
add esp, 8
cmp eax, 0xffffffff
jne 0x10061d95
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.FILENAMES_
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 0x12
mov edi, esp
mov ecx, dword [0x100b2d08]
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xb
call fcn.1003cab0
add esp, 8
cmp eax, 0xffffffff
jne 0x10061d95
xor edi, edi
jmp 0x10061d9a
mov edi, 1
mov eax, dword [0x100b2d40]
xor ecx, ecx
mov dword [ebp - 0x130], eax
mov eax, dword [0x100b2d24]
cmp dword [eax - 0xc], ecx
mov eax, dword [0x100b2d28]
setne cl
mov dword [ebp - 0x138], ecx
xor ecx, ecx
cmp dword [eax - 0xc], ecx
lea eax, [ebp - 0x140]
setne cl
push ecx
push edi
push str.SandboxFiles_d__UrlRedir_d
push eax
mov dword [ebp - 0x148], ecx
call fcn.1003a800
add esp, 0x10
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x140]
call fcn.100394f0
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp - 0x140]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10061e13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x144], 0
jne 0x10061e2d
cmp dword [ebp - 0x14c], 0
jne 0x10061e2d
test edi, edi
je 0x10061f0e
push ecx
push 0x100b1060
push 0x1004efe0
mov edx, str.NtSetInformationFile
mov ecx, 0x100a0cb4
call fcn.10060d40
add esp, 8
mov edx, str.NtQueryDirectoryFile
mov ecx, 0x100a0cb4
push 0x100b1078
push 0x10053c10
call fcn.10060d40
add esp, 8
mov edx, str.NtQueryDirectoryFileEx
mov ecx, 0x100a0cb4
push 0x100b107c
push 0x10053b40
call fcn.10060d40
add esp, 8
mov edx, str.NtCreateFile
mov ecx, 0x100a0cb4
push 0x100b1074
push 0x100500c0
call fcn.10060d40
add esp, 8
mov edx, 0x100930f8
mov ecx, 0x100a0cb4
push 0x100b1068
push 0x10050320
call fcn.10060d40
add esp, 8
mov edx, str.NtQueryFullAttributesFile
mov ecx, 0x100a0cb4
push 0x100b1070
push 0x10050560
call fcn.10060d40
add esp, 8
mov edx, str.NtQueryAttributesFile
mov ecx, 0x100a0cb4
push 0x100b106c
push 0x10050760
call fcn.10060d40
add esp, 8
mov edx, str.NtDeleteFile
mov ecx, 0x100a0cb4
push 0x100b1064
push 0x1004e850
call fcn.10060d40
add esp, 0xc
push str.CreateProcessAsUserW
push 0x10093094
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
mov edx, str.Advapi32.dll
push ecx
sbb eax, eax
mov ecx, str.Kernel32.dll
neg eax
push 0x100b10a0
cmove ecx, edx
mov edx, str.CreateProcessAsUserW
push fcn.10059ce0
call fcn.10060d40
add esp, 8
mov edx, 0x100a1410
mov ecx, str.Kernel32.dll
push 0x100b109c
push 0x100596d0
call fcn.10060d40
add esp, 8
mov edx, 0x100a1420
mov ecx, str.Kernel32.dll
push 0x100b1098
push 0x100597a0
call fcn.10060d40
add esp, 8
mov edx, 0x100a1430
mov ecx, str.Kernel32.dll
push 0x100b10c8
push fcn.1005c250
call fcn.10060d40
add esp, 8
mov edx, str.GetCurrentDirectoryA
mov ecx, str.Kernel32.dll
push 0x100b10bc
push 0x1005c360
call fcn.10060d40
mov edi, dword [ebp - 0x138]
add esp, 0xc
cmp dword [ebp - 0x144], 0
jne 0x10061fdf
test edi, edi
jne 0x10061fdf
cmp dword [ebp - 0x13c], edi
je 0x1006216d
push ecx
push 0x100b1088
push 0x10057b40
mov edx, 0x100a1460
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x1006201d
push ecx
push 0x100b1088
push 0x10057b40
mov edx, 0x100a1460
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
push ecx
push 0x100b108c
push 0x10057d80
mov edx, str.CoCreateInstanceEx
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x1006205b
push ecx
push 0x100b108c
push 0x10057d80
mov edx, str.CoCreateInstanceEx
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
push ecx
push 0x100b1084
push 0x10058110
mov edx, str.CoGetClassObject
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x10062099
push ecx
push 0x100b1084
push 0x10058110
mov edx, str.CoGetClassObject
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
cmp dword [ebp - 0x144], 0
jne 0x100620aa
test edi, edi
je 0x1006216d
push ecx
push 0x100b1080
push 0x10058410
mov edx, str.CoGetObject
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x100620e8
push ecx
push 0x100b1080
push 0x10058410
mov edx, str.CoGetObject
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
push ecx
push 0x100b1094
push 0x100587f0
mov edx, str.CoGetInstanceFromFile
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x10062126
push ecx
push 0x100b1094
push 0x100587f0
mov edx, str.CoGetInstanceFromFile
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
push ecx
push 0x100b1090
push 0x10058c40
mov edx, str.CoGetInstanceFromIStorage
mov ecx, str.Ole32.dll
call fcn.10060d40
add esp, 0xc
test eax, eax
jne 0x10062164
push ecx
push 0x100b1090
push 0x10058c40
mov edx, str.CoGetInstanceFromIStorage
mov ecx, str.combase.dll
call fcn.10060d40
add esp, 0xc
cmp dword [ebp - 0x144], 0
jne 0x10062176
cmp dword [ebp - 0x148], 0
je 0x100621e7
push ecx
push 0x100b10f0
push 0x1005f320
mov edx, 0x100a14dc
mov ecx, str.Shell32.dll
call fcn.10060d40
add esp, 8
mov edx, str.ShellExecuteExA
mov ecx, str.Shell32.dll
push 0x100b10ec
push 0x1005f7e0
call fcn.10060d40
add esp, 8
mov edx, str.ShellExecuteA
mov ecx, str.Shell32.dll
push 0x100b10e8
push 0x1005fec0
call fcn.10060d40
add esp, 8
mov edx, str.ShellExecuteW
mov ecx, str.Shell32.dll
push 0x100b10e4
push 0x1005fb40
call fcn.10060d40
add esp, 0xc
mov eax, dword [0x100b2d18]
cmp dword [eax - 0xc], 0
je 0x1006222b
push ecx
push 0x100b10a8
push 0x1005bf50
mov edx, str.GetComputerNameA
mov ecx, str.Kernel32.dll
call fcn.10060d40
add esp, 8
mov edx, 0x100a153c
mov ecx, str.Kernel32.dll
push 0x100b10b8
push 0x1005be70
call fcn.10060d40
add esp, 0xc
mov eax, dword [0x100b2d1c]
cmp dword [eax - 0xc], 0
je 0x1006226f
push ecx
push 0x100b10d4
push 0x1005c140
mov edx, str.GetUserNameA
mov ecx, str.Advapi32.dll
call fcn.10060d40
add esp, 8
mov edx, 0x100a1560
mov ecx, str.Advapi32.dll
push 0x100b10cc
push 0x1005c060
call fcn.10060d40
add esp, 0xc
cmp dword [0x100b2d2c], 0
je 0x10062295
push ecx
push 0x100b10ac
push 0x1005c7a0
mov edx, str.DdeCreateDataHandle
mov ecx, str.User32.dll
call fcn.10060d40
add esp, 0xc
cmp dword [ebp - 0x13c], 0
je 0x1006230f
push ecx
push 0x100b100c
push 0x1004a990
mov edx, str.GetSaveFileNameA
mov ecx, str.Comdlg32.dll
call fcn.10060d40
add esp, 8
mov edx, str.GetOpenFileNameA
mov ecx, str.Comdlg32.dll
push 0x100b1008
push 0x1004ac90
call fcn.10060d40
add esp, 8
mov edx, str.GetSaveFileNameW
mov ecx, str.Comdlg32.dll
push 0x100b1004
push fcn.1004b010
call fcn.10060d40
add esp, 8
mov edx, str.GetOpenFileNameW
mov ecx, str.Comdlg32.dll
push 0x100b1010
push fcn.1004b120
call fcn.10060d40
add esp, 0xc
cmp dword [ebp - 0x130], 0
je 0x1006236d
push ecx
push 0x100b10b4
push 0x1005dc70
mov edx, str.CreateMailslotW
mov ecx, str.Kernel32.dll
call fcn.10060d40
add esp, 8
mov edx, 0x100a1600
mov ecx, str.Kernel32.dll
push 0x100b10d0
push fcn.1005e060
call fcn.10060d40
add esp, 8
mov edx, 0x100a160c
mov ecx, str.Kernel32.dll
push 0x100b10c4
push 0x1005e240
call fcn.10060d40
add esp, 0xc
mov eax, dword [0x100b2d44]
cmp dword [eax - 0xc], 0
je 0x100623ab
push ecx
mov ecx, esp
push eax
push str.NtQuerySystemInformation:_hooking__ProcessHide_ws_
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.10021810
push 0x100b10d8
push 0x1005de80
mov edx, str.NtQuerySystemInformation
mov ecx, 0x100a0cb4
call fcn.10060d40
add esp, 0xc
push ecx
mov ecx, esp
push str.CAMEYO_DPAPI
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.1003dc20
add esp, 4
mov edx, 0x10094274
mov byte [ebp - 4], 0x14
mov ecx, eax
call fcn.10037960
mov byte [ebp - 4], 0xb
mov edx, ebx
mov edi, dword [ebp - 0x130]
add edi, 0xfffffff0
mov byte [ebp - 0x129], al
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006240a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x129]
test al, al
je 0x1006245c
push ecx
mov eax, esp
push str.DllMain:_enabling_DPAPI_hooks
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
push 0x100b10a4
push 0x1005e2a0
mov edx, str.CryptProtectData
mov ecx, str.crypt32.dll
call fcn.10060d40
add esp, 8
mov edx, str.CryptUnprotectData
mov ecx, str.crypt32.dll
push 0x100b10c0
push 0x1005e4f0
call fcn.10060d40
add esp, 0xc
push ecx
mov ecx, esp
push str.CAMEYO_WINCRED
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.1003dc20
add esp, 4
mov edx, 0x10094274
mov byte [ebp - 4], 0x15
mov ecx, eax
call fcn.10037960
mov byte [ebp - 4], 0xb
mov edx, ebx
mov edi, dword [ebp - 0x130]
add edi, 0xfffffff0
mov byte [ebp - 0x129], al
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100624bb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x129]
test al, al
je 0x10062552
push ecx
mov eax, esp
push str.DllMain:_enabling_WINCRED_hooks
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
add esp, 4
call fcn.10048d20
push ecx
push 0x100b0ff8
push 0x100489c0
mov edx, 0x100a1798
mov ecx, str.advapi32.dll
call fcn.10060d40
add esp, 8
mov edx, str.CredWriteA
mov ecx, str.advapi32.dll
push 0x100b0ffc
push 0x10048a90
call fcn.10060d40
add esp, 8
mov edx, str.CredDeleteW
mov ecx, str.advapi32.dll
push 0x100b0ff4
push 0x10048b60
call fcn.10060d40
add esp, 8
mov edx, str.CredDeleteA
mov ecx, str.advapi32.dll
push 0x100b1000
push 0x10048c20
call fcn.10060d40
add esp, 0xc
push ecx
mov ecx, esp
push str.CAMEYO_WTS
call fcn.10022bb0
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.1003dc20
add esp, 4
mov edx, 0x10094274
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.10037960
mov byte [ebp - 4], 0xb
mov edx, ebx
mov edi, dword [ebp - 0x130]
add edi, 0xfffffff0
mov byte [ebp - 0x129], al
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100625b1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x129]
test al, al
je 0x10062603
push ecx
mov eax, esp
push str.DllMain:_enabling_WTS_hooks
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
push 0x100b10b0
push 0x1005e950
mov edx, str.WTSQuerySessionInformationA
mov ecx, str.wtsapi32.dll
call fcn.10060d40
add esp, 8
mov edx, str.WTSQuerySessionInformationW
mov ecx, str.wtsapi32.dll
push 0x100b10dc
push 0x1005eb40
call fcn.10060d40
add esp, 0xc
push ecx
push 0x100b10e0
push 0x1005eea0
mov edx, str.NtClose
mov ecx, 0x100a0cb4
call fcn.10060d40
add esp, 0xc
call fcn.10016db4
mov edx, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
push 1
call fcn.1003ea90
add esi, 0xfffffff0
mov byte [ebp - 4], 0
add esp, 4
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10062658
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x158]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1006267c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.1006abfd
mov esp, ebp
pop ebp
ret