Function at 0x1b840
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x294d0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0001787e
test al, al
jne 0x1b868
mov eax, 0xc0000001
jmp 0x1bddf
push ebx
push edi
xor eax, eax
mov word [ebp - 0x424], ax
lea edi, [ebp - 0x422]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov eax, 0x200
push 0x3ff
mov word [ebp - 0x422], ax
lea eax, [ebp - 0x403]
push ebx
push eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x404], bl
call sub.ntoskrnl.exe_memset
lea eax, [ebp - 0x404]
add esp, 0xc
mov dword [ebp - 0x420], eax
xor eax, eax
movzx ecx, word [eax + 0x2312c]
mov word [ebp + eax - 0x404], cx
inc eax
inc eax
cmp cx, bx
jne 0x1b8c5
push esi
call fcn.0001212e
mov esi, eax
call fcn.0001213a
mov ecx, dword [ebp - 0x420]
lea edi, [ecx + eax*2]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0x420]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1b8fd
sub eax, ecx
push 0x14
sar eax, 1
add eax, eax
mov word [ebp - 0x424], ax
pop eax
push 0x16
mov word [ebp - 0x47c], ax
pop eax
push 0x14
mov word [ebp - 0x47a], ax
pop eax
push 0x16
mov word [ebp - 0x454], ax
pop eax
mov word [ebp - 0x452], ax
push 0x18
pop edi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x43c]
push eax
mov esi, 0xf003f
push esi
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x478], 0x2528c
mov dword [ebp - 0x450], 0x24ff0
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x430], 0x240
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x1b9a9
mov eax, 0xc0000001
jmp 0x1bddc
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], 0x240
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov esi, eax
cmp esi, ebx
jge 0x1ba1b
push dword [ebp - 0x410]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
jmp 0x1bddc
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push 0x12
pop eax
push 0x14
mov word [ebp - 0x494], ax
pop eax
push 0x5a
push 0x24f94
push 2
mov word [ebp - 0x492], ax
push ebx
lea eax, [ebp - 0x494]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x490], 0x22900
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0x1a
mov eax, edi
mov word [ebp - 0x4a4], ax
pop eax
push 4
mov word [ebp - 0x4a2], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x4a0], 0x230fc
mov dword [ebp - 0x414], 1
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0xa
pop eax
push 0xc
mov word [ebp - 0x444], ax
pop eax
push 4
mov word [ebp - 0x442], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x440], 0x230ce
mov dword [ebp - 0x414], 2
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 8
pop eax
push 0xa
mov word [ebp - 0x45c], ax
pop eax
push 4
mov word [ebp - 0x45a], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x458], 0x230f2
mov dword [ebp - 0x414], 0x20
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0x20
pop eax
push 0x22
mov word [ebp - 0x49c], ax
pop eax
push 4
mov word [ebp - 0x49a], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x498], 0x24f72
mov dword [ebp - 0x414], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0x14
pop eax
push 0x16
mov word [ebp - 0x46c], ax
pop eax
push edi
push 0x24f58
push 1
mov word [ebp - 0x46a], ax
push ebx
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x468], 0x24f42
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0x16
pop eax
push 0x16
push 0x25274
mov word [ebp - 0x48c], ax
push 1
mov eax, edi
mov word [ebp - 0x48a], ax
push ebx
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x488], 0x230da
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
push 0x16
pop eax
push 0x64
push 0x2520e
mov word [ebp - 0x44c], ax
push 1
mov eax, edi
mov word [ebp - 0x44a], ax
push ebx
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x448], 0x24eae
call esi
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jl 0x1bcd4
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0xf003f
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], 0x240
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, ebx
mov dword [ebp - 0x40c], eax
jge 0x1bcf5
push dword [ebp - 0x408]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0x410]
call esi
mov eax, dword [ebp - 0x40c]
jmp 0x1bddc
push 0x16
pop eax
push 6
push 0x24ea6
push 1
mov word [ebp - 0x464], ax
push ebx
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x418]
mov word [ebp - 0x462], di
mov dword [ebp - 0x460], 0x24e8e
call esi
mov edi, eax
cmp edi, ebx
jl 0x1bdbc
push 0x14
pop eax
push 0x16
mov word [ebp - 0x474], ax
pop eax
mov word [ebp - 0x472], ax
movzx eax, word [0x186d328]
push eax
push dword [0x186d32c]
lea eax, [ebp - 0x474]
push 2
push ebx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x470], 0x24e78
call esi
mov edi, eax
cmp edi, ebx
jl 0x1bdbc
push 8
pop eax
push 0xa
mov word [ebp - 0x484], ax
pop eax
push 4
mov word [ebp - 0x482], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x484]
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x480], 0x25204
mov dword [ebp - 0x414], 0x60ff
call esi
mov edi, eax
push dword [ebp - 0x418]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0x408]
call esi
push dword [ebp - 0x410]
call esi
mov eax, edi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.000223b6
leave
ret