Function at 0x10024780
Capabilities:
Get hostname
Get session user name
Get user security identifier
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c92c1
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x1010d03c]
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 bl, dl
mov edi, ecx
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x6bc], edi
mov dword [ebp - 0x6b8], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
xor esi, esi
mov dword [ebp - 0x6b8], 1
mov dword [ebp - 0x6b4], esi
xor bh, bh
mov dword [ebp - 0x69c], esi
mov dword [ebp - 0x6a0], esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x100250c0
lea ecx, [ebp - 0x6ac]
mov dword [ebp - 0x6ac], esi
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x100250c0
push dword [ebp - 0x6ac]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100250c0
push 0x100
lea eax, [ebp - 0x210]
mov bh, 1
push esi
push eax
call fcn.10096b80
add esp, 0xc
mov dword [ebp - 0x694], 0x7f
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100250c0
push 0x100
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.10096b80
add esp, 0xc
mov dword [ebp - 0x698], 0x7f
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x110]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x100250c0
xor eax, eax
mov dword [ebp - 0x618], esi
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x614], 7
mov word [ebp - 0x628], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100248e0
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.10004af0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x618], 0
je 0x10024921
push 1
push 0x100e94b0
lea ecx, [ebp - 0x628]
call fcn.10005970
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024930
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x628]
call fcn.10005970
cmp dword [ebp - 0x614], 8
lea ecx, [ebp - 0x678]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x628]
cmovae eax, dword [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x6a4]
mov dword [ebp - 0x6a8], 0
push ecx
push 0
lea ecx, [ebp - 0x6a8]
mov dword [ebp - 0x6a4], 0
push ecx
push 0
push eax
push 0
call esi
push dword [ebp - 0x6a8]
call fcn.1009d047
mov dword [ebp - 0x6b0], eax
xor ecx, ecx
mov eax, dword [ebp - 0x6a4]
add esp, 4
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009d047
mov ecx, dword [ebp - 0x6b0]
add esp, 4
mov edx, eax
mov dword [ebp - 0x6b4], edx
test ecx, ecx
je 0x10024a21
test edx, edx
je 0x10024a21
cmp dword [ebp - 0x614], 8
lea esi, [ebp - 0x678]
push esi
lea esi, [ebp - 0x6a4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x628]
cmovae eax, dword [ebp - 0x628]
push edx
lea edx, [ebp - 0x6a8]
push edx
push ecx
push eax
push 0
call esi
test eax, eax
jne 0x10024a68
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x614]
cmp edx, 8
jb 0x100250a1
mov ecx, dword [ebp - 0x628]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10025097
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025160
jmp 0x10025097
mov esi, dword [ebp - 0x6b0]
lea eax, [ebp - 0x69c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x10024acd
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x614]
cmp edx, 8
jb 0x100250a7
mov ecx, dword [ebp - 0x628]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024abe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
jmp 0x100250a7
cmp dword [ebp - 0x69c], 0
je 0x10024a80
mov ecx, dword [ebp - 0x69c]
xor eax, eax
mov dword [ebp - 0x680], 0
mov dword [ebp - 0x67c], 7
mov word [ebp - 0x690], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024b00
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x69c]
lea ecx, [ebp - 0x690]
call fcn.10004af0
push 0x100ee1a4
lea eax, [ebp - 0x690]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.10004dd0
add esp, 0xc
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push ecx
cmovae eax, dword [ebp - 0x640]
push 0x20019
push 0
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10024c28
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x62c]
cmp edx, 8
jb 0x10024bbe
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024bb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
cmp edx, 8
jb 0x10024a80
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024c19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
jmp 0x10024a80
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x670]
call fcn.10006950
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x658]
push 4
xor eax, eax
mov dword [ebp - 0x648], 0
push str.UUID
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
call fcn.10004af0
mov byte [ebp - 4], 6
test bl, bl
je 0x10024c9e
push 4
push str.UUID
lea ecx, [ebp - 0x670]
call fcn.10004af0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x658]
push eax
call fcn.10004af0
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10096b80
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x674]
add esp, 0xc
mov dword [ebp - 0x674], 0xff
cmp dword [ebp - 0x65c], 8
lea eax, [ebp - 0x670]
cmovae eax, dword [ebp - 0x670]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x6a0]
call esi
test eax, eax
je 0x10024eb5
lea ecx, [ebp - 0x674]
mov dword [ebp - 0x674], 0xff
push ecx
xor eax, eax
lea ecx, [ebp - 0x410]
cmp dword [ebp - 0x644], 8
push ecx
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push 0
push 0
push eax
push dword [ebp - 0x6a0]
call esi
test eax, eax
je 0x10024eb5
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x10024d89
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024d7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x65c]
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
cmp edx, 8
jb 0x10024dea
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024de0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x62c]
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
cmp edx, 8
jb 0x10024e4b
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024e41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
cmp edx, 8
jb 0x10024a21
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024ea6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025165
push edx
push ecx
call fcn.1009441c
add esp, 8
jmp 0x10024a21
cmp word [ebp - 0x410], 0
jne 0x1002502d
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x10024f07
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024efd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025160
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x65c]
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
cmp edx, 8
jb 0x10024f68
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024f5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025160
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x62c]
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
cmp edx, 8
jb 0x10024fc9
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025160
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
cmp edx, 8
jb 0x10024a21
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024ea6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10024ea6
jmp 0x10025160
push 0x200
lea eax, [ebp - 0x610]
push 0
push eax
call fcn.10096b80
add esp, 0xc
lea eax, [ebp - 0x610]
push 0x100
push eax
lea eax, [ebp - 0x410]
push str.__0_9a_zA_Z_
push eax
call fcn.10023df0
add esp, 0x10
test eax, eax
jle 0x10024ec3
lea ecx, [ebp - 0x610]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025074
sub ecx, edx
lea eax, [ebp - 0x610]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10004af0
jmp 0x10024ec3
push edx
push ecx
call fcn.1009441c
add esp, 8
mov esi, dword [ebp - 0x6b0]
xor eax, eax
mov dword [ebp - 0x614], 7
mov dword [ebp - 0x618], eax
mov word [ebp - 0x628], ax
mov eax, dword [ebp - 0x6a0]
test eax, eax
je 0x100250d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100250de
push esi
call fcn.1009d02a
add esp, 4
mov eax, dword [ebp - 0x6b4]
test eax, eax
je 0x100250f1
push eax
call fcn.1009d02a
add esp, 4
mov eax, dword [ebp - 0x69c]
test eax, eax
je 0x10025102
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bh, bh
je 0x1002510c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10025142
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10025138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025160
push edx
push ecx
call fcn.1009441c
add esp, 8
mov eax, edi
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.10093f25
mov esp, ebp
pop ebp
ret
call fcn.1009ba34
call fcn.1009ba34
int3