Function at 0x12a3c
Capabilities:
Set registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1abe0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x444]
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x448], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x42c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x410], ax
lea edi, [ebp - 0x434]
mov dword [ebp - 0x438], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x40e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
inc eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
xor eax, eax
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push esi
push eax
mov dword [ebp - 0x414], 0xc0000001
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
call fcn.0001274e
push 0x40
pop ebx
cmp dword [0x1b054], esi
je 0x12bca
cmp word [0x1b050], si
jbe 0x12bca
mov edi, 0x1b050
push edi
call fcn.0001097c
cmp eax, esi
mov dword [ebp - 0x414], eax
jge 0x12bca
cmp dword [0x1b058], esi
je 0x12bca
cmp dword [0x1b05c], esi
jbe 0x12bca
push esi
push esi
push 0x20
push 3
push 3
push 0x80
push esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x40000000
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x430], 0x18
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
push esi
lea eax, [ebp - 0x438]
push eax
push dword [0x1b05c]
lea eax, [ebp - 0x448]
push dword [0x1b058]
mov dword [ebp - 0x438], esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x434], esi
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
cmp dword [0x1b04c], esi
je 0x12eac
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x430]
push eax
push 0xf003f
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x430], 0x18
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], 0x1b048
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x144c4
lea eax, [ebp - 0x410]
push eax
call edi
movzx ebx, word [0x1b040]
push ebx
push dword [0x1b044]
lea eax, [ebp - 0x404]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add ebx, 2
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x404]
push eax
push 1
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
push 0x200
lea eax, [ebp - 0x404]
push esi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x144b0
lea eax, [ebp - 0x410]
push eax
call edi
movzx eax, word [0x1b050]
push eax
push dword [0x1b054]
lea eax, [ebp - 0x404]
push eax
call sub.ntoskrnl.exe_memcpy
movzx eax, word [0x1b050]
add esp, 0xc
add eax, 2
push eax
lea eax, [ebp - 0x404]
push eax
push 2
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x14496
lea eax, [ebp - 0x410]
push eax
call edi
push 4
lea eax, [ebp - 0x44c]
push eax
push 4
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
push 0x1448a
lea eax, [ebp - 0x410]
push eax
call edi
push 4
lea eax, [ebp - 0x440]
push eax
push 4
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp eax, esi
mov dword [ebp - 0x414], eax
jl 0x12eac
push 0x14480
lea eax, [ebp - 0x410]
push eax
call edi
push 4
lea eax, [ebp - 0x43c]
push eax
push 4
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp dword [0x1b110], esi
jle 0x12ddc
push 0x14590
lea eax, [ebp - 0x410]
push eax
call edi
push 4
push 0x1b110
push 4
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
cmp dword [0x1b02c], esi
je 0x12e51
cmp word [0x1b028], si
jbe 0x12e51
push 0x1457a
lea eax, [ebp - 0x410]
push eax
call edi
movzx eax, word [0x1b028]
push eax
push dword [0x1b02c]
lea eax, [ebp - 0x404]
push eax
call sub.ntoskrnl.exe_memcpy
movzx eax, word [0x1b028]
add esp, 0xc
add eax, 2
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [0x1b034], esi
je 0x12eac
cmp word [0x1b030], si
jbe 0x12eac
push 0x14564
lea eax, [ebp - 0x410]
push eax
call edi
movzx eax, word [0x1b030]
mov edi, dword [0x1b034]
push eax
lea eax, [ebp - 0x404]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
movzx eax, word [0x1b030]
add esp, 0xc
add eax, 2
push eax
push edi
push 1
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
call ebx
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x418], esi
je 0x12ec2
push dword [ebp - 0x418]
call edi
cmp dword [ebp - 0x408], esi
je 0x12ed2
push dword [ebp - 0x408]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x414]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00013c58
leave
ret 8