Function at 0x40f230
Capabilities:
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502382
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x556620]
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
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
push 0x68
mov edi, dword [ecx]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], edi
call fcn.00405f0d
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x40f2a1
push 0x68
push ebx
push esi
call fcn.004dead0
add esp, 0xc
mov ecx, esi
push edi
call fcn.0040feb4
mov edi, dword [0x55b408]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
push esi
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40f2de
mov eax, 4
jmp 0x40f99d
mov ecx, dword [0x55b408]
mov eax, dword [ecx]
call dword [eax + 4]
push 2
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0x512858
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.004073d0
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00410940
cmp dword [ebp - 0x1c], 8
mov byte [ebp - 0x5f], al
mov dword [ebp - 4], 0xffffffff
jb 0x40f33c
push dword [ebp - 0x30]
call fcn.0040823e
add esp, 4
push 3
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0x511f3c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.004073d0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00410940
cmp dword [ebp - 0x1c], 8
mov byte [ebp - 0x5e], al
mov dword [ebp - 4], 0xffffffff
jb 0x40f38c
push dword [ebp - 0x30]
call fcn.0040823e
add esp, 4
push 3
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0x51283c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.004073d0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00410940
cmp dword [ebp - 0x1c], 8
mov byte [ebp - 0x60], al
mov dword [ebp - 4], 0xffffffff
jb 0x40f3dc
push dword [ebp - 0x30]
call fcn.0040823e
add esp, 4
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004109b0
push 8
push 0
push str.PDFShell
mov ecx, eax
call fcn.0040b680
cmp eax, 0xffffffff
setne byte [ebp - 0x64]
cmp dword [ebp - 0x1c], 8
jb 0x40f40f
push dword [ebp - 0x30]
call fcn.0040823e
add esp, 4
cmp byte [ebp - 0x5e], 0
je 0x40f447
lea eax, [ebp - 0x30]
push 0x511f3c
push eax
call fcn.004643d0
add esp, 8
mov ebx, 2
mov ecx, eax
mov dword [ebp - 0x68], ebx
push 0xd
push 0
push str.pdfshell_prev
call fcn.0040b680
mov byte [ebp - 0x5d], 1
cmp eax, 0xffffffff
jne 0x40f44b
mov byte [ebp - 0x5d], 0
test bl, 2
je 0x40f467
and ebx, 0xfffffffd
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x68], ebx
jb 0x40f467
push dword [ebp - 0x30]
call fcn.0040823e
add esp, 4
mov edi, dword [0x55b408]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 4]
push esi
call ebx
mov al, byte [ebp - 0x5f]
push esi
mov byte [edi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call ebx
mov al, byte [ebp - 0x60]
push esi
mov byte [edi + 0x49], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call ebx
mov al, byte [ebp - 0x5e]
push esi
mov byte [edi + 0x39], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call ebx
mov al, byte [ebp - 0x5d]
push esi
mov byte [edi + 0x5e], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 3
push 6
call fcn.0040bb80
add esp, 0xc
test al, al
je 0x40f511
push 0
push str.bEnableProtectedModeAppContainer
call fcn.0040b8d0
mov edi, dword [0x55b408]
add esp, 8
test eax, eax
setne bl
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x5f], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5f], 0
je 0x40f539
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [0x55b408]
mov ebx, eax
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.00411630
cmp byte [ebp - 0x60], 0
mov dword [ebp - 4], 5
mov dword [0x556078], 1
jne 0x40f5b5
cmp byte [ebp - 0x5e], 0
jne 0x40f5b5
push 0x20019
push str.SoftwareAdobeAcrobat_ReaderDCPrivileged
push 0x80000001
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x61], 1
call fcn.00411660
test eax, eax
jne 0x40f5b9
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push str.bProtectedMode
call fcn.0040bc50
mov ecx, dword [0x556078]
test eax, eax
cmove ecx, dword [ebp - 0x14]
mov dword [0x556078], ecx
lea ecx, [ebp - 0x3c]
call fcn.0040beb0
jmp 0x40f5b9
mov byte [ebp - 0x61], 0
call fcn.0040bcf0
mov edi, dword [0x55b408]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x51], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00411710
mov edi, dword [0x55b408]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x58], bl
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x59], 0
call ebx
call fcn.00411910
mov edi, dword [0x55b408]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x5a], bl
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
call fcn.00411d40
mov edi, dword [0x55b408]
mov byte [ebp - 0x63], al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp - 0x63]
push esi
mov byte [edi + 0x5b], al
call ebx
mov byte [ebp - 0x62], 0
call fcn.00411ef0
mov edi, dword [0x55b408]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x48], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00412060
mov edi, dword [0x55b408]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x5c], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00412360
push 1
push str.bEnableEnhancedPolicyRestrictions
mov byte [0x556028], al
call fcn.0040b8d0
mov edi, dword [0x55b408]
add esp, 8
test eax, eax
setne bl
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x5d], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x34], 0
mov bl, byte [ebp - 0x5f]
test bl, bl
jne 0x40f6ed
mov byte [ebp - 0x5d], 1
cmp byte [ebp - 0x64], bl
je 0x40f6f1
mov byte [ebp - 0x5d], 0
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
call fcn.00412490
add esp, 4
test al, al
jne 0x40f730
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], 0
cmovae eax, dword [ebp - 0x54]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x34]
call fcn.004125a0
test al, al
je 0x40f9b9
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
movq qword [ebp - 0x5c], xmm0
call fcn.0043c140
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.0043c150
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
mov esi, eax
call fcn.0043c2e0
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 8
mov dword [0x55a320], esi
call fcn.004109b0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 9
jb 0x40f7a2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.0043c310
cmp dword [ebp - 0x74], 8
mov byte [ebp - 4], 8
jb 0x40f7c3
push dword [ebp - 0x88]
call fcn.0040823e
add esp, 4
test bl, bl
je 0x40f7da
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f7da
mov ecx, dword [0x55b408]
push eax
call fcn.00457750
cmp dword [ebp - 0x34], 0
je 0x40f7ed
lea ecx, [ebp - 0x34]
call fcn.0043c8c0
mov dword [ebp - 0x6c], eax
jmp 0x40f7f4
mov dword [ebp - 0x6c], 0
mov edi, dword [0x55b408]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 4]
push esi
call ebx
mov eax, dword [ebp - 0x6c]
push esi
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5d], 0
je 0x40f837
push 0x514220
push dword [ebp + 0xc]
mov ecx, 0x55a200
mov byte [0x55a1ec], 1
push 0x556030
call fcn.0043c960
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x40f850
lea ecx, [ebp - 0x34]
call fcn.0044c010
mov dword [esi], eax
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call ebx
mov bl, byte [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x40f8d1
call fcn.00410920
test eax, eax
jg 0x40f8cd
call fcn.00410920
test eax, eax
jg 0x40f8b3
push 0
push 0x324
push str.ChromeSandboxLaunch.cpp
lea ecx, [ebp - 0x138]
call fcn.00461ff0
mov ebx, dword [ebp - 0x68]
add eax, 8
push str.Handshake_with_Sandbox_Process_Failed
or ebx, 4
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0x14], ebx
call fcn.004506c0
add esp, 8
jmp 0x40f8b6
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 4], 8
test bl, 4
je 0x40f8cd
lea ecx, [ebp - 0x138]
call fcn.00462150
mov byte [ebp - 0x62], 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0044c0f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.0044c170
cmp byte [ebp - 0x62], 0
jne 0x40fa79
xor ebx, ebx
cmp byte [ebp - 0x61], 0
je 0x40f931
push 0x20006
push str.SoftwareAdobeAcrobat_ReaderDCPrivileged
push 0x80000001
lea ecx, [ebp - 0x3c]
call fcn.00411660
test eax, eax
jne 0x40f931
push dword [0x556078]
lea ecx, [ebp - 0x3c]
push str.bProtectedMode
call fcn.0044abd0
lea ecx, [ebp - 0x3c]
call fcn.0040beb0
cmp byte [ebp - 0x63], 0
je 0x40f95c
cmp ebx, 4
jne 0x40f95c
cmp dword [ebp - 0x44], 0
je 0x40f954
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [0x55b408]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x40], 8
jb 0x40f978
push dword [ebp - 0x54]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040beb0
mov eax, ebx
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.00401580
mov esp, ebp
pop ebp
ret
call fcn.00410920
test eax, eax
jg 0x40fa79
call fcn.00410920
test eax, eax
jg 0x40fa42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push str.0x_X
push eax
call fcn.0042e4d0
add esp, 0xc
mov esi, eax
mov ebx, dword [ebp - 0x68]
lea ecx, [ebp - 0x138]
push 0
push 0x32a
or ebx, 8
mov byte [ebp - 4], 0xb
push str.ChromeSandboxLaunch.cpp
mov dword [ebp - 0x14], ebx
call fcn.00461ff0
add eax, 8
mov dword [ebp - 4], 0xc
push str.Sandbox_Process_Initialization_Failed___error:
or ebx, 0x10
push eax
mov dword [ebp - 0x14], ebx
call fcn.004506c0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40fa36
mov esi, dword [esi]
push esi
push eax
call fcn.00462450
add esp, 8
jmp 0x40fa45
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 4], 0xb
test bl, 0x10
je 0x40fa62
and ebx, 0xffffffef
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x14], ebx
call fcn.00462150
mov dword [ebp - 4], 6
test bl, 8
je 0x40fa79
lea ecx, [ebp - 0x88]
call fcn.00408450
cmp byte [ebp - 0x5f], 0
jne 0x40fb1a
cmp byte [ebp - 0x5e], 0
jne 0x40f8f3
mov eax, dword [ebp - 0x70]
mov ebx, 4
test eax, eax
je 0x40fa9f
mov dword [eax], 1
call fcn.00455ea0
sub eax, 2
je 0x40fab8
dec eax
jne 0x40f8f5
lea ebx, [eax + 5]
jmp 0x40f8f5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push str.SoftwareAdobeAcrobat_ReaderDCPrivileged
push 0x80000001
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f8f5
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.bProtectedMode
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x556078]
test eax, eax
push dword [ebp - 0x14]
cmove ecx, dword [ebp - 0x18]
mov dword [0x556078], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f8f5
cmp byte [ebp - 0x60], 0
je 0x40f8f3
mov eax, dword [ebp - 0x70]
mov ebx, 5
test eax, eax
je 0x40f8f5
mov dword [eax], 0xff
jmp 0x40f8f5