Function at 0x402860
Capabilities:
Create process on windows
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
lea eax, [ebp - 0x35c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x102
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0x314], 0x103
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x402bba
mov eax, dword [0x404844]
xor ebx, ebx
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesExt2FsdParameters]
mov dword [ebp - 0x1dc], eax
mov al, byte [0x404848]
mov byte [ebp - 0x1d8], al
lea eax, [ebp - 0x320]
push eax
movups xmmword [ebp - 0x20c], xmm0
push 0x20119
movups xmm0, xmmword [0x404824]
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x360], ebx
movups xmmword [ebp - 0x1fc], xmm0
push eax
movups xmm0, xmmword [0x404834]
push 0x80000002
movups xmmword [ebp - 0x1ec], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402991
push 0x104
mov dword [ebp - 0x31c], 0x103
call fcn.00402c1e
mov ecx, dword [ebp - 0x31c]
mov ebx, eax
inc ecx
mov dword [ebp - 0x360], ebx
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x31c]
push eax
push ebx
lea eax, [ebp - 0x318]
push eax
push 0
push str.AutorunUsers
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x402bba
mov edx, ebx
mov dword [ebp - 0x368], ebx
nop dword [eax]
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4029b5
lea edi, [ebp - 0x310]
sub esi, ecx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4029c7
sub edi, ecx
xor eax, eax
mov dword [ebp - 0x364], eax
cmp edi, esi
jg 0x402bb1
mov eax, edx
mov ebx, edi
sub eax, edi
mov dword [ebp - 0x36c], eax
nop dword [eax]
push edi
lea ecx, [ebp - 0x310]
add eax, ebx
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x402a1f
inc dword [ebp - 0x364]
inc ebx
cmp ebx, esi
jg 0x402bab
mov eax, dword [ebp - 0x36c]
jmp 0x4029f0
mov edx, dword [ebp - 0x368]
add edx, dword [ebp - 0x364]
je 0x402ba3
mov ebx, dword [ebp - 0x360]
cmp edx, ebx
jbe 0x402a66
mov al, byte [edx - 1]
cmp al, 0x2c
je 0x402a66
cmp al, 0x3b
je 0x402a66
lea ecx, [ebp - 0x310]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a50
sub ecx, esi
add edx, ecx
mov dword [ebp - 0x368], edx
jmp 0x4029b0
lea ecx, [ebp - 0x310]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a70
sub ecx, esi
lea eax, [ecx + edx]
mov edx, eax
mov al, byte [eax]
mov dword [ebp - 0x368], edx
test al, al
je 0x402a96
cmp al, 0x2c
je 0x402a96
cmp al, 0x3b
jne 0x4029b0
push ebx
call fcn.00402bdb
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402bba
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x402ad0
sub esi, ecx
xor ebx, ebx
cmp esi, 0xb
jl 0x402bba
mov edi, 0xb
nop dword [eax]
push 0xb
lea eax, [ebp + edi - 0x113]
push 0x40485c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x402b25
inc edi
inc ebx
cmp edi, esi
jle 0x402af0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
add eax, ebx
je 0x402bba
mov word [eax + 4], 0x674d
mov byte [eax + 6], 0x72
lea eax, [ebp - 0x108]
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x35c]
push eax
mov dword [ebp - 0x35c], 0x3c
mov dword [ebp - 0x358], 0x140
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x348], str._quiet
mov dword [ebp - 0x350], str.runas
mov dword [ebp - 0x340], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x360]
jmp 0x402bb2
mov ebx, dword [ebp - 0x360]
push ebx
call fcn.00402bdb
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bcd
mov esp, ebp
pop ebp
ret