Function at 0x10007040
Capabilities:
Contain obfuscated stackstrings
Get process image filename
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100225d3
mov eax, dword fs:[0]
push eax
sub esp, 0xd70
mov eax, dword [0x1002d1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100077fd
dec eax
jne 0x10007842
mov eax, dword [ebp + 8]
mov dword [0x1002eb8c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.1000e300
add esp, 0xc
lea eax, [ebp - 0xc34]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100077eb
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov ecx, 0x10031008
lea edx, [ecx + 2]
jmp 0x100070e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100070e0
sub ecx, edx
sar ecx, 1
je 0x100077eb
mov eax, 0x10031008
mov edi, 0x6f
nop
mov ecx, eax
add eax, 0x208
mov dword [ebp - 0xcf4], eax
lea eax, [ebp - 0xc34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10007139
test dx, dx
je 0x10007135
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10007139
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007113
xor eax, eax
jmp 0x1000713e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100077c1
xor esi, esi
xorps xmm0, xmm0
movq qword [ebp - 0xcec], xmm0
mov dword [ebp - 0xce4], esi
mov dword [ebp - 0xcec], esi
mov dword [ebp - 0xce8], esi
mov dword [ebp - 0xce4], esi
push esi
push esi
push 0x2001f
push esi
mov word [ebp - 0xc8], ax
lea ecx, [ebp - 0xcec]
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 4], esi
push eax
push 0x80000001
mov dword [ebp - 0x128], 0x6f0053
mov dword [ebp - 0x124], 0x740066
mov dword [ebp - 0x120], 0x610077
mov dword [ebp - 0x11c], 0x650072
mov dword [ebp - 0x118], 0x5c005c
mov dword [ebp - 0x114], 0x38007b
mov dword [ebp - 0x110], 0x340045
mov dword [ebp - 0x10c], 0x390044
mov dword [ebp - 0x108], 0x440037
mov dword [ebp - 0x104], 0x2d0044
mov dword [ebp - 0x100], 0x380032
mov dword [ebp - 0xfc], 0x360030
mov dword [ebp - 0xf8], 0x34002d
mov dword [ebp - 0xf4], 0x320045
mov dword [ebp - 0xf0], 0x2d0045
mov dword [ebp - 0xec], 0x410039
mov dword [ebp - 0xe8], 0x340033
mov dword [ebp - 0xe4], 0x42002d
mov dword [ebp - 0xe0], 0x430046
mov dword [ebp - 0xdc], 0x310042
mov dword [ebp - 0xd8], 0x370035
mov dword [ebp - 0xd4], 0x440046
mov dword [ebp - 0xd0], 0x460042
mov dword [ebp - 0xcc], 0x7d0031
call fcn.10003ca0
test eax, eax
jne 0x10007379
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0xcec]
lea eax, [ebp - 0xcf0]
mov dword [ebp - 0xcf0], 0x104
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x4c], 0x61004e
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x65006d
push eax
call fcn.10004040
test eax, eax
jne 0x10007354
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10007354
xor eax, eax
mov dword [ebp - 0x5c], 0x6f0053
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x58], 0x630069
push eax
mov dword [ebp - 0x54], 0x6f006a
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10007354
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1002eb94], eax
test eax, eax
je 0x10007354
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x74736e49
push ecx
push eax
mov dword [ebp - 0x2c], 0x486c6c61
mov dword [ebp - 0x28], 0x736b6f6f
mov byte [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007354
call eax
mov esi, 1
mov edi, dword [ebp - 0xcec]
test edi, edi
je 0x1000736d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0xcec], edi
mov dword [ebp - 0xce8], 0
jmp 0x1000737f
mov edi, dword [ebp - 0xcec]
test esi, esi
jne 0x10007796
xor eax, eax
mov dword [ebp - 0x9c], 0x500025
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x330]
push 0x104
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x98], 0x6f0072
push eax
mov dword [ebp - 0x94], 0x720067
mov dword [ebp - 0x90], 0x6d0061
mov dword [ebp - 0x8c], 0x690046
mov dword [ebp - 0x88], 0x65006c
mov dword [ebp - 0x84], 0x250073
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10007796
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0xc4], 0x720067
push eax
mov dword [ebp - 0xc0], 0x6f006f
mov dword [ebp - 0xbc], 0x650076
mov dword [ebp - 0xb8], 0x330072
mov dword [ebp - 0xb4], 0x310030
mov dword [ebp - 0xb0], 0x320031
mov dword [ebp - 0xac], 0x310030
mov dword [ebp - 0xa8], 0x320035
mov dword [ebp - 0xa4], 0x310031
mov dword [ebp - 0xa0], 0x37
call esi
test eax, eax
je 0x10007796
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x720074
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x78], 0x650065
push eax
mov dword [ebp - 0x74], 0x6a002e
mov dword [ebp - 0x70], 0x73
call esi
test eax, eax
je 0x10007796
mov dword [ebp - 0xc48], 0xf
mov dword [ebp - 0xc4c], 0
mov byte [ebp - 0xc5c], 0
lea eax, [ebp - 0x330]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd4c]
call fcn.10002b60
lea eax, [ebp - 0xc5c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xd4c]
push eax
call fcn.100040e0
add esp, 8
mov byte [ebp - 4], 1
test eax, eax
lea ecx, [ebp - 0xd4c]
setne byte [ebp - 0xcdd]
call fcn.100031e0
cmp byte [ebp - 0xcdd], 0
je 0x1000755b
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0xd34]
call fcn.10002b60
lea eax, [ebp - 0xc5c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.10004660
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd34]
call fcn.100031e0
cmp dword [ebp - 0xc4c], 0
je 0x1000778b
xorps xmm0, xmm0
lea ecx, [ebp - 0xc6c]
push 0
movdqu xmmword [ebp - 0xc6c], xmm0
call fcn.100084e0
push 0x70
lea eax, [ebp - 0xcdc]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.1000e300
add esp, 0xc
lea ecx, [ebp - 0xcdc]
call fcn.10009840
push 1
lea eax, [ebp - 0xc6c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc5c]
push eax
lea ecx, [ebp - 0xcdc]
call fcn.1000b0f0
test al, al
je 0x10007771
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x74736e69
push 0x10023380
lea ecx, [ebp - 0xd04]
mov dword [ebp - 0x1c], 0x5f6c6c61
mov dword [ebp - 0x18], 0x68746170
mov word [ebp - 0x14], 0x3233
mov byte [ebp - 0x12], 0
movdqu xmmword [ebp - 0xc44], xmm0
call fcn.10008450
lea eax, [ebp - 0xd04]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0xc6c]
call fcn.10009340
lea ecx, [ebp - 0xd04]
mov byte [ebp - 4], 8
call fcn.10008700
lea ecx, [ebp - 0xc44]
call fcn.100093c0
test al, al
jne 0x10007762
lea ecx, [ebp - 0xc44]
call fcn.100093f0
test al, al
je 0x10007762
lea eax, [ebp - 0xd7c]
push eax
lea ecx, [ebp - 0xc44]
call fcn.10008dd0
cmp dword [eax + 0x14], 0x10
jb 0x10007673
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x434]
push 0x104
push eax
call fcn.1000e4d1
add esp, 0xc
lea ecx, [ebp - 0xd7c]
call fcn.10001150
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x10007762
xor eax, eax
mov dword [ebp - 0x6c], 0x6f0053
mov word [ebp - 0x60], ax
lea ecx, [ebp - 0xd1c]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x68], 0x630069
push eax
mov dword [ebp - 0x64], 0x6f006a
call fcn.10002b60
lea eax, [ebp - 0xd1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xd64]
push eax
call fcn.10003ba0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x100076f4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0xd64]
mov esi, eax
call fcn.10001150
lea ecx, [ebp - 0xd1c]
mov byte [ebp - 4], 8
call fcn.100031e0
test esi, esi
je 0x10007762
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002eb94], eax
test eax, eax
je 0x10007762
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x74736e49
push ecx
push eax
mov dword [ebp - 0x3c], 0x486c6c61
mov dword [ebp - 0x38], 0x736b6f6f
mov byte [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007762
call eax
lea ecx, [ebp - 0xc44]
mov byte [ebp - 4], 5
call fcn.10008700
lea ecx, [ebp - 0xcdc]
call fcn.10003330
lea ecx, [ebp - 0xc6c]
mov byte [ebp - 4], 1
call fcn.10008700
lea ecx, [ebp - 0xc5c]
call fcn.10001150
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100077b2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xcec], 0
mov dword [ebp - 0xce8], 0
mov edi, 0x6f
mov eax, dword [ebp - 0xcf4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100077d0
sub eax, edx
sar eax, 1
mov eax, dword [ebp - 0xcf4]
jne 0x10007100
push str.27337A43_7630_4CEC_8639_EBCFD8434CB8
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x1002eb90], eax
jmp 0x10007842
mov eax, dword [0x1002eb94]
test eax, eax
je 0x10007842
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x6e696e55
push ecx
push eax
mov dword [ebp - 0x1c], 0x6c617473
mov dword [ebp - 0x18], 0x6f6f486c
mov word [ebp - 0x14], 0x736b
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007836
call eax
push dword [0x1002eb94]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 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.1000d844
mov esp, ebp
pop ebp
ret 0xc