Function at 0x140002b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Get hostname
Query or enumerate registry value
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1560
call fcn.14003c010
sub rsp, rax
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rsp + 0x1558], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400878a0], xmm0
movups xmmword [0x1400878b0], xmm0
movups xmmword [0x1400878c0], xmm0
movups xmmword [0x1400878d0], xmm0
movups xmmword [0x1400878e0], xmm0
movups xmmword [0x1400878f0], xmm0
movups xmmword [0x140087900], xmm0
movups xmmword [0x140087910], xmm0
movups xmmword [0x140087920], xmm0
mov dword [0x140087930], eax
mov word [0x140087934], ax
mov dword [rsp + 0x68], __WSAFDIsSet
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
test eax, eax
jne 0x140002c8e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rbx, [0x1400878a0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 2]
lea r8, str.MachineGuid
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x140002c88
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.UNKNOWNID_
mov edx, __WSAFDIsSet
mov rcx, rbx
call fcn.1400430a0
jmp 0x140002c8e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x68], 0xfa
lea rdx, [rsp + 0x68]
lea rcx, [0x140088140]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140002cc4
lea r8, str.UNKNOWN_NAME
mov edx, 0xfa
lea rcx, [0x140088140]
call fcn.140043038
call fcn.140012ff4
mov dword [rsp + 0x1534], 0xffffffff
mov dword [rsp + 0x1b4], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x1b4], eax
inc rdx
cmp rdx, 0x270
jb 0x140002ce0
mov dword [rsp + 0x1b0], 0x270
nop dword [rax]
lea rcx, [rsp + 0x1b0]
call fcn.140003410
mov r8d, eax
mov eax, 0x603538b
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
cmp ecx, 0x20c06a
jae 0x140002d10
mov eax, 0x603538b
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x7d1
sub r8d, eax
lea edx, [r8 - 0x7ffff448]
lea ecx, [rdx - 0x80000000]
mov r8d, 0x80000000
lea eax, [rdx + r8]
cmp edx, r8d
cmovae eax, ecx
mov dword [0x140087b48], eax
lea rbx, [0x140088380]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400022b0
mov rdx, rdi
cmp qword [0x140088390], 0
jbe 0x140002dd9
nop dword [rax]
mov rax, rbx
cmp qword [0x140088398], 0x10
cmovae rax, qword [0x140088380]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rdx]
xor al, 0x77
mov byte [rcx + rdx], al
inc rdx
cmp rdx, qword [0x140088390]
jb 0x140002da0
mov rdx, qword [0x140084d30]
cmp rdx, 0x10
jb 0x140002e1a
mov rcx, qword [0x140084d18]
inc rdx
cmp rdx, 0x1000
jb 0x140002e15
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003120
mov rcx, r8
call fcn.14003ba0c
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x140084d18], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140084d28], xmm1
lea rcx, [rsp + 0xa0]
call fcn.140006e50
nop
cmp dword [rsp + 0xa0], 0
jne 0x1400030ec
cmp qword [rsp + 0xf8], 0
jne 0x140002ed0
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 0x10
cmovae rdx, qword [rsp + 0xa8]
cmp qword [rsp + 0xb8], 5
jne 0x140002eb5
mov rcx, rdi
lea r8, str.https
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002ea8
cmp rcx, 5
jne 0x140002e90
mov eax, edi
jmp 0x140002ead
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140002eb5
mov cl, 1
jmp 0x140002eb7
xor cl, cl
mov eax, 0x50
mov edx, 0x1bb
test cl, cl
cmovne ax, dx
mov word [0x140087f38], ax
jmp 0x140002f26
call fcn.140041ebc
mov rsi, rax
lea rbx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rbx, qword [rsp + 0xe8]
mov dword [rax], edi
mov r8d, 0xa
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140042ab0
cmp rbx, qword [rsp + 0x60]
je 0x140003126
cmp dword [rsi], 0x22
je 0x140003132
mov word [0x140087f38], ax
jmp 0x140002f26
lea rdx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 0x10
cmovae rdx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd8]
lea rbx, [0x140084cf8]
mov rcx, rbx
call fcn.140002550
lea rdx, [rsp + 0x108]
cmp qword [rsp + 0x120], 0x10
cmovae rdx, qword [rsp + 0x108]
mov r8, qword [rsp + 0x118]
lea rcx, [0x140084cd8]
call fcn.140002550
cmp qword [0x140084d10], 0x10
cmovae rbx, qword [0x140084cf8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x74], 2
mov dword [rsp + 0x78], 1
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140002ff5
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], select
xor r8d, r8d
lea rdx, [0x140078c79]
jmp 0x140003052
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x20]
add rdx, 4
mov r9d, socket
lea r8, [rsp + 0x1540]
lea ecx, [r9 - 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], select
lea rax, [rsp + 0x1540]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003040
lea rdx, [rsp + 0x1540]
lea rcx, [rsp + 0x40]
call fcn.140002550
mov rdx, qword [0x140084cd0]
cmp rdx, 0x10
jb 0x14000309d
mov rcx, qword [0x140084cb8]
inc rdx
cmp rdx, 0x1000
jb 0x140003098
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000313f
mov rcx, r8
call fcn.14003ba0c
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x140084cb8], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140084cc8], xmm1
movq rcx, xmm1
test rcx, rcx
je 0x1400030ec
mov r8d, 0x104
lea rdx, [0x140087940]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400030ec
lea rcx, [rsp + 0xa0]
call fcn.140003150
mov eax, 1
jmp 0x1400030fb
lea rcx, [rsp + 0xa0]
call fcn.140003150
xor eax, eax
mov rcx, qword [rsp + 0x1558]
xor rcx, rsp
call fcn.14003b9b0
lea r11, [rsp + 0x1560]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140042fc0
nop
lea rcx, str.invalid_stoi_argument
call fcn.140012f64
lea rcx, str.stoi_argument_out_of_range
call fcn.140012fac
nop
call fcn.140042fc0
int3