Function at 0x140129294
Capabilities:
Parse pe header
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xd48
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401980c8]
xor rax, rbp
mov qword [rbp + 0xd00], rax
mov dword [rbp + 8], 0
lea rdx, [0x14014d974]
lea rcx, [rbp + 0x28]
call fcn.140064fa8
nop
mov eax, 2
imul rax, rax, 0x20
mov ecx, WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x14
mov ecx, 0x69
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xa
mov ecx, 0x69
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1f
mov ecx, 0x75
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 5
mov ecx, 0x41
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 8
mov ecx, 0x5c
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0
mov ecx, VarR8FromBool
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xe
mov ecx, reloc.WS2_32.dll_WSAStartup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x10
mov ecx, 0x66
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xb
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x27
mov ecx, WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 3
mov ecx, VarR8FromBool
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1a
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x13
mov ecx, 0x57
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x23
mov ecx, WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x29
mov ecx, 0x69
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x22
mov ecx, reloc.OLEAUT32.dll_VarCyFromR8
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1b
mov ecx, Ordinal_79
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 7
mov ecx, 0x45
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x12
mov ecx, 0x5c
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1c
mov ecx, VarR8FromBool
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x25
mov ecx, 0x56
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 1
mov ecx, reloc.WLDAP32.dll_Ordinal_79
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xd
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x2a
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x19
mov ecx, reloc.WS2_32.dll_WSAStartup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x28
mov ecx, reloc.WS2_32.dll_WSAStartup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1e
mov ecx, 0x43
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x16
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 4
mov ecx, 0x57
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 2
mov ecx, 0x46
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x21
mov ecx, WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x15
mov ecx, WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xf
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x18
mov ecx, 0x77
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0xc
mov ecx, WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x2b
mov ecx, WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x2c
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0x5a
jae 0x140129614
jmp 0x140129619
call fcn.14008eff0
xor eax, eax
mov rcx, qword [rbp + 0x30]
mov word [rbp + rcx + 0x8a0], ax
mov eax, 2
imul rax, rax, 0x24
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 6
mov ecx, VarR8FromBool
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 9
mov ecx, Ordinal_79
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x11
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x17
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x26
mov ecx, reloc.OLEAUT32.dll_VarCyFromR8
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 0x1d
mov ecx, 0x5c
mov word [rbp + rax + 0x8a0], cx
mov eax, 2
imul rax, rax, 9
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xc
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 7
mov ecx, 0x50
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 5
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xb
mov ecx, 0x75
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xe
mov ecx, 0x49
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 2
mov ecx, 0x67
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0x10
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0x22
jae 0x140129771
jmp 0x140129776
call fcn.14008eff0
xor eax, eax
mov rcx, qword [rbp + 0x38]
mov word [rbp + rcx + 0x878], ax
mov eax, 2
imul rax, rax, 3
mov ecx, 0x69
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xa
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xd
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 1
mov ecx, 0x69
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0
mov ecx, 0x44
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 0xf
mov ecx, VarCyFromR8
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 6
mov ecx, WSAGetLastError
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 4
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rbp + rax + 0x878], cx
mov eax, 2
imul rax, rax, 8
mov ecx, WSACleanup
mov word [rbp + rax + 0x878], cx
lea rax, [rbp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov dword [rbp + 4], 0x800
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, [rbp + 0x8a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140129a15
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x878]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0
jne 0x140129a0b
lea rax, [rbp + 0x900]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov r8d, dword [rbp + 4]
lea rdx, [rbp + 0x900]
lea rcx, [rbp + 0x70]
call fcn.140141330
call fcn.14005d87c
mov dword [rbp + 0x1c], eax
mov eax, 2
imul rax, rax, 0
mov ecx, Ordinal_41
mov word [rbp + rax + 0x870], cx
mov eax, 2
imul rax, rax, 1
mov ecx, reloc.WS2_32.dll_WSAStartup
mov word [rbp + rax + 0x870], cx
mov eax, 2
imul rax, rax, 2
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 6
jae 0x140129936
jmp 0x14012993b
call fcn.14008eff0
xor eax, eax
mov rcx, qword [rbp + 0x40]
mov word [rbp + rcx + 0x870], ax
lea rax, [rbp + 0x900]
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x140129968
mov qword [rbp + 0x50], 0
jmp 0x1401299f7
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x10], 0xffffffffffffffff
inc qword [rbp + 0x10]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x10]
cmp byte [rax + rcx], 0
jne 0x140129978
mov rax, qword [rbp + 0x10]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1401299a6
mov qword [rbp + 0x48], 0
jmp 0x1401299ef
movsxd rax, dword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401299c3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14008fc20
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x1c]
mov r8d, dword [rbp]
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.140065154
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x50], rax
mov r8, qword [rbp + 0x50]
lea rdx, [rbp + 0x870]
lea rcx, [rbp + 0x28]
call fcn.140065658
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0xd30]
call fcn.140064f2c
mov eax, dword [rbp + 8]
or eax, 1
mov dword [rbp + 8], eax
lea rcx, [rbp + 0x28]
call fcn.14006504c
mov rax, qword [rbp + 0xd30]
mov rcx, qword [rbp + 0xd00]
xor rcx, rbp
call fcn.14008f320
lea rsp, [rbp + 0xd18]
pop rdi
pop rbp
ret