Function at 0x140035db0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor ebx, ebx
mov dword [rbp + 0x1c], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea ecx, [rbx + 0x51]
xor edx, edx
call fcn.140035aa0
mov word [rsp + 0x20], ax
lea ecx, [rbx + 0x57]
lea edx, [rbx + 1]
call fcn.140035aa0
mov word [rsp + 0x22], ax
lea ecx, [rbx + 0x45]
lea edx, [rbx + 2]
call fcn.140035aa0
mov word [rsp + 0x24], ax
lea ecx, [rbx + 0x52]
lea edx, [rbx + 3]
call fcn.140035aa0
mov word [rsp + 0x26], ax
lea ecx, [rbx + 0x54]
lea edx, [rbx + 4]
call fcn.140035aa0
mov word [rsp + 0x28], ax
lea ecx, [rbx + 0x59]
lea edx, [rbx + 5]
call fcn.140035aa0
mov word [rsp + 0x2a], ax
lea ecx, [rbx + 0x55]
lea edx, [rbx + 6]
call fcn.140035aa0
mov word [rsp + 0x2c], ax
lea ecx, [rbx + 0x49]
lea edx, [rbx + 7]
call fcn.140035aa0
mov word [rsp + 0x2e], ax
lea ecx, [rbx + 0x4f]
lea edx, [rbx + 8]
call fcn.140035aa0
mov word [rsp + 0x30], ax
lea ecx, [rbx + 0x50]
lea edx, [rbx + 9]
call fcn.140035aa0
mov word [rsp + 0x32], ax
lea ecx, [rbx + 0x41]
lea edx, [rbx + 0xa]
call fcn.140035aa0
mov word [rsp + 0x34], ax
lea ecx, [rbx + 0x53]
lea edx, [rbx + 0xb]
call fcn.140035aa0
mov word [rsp + 0x36], ax
lea ecx, [rbx + 0x44]
lea edx, [rbx + 0xc]
call fcn.140035aa0
mov word [rsp + 0x38], ax
lea ecx, [rbx + 0x46]
lea edx, [rbx + 0xd]
call fcn.140035aa0
mov word [rsp + 0x3a], ax
lea ecx, [rbx + 0x47]
lea edx, [rbx + 0xe]
call fcn.140035aa0
mov word [rsp + 0x3c], ax
lea ecx, [rbx + 0x48]
lea edx, [rbx + 0xf]
call fcn.140035aa0
mov word [rsp + 0x3e], ax
lea ecx, [rbx + 0x4a]
lea edx, [rbx + 0x10]
call fcn.140035aa0
mov word [rsp + 0x40], ax
lea ecx, [rbx + 0x4b]
lea edx, [rbx + 0x11]
call fcn.140035aa0
mov word [rsp + 0x42], ax
lea ecx, [rbx + 0x4c]
lea edx, [rbx + 0x12]
call fcn.140035aa0
mov word [rsp + 0x44], ax
lea ecx, [rbx + 0x5a]
lea edx, [rbx + 0x13]
call fcn.140035aa0
mov word [rsp + 0x46], ax
lea ecx, [rbx + 0x58]
lea edx, [rbx + 0x14]
call fcn.140035aa0
mov word [rsp + 0x48], ax
lea ecx, [rbx + 0x43]
lea edx, [rbx + 0x15]
call fcn.140035aa0
mov word [rsp + 0x4a], ax
lea ecx, [rbx + 0x56]
lea edx, [rbx + 0x16]
call fcn.140035aa0
mov word [rsp + 0x4c], ax
lea ecx, [rbx + 0x42]
lea edx, [rbx + 0x17]
call fcn.140035aa0
mov word [rsp + 0x4e], ax
lea ecx, [rbx + 0x4e]
lea edx, [rbx + 0x18]
call fcn.140035aa0
mov word [rsp + 0x50], ax
lea ecx, [rbx + 0x4d]
lea edx, [rbx + 0x19]
call fcn.140035aa0
mov word [rsp + 0x52], ax
lea ecx, [rbx + 0x71]
lea edx, [rbx + 0x1a]
call fcn.140035aa0
mov word [rsp + 0x54], ax
lea ecx, [rbx + 0x77]
lea edx, [rbx + 0x1b]
call fcn.140035aa0
mov word [rsp + 0x56], ax
lea ecx, [rbx + 0x65]
lea edx, [rbx + 0x1c]
call fcn.140035aa0
mov word [rsp + 0x58], ax
lea ecx, [rbx + 0x72]
lea edx, [rbx + 0x1d]
call fcn.140035aa0
mov word [rsp + 0x5a], ax
lea ecx, [rbx + 0x74]
lea edx, [rbx + 0x1e]
call fcn.140035aa0
mov word [rsp + 0x5c], ax
lea ecx, [rbx + 0x79]
lea edx, [rbx + 0x1f]
call fcn.140035aa0
mov word [rsp + 0x5e], ax
lea ecx, [rbx + 0x75]
lea edx, [rbx + 0x20]
call fcn.140035aa0
mov word [rsp + 0x60], ax
lea ecx, [rbx + 0x69]
lea edx, [rbx + 0x21]
call fcn.140035aa0
mov word [rsp + 0x62], ax
lea ecx, [rbx + 0x6f]
lea edx, [rbx + 0x22]
call fcn.140035aa0
mov word [rsp + 0x64], ax
lea ecx, [rbx + 0x70]
lea edx, [rbx + 0x23]
call fcn.140035aa0
mov word [rsp + 0x66], ax
lea ecx, [rbx + 0x61]
lea edx, [rbx + 0x24]
call fcn.140035aa0
mov word [rsp + 0x68], ax
lea ecx, [rbx + 0x73]
lea edx, [rbx + 0x25]
call fcn.140035aa0
mov word [rsp + 0x6a], ax
lea ecx, [rbx + 0x64]
lea edx, [rbx + 0x26]
call fcn.140035aa0
mov word [rsp + 0x6c], ax
lea ecx, [rbx + 0x66]
lea edx, [rbx + 0x27]
call fcn.140035aa0
mov word [rsp + 0x6e], ax
lea ecx, [rbx + 0x67]
lea edx, [rbx + 0x28]
call fcn.140035aa0
mov word [rsp + 0x70], ax
lea ecx, [rbx + 0x68]
lea edx, [rbx + 0x29]
call fcn.140035aa0
mov word [rsp + 0x72], ax
lea ecx, [rbx + 0x6a]
lea edx, [rbx + 0x2a]
call fcn.140035aa0
mov word [rsp + 0x74], ax
lea ecx, [rbx + 0x6b]
lea edx, [rbx + 0x2b]
call fcn.140035aa0
mov word [rsp + 0x76], ax
lea ecx, [rbx + 0x6c]
lea edx, [rbx + 0x2c]
call fcn.140035aa0
mov word [rsp + 0x78], ax
lea ecx, [rbx + 0x7a]
lea edx, [rbx + 0x2d]
call fcn.140035aa0
mov word [rsp + 0x7a], ax
lea ecx, [rbx + 0x78]
lea edx, [rbx + 0x2e]
call fcn.140035aa0
mov word [rsp + 0x7c], ax
lea ecx, [rbx + 0x63]
lea edx, [rbx + 0x2f]
call fcn.140035aa0
mov word [rsp + 0x7e], ax
lea ecx, [rbx + 0x76]
lea edx, [rbx + 0x30]
call fcn.140035aa0
mov word [rbp - 0x80], ax
lea ecx, [rbx + 0x62]
lea edx, [rbx + 0x31]
call fcn.140035aa0
mov word [rbp - 0x7e], ax
lea ecx, [rbx + 0x6e]
lea edx, [rbx + 0x32]
call fcn.140035aa0
mov word [rbp - 0x7c], ax
lea ecx, [rbx + 0x6d]
lea edx, [rbx + 0x33]
call fcn.140035aa0
mov word [rbp - 0x7a], ax
lea ecx, [rbx + 0x31]
lea edx, [rbx + 0x34]
call fcn.140035aa0
mov word [rbp - 0x78], ax
lea ecx, [rbx + 0x32]
lea edx, [rbx + 0x35]
call fcn.140035aa0
mov word [rbp - 0x76], ax
lea ecx, [rbx + 0x33]
lea edx, [rbx + 0x36]
call fcn.140035aa0
mov word [rbp - 0x74], ax
lea ecx, [rbx + 0x34]
lea edx, [rbx + 0x37]
call fcn.140035aa0
mov word [rbp - 0x72], ax
lea ecx, [rbx + 0x35]
lea edx, [rbx + 0x38]
call fcn.140035aa0
mov word [rbp - 0x70], ax
lea ecx, [rbx + 0x36]
lea edx, [rbx + 0x39]
call fcn.140035aa0
mov word [rbp - 0x6e], ax
lea ecx, [rbx + 0x37]
lea edx, [rbx + 0x3a]
call fcn.140035aa0
mov word [rbp - 0x6c], ax
lea ecx, [rbx + 0x38]
lea edx, [rbx + 0x3b]
call fcn.140035aa0
mov word [rbp - 0x6a], ax
lea ecx, [rbx + 0x39]
lea edx, [rbx + 0x3c]
call fcn.140035aa0
mov word [rbp - 0x68], ax
lea ecx, [rbx + 0x30]
lea edx, [rbx + 0x3d]
call fcn.140035aa0
mov word [rbp - 0x66], ax
xor ecx, ecx
lea edx, [rbx + 0x3e]
call fcn.140035aa0
mov word [rbp - 0x64], ax
lea edx, [rbx + 0x3f]
movzx ecx, word [0x1400a751e]
call fcn.140035aa0
mov word [rbp - 0x62], ax
lea edx, [rbx + 0x40]
movzx ecx, word [str.SoftwareDistributionDownload_]
call fcn.140035aa0
mov word [rbp - 0x60], ax
lea edx, [rbx + 0x41]
movzx ecx, word [0x1400a7522]
call fcn.140035aa0
mov word [rbp - 0x5e], ax
lea edx, [rbx + 0x42]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.140035aa0
mov word [rbp - 0x5c], ax
lea edx, [rbx + 0x43]
movzx ecx, word [0x1400a7526]
call fcn.140035aa0
mov word [rbp - 0x5a], ax
lea edx, [rbx + 0x44]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.140035aa0
mov word [rbp - 0x58], ax
lea edx, [rbx + 0x45]
movzx ecx, word [0x1400a752a]
call fcn.140035aa0
mov word [rbp - 0x56], ax
lea edx, [rbx + 0x46]
movzx ecx, word [0x1400a752c]
call fcn.140035aa0
mov word [rbp - 0x54], ax
lea edx, [rbx + 0x47]
movzx ecx, word [0x1400a752e]
call fcn.140035aa0
mov word [rbp - 0x52], ax
lea edx, [rbx + 0x48]
movzx ecx, word [0x1400a7530]
call fcn.140035aa0
mov word [rbp - 0x50], ax
lea edx, [rbx + 0x49]
movzx ecx, word [0x1400a7532]
call fcn.140035aa0
mov word [rbp - 0x4e], ax
lea edx, [rbx + 0x4a]
movzx ecx, word [0x1400a7534]
call fcn.140035aa0
mov word [rbp - 0x4c], ax
lea edx, [rbx + 0x4b]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rbp - 0x4a], ax
lea edx, [rbx + 0x4c]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.140035aa0
mov word [rbp - 0x48], ax
lea edx, [rbx + 0x4d]
movzx ecx, word [0x1400a753a]
call fcn.140035aa0
mov word [rbp - 0x46], ax
lea edx, [rbx + 0x4e]
movzx ecx, word [0x1400a753c]
call fcn.140035aa0
mov word [rbp - 0x44], ax
lea edx, [rbx + 0x4f]
movzx ecx, word [0x1400a753e]
call fcn.140035aa0
mov word [rbp - 0x42], ax
lea edx, [rbx + 0x50]
movzx ecx, word [0x1400a7540]
call fcn.140035aa0
mov word [rbp - 0x40], ax
lea edx, [rbx + 0x51]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.140035aa0
mov word [rbp - 0x3e], ax
lea edx, [rbx + 0x52]
movzx ecx, word [0x1400a7544]
call fcn.140035aa0
mov word [rbp - 0x3c], ax
lea edx, [rbx + 0x53]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.140035aa0
mov word [rbp - 0x3a], ax
lea edx, [rbx + 0x54]
movzx ecx, word [0x1400a7548]
call fcn.140035aa0
mov word [rbp - 0x38], ax
lea edx, [rbx + 0x55]
movzx ecx, word [0x1400a754a]
call fcn.140035aa0
mov word [rbp - 0x36], ax
lea edx, [rbx + 0x56]
movzx ecx, word [0x1400a754c]
call fcn.140035aa0
mov word [rbp - 0x34], ax
lea edx, [rbx + 0x57]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.140035aa0
mov word [rbp - 0x32], ax
lea edx, [rbx + 0x58]
movzx ecx, word [0x1400a7550]
call fcn.140035aa0
mov word [rbp - 0x30], ax
lea edx, [rbx + 0x59]
movzx ecx, word [0x1400a7552]
call fcn.140035aa0
mov word [rbp - 0x2e], ax
lea edx, [rbx + 0x5a]
movzx ecx, word [0x1400a7554]
call fcn.140035aa0
mov word [rbp - 0x2c], ax
lea edx, [rbx + 0x5b]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.140035aa0
mov word [rbp - 0x2a], ax
lea edx, [rbx + 0x5c]
movzx ecx, word [0x1400a7558]
call fcn.140035aa0
mov word [rbp - 0x28], ax
lea edx, [rbx + 0x5d]
movzx ecx, word [0x1400a755a]
call fcn.140035aa0
mov word [rbp - 0x26], ax
lea edx, [rbx + 0x5e]
movzx ecx, word [0x1400a755c]
call fcn.140035aa0
mov word [rbp - 0x24], ax
lea edx, [rbx + 0x5f]
movzx ecx, word [0x1400a755e]
call fcn.140035aa0
mov word [rbp - 0x22], ax
lea edx, [rbx + 0x60]
movzx ecx, word [str.runas]
call fcn.140035aa0
mov word [rbp - 0x20], ax
lea edx, [rbx + 0x61]
movzx ecx, word [0x1400a7562]
call fcn.140035aa0
mov word [rbp - 0x1e], ax
lea edx, [rbx + 0x62]
movzx ecx, word [0x1400a7564]
call fcn.140035aa0
mov word [rbp - 0x1c], ax
lea edx, [rbx + 0x63]
movzx ecx, word [0x1400a7566]
call fcn.140035aa0
mov word [rbp - 0x1a], ax
lea edx, [rbx + 0x64]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rbp - 0x18], ax
lea edx, [rbx + 0x65]
movzx ecx, word [0x1400a756a]
call fcn.140035aa0
mov word [rbp - 0x16], ax
lea edx, [rbx + 0x66]
movzx ecx, word [0x1400a756c]
call fcn.140035aa0
mov word [rbp - 0x14], ax
lea edx, [rbx + 0x67]
movzx ecx, word [0x1400a756e]
call fcn.140035aa0
mov word [rbp - 0x12], ax
lea edx, [rbx + 0x68]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
call fcn.140035aa0
mov word [rbp - 0x10], ax
lea edx, [rbx + 0x69]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rbp - 0xe], ax
lea edx, [rbx + 0x6a]
movzx ecx, word [0x1400a7574]
call fcn.140035aa0
mov word [rbp - 0xc], ax
lea edx, [rbx + 0x6b]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rbp - 0xa], ax
lea edx, [rbx + 0x6c]
movzx ecx, word [0x1400a7578]
call fcn.140035aa0
mov word [rbp - 8], ax
lea edx, [rbx + 0x6d]
movzx ecx, word [0x1400a757a]
call fcn.140035aa0
mov word [rbp - 6], ax
lea edx, [rbx + 0x6e]
movzx ecx, word [0x1400a757c]
call fcn.140035aa0
mov word [rbp - 4], ax
lea edx, [rbx + 0x6f]
movzx ecx, word [0x1400a757e]
call fcn.140035aa0
mov word [rbp - 2], ax
lea edx, [rbx + 0x70]
movzx ecx, word [str..exe]
call fcn.140035aa0
mov word [rbp], ax
lea edx, [rbx + 0x71]
movzx ecx, word [0x1400a7582]
call fcn.140035aa0
mov word [rbp + 2], ax
lea edx, [rbx + 0x72]
movzx ecx, word [0x1400a7584]
call fcn.140035aa0
mov word [rbp + 4], ax
lea edx, [rbx + 0x73]
movzx ecx, word [0x1400a7586]
call fcn.140035aa0
mov word [rbp + 6], ax
lea edx, [rbx + 0x74]
movzx ecx, word [0x1400a7588]
call fcn.140035aa0
mov word [rbp + 8], ax
lea edx, [rbx + 0x75]
movzx ecx, word [0x1400a758a]
call fcn.140035aa0
mov word [rbp + 0xa], ax
lea edx, [rbx + 0x76]
movzx ecx, word [0x1400a758c]
call fcn.140035aa0
mov word [rbp + 0xc], ax
lea edx, [rbx + 0x77]
movzx ecx, word [0x1400a758e]
call fcn.140035aa0
mov word [rbp + 0xe], ax
lea edx, [rbx + 0x78]
movzx ecx, word [0x1400a7590]
call fcn.140035aa0
mov word [rbp + 0x10], ax
lea edx, [rbx + 0x79]
movzx ecx, word [0x1400a7592]
call fcn.140035aa0
mov word [rbp + 0x12], ax
lea edx, [rbx + 0x7a]
movzx ecx, word [0x1400a7594]
call fcn.140035aa0
mov word [rbp + 0x14], ax
lea edx, [rbx + 0x7b]
movzx ecx, word [reloc.WS2_32.dll_WSASetLastError]
call fcn.140035aa0
mov word [rbp + 0x16], ax
lea edx, [rbx + 0x7c]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_32]
call fcn.140035aa0
mov word [rbp + 0x18], ax
xor eax, eax
mov word [rbp + 0x1a], ax
mov ecx, ebx
mov edx, ebx
mov r8d, 0x133
nop dword [rax]
lea eax, [r8 + rcx]
xor word [rsp + rdx*2 + 0x20], ax
inc ecx
movsxd rdx, ecx
cmp rdx, 0x7d
jb 0x140036680
mov word [rbp + 0x1a], bx
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
cmp word [rsp + 0x20], bx
jne 0x1400366b4
mov r8, rbx
jmp 0x1400366ca
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400366c0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140049630
nop
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 8
jb 0x1400366f1
mov rax, qword [rdi]
jmp 0x1400366f4
mov rax, rdi
mov word [rax], bx
mov dword [rbp + 0x1c], 1
movabs rsi, 0x7fffffffffffffff
cmp qword [rdi + 0x10], 5
je 0x1400367ba
mov rbx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
lea rcx, [rbx + 1]
xor edx, edx
div rcx
movsxd r8, edx
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x20]
call fcn.140047d30
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.14004a780
nop
mov rax, qword [rbp + 0x60]
cmp rax, 8
jb 0x140036708
inc rax
mov rcx, qword [rbp + 0x48]
cmp rax, rsi
ja 0x1400367b3
add rax, rax
cmp rax, 0x1000
jb 0x14003678d
test cl, 0x1f
jne 0x1400367ac
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400367a5
sub rcx, rax
cmp rcx, 8
jb 0x14003679e
cmp rcx, 0x27
ja 0x140036797
mov rcx, rax
call fcn.140054a50
jmp 0x140036708
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rbp + 0x38]
cmp rax, 8
jb 0x140036824
inc rax
mov rcx, qword [rbp + 0x20]
cmp rax, rsi
jbe 0x1400367d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x14003681f
test byte [rbp + 0x20], 0x1f
je 0x1400367ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400367ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003680f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003681c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140054a50
mov rax, rdi
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret