Function at 0x140050410
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400d6060]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x1400528b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1400521b0
cmp qword [rbx + 0x30], 0xa
jne 0x140050db0
cmp qword [rbx + 0x50], 0x40
jne 0x140050db0
lea rcx, [rbp + 0x210]
call fcn.140052420
nop
mov dword [rsp + 0x30], 0xf173078
mov dword [rsp + 0x34], 0x10d1107
mov word [rsp + 0x38], 0x5b
mov byte [rsp + 0x3a], 1
mov dword [rsp + 0x50], 0xc013178
mov dword [rsp + 0x54], 0x1005e07
mov dword [rsp + 0x48], 0x12013778
mov dword [rsp + 0x4c], 0x1005e0a
mov dword [rsp + 0x40], 0x13052978
mov word [rsp + 0x44], 0x5f
mov byte [rsp + 0x46], 1
mov dword [rsp + 0x58], 0x410262a
mov dword [rsp + 0x5c], 0xc0a0a5f
mov word [rsp + 0x60], reloc.WS2_32.dll_select
mov byte [rsp + 0x62], 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140050e50
nop
lea rdx, [rbx + 0x60]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140050524
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140048b90
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1d0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1e0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x48]
call fcn.140050fc0
nop
lea rdx, [rbp + 0x210]
cmp qword [rbp + 0x228], 0x10
cmovae rdx, qword [rbp + 0x210]
mov r8, qword [rbp + 0x220]
mov rcx, rax
call fcn.140048b90
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.140050fc0
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400505ca
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140048b90
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.1400510c0
nop
lea rdx, [rbx + 0x20]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14005061b
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140048b90
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x230], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x240], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x140050685
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050680
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050680
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp + 8], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400506d5
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400506cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400506cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140050713
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005070e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005070e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140050762
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005075c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005075c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x1400507a0
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005079b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005079b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x48], 0
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 0x10
jb 0x1400507f5
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400507ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400507ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140050833
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005082e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005082e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x68], rax
lea rdx, [rbx + 0xa0]
lea rcx, [rbp + 0x1d0]
call fcn.140045ef0
mov r12, rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x70], rax
lea rdx, [rbx + 0x80]
lea rcx, [rbp - 0x18]
call fcn.140045ef0
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea r14, [rbp + 0x230]
mov rsi, qword [rbp + 0x230]
mov r13, qword [rbp + 0x248]
cmp r13, 0x10
cmovae r14, rsi
mov r15, qword [rbp + 0x240]
cmp r15, 0x10
jae 0x1400508c7
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x70], xmm0
mov edi, reloc.WS2_32.dll_ntohs
jmp 0x140050944
mov rdi, r15
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14005091e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140050e18
mov rcx, rax
call fcn.1400ada6c
mov rcx, rax
test rax, rax
je 0x140050917
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14005092c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14005092a
call fcn.1400ada6c
jmp 0x14005092c
xor eax, eax
mov qword [rsp + 0x70], rax
lea r8, [r15 + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rdi
mov r9, r12
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x1f0]
call fcn.140051e20
nop
call fcn.1400521b0
xor r14d, r14d
mov qword [rbp - 0x38], r14
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x1c0]
call fcn.140053ea0
nop
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.140052a60
mov rdx, rax
mov rcx, rbx
call fcn.14004fff0
lea rdx, str.success
lea rcx, [rbp + 0x1c0]
call fcn.140053c90
lea rcx, [rax + 8]
cmp byte [rax], 4
cmovne rcx, r14
cmp byte [rcx], r14b
lea rcx, [rbp + 0x1c0]
je 0x140050a91
lea rdx, str.sessionid
call fcn.140053c90
cmp byte [rax], 3
jne 0x1400509e9
mov rdx, qword [rax + 8]
jmp 0x1400509ec
mov rdx, r14
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400509fa
mov rdx, qword [rdx]
lea rcx, [rbx + 0x268]
call fcn.1400460e0
lea rdx, str.appinfo
lea rcx, [rbp + 0x1c0]
call fcn.140053c90
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140052a60
mov rdx, rax
mov rcx, rbx
call fcn.14004fe80
nop
movzx edx, byte [rbp + 0x1c0]
lea rcx, [rbp + 0x1c8]
call fcn.140053320
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 0x10
jb 0x140050ce8
inc rdx
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050ce3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050ce3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.message
call fcn.140053c90
mov rdi, rax
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400ada6c
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 0xa
lea rdx, str.invalidver
mov rcx, rax
call fcn.1400460e0
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140054c00
movzx ebx, al
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140053320
nop
test bl, bl
je 0x140050a32
lea rdx, str.download
lea rcx, [rbp + 0x1c0]
call fcn.140053c90
lea rdx, [rbp + 0x1d0]
mov rcx, rax
call fcn.140053e40
lea rdx, [0x1400bef0e]
lea rcx, [rbp + 0x1d0]
call fcn.140053c40
test al, al
je 0x140050cac
movdqa xmm0, xmmword [0x1400c5410]
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmm1, xmmword [0x1400c5450]
movdqa xmmword [rbp + 0x90], xmm1
movdqa xmm0, xmmword [0x1400c58c0]
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x1400c5940]
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmm0, xmmword [0x1400c58d0]
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmm1, xmmword [0x1400c58e0]
movdqa xmmword [rbp + 0xd0], xmm1
movdqa xmm0, xmmword [0x1400c5950]
movdqa xmmword [rbp + 0xe0], xmm0
movdqa xmm1, xmmword [0x1400c5890]
movdqa xmmword [rbp + 0xf0], xmm1
movdqa xmm0, xmmword [0x1400c5870]
movdqa xmmword [rbp + 0x100], xmm0
movdqa xmm1, xmmword [0x1400c5880]
movdqa xmmword [rbp + 0x110], xmm1
movdqa xmm0, xmmword [0x1400c5840]
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmm1, xmmword [0x1400c5830]
movdqa xmmword [rbp + 0x130], xmm1
movdqa xmm0, xmmword [0x1400c57e0]
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmm1, xmmword [0x1400c5800]
movdqa xmmword [rbp + 0x150], xmm1
movdqa xmm0, xmmword [0x1400c54f0]
movdqa xmmword [rbp + 0x160], xmm0
movdqa xmm1, xmmword [0x1400c54e0]
movdqa xmmword [rbp + 0x170], xmm1
movdqa xmm0, xmmword [0x1400c5420]
movdqa xmmword [rbp + 0x180], xmm0
movdqa xmm1, xmmword [0x1400c5490]
movdqa xmmword [rbp + 0x190], xmm1
movdqa xmm0, xmmword [0x1400c5930]
movdqa xmmword [rbp + 0x1a0], xmm0
mov dword [rbp + 0x1b0], 0xe8fcfbed
mov word [rbp + 0x1b4], 0xbc
mov byte [rbp + 0x1b6], 1
lea rcx, [rbp + 0x80]
call fcn.1400511c0
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140050cda
lea rcx, [rbp + 0x1d0]
call fcn.140048b80
mov r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.1400ad758
mov qword [rbp + 0x200], r14
mov qword [rbp + 0x208], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x1f0], 0
cmp r13, 0x10
jb 0x140050d3c
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140050d33
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400ad758
nop
mov rdx, qword [rbp + 0x228]
cmp rdx, 0x10
jb 0x140050d80
inc rdx
mov rcx, qword [rbp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad758
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400ad1b0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movdqa xmm0, xmmword [0x1400c57f0]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1400c5810]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x1400c5920]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x1400c5970]
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], 0xc28ef1f7
mov dword [rbp - 0x2c], 0x100d3d2
lea rcx, [rbp - 0x70]
call fcn.140050e20
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.140043ed0
nop
int3