Function at 0x4150b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1838
call fcn.00423470
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x32c]
push esi
push edi
mov edi, 0x100
xor esi, esi
push edi
push esi
push eax
mov dword [ebp - 0x1834], esi
call fcn.00427a90
push edi
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.00427a90
push edi
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00427a90
push edi
lea eax, [ebp - 0x42c]
push esi
push eax
call fcn.00427a90
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1830]
push eax
push 0x13
call fcn.0041c73a
lea ecx, [ebp - 0x182c]
add esp, 0x38
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41513a
sub ecx, edx
cmp ecx, 3
jl 0x415155
cmp byte [ebp - 0x182a], 0x30
je 0x415660
push 0x1100
lea eax, [ebp - 0x162c]
push esi
push eax
call fcn.00427a90
lea eax, [ebp - 0x1830]
push eax
push 0x27
call fcn.0041c73a
add esp, 0x14
test eax, eax
jne 0x4151ac
cmp dword [ebp - 0x1830], 2
jne 0x4151ac
cmp byte [ebp - 0x182c], al
je 0x4151ac
push 0x880
lea eax, [ebp - 0x162c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x182c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x4151bc
mov esi, 0x44f060
lea edi, [ebp - 0x162c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push 0x108
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.00427a90
lea eax, [ebp - 0x1830]
push eax
push 0x1d
call fcn.0041c73a
add esp, 0x14
mov edi, str._SERVER_COMMUNICATIONS_
test eax, eax
jne 0x415213
cmp dword [ebp - 0x1830], 2
jne 0x415213
cmp byte [ebp - 0x182c], al
je 0x415213
push 0xff
lea eax, [ebp - 0x182c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0042d450
jmp 0x415225
lea eax, [ebp - 0x22c]
push eax
push str.Server_Name
push edi
call fcn.0041be1f
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push str.Agent_Guid
push edi
call fcn.0041be1f
add esp, 0xc
cmp byte [ebp - 0x32c], 0
jne 0x41525b
lea eax, [ebp - 0x32c]
push eax
push str.User_Name
push edi
call fcn.0041be1f
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push str.Password
push edi
call fcn.0041be1f
lea eax, [ebp - 0x1830]
push eax
push 7
call fcn.0041c73a
add esp, 0x14
test eax, eax
jne 0x415612
cmp dword [ebp - 0x1830], 2
jne 0x415612
lea ecx, [ebp - 0x182c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41529c
sub ecx, edx
je 0x415612
lea ecx, [ebp - 0x32c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4152b4
sub ecx, edx
je 0x415612
push 0xe
lea eax, [ebp - 0x42c]
push str.NewKaseyaAgent
push eax
call fcn.0042e020
add esp, 0xc
test eax, eax
je 0x415612
lea ecx, [ebp - 0x182c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4152ea
sub ecx, edx
lea edx, [ebp - 0x32c]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4152fc
sub edx, esi
lea eax, [edx + ecx]
cmp eax, 0x100
jae 0x4155e3
xor ebx, ebx
mov ecx, ebx
mov al, byte [ebp + ecx - 0x182c]
mov byte [ebp + ecx - 0x42c], al
inc ecx
test al, al
jne 0x415317
lea edx, [ebp - 0x32c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x415332
lea edi, [ebp - 0x42c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415342
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415361
push 0x20
pop esi
push dword [0x467fb4]
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x1838], esi
push eax
lea eax, [ebp - 0x24]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x42c]
push eax
call sym.KaUsrTsk.exe_kacm_hash_buffer
push 0x100
lea eax, [ebp - 0x52c]
push ebx
push eax
call fcn.00427a90
push esi
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408f24
lea edx, [ebp - 0x32c]
add esp, 0x2c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4153c0
lea esi, [ebp - 0x52c]
sub edx, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4153d2
sub esi, ecx
lea ecx, [ebp - 0x22c]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4153e4
sub ecx, edi
lea eax, [esi + 0x28]
add eax, ecx
add eax, edx
cmp eax, 0x100
jge 0x4155b8
test edx, edx
jle 0x4155b8
test ecx, ecx
jle 0x4155b8
mov esi, dword [str.http:__]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41541a
sub ecx, edx
lea eax, [ebp - 0x22c]
push ecx
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00427510
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.0042d363
add esp, 0x14
test eax, eax
jne 0x415465
mov ecx, ebx
mov al, byte [ebp + ecx - 0x22c]
mov byte [ebp + ecx - 0x12c], al
inc ecx
test al, al
jne 0x41544d
jmp 0x4154ee
push 0x108
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00427a90
mov esi, dword [str.https:__]
add esp, 0xc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415485
sub ecx, edx
lea eax, [ebp - 0x22c]
push ecx
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00427510
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.0042d363
add esp, 0x14
test eax, eax
jne 0x4154cd
mov ecx, ebx
mov al, byte [ebp + ecx - 0x22c]
mov byte [ebp + ecx - 0x12c], al
inc ecx
test al, al
jne 0x4154b8
jmp 0x4154ee
lea eax, [ebp - 0x22c]
push eax
push dword [0x4655d0]
lea eax, [ebp - 0x12c]
push 0x44c94c
push eax
call fcn.004026f3
add esp, 0x10
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4154f7
sub ecx, edx
cmp byte [ebp + ecx - 0x22d], 0x2f
je 0x415522
lea edi, [ebp - 0x12c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415511
mov ax, word [0x44f930]
mov word [edi], ax
lea edi, [ebp - 0x12c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415529
push 7
pop ecx
mov esi, str.UserPortal_Session_Login_un
lea edx, [ebp - 0x32c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x415544
lea edi, [ebp - 0x12c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415554
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x415571
mov eax, dword [str.pw]
lea edx, [ebp - 0x52c]
mov dword [ecx], eax
mov esi, edx
mov al, byte [0x44f958]
mov byte [ecx + 4], al
mov al, byte [edx]
inc edx
test al, al
jne 0x415590
lea edi, [ebp - 0x12c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4155a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4155ca
push 5
pop ecx
mov esi, str.http:__www.kaseya.com
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 1
push ebx
push ebx
lea eax, [ebp - 0x12c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x415660
lea eax, [ebp - 0x1834]
push eax
push 0
push 0x29d0
call fcn.0040b45d
add esp, 0xc
lea eax, [ebp - 0x162c]
cmp dword [ebp - 0x1834], 0
push 0x40
push eax
jne 0x415639
push str.This_Agent_does_not_have_a_valid_username_nand_or_password_to_use_to_contact_your_administrator._nThe_Agent_must_check_in_with_the_KServer_nbefore_you_can_use_this_feature_to_contact_your_administrator._n
jmp 0x415659
lea eax, [ebp - 0x1834]
push eax
push esi
push 0x29d1
call fcn.0040b45d
add esp, 0xc
lea eax, [ebp - 0x162c]
cmp dword [ebp - 0x1834], 0
push 0x40
push eax
je 0x415654
push dword [ebp - 0x1834]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x1834]
call fcn.0042a45a
pop ecx
jmp 0x415660
push str.This_Agent_must_register_with_the_KServer_to_get_a_valid_username_nand_password_before_you_can_use_this_feature_to_contact_your_administrator._n
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret