Function at 0x7dd85319
Capabilities:
Hide thread from debugger
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x7dd9d35b
cmp word [edi], bx
je 0x7dd9d35b
cmp dword [0x7de4001c], 0xfffffffe
je 0x7dda47ee
push 0x7de402f0
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
mov eax, dword [0x7de4001c]
cmp eax, ebx
je 0x7dda47f5
cmp eax, 0xfffffffe
je 0x7dda47ff
cmp esi, ebx
jne 0x7dd9d33c
mov eax, dword fs:[0x18]
mov edi, 0xc000007c
cmp dword [eax + 0xf9c], ebx
jne 0x7dda4806
mov esi, edi
cmp esi, edi
mov edi, dword [sym.imp.ntdll.dll_NtSetInformationThread]
jne 0x7dd9d347
mov dword [ebp - 0x224], ebx
mov ebx, dword [sym.imp.ntdll.dll_NtOpenProcessToken]
lea eax, [ebp - 0x228]
push eax
push 0xa
push 0xffffffffffffffff
call ebx
mov esi, eax
cmp esi, 0xc0000022
je 0x7dda4823
xor ebx, ebx
cmp esi, ebx
jl 0x7dda4837
cmp dword [ebp - 0x224], ebx
jne 0x7dda4842
cmp esi, ebx
jl 0x7dda48ac
mov eax, dword [ebp - 0x228]
mov edi, dword [ebp - 0x244]
mov dword [ebp - 0x23c], eax
xor ebx, ebx
cmp dword [0x7de4001c], 0xffffffff
je 0x7dd85638
push 0x70
pop esi
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call sub.ntdll.dll_memset
mov eax, dword [0x7de40c8c]
or eax, 5
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x240]
add esp, 0xc
mov dword [ebp - 0x210], eax
push 0x7dd85508
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], esi
push 1
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x1b0], 2
mov esi, 0xc0000022
call dword [0x7de400ac]
test eax, eax
je 0x7dd854d4
push ebx
push 1
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], ebx
push dword [ebp - 0x234]
call dword [0x7de400a4]
test eax, eax
je 0x7dda4a9f
cmp dword [ebp - 0x238], ebx
jne 0x7dda4b08
xor esi, esi
push dword [ebp - 0x234]
call dword [0x7de400a8]
cmp dword [ebp - 0x228], ebx
je 0x7dd854e8
push dword [ebp - 0x228]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x7de402f0
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0xc
lea eax, [ebp - 0x280]
push eax
push 0x88
lea eax, [ebp - 0x1ac]
push eax
push 1
push dword [ebp - 0x23c]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
jl 0x7dd856f6
push 1
push 0x7dd858a8
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSid]
mov esi, dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
push ebx
lea eax, [ebp - 0xd4]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_RtlEqualSid]
mov dword [eax], 0x12
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x1ac]
call edi
test al, al
jne 0x7dd9d354
push ebx
lea eax, [ebp - 0xd4]
push eax
call esi
mov dword [eax], 0x13
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x1ac]
call edi
test al, al
jne 0x7dd9d354
push ebx
lea eax, [ebp - 0xd4]
push eax
call esi
mov dword [eax], 0x14
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x1ac]
call edi
test al, al
jne 0x7dd9d354
push 0x7dd858b0
push 3
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x7dda48c8
push 0x7dd858d0
push 1
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 0x21d], 0
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, 0x7dd858c8
test eax, eax
jl 0x7dda4937
lea eax, [ebp - 0x254]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 2
push edi
push dword [ebp - 0x230]
call esi
test eax, eax
jl 0x7dd85774
cmp dword [ebp - 0x50], 4
jne 0x7dd85774
cmp dword [ebp - 0x4c], 4
jne 0x7dd85774
cmp dword [ebp - 0x48], ebx
jbe 0x7dd85774
mov byte [ebp - 0x21d], 1
lea eax, [ebp - 0x254]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 2
push 0x7dd85910
push dword [ebp - 0x230]
call esi
test eax, eax
jl 0x7dd857a9
cmp dword [ebp - 0x50], 4
jne 0x7dd857a9
cmp dword [ebp - 0x4c], 4
jne 0x7dd857a9
cmp dword [ebp - 0x48], ebx
ja 0x7dda4928
push dword [ebp - 0x230]
call dword [sym.imp.ntdll.dll_NtClose]
cmp byte [ebp - 0x21d], 0
je 0x7dda4937
lea eax, [ebp - 0x22c]
push eax
push 0x7dd858e8
lea eax, [ebp - 0x25c]
push eax
push ebx
mov dword [ebp - 0x25c], 0x1000
call dword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
jl 0x7dda4a8f
mov esi, dword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
push 0x7de400ac
push ebx
push 0x7dd858f0
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4aec
cmp dword [0x7de400ac], ebx
je 0x7dda4aec
push 0x7de400a8
push ebx
push 0x7dd85900
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4aec
cmp dword [0x7de400a8], ebx
je 0x7dda4aec
push 0x7de400a4
push ebx
push 0x7dd858f8
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4aec
cmp dword [0x7de400a4], ebx
je 0x7dda4aec
push 0x7de400a0
push ebx
push 0x7dd85908
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4aec
cmp dword [0x7de400a0], ebx
je 0x7dda4aec
mov eax, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x244]
mov dword [0x7de4001c], eax
jmp 0x7dd85428
mov dword [ebp - 0x23c], esi
jmp 0x7dd8541b
cmp esi, ebx
jge 0x7dda4876
jmp 0x7dd854e8
xor esi, esi
jmp 0x7dd854d4
mov eax, 0xc000000d
jmp 0x7dd854f5
xor eax, eax
jmp 0x7dd854f5
mov esi, 0xc0000139
jmp 0x7dd854e8
xor esi, esi
jmp 0x7dd854e8
lea eax, [ebp - 0x224]
push eax
push 1
push 0x2000000
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtOpenThreadToken]
mov esi, eax
jmp 0x7dd853b4
lea eax, [ebp - 0x228]
push eax
push 8
push 0xffffffffffffffff
call ebx
mov esi, eax
jmp 0x7dd853e9
mov dword [ebp - 0x228], ebx
jmp 0x7dd853f3
push 4
lea eax, [ebp - 0x224]
push eax
push 5
push 0xfffffffffffffffe
call edi
push dword [ebp - 0x224]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
mov dword [ebp - 0x224], ebx
jge 0x7dd853ff
mov esi, edi
xor ebx, ebx
jmp 0x7dd854d4
push 4
lea eax, [ebp - 0x258]
push eax
push 5
push 0xfffffffffffffffe
mov dword [ebp - 0x258], ebx
call edi
mov esi, eax
cmp esi, ebx
jge 0x7dd853c8
push dword [ebp - 0x224]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x224], ebx
jmp 0x7dd854e8
cmp dword [0x7de4001c], 0xffffffff
jne 0x7dd854e8
mov dword [0x7de4001c], 0xfffffffe
jmp 0x7dda47ff
lea eax, [ebp - 0x284]
push eax
push 0x50
lea eax, [ebp - 0x124]
push eax
push 2
push 0x7dda4b2c
push dword [ebp - 0x250]
call esi
push dword [ebp - 0x250]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
jl 0x7dd85718
cmp dword [ebp - 0x120], 4
jne 0x7dd85718
cmp dword [ebp - 0x11c], 4
jne 0x7dd85718
cmp dword [ebp - 0x118], ebx
jbe 0x7dd85718
jmp 0x7dda4a80
mov dword [0x7de40c8c], 8
jmp 0x7dd857a9
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
jl 0x7dda4a80
xor eax, eax
mov word [ebp - 0x24c], ax
mov eax, dword [ebp - 0x264]
add eax, 0x78
mov word [ebp - 0x24a], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
movzx edx, word [ebp - 0x24a]
mov eax, dword [eax + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x248], eax
cmp eax, ebx
je 0x7dda4a66
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
test eax, eax
jl 0x7dda4a4d
push 0x7dda4b38
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
jl 0x7dda4a4d
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x27c]
push eax
push 1
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x27c], 0x18
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x270], 0x40
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dda4a4d
lea eax, [ebp - 0x254]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 2
push edi
push dword [ebp - 0x230]
call esi
test eax, eax
jl 0x7dda4a4d
cmp dword [ebp - 0x50], 4
jne 0x7dda4a4d
cmp dword [ebp - 0x4c], 4
jne 0x7dda4a4d
cmp dword [ebp - 0x48], ebx
jbe 0x7dda4a4d
mov byte [ebp - 0x21d], 1
push dword [ebp - 0x248]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp byte [ebp - 0x21d], 0
jne 0x7dd857c2
mov dword [0x7de4001c], 0xfffffffe
jmp 0x7dd9d354
mov esi, 0xc0000139
mov dword [0x7de4001c], ebx
jmp 0x7dd854d4
call fcn.7dd711c7
mov dword [ebp - 0x240], eax
mov edi, 0x312
cmp eax, 0x4ec
je 0x7dda4abe
cmp eax, edi
jne 0x7dd854c8
push ebx
push dword [ebp - 0x244]
push dword [ebp - 0x234]
call dword [0x7de400a0]
xor eax, eax
cmp dword [ebp - 0x240], edi
setne al
dec eax
and eax, 0x11
add eax, 0xc0000361
mov esi, eax
jmp 0x7dd854c8
push dword [ebp - 0x22c]
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov dword [0x7de4001c], ebx
mov esi, 0xc0000139
jmp 0x7dd854d4
push ebx
push edi
push dword [ebp - 0x234]
call dword [0x7de400a0]
push dword [ebp - 0x238]
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, 0xc0000361
jmp 0x7dd854c8