Function at 0x531530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3078
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403ed0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00403ed0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x48]
call fcn.00403ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0047e080
mov esi, eax
lea ecx, [ebp - 0x60]
call fcn.0047e080
shl eax, 1
lea esi, [eax + esi*2 + 0x5c]
lea ecx, [ebp - 0x48]
call fcn.0047e080
lea eax, [esi + eax*2]
mov ecx, 2
imul edx, ecx, 0xe
add eax, edx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x53161f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403de0
mov eax, dword [ebp - 0xd0]
jmp 0x531c31
mov ecx, dword [ebp - 0x9c]
push ecx
push 0
mov edx, dword [ebp - 0x98]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
add ecx, 0xc
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x90]
mov dword [edx + 4], 2
mov eax, 1
mov ecx, dword [ebp - 0x90]
mov word [ecx], ax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x7c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x7c]
add ecx, 0x30
mov dword [ebp - 0x80], ecx
mov edx, 0x18
imul eax, edx, 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + eax + 0x10], 3
mov edx, 0x18
imul eax, edx, 0
mov ecx, 3
mov edx, dword [ebp - 0x7c]
mov word [edx + eax + 8], cx
mov eax, 0x18
imul ecx, eax, 0
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov dword [edx + ecx + 0x14], eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0
mov ecx, 0x18
shl ecx, 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + ecx + 0x10], 1
mov eax, 0x18
shl eax, 0
mov ecx, 2
mov edx, dword [ebp - 0x7c]
mov word [edx + eax + 8], cx
mov eax, 0x18
shl eax, 0
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp - 0x68]
mov dword [ecx + eax + 0x14], edx
mov eax, dword [ebp - 0x80]
add eax, 0x20
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x60]
call fcn.0047e080
push eax
lea ecx, [ebp - 0x60]
call fcn.00403d40
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x78]
mov dword [ecx + eax + 4], edx
lea ecx, [ebp - 0x60]
call fcn.0047e080
movzx eax, ax
shl eax, 1
mov ecx, 8
imul edx, ecx, 0
mov ecx, dword [ebp - 0x80]
mov word [ecx + edx], ax
lea ecx, [ebp - 0x60]
call fcn.0047e080
movzx edx, ax
shl edx, 1
mov eax, 8
imul ecx, eax, 0
mov eax, dword [ebp - 0x80]
mov word [eax + ecx + 2], dx
lea ecx, [ebp - 0x60]
call fcn.0047e080
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x78], edx
lea ecx, [ebp - 0x30]
call fcn.0047e080
push eax
lea ecx, [ebp - 0x30]
call fcn.00403d40
push eax
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov dword [edx + ecx + 4], eax
lea ecx, [ebp - 0x30]
call fcn.0047e080
movzx ecx, ax
shl ecx, 1
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x80]
mov word [eax + edx], cx
lea ecx, [ebp - 0x30]
call fcn.0047e080
movzx ecx, ax
shl ecx, 1
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x80]
mov word [eax + edx + 2], cx
lea ecx, [ebp - 0x30]
call fcn.0047e080
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x78], edx
lea ecx, [ebp - 0x48]
call fcn.0047e080
push eax
lea ecx, [ebp - 0x48]
call fcn.00403d40
push eax
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
mov ecx, 8
shl ecx, 1
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov dword [edx + ecx + 4], eax
lea ecx, [ebp - 0x48]
call fcn.0047e080
movzx ecx, ax
shl ecx, 1
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x80]
mov word [eax + edx], cx
lea ecx, [ebp - 0x48]
call fcn.0047e080
movzx ecx, ax
shl ecx, 1
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x80]
mov word [eax + edx + 2], cx
lea ecx, [ebp - 0x48]
call fcn.0047e080
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x78], edx
push 0xe
push str.WIN:__SYSAPPID
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
mov ecx, 0x18
imul edx, ecx, 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [eax + edx + 4], ecx
mov edx, 0x18
imul eax, edx, 0
mov ecx, 0x1c
mov edx, dword [ebp - 0x7c]
mov word [edx + eax], cx
mov eax, 0x18
imul ecx, eax, 0
mov edx, 0x1c
mov eax, dword [ebp - 0x7c]
mov word [eax + ecx + 2], dx
push str.WIN:__PKG
mov ecx, 0x18
shl ecx, 0
add ecx, dword [ebp - 0x7c]
push ecx
call dword [0x631fa0]
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x5319e7
mov dword [ebp - 0xd8], 0x1000
push 0x2000
call fcn.0052ffb8
add esp, 4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x5319a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess__d_r_n
push 0x1000
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0051b067
add esp, 0x10
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa0], eax
push 2
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.0052f594
add esp, 8
cmp dword [ebp - 0xa0], 0
jne 0x531993
mov dword [ebp - 0xc8], 0
jmp 0x5319a9
mov dword [ebp - 0x84], 0x8123
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xc8], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403de0
mov eax, dword [ebp - 0xd4]
jmp 0x531c31
lea eax, [ebp - 0x6c]
push eax
push 0x80
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x531af7
mov dword [ebp - 0xdc], 0x1000
push 0x2000
call fcn.0052ffb8
add esp, 4
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x88], 0
je 0x531aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken__d_r_n
push 0x1000
mov eax, dword [ebp - 0x88]
push eax
call fcn.0051b067
add esp, 0x10
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa8], edx
push 2
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0052f594
add esp, 8
cmp dword [ebp - 0xa8], 0
jne 0x531a96
mov dword [ebp - 0xb0], 0
jmp 0x531aac
mov dword [ebp - 0x88], 0x8123
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403de0
mov eax, dword [ebp - 0xb4]
jmp 0x531c31
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x74], ecx
push 8
lea edx, [ebp - 0x74]
push edx
push 0x27
mov eax, dword [ebp - 0x6c]
push eax
call dword [0x631fbc]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0xe0], 0x1000
push 0x2000
call fcn.0052ffb8
add esp, 4
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0
je 0x531bfa
mov edx, dword [ebp - 0xbc]
push edx
push str.pfnNtSetInformationToken__x_r_n
push 0x1000
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0051b067
add esp, 0x10
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], edx
push 2
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0052f594
add esp, 8
cmp dword [ebp - 0xa4], 0
jne 0x531be4
mov dword [ebp - 0xc0], 0
jmp 0x531bfa
mov dword [ebp - 0x8c], 0x8123
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403de0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret