Function at 0x10034ee
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10112d4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
xor eax, eax
lea edi, [ebp - 0x114]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x23
pop ecx
mov esi, 0x10014b0
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x108], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x118], 0xc
mov dword [ebp - 0x110], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1003588
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100374e
mov eax, dword [ebp - 0x108]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x118]
push eax
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001440
push reloc.WS2_32.dll_bind
call esi
mov edi, eax
cmp edi, ebx
jne 0x100374e
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0xf4]
push dword [ebp - 0x100]
call esi
mov edi, eax
cmp edi, ebx
jne 0x100374e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x100142c
push 2
push ebx
push 0x100140c
push dword [ebp - 0xf8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x100374e
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x10013fc
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x100374e
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x10013e0
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x100374e
mov esi, dword [ebp - 0xfc]
cmp esi, ebx
je 0x100374e
jmp 0x1003693
mov esi, dword [ebp - 0xfc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp - 0xf4], ebx
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x100372a
mov esi, dword [esi + 4]
lea edi, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.01003412
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x10013d4
push dword [ebp - 0xf4]
call esi
mov edi, dword [ebp - 0xfc]
push dword [edi + 0xc]
call fcn.010033c9
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x10013c0
push dword [ebp - 0xf4]
call esi
mov esi, dword [ebp - 0xfc]
mov edi, eax
cmp dword [ebp - 0xf4], ebx
je 0x100373e
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi]
cmp esi, ebx
mov dword [ebp - 0xfc], esi
jne 0x100368d
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xf8], ebx
je 0x100376e
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x100], ebx
je 0x1003782
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01006c1c
leave
ret 8