Function at 0x765d70
Capabilities:
Create directory
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc4
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x76db60
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x6c]
push eax
push 0x9a6709
push 0x9a6718
push 0x80000002
call fcn.00766370
add esp, 0x10
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x7660a7
mov ecx, dword [ebp - 0x58]
mov edx, ecx
sub edx, eax
cmp edx, 0x13
jae 0x765e20
sub esp, 0x10
movzx eax, byte [ebp - 0x4c]
mov byte [esp + 4], al
mov dword [esp + 0xc], 0x13
mov dword [esp + 8], 0x9a6759
mov dword [esp], 0x13
lea ecx, [ebp - 0x6c]
call fcn.0066d8c0
cmp dword [ebp - 0x58], 0x10
jb 0x765e4f
mov eax, dword [ebp - 0x6c]
jmp 0x765e52
lea edx, [eax + 0x13]
mov dword [ebp - 0x5c], edx
cmp ecx, 0x10
lea ecx, [ebp - 0x6c]
jb 0x765e31
mov ecx, dword [ebp - 0x6c]
movups xmm0, xmmword [0x9a6759]
movups xmmword [ecx + eax], xmm0
mov dword [ecx + eax + 0xf], 0x73736563
mov byte [ecx + eax + 0x13], 0
cmp dword [ebp - 0x58], 0x10
jae 0x765e1b
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x40]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x765e95
push 0
push 0
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x765e95
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x2c], 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x765ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0076b180
add esp, 4
cmp eax, 9
jne 0x7660db
push dword [ebp + 8]
call fcn.007661d0
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x20], eax
jb 0x765edd
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x2c], 0
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x765f1d
push 0
push 0
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x765f1d
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x2c], 1
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x765f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0076b180
add esp, 4
cmp eax, 9
jne 0x766117
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x765f62
mov eax, dword [eax]
cmp esi, 0xf
ja 0x765f75
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
mov edx, 0xf
jmp 0x765fd5
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], esi
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
mov ecx, 0x7fffffff
cmovb ecx, eax
cmp eax, 0xfff
mov dword [ebp - 0x70], ecx
jb 0x765fb0
lea eax, [ecx + 0x24]
push eax
call fcn.008ea17d
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x765fbc
lea eax, [ecx + 1]
push eax
call fcn.008ea17d
add esp, 4
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.00901d90
add esp, 0xc
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x5c]
inc eax
cmp esi, eax
cmovb eax, esi
lea ecx, [ebp - 0x4c]
cmp edx, 0x10
jb 0x765fec
mov ecx, dword [ebp - 0x4c]
sub esi, eax
mov dword [ebp - 0x3c], esi
inc esi
add eax, ecx
push esi
push eax
push ecx
call fcn.00901d90
add esp, 0xc
cmp dword [ebp - 0x38], 0x10
jb 0x76600b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x6c]
push 0
push dword [ebp - 0x54]
push eax
call fcn.0076a490
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x76605b
mov ecx, dword [ebp - 0x4c]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x766051
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x766151
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.008ea1ad
add esp, 8
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x766093
mov ecx, dword [ebp - 0x6c]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x766089
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x76615d
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.008ea1ad
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0xc4
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x4c]
push 0
push eax
call fcn.00765980
push 0x9f8788
lea eax, [ebp - 0x4c]
push eax
call fcn.00901c9b
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0xd0]
push 0
push eax
call fcn.00765980
push 0x9f8788
lea eax, [ebp - 0xd0]
push eax
call fcn.00901c9b
add esp, 8
jmp 0x766151
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0xa4]
push 0
push eax
call fcn.00765980
push 0x9f8788
lea eax, [ebp - 0xa4]
push eax
call fcn.00901c9b
add esp, 8
mov dword [ebp - 0x10], 0
call fcn.008cd651
mov dword [ebp - 0x10], 1
call fcn.008cd651
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.00901a00
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.00901a00
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.006675b0
add esp, 0x10
pop ebp
ret