Function at 0x414a40
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov edx, dword [esp + 0xac]
mov eax, 0xe
test edx, edx
je 0x414b1d
mov ecx, edx
and ecx, 1
inc ecx
xor ecx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ecx
mov byte [esp + 0x57], cl
mov byte [esp + 0x4f], cl
mov byte [esp + 0x63], cl
mov byte [esp + 0x4e], cl
mov byte [esp + 0x3f], cl
mov byte [esp + 0x37], cl
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebp
je 0x415cb6
mov dl, 0xb
mov ecx, 0xe
mov eax, 0xf
movzx edx, dl
cmp edx, 0xb
mov dword [esp + 0x38], edx
mov byte [esp + 0x57], dl
mov byte [esp + 0x63], dl
mov byte [esp + 0x4e], dl
mov byte [esp + 0x1f], dl
mov byte [esp + 0x3f], dl
mov byte [esp + 0x4f], dl
mov byte [esp + 0x37], dl
mov byte [esp + 0x36], dl
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x50], edx
jne 0x4157fe
jmp 0x415a8f
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ecx
mov byte [esp + 0x57], cl
mov byte [esp + 0x4f], cl
mov byte [esp + 0x63], cl
mov byte [esp + 0x4e], cl
mov byte [esp + 0x3f], cl
mov byte [esp + 0x37], cl
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebp
jmp 0x415cb6
mov byte [esp + 0x57], 0x54
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea ecx, [esp + 0x74]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 8
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
mov dword [esp + 0x50], 0
cmp eax, ecx
mov dword [esp + 0x58], 0
je 0x415492
mov esi, 0x13
mov ebx, 8
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
sub esp, 0x14
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00492770
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
je 0x414e1e
cmp ebx, 8
je 0x414c2e
mov eax, ebx
and eax, 1
inc eax
xor eax, ebx
jne 0x414ec7
mov esi, 1
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.007c51a0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x70]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], ecx
mov dword [esp + 4], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
sub esp, 0x14
test eax, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
je 0x415492
mov eax, esi
imul eax, eax
and eax, 3
cmp eax, 2
sbb eax, eax
and eax, 1
cmp esi, eax
jne 0x414cda
mov esi, 7
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
sub esp, 4
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x414d17
mov eax, dword [esp + 0x44]
mov edx, eax
mov ecx, dword [esp + 0x5c]
jmp 0x4157c1
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
test eax, eax
je 0x414d92
mov byte [esp + 0x4f], 0x3f
mov byte [esp + 0x63], 0x54
mov eax, dword [esp + 0x64]
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
jne 0x415bbe
jmp 0x415c40
mov esi, 8
mov byte [esp + 0x4e], 0x37
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
sub esp, 4
movzx eax, byte [eax]
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
sub eax, ecx
mov ecx, dword [ebx]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
sub esp, 8
mov ebp, dword [eax]
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp], ebx
call fcn.004936c0
mov eax, ebp
and eax, 1
inc eax
xor eax, ebp
sete al
movzx eax, al
cmp ebp, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
jne 0x415853
jmp 0x414ec7
mov byte [esp + 0x4f], 0x3f
mov byte [esp + 0x63], 0x54
jmp 0x415c38
mov eax, 0xc
mov edx, dword [esp + 0x74]
cmp edx, 0xffffffff
mov esi, dword [esp + 0x58]
jne 0x414dcd
mov byte [esp + 0x57], 0x54
mov ecx, edx
not ecx
and ecx, 1
add ecx, edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x40], esi
jne 0x414e36
jmp 0x414dda
mov dword [esp + 0x68], edx
mov byte [esp + 0x57], 0x54
mov dword [esp + 0x40], esi
cmp eax, 8
je 0x415185
jmp 0x41542e
cmp eax, 0xffffffff
setne al
movzx eax, al
add ebx, eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, ebx
and eax, 1
xor eax, ebx
cmp eax, 0xffffffff
setne cl
movzx ecx, cl
cmp ebx, ecx
jb 0x414df0
cmp esi, 0xf
jne 0x415492
imul esi, esi
and esi, 3
cmp esi, 2
jae 0x415492
mov ebx, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004936c0
cmp ebx, 4
jne 0x414f3e
mov eax, 3
sub eax, ebx
xor eax, ebx
jne 0x414ec7
jmp 0x414f3e
mov ecx, esi
and ecx, 1
xor ecx, esi
not ecx
test ecx, ecx
mov esi, dword [esp + 0xac]
jne 0x414f3e
jmp 0x414eae
mov ebx, 7
add ebx, 7
mov cl, bl
add cl, 0x49
mov byte [esp + 0x4e], cl
mov ecx, eax
or ecx, 2
mov edx, eax
xor edx, 2
add edx, ecx
setne cl
movzx ecx, cl
add eax, ecx
mov dword [esi], ebp
mov dword [esi + 4], 0
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
cmp eax, ecx
jb 0x414e80
jmp 0x414c1b
mov eax, 8
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x414dda
xor ecx, ecx
test cl, cl
jne 0x414dda
mov dword [esp + 0x80], 0x101
mov dword [esp], 0x202
call fcn.00492770
mov esi, eax
mov dword [esp], 0x101
call fcn.00492770
test esi, esi
je 0x414f30
mov dword [esp + 0x2c], esi
test eax, eax
je 0x414f3a
mov edx, 0xb
mov ecx, 3
sub ecx, eax
xor ecx, eax
mov dword [esp + 0x6c], eax
jne 0x415254
jmp 0x414f3e
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], esi
jmp 0x414f3e
mov dword [esp + 0x6c], eax
xor esi, esi
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
jmp 0x414f7a
mov eax, esi
or eax, 2
mov ecx, esi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
add esi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp], ebx
call fcn.004936c0
xor ecx, ecx
mov eax, esi
imul eax, eax
and eax, 3
cmp eax, 2
sbb eax, eax
and eax, 1
cmp esi, eax
jb 0x414f50
mov ebx, dword [esp + 0xb4]
jmp 0x415667
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 8
test eax, eax
je 0x414f3e
mov al, 0x40
movzx eax, al
cmp eax, 0x1c
je 0x4150a3
mov ebx, 0x10
cmp eax, 0x40
je 0x415042
mov esi, 0x13
mov ebx, 0x20
mov byte [esp + 0x1f], 0x67
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
lea eax, [eax + 0x101]
mov ecx, dword [esp + 0x80]
lea ecx, [edx + ecx*2]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x10], 0
call fcn.007c59b0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x415042
mov bl, byte [esp + 0x4e]
jmp 0x415111
cmp ebx, 0x10
jne 0x414f3e
mov esi, 0xf
mov bl, 0x67
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
lea eax, [eax + 0x101]
mov ecx, dword [esp + 0x80]
lea ecx, [edx + ecx*2]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x10], 0
call fcn.007c59b0
test eax, eax
jne 0x4155bb
jmp 0x415603
mov ebx, 9
mov esi, 0xb
mov byte [esp + 0x1f], 0x67
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
lea eax, [eax + 0x101]
mov ecx, dword [esp + 0x80]
lea ecx, [edx + ecx*2]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x10], 0
call fcn.007c59b0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x414e47
jmp 0x415a7d
cmp esi, 0xb
je 0x415129
xor eax, eax
test al, al
jne 0x415129
mov byte [esp + 0x4e], bl
mov bl, byte [esp + 0x1f]
jmp 0x415603
mov byte [esp + 0x4e], 0x37
mov eax, dword [esp + 0xac]
mov dword [eax], ebp
mov dword [eax + 4], 0
jmp 0x414ec7
mov dword [esp + 0x20], edx
mov dword [esp + 0x5c], ecx
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
je 0x415492
mov eax, dword [esi]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esp], eax
call fcn.007c3e70
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
setne cl
movzx ecx, cl
add ecx, eax
mov dword [ebx], ecx
mov esi, 0xc
cmp dword [esp + 0xb8], 0
jne 0x415643
jmp 0x415363
call sub.KERNEL32.dll_GetCurrentProcessId
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_ProcessIdToSessionId
sub esp, 8
test eax, eax
jne 0x415211
xor ecx, ecx
mov eax, 0x8f
add eax, 0xffffff7a
jmp 0x4151ee
mov edx, ecx
imul edx, edx
and edx, 3
cmp edx, 2
adc ecx, 0
mov dword [esp + 0x90], 0xffffffff
mov edi, 0xffffffff
mov edx, ecx
and edx, 1
xor edx, ecx
cmp edx, 0xffffffff
setne dl
movzx edx, dl
cmp ecx, edx
jb 0x4151d0
mov byte [esp + 0x3f], 0x58
mov byte [esp + 0x37], 0x3a
jmp 0x415716
mov byte [esp + 0x3f], 0x58
mov byte [esp + 0x37], 0x3a
mov cl, 0x4b
mov edx, 0x1a
movzx ecx, cl
cmp ecx, 0x4b
jne 0x415254
mov eax, 0xd
mov edi, dword [esp + 0x90]
mov ecx, edi
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp edi, ecx
jne 0x41571f
jmp 0x415b71
cmp edx, 0xb
je 0x414f9a
imul edx, edx
and edx, 3
cmp edx, 3
je 0x414f9a
mov edi, dword [esp + 0x90]
test edi, edi
je 0x415b81
jmp 0x41571f
mov byte [esp + 0x4f], 0x45
mov byte [esp + 0x63], 0x54
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
test eax, eax
jne 0x4152bf
mov esi, 0xa
mov ecx, dword [esp + 0x64]
mov eax, ecx
or eax, 2
xor ecx, 2
add ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
jne 0x4158ec
jmp 0x415bbe
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
jmp 0x415bbe
mov eax, 0xd
mov ebx, 0xd
xor ebx, 0x60
add ebx, eax
jmp 0x415306
mov al, bl
add al, 0xda
mov byte [esp + 0x63], al
mov eax, esi
imul eax, eax
and eax, 3
cmp eax, 2
adc esi, 0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, 3
sub eax, esi
xor eax, esi
setne al
movzx eax, al
cmp esi, eax
jb 0x4152e0
jmp 0x415c40
mov eax, dword [esp + 0xb8]
mov edi, eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], 0x7d5794
call fcn.0064a4a0
mov dword [edi], eax
mov dword [esp], eax
call fcn.007c3e70
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
add ecx, eax
mov dword [esi], ecx
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 8
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea ecx, [esp + 0x74]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 8
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x4153e6
mov byte [esp + 0x57], 0x54
mov eax, 0x19
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
jmp 0x4157e8
mov byte [esp + 0x57], 0x54
jmp 0x415875
mov ecx, dword [esp + 0x74]
cmp ecx, 0xffffffff
mov edx, dword [esp + 0x58]
je 0x41541c
mov byte [esp + 0x57], 0x6d
mov eax, ecx
mov dword [esp + 0x68], ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov dword [esp + 0x40], edx
jne 0x41542e
jmp 0x414e36
mov dword [esp + 0x68], ecx
mov byte [esp + 0x57], 0x6d
mov dword [esp + 0x40], edx
jmp 0x414e36
xor ebx, ebx
mov esi, 0x3b
xor esi, 0x34
jmp 0x414e0a
mov ecx, dword [esp + 0x74]
cmp ecx, 0xffffffff
je 0x415466
mov byte [esp + 0x57], 0x27
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], eax
jne 0x41542e
jmp 0x414e36
mov dword [esp + 0x68], ecx
mov byte [esp + 0x57], 0x27
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], eax
jmp 0x414e36
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ecx
xor eax, eax
test al, al
je 0x415185
movzx eax, byte [esp + 0x57]
cmp eax, 0x54
je 0x41543d
cmp eax, 0x6d
je 0x4153f0
jmp 0x414da1
mov al, bl
xor al, 0xe
mov byte [esp + 0x4e], al
mov eax, 3
sub eax, ecx
xor eax, ecx
setne al
movzx eax, al
add ecx, eax
mov dword [edx], ebp
mov dword [edx + 4], 0
mov eax, ecx
and eax, 1
xor eax, ecx
cmp eax, 0xffffffff
setne al
movzx eax, al
cmp ecx, eax
jb 0x4154b0
jmp 0x415c1f
mov bl, al
xor bl, 0x47
mov edx, ecx
and edx, 1
xor edx, ecx
cmp edx, 0xffffffff
setne dl
movzx edx, dl
add ecx, edx
mov dword [esi], ebp
mov dword [esi + 4], 0
mov edx, ecx
not edx
and edx, 1
add edx, ecx
setne dl
movzx edx, dl
cmp ecx, edx
jb 0x4154f0
mov byte [esp + 0x4e], bl
mov dl, byte [esp + 0x4f]
cmp eax, 2
jne 0x415545
mov ecx, eax
or ecx, 2
xor eax, 2
add eax, ecx
je 0x415545
mov byte [esp + 0x4f], dl
jmp 0x414ec7
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
test eax, eax
mov ecx, dword [esp + 0x50]
jne 0x41557e
mov byte [esp + 0x4f], 0x5a
mov byte [esp + 0x63], 0x54
mov eax, dword [esp + 0x64]
imul eax, eax
and eax, 3
cmp eax, 2
mov dword [esp + 0x48], ecx
jb 0x415c40
jmp 0x415bbe
mov byte [esp + 0x4f], 0x5a
mov byte [esp + 0x63], 0x54
mov dword [esp + 0x48], ecx
jmp 0x415bbe
xor ecx, ecx
mov bl, byte [esp + 0x4e]
movzx eax, bl
cmp eax, 0x1a
je 0x4155d6
mov esi, 0xb
cmp eax, 0x37
je 0x415111
mov esi, 0x18
cmp eax, 0x45
jne 0x4155ed
mov bl, byte [esp + 0x1f]
mov byte [esp + 0x1f], bl
xor eax, eax
cmp esi, 0xf
je 0x414e60
mov esi, dword [esp + 0xac]
jmp 0x414eae
mov ebx, 0xdd
add ebx, 0xffffff37
mov edx, dword [esp + 0xac]
jmp 0x4154d2
mov eax, 0xdf
xor eax, 0xdd
mov esi, dword [esp + 0xac]
jmp 0x415510
movzx eax, bl
cmp eax, 0x67
jne 0x415625
mov byte [esp + 0x1f], 0x5a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004936c0
mov ecx, dword [esp + 0x6c]
jmp 0x414f8e
mov esi, 5
mov byte [esp + 0x1f], 0x67
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
cmp esi, 5
mov ebx, dword [esp + 0xb4]
je 0x415663
mov eax, esi
and eax, 1
inc eax
xor eax, esi
jne 0x41519d
mov ecx, dword [esp + 0x5c]
jmp 0x415667
mov ecx, dword [esp + 0x5c]
mov eax, 0x15
test ecx, ecx
je 0x41570e
mov dword [esp + 0x5c], ecx
mov al, 0x65
movzx ecx, al
cmp ecx, 0x14
je 0x41577e
mov eax, 0xa
cmp ecx, 0x4e
jne 0x4157db
mov dword [esp + 0x28], ebp
mov ebp, edi
xor esi, esi
jmp 0x4156e5
mov eax, esi
and eax, 1
xor eax, esi
cmp eax, 0xffffffff
setne al
movzx eax, al
add esi, eax
mov edi, dword [esp + 0xb0]
mov eax, dword [edi]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x5c]
mov dword [edi], eax
mov dword [esp], eax
call fcn.007c3e70
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
add ecx, eax
mov dword [ebx], ecx
mov eax, esi
or eax, 2
mov ecx, esi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
cmp esi, eax
jb 0x4156a0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov edi, ebp
mov ebp, dword [esp + 0x28]
jmp 0x415185
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], ecx
cmp eax, 9
jne 0x415185
mov ecx, 0x1e
mov al, byte [esp + 0x3f]
movzx edx, al
cmp edx, 0x11
je 0x4157fe
mov eax, 0xd
cmp edx, 0x58
jne 0x415c50
mov byte [esp + 0x3f], 0xf
mov byte [esp + 0x36], 0x35
mov dword [esp], 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esp, 4
test eax, eax
jne 0x41586c
mov bh, 0x62
imul eax, eax
and eax, 3
cmp eax, 2
mov dword [esp + 0x30], edi
jb 0x415c81
jmp 0x415870
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x24], edi
mov edi, eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.004936c0
mov esi, ebp
mov ebp, dword [esp + 0x5c]
mov dword [edi], ebp
mov edi, dword [esp + 0x24]
mov dword [esp], ebp
call fcn.007c3e70
mov ecx, ebp
mov ebp, esi
mov esi, 0xc
inc eax
mov dword [ebx], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
cmp esi, 7
jne 0x41547c
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ecx
jmp 0x415492
mov ecx, dword [esp + 0x5c]
mov edx, ecx
mov esi, dword [esp + 0xb0]
cmp eax, 0xa
je 0x415143
mov dword [esp + 0x20], edx
mov dword [esp + 0x5c], ecx
jmp 0x415492
cmp ecx, 0xe
je 0x41536e
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
je 0x41536e
mov esi, 5
mov byte [esp + 0x3f], 0x11
mov byte [esp + 0x36], 0x35
mov bh, 0x62
mov dword [esp], 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esp, 4
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
mov dword [esp + 0x30], edi
je 0x415c81
cmp esi, 5
jne 0x415591
mov eax, 3
sub eax, esi
xor eax, esi
jne 0x415870
jmp 0x415591
mov dword [esp + 0x30], edi
mov esi, 1
cmp esi, 1
je 0x415ce8
xor eax, eax
test al, al
je 0x414bc1
jmp 0x415ce8
mov esi, 0xf
mov bl, 0x65
mov dword [esp + 0x94], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlTerminal_Server_
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
mov dword [esp + 0x30], edi
je 0x4159e7
cmp esi, 0xa
je 0x415c40
mov eax, esi
and eax, 1
inc eax
xor eax, esi
jne 0x415b81
jmp 0x415c40
mov byte [esp + 0x4f], 0x5a
mov dword [esp + 0x88], 4
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x88]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.GlassSessionId
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x415980
mov dword [esp + 0x50], 0
mov bl, 0x69
mov ecx, eax
and ecx, 1
xor ecx, eax
not ecx
test ecx, ecx
jne 0x415a5e
jmp 0x415d60
mov dword [esp + 0x50], 0
jmp 0x415d60
mov byte [esp + 0x36], bh
mov byte [esp + 0x1f], bl
xor eax, eax
test al, al
jne 0x414ec7
mov bl, 0x65
mov dword [esp + 0x94], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlTerminal_Server_
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x415b81
mov eax, 0x17
movzx ecx, bl
cmp ecx, 0x7b
je 0x415ba2
mov byte [esp + 0x4f], 0x5a
mov bl, 0x69
mov dword [esp + 0x88], 4
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x88]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.GlassSessionId
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov dword [esp + 0x50], 0
test eax, eax
jne 0x415d60
mov dword [esp + 0x50], 0
movzx ecx, bl
cmp ecx, 0x23
je 0x415ac4
mov eax, 0x16
mov esi, 0xf
cmp ecx, 0x52
jne 0x415a8f
cmp esi, 0xb
jne 0x415b12
mov bl, byte [esp + 0x1f]
jmp 0x415603
cmp eax, 0xf
je 0x414b62
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
je 0x414b62
mov eax, 8
mov ecx, dword [esp + 0x90]
cmp ecx, dword [esp + 0x8c]
setne cl
movzx ecx, cl
jmp 0x415d43
xor eax, eax
xor edx, edx
jmp 0x415af5
mov ecx, 3
sub ecx, eax
xor ecx, eax
setne cl
movzx ecx, cl
add eax, ecx
mov ecx, dword [esp + 0x90]
cmp ecx, dword [esp + 0x8c]
setne cl
movzx edx, cl
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sbb ecx, ecx
and ecx, 1
cmp eax, ecx
jb 0x415ad0
mov dword [esp + 0x50], edx
jmp 0x415d60
mov eax, dword [esp + 0x90]
cmp eax, dword [esp + 0x8c]
setne cl
mov edx, eax
not edx
and edx, 1
add edx, eax
setne al
and al, cl
movzx eax, al
mov dword [esp + 0x50], eax
jmp 0x415d60
mov byte [esp + 0x4f], 1
mov byte [esp + 0x63], 0x54
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
test eax, eax
je 0x415c38
mov eax, 0x10
xor ecx, ecx
test cl, cl
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], ecx
jne 0x415c40
cmp eax, 0xd
jne 0x415bbe
mov ecx, 3
sub ecx, eax
xor ecx, eax
je 0x415bbe
mov eax, 0x14
movzx ecx, byte [esp + 0x37]
cmp ecx, 0x1c
je 0x415d3f
mov eax, 0xc
cmp ecx, 0x3a
jne 0x415363
cmp eax, 0xc
je 0x415363
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
jne 0x415908
jmp 0x415363
movzx eax, byte [esp + 0x63]
xor esi, esi
cmp eax, 0x2d
jne 0x4152cc
mov ebx, 0x3f
xor ebx, 0x30
jmp 0x415c09
mov al, bl
add al, 0x1e
mov byte [esp + 0x63], al
mov eax, 3
sub eax, esi
xor eax, esi
setne al
movzx eax, al
add esi, eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, esi
or eax, 2
mov ecx, esi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
cmp esi, eax
jb 0x415be0
cmp ebx, 0xf
jne 0x414ec7
mov eax, 3
sub eax, ebx
xor eax, ebx
jne 0x415c40
jmp 0x414ec7
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, 0xe
cmp dword [esp + 0x48], 0
jne 0x415ce8
cmp eax, 0xd
jne 0x415363
mov byte [esp + 0x3f], 0x58
mov byte [esp + 0x36], 0x35
mov bh, 0x62
mov dword [esp], 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esp, 4
test eax, eax
mov dword [esp + 0x30], edi
jne 0x415870
mov eax, 0x1b
movzx ecx, bh
cmp ecx, 9
jne 0x41588d
mov ecx, edi
mov bl, byte [esp + 0x1f]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
mov ebp, ecx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x6c]
mov bh, byte [esp + 0x36]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x2c], esi
cmp eax, 0xe
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
jne 0x41598d
mov byte [esp + 0x36], bh
mov byte [esp + 0x1f], bl
jmp 0x414ec7
mov esi, dword [esp + 0xbc]
movzx eax, byte [esp + 0x36]
cmp eax, 0x35
jne 0x41531e
mov eax, dword [esp + 0xb8]
mov edi, eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], 0x7d5794
call fcn.0064a4a0
mov dword [edi], eax
mov dword [esp], eax
call fcn.007c3e70
mov ecx, eax
or ecx, 2
mov edx, eax
xor edx, 2
add edx, ecx
jmp 0x415359
mov ecx, dword [esp + 0x50]
cmp eax, 8
je 0x415d5c
mov dword [esp + 0x50], ecx
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
jne 0x415363
jmp 0x415d60
mov dword [esp + 0x50], ecx
mov dl, byte [esp + 0x4f]
movzx ecx, dl
cmp ecx, 1
je 0x415280
mov esi, 0xc
cmp ecx, 0x3f
je 0x414c8b
mov eax, 7
cmp ecx, 0x45
jne 0x415b3d
jmp 0x41552b