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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56c580
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.00427d68
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41198c
push 0x80004005
call fcn.00403150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push str.AppPath
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004115f0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.00402b20
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], ebx
jl 0x411a0a
push 0x59c1bc
push edi
call fcn.00523e0f
add esp, 8
cmp eax, ebx
je 0x411a0a
sub eax, edi
cmp eax, 0xffffffff
jne 0x411b37
mov dword [esp + 0x1c], vtable.RegAccess.0
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov byte [esp + 0x40], 2
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x411a46
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edi, str.Local_AppData
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.0040fe70
mov esi, dword [esp + 0x20]
test esi, esi
je 0x411a6d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x20], esi
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411a87
push 0x80004005
call fcn.00403150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 3
mov ebx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x1c]
push str._sSetupBox
push ecx
call fcn.00403220
mov edi, dword [esp + 0x24]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 0xfffffff0
push edi
call fcn.00402c90
mov edx, dword [ebp + 8]
add eax, 0x10
mov dword [edx], eax
add esp, 4
mov byte [esp + 0x30], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411af2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test esi, esi
je 0x411afd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0xfffffff0
push edi
mov dword [0x5cc04c], 1
call fcn.00402c90
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b76
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret