Function at 0x6f339266
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], bl
je 0x6f3392a4
cmp dword [ebp + 0x14], ebx
jne 0x6f3392a4
mov eax, 0x80004003
push eax
push 0x1ce025e
mov dword [ebp + 8], eax
call fcn.6f33d25f
jmp 0x6f33965a
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x6f3392b1
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 2
push 0x6f331258
push dword [ebp - 0x14]
call fcn.6f33efb2
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x80070002
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x6f33934d
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 1
je 0x6f339314
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x14]
call fcn.6f33e0c3
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f33930f
push eax
push 0x1ea025e
push dword [ebp - 0x14]
call fcn.6f33d289
jmp 0x6f339659
cmp dword [ebp - 0xc], ebx
je 0x6f339348
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x6f331fd8
push 0x80000002
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339359
push eax
push 0x1f8025e
call fcn.6f33d25f
jmp 0x6f339659
mov eax, esi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x6f339359
push eax
push 0x1ff025e
jmp 0x6f339302
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x6f331e54
push dword [ebp - 0x18]
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339383
push eax
push 0x20b025e
jmp 0x6f33933e
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push ebx
push 0x6f331e38
push dword [ebp - 8]
mov dword [ebp + 8], 0x80094006
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f3393b3
push eax
push 0x218025e
jmp 0x6f33933e
cmp dword [ebp + 0x18], ebx
je 0x6f3394aa
push esi
lea eax, [ebp + 0x18]
push eax
push esi
push ebx
push 0x6f331f88
push dword [ebp - 8]
call edi
mov dword [ebp + 8], eax
xor eax, eax
inc eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ebx
jle 0x6f339416
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
shl esi, 3
push dword [esi + eax + 4]
call fcn.6f33d15a
mov ecx, dword [ebp + 0x14]
push dword [esi + ecx]
mov dword [ebp - 0x30], eax
call fcn.6f33d15a
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
inc dword [ebp - 0xc]
lea eax, [eax + ecx + 2]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
jl 0x6f3393de
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], esi
jne 0x6f33943c
mov eax, 0x8007000e
push eax
mov dword [ebp + 8], eax
push 0x240025e
jmp 0x6f339646
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0xc], ebx
jle 0x6f339486
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
push dword [eax + ecx*8]
push esi
call fcn.6f33d175
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0xc]
lea esi, [esi + eax*2 + 2]
mov eax, dword [ebp + 0x14]
push dword [eax + ecx*8 + 4]
push esi
call fcn.6f33d175
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
inc dword [ebp - 0xc]
lea esi, [esi + eax*2 + 2]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
pop ecx
jl 0x6f339444
mov word [esi], bx
sub esi, dword [ebp - 0x1c]
inc esi
inc esi
push esi
push dword [ebp - 0x1c]
push 7
push ebx
push 0x6f331f70
push dword [ebp - 8]
call edi
push 4
mov dword [ebp + 8], eax
pop esi
jmp 0x6f33954e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x6f331f88
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f3394da
push eax
push 0x268025e
jmp 0x6f33933e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x6f331f2c
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x6f339514
cmp dword [ebp - 0x20], esi
jne 0x6f339514
cmp dword [ebp - 0x10], esi
jne 0x6f339514
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0x20], eax
jbe 0x6f339514
mov dword [ebp + 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x6f331f10
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x6f33954e
cmp dword [ebp - 0x20], esi
jne 0x6f33954e
cmp dword [ebp - 0x10], esi
jne 0x6f33954e
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0x24], eax
jae 0x6f33954e
mov dword [ebp + 0x24], eax
push esi
lea eax, [ebp + 0x20]
push eax
push esi
push ebx
push 0x6f331f2c
push dword [ebp - 8]
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339571
push eax
push 0x294025e
jmp 0x6f339646
push esi
lea eax, [ebp + 0x24]
push eax
push esi
push ebx
push 0x6f331f10
push dword [ebp - 8]
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339594
push eax
push 0x29d025e
jmp 0x6f339646
cmp dword [ebp + 0x1c], ebx
je 0x6f3395bb
push dword [ebp + 0x1c]
push 0x6f331ee8
push dword [ebp - 8]
call fcn.6f33df60
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f3395bb
push eax
push 0x2a5025e
jmp 0x6f339646
cmp dword [ebp + 0xc], ebx
je 0x6f3395df
push dword [ebp + 0xc]
push 0x6f331ec8
push dword [ebp - 8]
call fcn.6f33df60
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f3395df
push eax
push 0x2ae025e
jmp 0x6f339646
cmp dword [ebp + 0x10], ebx
je 0x6f339603
push dword [ebp + 0x10]
push 0x6f331eb8
push dword [ebp - 8]
call fcn.6f33df60
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339603
push eax
push 0x2b7025e
jmp 0x6f339646
push 1
lea eax, [ebp - 1]
push eax
push 3
push ebx
push 0x6f331e94
push dword [ebp - 8]
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f339625
push eax
push 0x2c3025e
jmp 0x6f339646
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.6f338862
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x6f33964b
push eax
push 0x2ca025e
call fcn.6f33d25f
cmp dword [ebp - 0x1c], ebx
je 0x6f339659
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x6f33966a
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x18], ebx
je 0x6f339674
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x28], ebx
pop esi
pop ebx
je 0x6f339684
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call fcn.6f33f8d1
leave
ret 0x20