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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400d9b80]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rbx, rcx
mov qword [rbp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea ecx, [rsi + 0x51]
xor edx, edx
call fcn.1400193c0
mov word [rsp + 0x30], ax
lea ecx, [rsi + 0x57]
lea edx, [rsi + 1]
call fcn.1400193c0
mov word [rsp + 0x32], ax
lea ecx, [rsi + 0x45]
lea edx, [rsi + 2]
call fcn.1400193c0
mov word [rsp + 0x34], ax
lea ecx, [rsi + 0x52]
lea edx, [rsi + 3]
call fcn.1400193c0
mov word [rsp + 0x36], ax
lea ecx, [rsi + 0x54]
lea edx, [rsi + 4]
call fcn.1400193c0
mov word [rsp + 0x38], ax
lea ecx, [rsi + 0x59]
lea edx, [rsi + 5]
call fcn.1400193c0
mov word [rsp + 0x3a], ax
lea ecx, [rsi + 0x55]
lea edx, [rsi + 6]
call fcn.1400193c0
mov word [rsp + 0x3c], ax
lea ecx, [rsi + 0x49]
lea edx, [rsi + 7]
call fcn.1400193c0
mov word [rsp + 0x3e], ax
lea ecx, [rsi + 0x4f]
lea edx, [rsi + 8]
call fcn.1400193c0
mov word [rsp + 0x40], ax
lea ecx, [rsi + 0x50]
lea edx, [rsi + 9]
call fcn.1400193c0
mov word [rsp + 0x42], ax
lea ecx, [rsi + 0x41]
lea edx, [rsi + 0xa]
call fcn.1400193c0
mov word [rsp + 0x44], ax
lea ecx, [rsi + 0x53]
lea edx, [rsi + 0xb]
call fcn.1400193c0
mov word [rsp + 0x46], ax
lea ecx, [rsi + 0x44]
lea edx, [rsi + 0xc]
call fcn.1400193c0
mov word [rsp + 0x48], ax
lea ecx, [rsi + 0x46]
lea edx, [rsi + 0xd]
call fcn.1400193c0
mov word [rsp + 0x4a], ax
lea ecx, [rsi + 0x47]
lea edx, [rsi + 0xe]
call fcn.1400193c0
mov word [rsp + 0x4c], ax
lea ecx, [rsi + 0x48]
lea edx, [rsi + 0xf]
call fcn.1400193c0
mov word [rsp + 0x4e], ax
lea ecx, [rsi + 0x4a]
lea edx, [rsi + 0x10]
call fcn.1400193c0
mov word [rsp + 0x50], ax
lea ecx, [rsi + 0x4b]
lea edx, [rsi + 0x11]
call fcn.1400193c0
mov word [rsp + 0x52], ax
lea ecx, [rsi + 0x4c]
lea edx, [rsi + 0x12]
call fcn.1400193c0
mov word [rsp + 0x54], ax
lea ecx, [rsi + 0x5a]
lea edx, [rsi + 0x13]
call fcn.1400193c0
mov word [rsp + 0x56], ax
lea ecx, [rsi + 0x58]
lea edx, [rsi + 0x14]
call fcn.1400193c0
mov word [rsp + 0x58], ax
lea ecx, [rsi + 0x43]
lea edx, [rsi + 0x15]
call fcn.1400193c0
mov word [rsp + 0x5a], ax
lea ecx, [rsi + 0x56]
lea edx, [rsi + 0x16]
call fcn.1400193c0
mov word [rsp + 0x5c], ax
lea ecx, [rsi + 0x42]
lea edx, [rsi + 0x17]
call fcn.1400193c0
mov word [rsp + 0x5e], ax
lea ecx, [rsi + 0x4e]
lea edx, [rsi + 0x18]
call fcn.1400193c0
mov word [rsp + 0x60], ax
lea ecx, [rsi + 0x4d]
lea edx, [rsi + 0x19]
call fcn.1400193c0
mov word [rsp + 0x62], ax
lea ecx, [rsi + 0x71]
lea edx, [rsi + 0x1a]
call fcn.1400193c0
mov word [rsp + 0x64], ax
lea ecx, [rsi + 0x77]
lea edx, [rsi + 0x1b]
call fcn.1400193c0
mov word [rsp + 0x66], ax
lea ecx, [rsi + 0x65]
lea edx, [rsi + 0x1c]
call fcn.1400193c0
mov word [rsp + 0x68], ax
lea ecx, [rsi + 0x72]
lea edx, [rsi + 0x1d]
call fcn.1400193c0
mov word [rsp + 0x6a], ax
lea ecx, [rsi + 0x74]
lea edx, [rsi + 0x1e]
call fcn.1400193c0
mov word [rsp + 0x6c], ax
lea ecx, [rsi + 0x79]
lea edx, [rsi + 0x1f]
call fcn.1400193c0
mov word [rsp + 0x6e], ax
lea ecx, [rsi + 0x75]
lea edx, [rsi + 0x20]
call fcn.1400193c0
mov word [rsp + 0x70], ax
lea ecx, [rsi + 0x69]
lea edx, [rsi + 0x21]
call fcn.1400193c0
mov word [rsp + 0x72], ax
lea ecx, [rsi + 0x6f]
lea edx, [rsi + 0x22]
call fcn.1400193c0
mov word [rsp + 0x74], ax
lea ecx, [rsi + 0x70]
lea edx, [rsi + 0x23]
call fcn.1400193c0
mov word [rsp + 0x76], ax
lea ecx, [rsi + 0x61]
lea edx, [rsi + 0x24]
call fcn.1400193c0
mov word [rsp + 0x78], ax
lea ecx, [rsi + 0x73]
lea edx, [rsi + 0x25]
call fcn.1400193c0
mov word [rsp + 0x7a], ax
lea ecx, [rsi + 0x64]
lea edx, [rsi + 0x26]
call fcn.1400193c0
mov word [rsp + 0x7c], ax
lea ecx, [rsi + 0x66]
lea edx, [rsi + 0x27]
call fcn.1400193c0
mov word [rsp + 0x7e], ax
lea ecx, [rsi + 0x67]
lea edx, [rsi + 0x28]
call fcn.1400193c0
mov word [rbp - 0x80], ax
lea ecx, [rsi + 0x68]
lea edx, [rsi + 0x29]
call fcn.1400193c0
mov word [rbp - 0x7e], ax
lea ecx, [rsi + 0x6a]
lea edx, [rsi + 0x2a]
call fcn.1400193c0
mov word [rbp - 0x7c], ax
lea ecx, [rsi + 0x6b]
lea edx, [rsi + 0x2b]
call fcn.1400193c0
mov word [rbp - 0x7a], ax
lea ecx, [rsi + 0x6c]
lea edx, [rsi + 0x2c]
call fcn.1400193c0
mov word [rbp - 0x78], ax
lea ecx, [rsi + 0x7a]
lea edx, [rsi + 0x2d]
call fcn.1400193c0
mov word [rbp - 0x76], ax
lea ecx, [rsi + 0x78]
lea edx, [rsi + 0x2e]
call fcn.1400193c0
mov word [rbp - 0x74], ax
lea ecx, [rsi + 0x63]
lea edx, [rsi + 0x2f]
call fcn.1400193c0
mov word [rbp - 0x72], ax
lea ecx, [rsi + 0x76]
lea edx, [rsi + 0x30]
call fcn.1400193c0
mov word [rbp - 0x70], ax
lea ecx, [rsi + 0x62]
lea edx, [rsi + 0x31]
call fcn.1400193c0
mov word [rbp - 0x6e], ax
lea ecx, [rsi + 0x6e]
lea edx, [rsi + 0x32]
call fcn.1400193c0
mov word [rbp - 0x6c], ax
lea ecx, [rsi + 0x6d]
lea edx, [rsi + 0x33]
call fcn.1400193c0
mov word [rbp - 0x6a], ax
lea ecx, [rsi + 0x31]
lea edx, [rsi + 0x34]
call fcn.1400193c0
mov word [rbp - 0x68], ax
lea ecx, [rsi + 0x32]
lea edx, [rsi + 0x35]
call fcn.1400193c0
mov word [rbp - 0x66], ax
lea ecx, [rsi + 0x33]
lea edx, [rsi + 0x36]
call fcn.1400193c0
mov word [rbp - 0x64], ax
lea ecx, [rsi + 0x34]
lea edx, [rsi + 0x37]
call fcn.1400193c0
mov word [rbp - 0x62], ax
lea ecx, [rsi + 0x35]
lea edx, [rsi + 0x38]
call fcn.1400193c0
mov word [rbp - 0x60], ax
lea ecx, [rsi + 0x36]
lea edx, [rsi + 0x39]
call fcn.1400193c0
mov word [rbp - 0x5e], ax
lea ecx, [rsi + 0x37]
lea edx, [rsi + 0x3a]
call fcn.1400193c0
mov word [rbp - 0x5c], ax
lea ecx, [rsi + 0x38]
lea edx, [rsi + 0x3b]
call fcn.1400193c0
mov word [rbp - 0x5a], ax
lea ecx, [rsi + 0x39]
lea edx, [rsi + 0x3c]
call fcn.1400193c0
mov word [rbp - 0x58], ax
lea ecx, [rsi + 0x30]
lea edx, [rsi + 0x3d]
call fcn.1400193c0
mov word [rbp - 0x56], ax
xor ecx, ecx
lea edx, [rsi + 0x3e]
call fcn.1400193c0
mov word [rbp - 0x54], ax
lea edx, [rsi + 0x3f]
movzx ecx, word [0x1400791ae]
call fcn.1400193c0
mov word [rbp - 0x52], ax
lea edx, [rsi + 0x40]
movzx ecx, word [str.SoftwareDistributionDownload_]
call fcn.1400193c0
mov word [rbp - 0x50], ax
lea edx, [rsi + 0x41]
movzx ecx, word [0x1400791b2]
call fcn.1400193c0
mov word [rbp - 0x4e], ax
lea edx, [rsi + 0x42]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.1400193c0
mov word [rbp - 0x4c], ax
lea edx, [rsi + 0x43]
movzx ecx, word [0x1400791b6]
call fcn.1400193c0
mov word [rbp - 0x4a], ax
lea edx, [rsi + 0x44]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.1400193c0
mov word [rbp - 0x48], ax
lea edx, [rsi + 0x45]
movzx ecx, word [0x1400791ba]
call fcn.1400193c0
mov word [rbp - 0x46], ax
lea edx, [rsi + 0x46]
movzx ecx, word [0x1400791bc]
call fcn.1400193c0
mov word [rbp - 0x44], ax
lea edx, [rsi + 0x47]
movzx ecx, word [0x1400791be]
call fcn.1400193c0
mov word [rbp - 0x42], ax
lea edx, [rsi + 0x48]
movzx ecx, word [0x1400791c0]
call fcn.1400193c0
mov word [rbp - 0x40], ax
lea edx, [rsi + 0x49]
movzx ecx, word [0x1400791c2]
call fcn.1400193c0
mov word [rbp - 0x3e], ax
lea edx, [rsi + 0x4a]
movzx ecx, word [0x1400791c4]
call fcn.1400193c0
mov word [rbp - 0x3c], ax
lea edx, [rsi + 0x4b]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400193c0
mov word [rbp - 0x3a], ax
lea edx, [rsi + 0x4c]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.1400193c0
mov word [rbp - 0x38], ax
lea edx, [rsi + 0x4d]
movzx ecx, word [0x1400791ca]
call fcn.1400193c0
mov word [rbp - 0x36], ax
lea edx, [rsi + 0x4e]
movzx ecx, word [0x1400791cc]
call fcn.1400193c0
mov word [rbp - 0x34], ax
lea edx, [rsi + 0x4f]
movzx ecx, word [0x1400791ce]
call fcn.1400193c0
mov word [rbp - 0x32], ax
lea edx, [rsi + 0x50]
movzx ecx, word [0x1400791d0]
call fcn.1400193c0
mov word [rbp - 0x30], ax
lea edx, [rsi + 0x51]
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.1400193c0
mov word [rbp - 0x2e], ax
lea edx, [rsi + 0x52]
movzx ecx, word [0x1400791d4]
call fcn.1400193c0
mov word [rbp - 0x2c], ax
lea edx, [rsi + 0x53]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.1400193c0
mov word [rbp - 0x2a], ax
lea edx, [rsi + 0x54]
movzx ecx, word [0x1400791d8]
call fcn.1400193c0
mov word [rbp - 0x28], ax
lea edx, [rsi + 0x55]
movzx ecx, word [0x1400791da]
call fcn.1400193c0
mov word [rbp - 0x26], ax
lea edx, [rsi + 0x56]
movzx ecx, word [0x1400791dc]
call fcn.1400193c0
mov word [rbp - 0x24], ax
lea edx, [rsi + 0x57]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.1400193c0
mov word [rbp - 0x22], ax
lea edx, [rsi + 0x58]
movzx ecx, word [0x1400791e0]
call fcn.1400193c0
mov word [rbp - 0x20], ax
lea edx, [rsi + 0x59]
movzx ecx, word [0x1400791e2]
call fcn.1400193c0
mov word [rbp - 0x1e], ax
lea edx, [rsi + 0x5a]
movzx ecx, word [0x1400791e4]
call fcn.1400193c0
mov word [rbp - 0x1c], ax
lea edx, [rsi + 0x5b]
movzx ecx, word [reloc.WS2_32.dll_WSAGetLastError]
call fcn.1400193c0
mov word [rbp - 0x1a], ax
lea edx, [rsi + 0x5c]
movzx ecx, word [0x1400791e8]
call fcn.1400193c0
mov word [rbp - 0x18], ax
lea edx, [rsi + 0x5d]
movzx ecx, word [0x1400791ea]
call fcn.1400193c0
mov word [rbp - 0x16], ax
lea edx, [rsi + 0x5e]
movzx ecx, word [0x1400791ec]
call fcn.1400193c0
mov word [rbp - 0x14], ax
lea edx, [rsi + 0x5f]
movzx ecx, word [0x1400791ee]
call fcn.1400193c0
mov word [rbp - 0x12], ax
lea edx, [rsi + 0x60]
movzx ecx, word [str.runas]
call fcn.1400193c0
mov word [rbp - 0x10], ax
lea edx, [rsi + 0x61]
movzx ecx, word [0x1400791f2]
call fcn.1400193c0
mov word [rbp - 0xe], ax
lea edx, [rsi + 0x62]
movzx ecx, word [0x1400791f4]
call fcn.1400193c0
mov word [rbp - 0xc], ax
lea edx, [rsi + 0x63]
movzx ecx, word [0x1400791f6]
call fcn.1400193c0
mov word [rbp - 0xa], ax
lea edx, [rsi + 0x64]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400193c0
mov word [rbp - 8], ax
lea edx, [rsi + 0x65]
movzx ecx, word [0x1400791fa]
call fcn.1400193c0
mov word [rbp - 6], ax
lea edx, [rsi + 0x66]
movzx ecx, word [0x1400791fc]
call fcn.1400193c0
mov word [rbp - 4], ax
lea edx, [rsi + 0x67]
movzx ecx, word [0x1400791fe]
call fcn.1400193c0
mov word [rbp - 2], ax
lea edx, [rsi + 0x68]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
call fcn.1400193c0
mov word [rbp], ax
lea edx, [rsi + 0x69]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400193c0
mov word [rbp + 2], ax
lea edx, [rsi + 0x6a]
movzx ecx, word [0x140079204]
call fcn.1400193c0
mov word [rbp + 4], ax
lea edx, [rsi + 0x6b]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400193c0
mov word [rbp + 6], ax
lea edx, [rsi + 0x6c]
movzx ecx, word [0x140079208]
call fcn.1400193c0
mov word [rbp + 8], ax
lea edx, [rsi + 0x6d]
movzx ecx, word [0x14007920a]
call fcn.1400193c0
mov word [rbp + 0xa], ax
lea edx, [rsi + 0x6e]
movzx ecx, word [0x14007920c]
call fcn.1400193c0
mov word [rbp + 0xc], ax
lea edx, [rsi + 0x6f]
movzx ecx, word [0x14007920e]
call fcn.1400193c0
mov word [rbp + 0xe], ax
lea edx, [rsi + 0x70]
movzx ecx, word [str..exe]
call fcn.1400193c0
mov word [rbp + 0x10], ax
lea edx, [rsi + 0x71]
movzx ecx, word [0x140079212]
call fcn.1400193c0
mov word [rbp + 0x12], ax
lea edx, [rsi + 0x72]
movzx ecx, word [0x140079214]
call fcn.1400193c0
mov word [rbp + 0x14], ax
lea edx, [rsi + 0x73]
movzx ecx, word [0x140079216]
call fcn.1400193c0
mov word [rbp + 0x16], ax
lea edx, [rsi + 0x74]
movzx ecx, word [0x140079218]
call fcn.1400193c0
mov word [rbp + 0x18], ax
lea edx, [rsi + 0x75]
movzx ecx, word [0x14007921a]
call fcn.1400193c0
mov word [rbp + 0x1a], ax
lea edx, [rsi + 0x76]
movzx ecx, word [0x14007921c]
call fcn.1400193c0
mov word [rbp + 0x1c], ax
lea edx, [rsi + 0x77]
movzx ecx, word [0x14007921e]
call fcn.1400193c0
mov word [rbp + 0x1e], ax
lea edx, [rsi + 0x78]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_45]
call fcn.1400193c0
mov word [rbp + 0x20], ax
lea edx, [rsi + 0x79]
movzx ecx, word [0x140079222]
call fcn.1400193c0
mov word [rbp + 0x22], ax
lea edx, [rsi + 0x7a]
movzx ecx, word [0x140079224]
call fcn.1400193c0
mov word [rbp + 0x24], ax
lea edx, [rsi + 0x7b]
movzx ecx, word [reloc.WS2_32.dll_WSASetLastError]
call fcn.1400193c0
mov word [rbp + 0x26], ax
lea edx, [rsi + 0x7c]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_32]
call fcn.1400193c0
mov word [rbp + 0x28], ax
xor eax, eax
mov word [rbp + 0x2a], ax
mov r8d, 0x133
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rcx*2]
lea ecx, [r8 + rax]
xor word [rdx], cx
inc eax
cmp eax, 0x7d
jb 0x140022460
mov word [rbp + 0x2a], si
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rsi
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400224a0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x58]
call fcn.140019b70
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov edi, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov r9, qword [rbp + 0x68]
lea rcx, [r9 + 1]
xor edx, edx
div rcx
movsxd rcx, edx
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], rsi
cmp r9, rcx
jb 0x14002260d
sub r9, rcx
mov r8d, 1
cmp r9, r8
cmovb r8, r9
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 7
cmova rax, qword [rbp + 0x58]
lea rdx, [rax + rcx*2]
lea rcx, [rbp + 0x30]
call fcn.140019b70
or edi, 2
mov dword [rsp + 0x20], edi
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
mov rcx, rbx
call fcn.14000b720
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x140022590
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002258b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400225d9
call fcn.140073e50
cmp qword [rbx + 0x10], 5
jne 0x1400224d7
mov rdx, qword [rbp + 0x70]
cmp rdx, 7
jbe 0x1400225e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400225e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400225e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140073e50
mov rax, rbx
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140073f70
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001a470
int3