Function at 0x403e70
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c605
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d7200]
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 dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x800
push 0x40
mov dword [ebp - 0x40], eax
call ebx
push 2
push 0x800
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push 0x44
mov dword [ebp - 4], 0
push 0x40
mov dword [ebp - 0x38], 0x44
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov esi, eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], esi
push eax
push esi
push 0
push 0x1a
call edi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x403f10
push 3
push 0x10000000
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403ac0
push esi
call ebx
push 0x44
push 0x40
mov dword [ebp - 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0
push 0x16
mov dword [ebp - 0x18], esi
call edi
mov byte [ebp - 4], 2
test esi, esi
je 0x403f4d
push 3
push 0x10000000
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403ac0
push esi
call ebx
push 0x44
push 0x40
mov dword [ebp - 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0
push 1
mov dword [ebp - 0x18], esi
call edi
mov byte [ebp - 4], 3
test esi, esi
jne 0x403f7c
mov byte [ebp - 4], 0
jmp 0x403f94
push 3
push 0x10000000
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403ac0
push esi
mov byte [ebp - 4], 0
call ebx
call fcn.004035d0
comisd xmm0, xmmword [0x4cc750]
jbe 0x4042e0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x24], xmm0
xor esi, esi
mov dword [ebp - 0x1c], 0
nop
inc esi
lea edi, [esi + esi]
cmp word [edi + 0x4bfcf8], 0
jne 0x403fc0
xor ecx, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a02b
add esp, 4
mov dword [ebp - 0x24], eax
test esi, esi
jle 0x404013
mov edx, 0x4bfcf8
mov ecx, eax
sub edx, eax
nop dword [eax]
mov ax, word [ecx + edx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub esi, 1
jne 0x404000
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov byte [ebp - 0x1c], 1
mov word [edi + eax], cx
push 4
push 1
push 1
push 1
push 0x4bfcec
lea ecx, [ebp - 0x24]
call fcn.004025a0
test eax, eax
je 0x40404a
lea eax, [ebp - 0x34]
push eax
push 0x4bfcf8
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
jmp 0x404101
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0x4bfcf8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x404101
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x28], 1
mov byte [ebp - 4], 5
xor ecx, ecx
mov esi, dword [ebp - 0x3c]
mov edx, 2
mov dword [ebp - 0x2c], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a02b
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi + esi*2], ax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x34]
push 0x4bfcf8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
call fcn.00489c73
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404111
push eax
call fcn.00489c73
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x404121
mov byte [ebp - 4], al
jmp 0x404140
push 3
push 0xa0000000
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ac0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x404140
push eax
call ebx
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x24], xmm0
xor esi, esi
mov dword [ebp - 0x1c], 0
nop dword [eax + eax]
inc esi
lea edi, [esi + esi]
cmp word [edi + 0x4bfd10], 0
jne 0x404160
xor ecx, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a02b
add esp, 4
mov dword [ebp - 0x24], eax
test esi, esi
jle 0x4041b3
mov edx, 0x4bfd10
mov ecx, eax
sub edx, eax
nop dword [eax]
mov ax, word [edx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub esi, 1
jne 0x4041a0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov byte [ebp - 0x1c], 1
mov word [edi + eax], cx
push 4
push 1
push 1
push 1
push 0x4bfcec
lea ecx, [ebp - 0x24]
call fcn.004025a0
test eax, eax
je 0x4041ea
lea eax, [ebp - 0x34]
push eax
push 0x4bfd10
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
jmp 0x4042a1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x4bfd10
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4042a1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x28], 1
mov byte [ebp - 4], 8
xor ecx, ecx
mov esi, dword [ebp - 0x38]
mov edx, 2
mov dword [ebp - 0x2c], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a02b
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi + esi*2], ax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
push 0x4bfd10
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
call fcn.00489c73
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4042b1
push eax
call fcn.00489c73
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4042c1
mov byte [ebp - 4], al
jmp 0x4042e0
push 3
push 0xa0000000
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ac0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4042e0
push eax
call ebx
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4042f8
push 3
push 0x10000000
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403ac0
mov edi, dword [ebp - 0x44]
push esi
push 4
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00403ca0
mov bl, al
test bl, bl
jne 0x40431d
push esi
push 4
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00403ca0
mov bl, al
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40432b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
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.00489c65
mov esp, ebp
pop ebp
ret 8