Function at 0x102a0a4
Capabilities:
Create directory
Delete registry value
Get common file path
Persist via netsh registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
xor edi, edi
push ebx
inc edi
push 6
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], edi
call fcn.01034068
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x102a3c5
call fcn.01036c1f
push 0x103
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.01028bdb
test eax, eax
je 0x102a160
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x1004140
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a160
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102a12b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
push 0x1004120
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push 2
push ebx
push 0x10040b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a1aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1004090
push dword [ebp - 0x418]
call edi
push 0x1004070
push dword [ebp - 0x418]
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x428], ebx
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
mov word [ebp - 0x438], bx
lea edi, [ebp - 0x436]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
push 2
push ebx
push 0x1004008
mov edi, 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a207
push 0x1003ff0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x102a26e
lea eax, [ebp - 0x418]
push eax
push 0x20006
push ebx
push 0x1003f78
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a26e
push 8
lea eax, [ebp - 0x428]
push eax
push 3
push ebx
push 0x1003f54
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x1003ef0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a339
push 0xe
mov edi, 0x1003edc
push edi
push 1
push ebx
push 0x1003ed4
push dword [ebp - 0x418]
call esi
push 0xe
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x1003ecc
push dword [ebp - 0x418]
call esi
push 0x18
push 0x1003eb4
push edi
push ebx
push 0x1003eac
push dword [ebp - 0x418]
call esi
push 0x18
push 0x1003e94
push edi
push ebx
push 0x1003e88
push dword [ebp - 0x418]
call esi
push 0x16
push 0x1003e70
push edi
push ebx
push 0x1003e68
push dword [ebp - 0x418]
call esi
push 0x16
push 0x1003e50
push edi
push ebx
push 0x1003e48
push dword [ebp - 0x418]
call esi
push 0xe
push 0x1003e38
push edi
push ebx
push 0x1003e30
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102a33c
xor edi, edi
inc edi
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x1003d80
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a380
push 0x2c
push 0x1003d50
push edi
push ebx
push 0x1003d4c
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push 2
push ebx
push 0x1003c98
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a3c0
push 0x2c
push 0x1003c6c
push edi
push ebx
push 0x1003d4c
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01029e2b
push 0x1003be0
mov edi, 0x80000002
push edi
call fcn.01033666
lea eax, [ebp - 0x418]
push eax
push 1
push ebx
push 0x1002a98
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a457
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x1003bbc
push dword [ebp - 0x418]
mov dword [ebp - 0x420], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102a44b
cmp dword [ebp - 0x41c], 1
jne 0x102a44b
lea eax, [ebp - 0x20c]
push eax
call fcn.01033ed9
test eax, eax
jne 0x102a44b
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01034382
test eax, eax
je 0x102a49e
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
push 0x1003bb0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push ebx
push 1
push 5
call fcn.01034068
test eax, eax
je 0x102a5b3
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1003b28
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a5b3
push 0x1003ab8
mov edi, 0x103
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102a4f3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x1003a68
push dword [ebp - 0x418]
call esi
push 0x10039f0
cmp dword [eax], eax
add dword [edi - 0x73], edx
test esp, esi
std
invalid
call dword [eax - 0x18]
cmp ch, ah
invalid
dec dword [ebp - 0x20b7b]
invalid
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x102a538
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x10039a0
push dword [ebp - 0x418]
call esi
push 0x1003928
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x102a57d
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x10038d8
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push 1
push ebx
push 0x1003860
mov esi, 0x80000000
push esi
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, 0x208
jne 0x102a659
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102a64d
cmp dword [ebp - 0x41c], 1
je 0x102a61c
cmp dword [ebp - 0x41c], 2
jne 0x102a64d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x20c]
mov dword [esp], 0x1003848
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x102a64d
mov dword [ebp - 0x420], 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push 1
push ebx
push 0x10037d0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a6ed
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102a6e1
xor esi, esi
inc esi
cmp dword [ebp - 0x41c], esi
je 0x102a6b4
cmp dword [ebp - 0x41c], 2
jne 0x102a6e1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x20c]
mov dword [esp], 0x10037b4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x102a6e1
mov dword [ebp - 0x420], esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x420], ebx
je 0x102a774
push 0x103
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102a774
lea eax, [ebp - 0x414]
push eax
call fcn.01032458
push 0x1003848
lea eax, [ebp - 0x414]
push eax
mov esi, 0x100307c
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01028b9f
add esp, 0x14
push ebx
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01034e13
push 0x10037b4
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01028b9f
add esp, 0x14
push ebx
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01034e13
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret