Function at 0x100f7a10
Capabilities:
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126560
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100f7a57
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100f7a87
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x100f7abc
push 0x514
lea ecx, [ebp - 0x14]
call fcn.100249c0
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.CAMEYO_IMAGINARYEXEC_APPNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x100f80c5
cmp eax, dword [esi - 8]
jg 0x100f80c5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x100f7bd6
lea eax, [ebp - 0x14]
mov ecx, 0x10175444
push eax
call fcn.100244b0
lea eax, [ebp - 0x14]
mov ecx, 0x10175428
push eax
call fcn.100244b0
push ecx
mov ecx, dword [0x10175428]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [edi], eax
call fcn.1003cd10
add esp, 4
push eax
mov ecx, 0x10175428
mov byte [ebp - 4], 2
call fcn.100244b0
mov byte [ebp - 4], 1
or edx, 0xffffffff
mov edi, dword [ebp - 0x1c]
mov eax, edx
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100f7b6c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [0x10175428]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [edi], eax
mov eax, 0x5c
movzx edx, ax
call fcn.100452e0
add esp, 4
push eax
mov ecx, 0x10175440
mov byte [ebp - 4], 3
call fcn.100244b0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7bc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.CAMEYO_IMAGINARYEXEC_APPNAME
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x100f7bd9
or edi, 0xffffffff
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x100f7bfd
push 0x514
lea ecx, [ebp - 0x14]
call fcn.100249c0
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.CAMEYO_IMAGINARYEXEC_CMDLINE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [esi - 8]
mov dword [ebp - 0x1c], eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x100f80c5
cmp eax, dword [esi - 8]
jg 0x100f80c5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x1c], ecx
je 0x100f7c57
lea eax, [ebp - 0x14]
mov ecx, 0x1017542c
push eax
call fcn.100244b0
push 0
push str.CAMEYO_IMAGINARYEXEC_CMDLINE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [0x10175444]
cmp dword [eax - 0xc], 0
je 0x100f7dd2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x100f7c8a
push 0x514
lea ecx, [ebp - 0x14]
call fcn.100249c0
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.CAMEYO_IMAGINARYEXEC_CURDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [esi - 8]
mov dword [ebp - 0x1c], eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x100f80c5
cmp eax, dword [esi - 8]
jg 0x100f80c5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x1c], ecx
je 0x100f7d20
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
lea eax, [ebp - 0x18]
push str.ImaginaryExecInit:_SetCurDir__s__d__LE_d
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 4
mov ecx, str.DllMain
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7d20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push dword [0x1017542c]
push dword [0x10175444]
push str.ImaginaryExecInit:_ExecAppName__s___CmdLine__s_
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 6
mov ecx, str.DllMain
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7d72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov edx, 0x101746c0
mov ecx, edi
call fcn.10044290
add esp, 4
test eax, eax
jne 0x100f7e1f
push str._ImaginaryExecInit:_GetProcessPEB_failed
lea ecx, [ebp - 0x18]
call fcn.10023fc0
mov byte [ebp - 4], 7
mov ecx, str.DllMain
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7dd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7def
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100f7e0d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101746c8]
mov dword [0x10173658], eax
mov eax, dword [0x101746d0]
mov dword [0x10173e88], 0xf000000
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100f7f5f
movzx ebx, word [eax + 0x38]
mov edi, dword [eax + 0x3c]
shr ebx, 1
call fcn.10022690
push eax
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.10026b90
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x18]
movzx ebx, word [edi + 0x40]
mov edi, dword [edi + 0x44]
shr ebx, 1
call fcn.10022690
push eax
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.10026b90
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push ecx
mov ecx, esp
push dword [eax + 8]
push ebx
push edi
push str.ImaginaryExecInit:_Old_PEB.ImagePathName_s__PEB.CommandLine_s._New_BaseAddress_p
push ecx
call fcn.10044f30
add esp, 0x14
call fcn.100f5890
add esp, 4
push dword [0x10175444]
call fcn.10104bb4
mov edx, dword [ebp - 0x18]
mov ecx, eax
add esp, 4
lea eax, [ecx + 2]
mov dword [edx + 0x3c], ecx
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f7ec3
sub ecx, dword [ebp - 0x20]
sar ecx, 1
movzx eax, cx
add eax, eax
mov word [edx + 0x3a], ax
mov word [edx + 0x38], ax
push dword [0x1017542c]
call fcn.10104bb4
mov edx, dword [ebp - 0x18]
mov ecx, eax
add esp, 4
lea eax, [ecx + 2]
mov dword [edx + 0x44], ecx
mov dword [ebp - 0x20], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f7f00
sub ecx, dword [ebp - 0x20]
add ebx, 0xfffffff0
sar ecx, 1
movzx eax, cx
add eax, eax
mov byte [ebp - 4], 8
mov word [edx + 0x42], ax
mov word [edx + 0x40], ax
or edx, 0xffffffff
lea eax, [ebx + 0xc]
mov ecx, edx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7f3d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 5
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f7f74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100f7f74
push ecx
mov ecx, esp
push str._ImaginaryExecInit:_ProcessParameters_not_found
call fcn.10023fc0
call fcn.100f5890
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x101746cc]
add edx, 0xc
mov ecx, dword [edx]
test ecx, ecx
je 0x100f7fec
jmp 0x100f7f90
cmp ecx, edx
je 0x100f7fec
cmp dword [ecx + 0x18], eax
je 0x100f7fa8
mov ecx, dword [ecx]
test ecx, ecx
jne 0x100f7f90
mov dword [ebp - 4], 1
jmp 0x100f801d
mov edx, dword [0x10175444]
mov ebx, dword [ecx + 0x28]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ebx], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x100f7fb1
mov edx, dword [0x10175444]
lea ebx, [edx + 2]
jmp 0x100f7fd0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100f7fd0
sub edx, ebx
sar edx, 1
movzx eax, dx
add eax, eax
mov word [ecx + 0x26], ax
mov word [ecx + 0x24], ax
mov dword [ebp - 4], 1
jmp 0x100f801d
push 0x98
call fcn.101044b6
add esp, 4
test eax, eax
je 0x100f8039
mov ecx, eax
call fcn.100d3350
mov ebx, eax
jmp 0x100f803b
xor ebx, ebx
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebx + 0x48], 0x1000000
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push 0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
push dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push str.ImaginaryExecInit:_ModInfo.SizeOfImage_d
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xb
mov ecx, str.DllMain
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f80ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
push dword [ebp - 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.100d8580
mov ebx, dword [ebp - 0x28]
jmp 0x100f7dd2
push 0x80070057
call fcn.100223c0
int3