Function at 0x41eed0
Capabilities:
Create process on windows
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44b1c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
mov ebp, dword [esp + 0xec]
mov eax, dword [ebp + 4]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
cmp eax, 2
mov edi, ecx
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], bl
jae 0x41ef96
push 0x27
push str.Script_error:_argument_expected__line:
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401ab0
cmp esi, dword [ebp + 4]
mov dword [esp + 0xec], ebx
je 0x41ef67
nop
push 0xffffffffffffffff
push ebx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x40]
call fcn.0040b9c0
push 1
push 0x44f5bc
lea ecx, [esp + 0x3c]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [ebp + 4]
jne 0x41ef40
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edi + 0x2dc]
call fcn.0040bcc0
cmp dword [esp + 0x4c], 0x10
jb 0x41f5ae
mov edx, dword [esp + 0x38]
push edx
call fcn.0043c389
add esp, 4
xor al, al
jmp 0x41f5c8
mov esi, dword [esi]
push 1
push 0x44f7ac
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401ab0
mov eax, dword [esi + 0x20]
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0xec], 1
jb 0x41efd4
mov eax, dword [esi + 0xc]
jmp 0x41efd7
lea eax, [esi + 0xc]
push 0x3a
push eax
call fcn.0043dae5
add esp, 8
test eax, eax
jne 0x41f025
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
add eax, 0x1c8
push eax
lea ecx, [esp + 0x24]
call fcn.0040b9c0
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x41f00a
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
cmp byte [eax + ecx - 1], 0x5c
je 0x41f025
push 1
push 0x44f4ec
lea ecx, [esp + 0x20]
call fcn.0040bab0
cmp dword [esi + 0x20], edi
jb 0x41f02f
mov ecx, dword [esi + 0xc]
jmp 0x41f032
lea ecx, [esi + 0xc]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41f037
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040bab0
push 2
push 0x44fbc0
lea ecx, [esp + 0x20]
call fcn.0040bab0
mov esi, dword [esi]
mov eax, dword [ebp + 4]
cmp esi, eax
je 0x41f0b4
mov eax, dword [esi + 0x20]
cmp eax, 0x10
lea edi, [esi + 8]
jb 0x41f074
mov eax, dword [edi + 4]
jmp 0x41f077
lea eax, [edi + 4]
push eax
push str.wait
call fcn.0043cd34
add esp, 8
test eax, eax
jne 0x41f090
mov byte [esp + 0x13], 1
jmp 0x41f0ad
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x24]
call fcn.0040b9c0
push 1
push 0x44f5bc
lea ecx, [esp + 0x20]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [ebp + 4]
jne 0x41f064
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x2b8], bl
je 0x41f2c0
lea edx, [esp + 0x6c]
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41f17e
push 0x50
push str.Script_error:_coldnt_open_runonce_registry_key_during_delayed_execute__line:
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401ab0
mov eax, dword [ebp + 4]
mov esi, dword [eax]
cmp esi, eax
mov byte [esp + 0xec], 2
je 0x41f13f
push 0xffffffffffffffff
push ebx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x40]
call fcn.0040b9c0
push 1
push 0x44f5bc
lea ecx, [esp + 0x3c]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [ebp + 4]
jne 0x41f118
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edi + 0x2dc]
call fcn.0040bcc0
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp eax, esi
jb 0x41f169
mov edx, dword [esp + 0x38]
push edx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jmp 0x41f59b
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x56]
movzx edx, word [esp + 0x54]
movzx ecx, word [esp + 0x5a]
add edx, eax
movzx eax, word [esp + 0x5c]
add edx, ecx
add edx, eax
push edx
call fcn.0043e210
call fcn.0043e21d
mov esi, 0x10
push esi
lea ecx, [esp + 0x88]
push ecx
push eax
call fcn.0043d549
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, esi
mov eax, dword [esp + 0x1c]
jae 0x41f1d5
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
push edx
push eax
push 1
push ebx
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41f2a1
push 0x5a
mov edi, 0xf
push str.Script_error:_coldnt_write_value_to_runonce_registry_key_during_delayed_execute__line:
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401ab0
mov eax, dword [ebp + 4]
mov esi, dword [eax]
cmp esi, eax
mov byte [esp + 0xec], 3
je 0x41f257
jmp 0x41f230
push 0xffffffffffffffff
push ebx
lea edx, [esi + 8]
push edx
lea ecx, [esp + 0x40]
call fcn.0040b9c0
push 1
push 0x44f5bc
lea ecx, [esp + 0x3c]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [ebp + 4]
jne 0x41f230
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp eax, esi
jb 0x41f290
mov edx, dword [esp + 0x38]
push edx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jmp 0x41f59b
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], esi
jb 0x41f5c6
mov edx, dword [esp + 0x1c]
push edx
jmp 0x41f5be
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
inc ecx
mov dword [esp + 0x78], eax
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0xa4], 0x44
call fcn.0043bc93
mov ecx, dword [esp + 0x30]
inc ecx
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call fcn.0041d710
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
add esp, 8
cmp eax, 0x10
jae 0x41f330
lea edx, [esp + 0x1c]
mov ecx, esi
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x41f332
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x1e0], 0x10
jb 0x41f351
mov eax, dword [eax + 0x1cc]
jmp 0x41f356
add eax, 0x1cc
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call fcn.0043c389
add esp, 4
cmp edi, ebx
jne 0x41f4a0
push 0x2a
push str.Script_error:_coldnt_execute_file__line_:
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00401ab0
mov eax, dword [ebp + 4]
mov esi, dword [eax]
cmp esi, eax
mov byte [esp + 0xec], 4
je 0x41f3f3
cmp dword [esi + 0x20], 0x10
jb 0x41f3c0
mov edx, dword [esi + 0xc]
jmp 0x41f3c3
lea edx, [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f3c8
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x58]
call fcn.0040bab0
push 1
push 0x44f5bc
lea ecx, [esp + 0x58]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [ebp + 4]
jne 0x41f3b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.0043d549
add esp, 0xc
mov esi, 0x10
push esi
push str.___error_code_
lea ecx, [esp + 0x58]
call fcn.0040bab0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f430
sub eax, edx
push eax
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x58]
call fcn.0040bab0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
cmp dword [esp + 0x68], esi
jb 0x41f472
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0043c389
add esp, 4
cmp dword [esp + 0x30], esi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x41f5ae
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043c389
add esp, 4
xor al, al
jmp 0x41f5c8
cmp byte [esp + 0x13], bl
je 0x41f5b2
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x29c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
xor esi, esi
call edi
cmp eax, 0x102
setne al
cmp al, bl
mov byte [ebp + 0x2ac], al
jne 0x41f4ed
mov ecx, dword [esp + 0x70]
push 0x1f4
push ecx
call edi
cmp eax, ebx
je 0x41f4ed
mov al, byte [ebp + 0x2ac]
inc esi
cmp al, bl
je 0x41f4d2
mov cl, byte [ebp + 0x2ac]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp cl, bl
je 0x41f5b2
push 0xa
lea edx, [esp + 0x84]
push edx
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_canceled_by_user_after
lea ecx, [esp + 0x54]
call fcn.004166d0
lea eax, [esp + 0x80]
mov byte [esp + 0xec], 5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f535
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x58]
call fcn.0040bab0
push 0x22
push str._seconds_waiting_for_application:
lea ecx, [esp + 0x58]
call fcn.0040bab0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040b9c0
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp eax, esi
jb 0x41f58b
mov edx, dword [esp + 0x54]
push edx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x30], esi
jb 0x41f5ae
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043c389
add esp, 4
xor al, al
jmp 0x41f5c8
cmp dword [esp + 0x30], 0x10
jb 0x41f5c6
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043c389
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 4