Function at 0x7dd85341
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 0x7dd9d38b
cmp word [edi], bx
je 0x7dd9d38b
cmp dword [0x7de4001c], 0xfffffffe
je 0x7dda4816
push 0x7de402f0
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
mov eax, dword [0x7de4001c]
cmp eax, ebx
je 0x7dda481d
cmp eax, 0xfffffffe
je 0x7dda4827
cmp esi, ebx
jne 0x7dd9d36c
mov eax, dword fs:[0x18]
mov edi, 0xc000007c
cmp dword [eax + 0xf9c], ebx
jne 0x7dda482e
mov esi, edi
cmp esi, edi
mov edi, dword [sym.imp.ntdll.dll_NtSetInformationThread]
jne 0x7dd9d377
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 0x7dda484b
xor ebx, ebx
cmp esi, ebx
jl 0x7dda485f
cmp dword [ebp - 0x224], ebx
jne 0x7dda486a
cmp esi, ebx
jl 0x7dda48d4
mov eax, dword [ebp - 0x228]
mov edi, dword [ebp - 0x244]
mov dword [ebp - 0x23c], eax
xor ebx, ebx
cmp dword [0x7de4001c], 0xffffffff
je 0x7dd85660
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 0x7dd85530
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 0x7dd854fc
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 0x7dda4ac7
cmp dword [ebp - 0x238], ebx
jne 0x7dda4b30
xor esi, esi
push dword [ebp - 0x234]
call dword [0x7de400a8]
cmp dword [ebp - 0x228], ebx
je 0x7dd85510
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 0x7dd8571e
push 1
push 0x7dd858d0
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 0x7dd9d384
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 0x7dd9d384
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 0x7dd9d384
push 0x7dd858d8
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 0x7dda48f0
push 0x7dd858f8
push 1
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 0x21d], 0
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, 0x7dd858f0
test eax, eax
jl 0x7dda495f
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 0x7dd8579c
cmp dword [ebp - 0x50], 4
jne 0x7dd8579c
cmp dword [ebp - 0x4c], 4
jne 0x7dd8579c
cmp dword [ebp - 0x48], ebx
jbe 0x7dd8579c
mov byte [ebp - 0x21d], 1
lea eax, [ebp - 0x254]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 2
push 0x7dd85938
push dword [ebp - 0x230]
call esi
test eax, eax
jl 0x7dd857d1
cmp dword [ebp - 0x50], 4
jne 0x7dd857d1
cmp dword [ebp - 0x4c], 4
jne 0x7dd857d1
cmp dword [ebp - 0x48], ebx
ja 0x7dda4950
push dword [ebp - 0x230]
call dword [sym.imp.ntdll.dll_NtClose]
cmp byte [ebp - 0x21d], 0
je 0x7dda495f
lea eax, [ebp - 0x22c]
push eax
push 0x7dd85910
lea eax, [ebp - 0x25c]
push eax
push ebx
mov dword [ebp - 0x25c], 0x1000
call dword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
jl 0x7dda4ab7
mov esi, dword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
push 0x7de400ac
push ebx
push 0x7dd85918
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4b14
cmp dword [0x7de400ac], ebx
je 0x7dda4b14
push 0x7de400a8
push ebx
push 0x7dd85928
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4b14
cmp dword [0x7de400a8], ebx
je 0x7dda4b14
push 0x7de400a4
push ebx
push 0x7dd85920
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4b14
cmp dword [0x7de400a4], ebx
je 0x7dda4b14
push 0x7de400a0
push ebx
push 0x7dd85930
push dword [ebp - 0x22c]
call esi
test eax, eax
jl 0x7dda4b14
cmp dword [0x7de400a0], ebx
je 0x7dda4b14
mov eax, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x244]
mov dword [0x7de4001c], eax
jmp 0x7dd85450
mov dword [ebp - 0x23c], esi
jmp 0x7dd85443
cmp esi, ebx
jge 0x7dda489e
jmp 0x7dd85510
xor esi, esi
jmp 0x7dd854fc
mov eax, 0xc000000d
jmp 0x7dd8551d
xor eax, eax
jmp 0x7dd8551d
mov esi, 0xc0000139
jmp 0x7dd85510
xor esi, esi
jmp 0x7dd85510
lea eax, [ebp - 0x224]
push eax
push 1
push 0x2000000
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtOpenThreadToken]
mov esi, eax
jmp 0x7dd853dc
lea eax, [ebp - 0x228]
push eax
push 8
push 0xffffffffffffffff
call ebx
mov esi, eax
jmp 0x7dd85411
mov dword [ebp - 0x228], ebx
jmp 0x7dd8541b
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 0x7dd85427
mov esi, edi
xor ebx, ebx
jmp 0x7dd854fc
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 0x7dd853f0
push dword [ebp - 0x224]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x224], ebx
jmp 0x7dd85510
cmp dword [0x7de4001c], 0xffffffff
jne 0x7dd85510
mov dword [0x7de4001c], 0xfffffffe
jmp 0x7dda4827
lea eax, [ebp - 0x284]
push eax
push 0x50
lea eax, [ebp - 0x124]
push eax
push 2
push 0x7dda4b54
push dword [ebp - 0x250]
call esi
push dword [ebp - 0x250]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
jl 0x7dd85740
cmp dword [ebp - 0x120], 4
jne 0x7dd85740
cmp dword [ebp - 0x11c], 4
jne 0x7dd85740
cmp dword [ebp - 0x118], ebx
jbe 0x7dd85740
jmp 0x7dda4aa8
mov dword [0x7de40c8c], 8
jmp 0x7dd857d1
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
jl 0x7dda4aa8
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 0x7dda4a8e
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
test eax, eax
jl 0x7dda4a75
push 0x7dda4b60
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test eax, eax
jl 0x7dda4a75
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 0x7dda4a75
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 0x7dda4a75
cmp dword [ebp - 0x50], 4
jne 0x7dda4a75
cmp dword [ebp - 0x4c], 4
jne 0x7dda4a75
cmp dword [ebp - 0x48], ebx
jbe 0x7dda4a75
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 0x7dd857ea
mov dword [0x7de4001c], 0xfffffffe
jmp 0x7dd9d384
mov esi, 0xc0000139
mov dword [0x7de4001c], ebx
jmp 0x7dd854fc
call fcn.7dd711c7
mov dword [ebp - 0x240], eax
mov edi, 0x312
cmp eax, 0x4ec
je 0x7dda4ae6
cmp eax, edi
jne 0x7dd854f0
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 0x7dd854f0
push dword [ebp - 0x22c]
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov dword [0x7de4001c], ebx
mov esi, 0xc0000139
jmp 0x7dd854fc
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 0x7dd854f0