Function at 0x140050b40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1401e9060]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea r15, [0x140210d00]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x31]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r14d, r14d
test eax, eax
jne 0x140050bf4
mov dword [rbp - 0x39], 0x6f0262
mov byte [rbp - 0x35], 1
mov ecx, r14d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 3
jb 0x140050bb0
mov byte [rbp - 0x35], r14b
mov qword [0x140210d00], r14
mov qword [0x140210d10], r14
mov qword [0x140210d18], 0xf
mov r8d, 3
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.140092f40
jmp 0x14005145c
mov dword [rbp - 0x21], r14d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov ebx, dword [rcx + r11 + 0x88]
add rbx, r11
cmp rbx, r11
je 0x140050c86
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050c86
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r11]
add rdx, r11
mov r8d, 0x2629f74a
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140050c81
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140050c60
cmp r8d, 0x57e9e237
je 0x140050c8b
test r9d, r9d
jne 0x140050c40
mov rax, qword [rax]
jmp 0x140050c10
mov ecx, dword [rbx + 0x1c]
add rcx, r11
mov eax, dword [rbx + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rbp - 0x31]
call r10
mov eax, dword [rbp - 0x21]
test eax, eax
jne 0x140050dc2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140050d56
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050d56
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x1f2bed10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140050d51
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140050d30
cmp r8d, 0xbdd1d65a
je 0x140050d5b
test r9d, r9d
jne 0x140050d10
mov rax, qword [rax]
jmp 0x140050ce0
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, qword [rbp - 0x31]
call rdx
mov dword [rbp - 0x39], 0x6f0262
mov byte [rbp - 0x35], 1
mov rcx, r14
nop word [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 3
jb 0x140050d90
mov byte [rbp - 0x35], r14b
mov qword [0x140210d00], r14
mov qword [0x140210d10], r14
mov qword [0x140210d18], 0xf
jmp 0x140050bdd
xorps xmm0, xmm0
mov rdi, rax
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r14
test eax, eax
je 0x140050e2e
cmp rax, 0x1000
jb 0x140050e09
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140051488
call fcn.1400fcca0
mov rcx, rax
test rax, rax
je 0x140051450
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140050e11
mov rcx, rdi
call fcn.1400fcca0
mov qword [rbp - 0x19], rax
lea rbx, [rax + rdi]
mov qword [rbp - 9], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x11], rbx
mov rsi, qword [rbp - 0x19]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov ebx, dword [rcx + r11 + 0x88]
add rbx, r11
cmp rbx, r11
je 0x140050ec6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050ec6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r11]
add rdx, r11
mov r8d, 0x65f5c671
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140050ec1
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140050ea0
cmp r8d, 0x530f338e
je 0x140050ecb
test r9d, r9d
jne 0x140050e80
mov rax, qword [rax]
jmp 0x140050e50
mov ecx, dword [rbx + 0x1c]
add rcx, r11
mov eax, dword [rbx + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x21]
mov r8, qword [rbp - 0x19]
mov edx, 1
mov rcx, qword [rbp - 0x31]
call r10
mov rcx, qword gs:[0x60]
test eax, eax
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
jne 0x140051060
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140050f96
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140050f96
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x45766c00
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140050f91
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140050f70
cmp r8d, 0x1a931fca
je 0x140050f9b
test r9d, r9d
jne 0x140050f50
mov rax, qword [rax]
jmp 0x140050f20
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, qword [rbp - 0x31]
call rdx
mov dword [rbp - 0x39], 0x6f0262
mov byte [rbp - 0x35], 1
mov rcx, r14
nop word [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 3
jb 0x140050fd0
mov byte [rbp - 0x35], 0
mov qword [0x140210d00], r14
mov qword [0x140210d10], r14
mov qword [0x140210d18], 0xf
mov r8d, 3
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.140092f40
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14005145c
mov rdx, qword [rbp - 9]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051457
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400510d6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400510d6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [r10 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r10
mov r8d, 0xf6fd5bb2
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400510d1
nop dword [rax]
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400510b0
cmp r8d, 0xfeaed38
je 0x1400510db
test r9d, r9d
jne 0x140051090
mov rax, qword [rax]
jmp 0x140051060
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, qword [rbp - 0x31]
call rdx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140051186
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140051186
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [r10 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r10
mov r8d, 0x69be5a2e
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140051181
nop dword [rax]
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140051160
cmp r8d, 0x50cb80a6
je 0x14005118b
test r9d, r9d
jne 0x140051140
mov rax, qword [rax]
jmp 0x140051110
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi]
call r8
test eax, eax
jne 0x140051254
mov dword [rbp - 0x39], 0x6f0262
mov byte [rbp - 0x35], 1
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 3
jb 0x1400511d0
mov byte [rbp - 0x35], 0
mov qword [0x140210d00], r14
mov qword [0x140210d10], r14
mov qword [0x140210d18], 0xf
mov r8d, 3
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.140092f40
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14005145c
mov rdx, qword [rbp - 9]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051457
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp + 0x1f], r14
movdqa xmm0, xmmword [0x1401cb6a0]
movdqu xmmword [rbp + 0x2f], xmm0
mov word [rbp + 0x1f], r14w
mov rdx, qword [rbp - 0x29]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140051275
lea rcx, [rbp + 0x1f]
call fcn.140092bb0
nop
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140051316
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140051316
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x1e17a274
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140051311
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400512f0
cmp r8d, 0xdaff237d
je 0x14005131b
test r9d, r9d
jne 0x1400512d0
mov rax, qword [rax]
jmp 0x1400512a0
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, qword [rbp - 0x29]
call rdx
lea rcx, [rbp + 0x1f]
mov rax, qword [rbp + 0x2f]
cmp qword [rbp + 0x37], 8
jb 0x140051351
mov rdi, qword [rbp + 0x1f]
lea rbx, [rdi + rax*2]
jmp 0x140051359
lea rbx, [rcx + rax*2]
lea rdi, [rbp + 0x1f]
mov qword [rbp - 1], r14
mov rcx, r14
mov qword [rbp + 0xf], rcx
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x17], r8
mov rdx, rbx
sub rdx, rdi
sar rdx, 1
cmp rdx, r8
jbe 0x140051390
lea rcx, [rbp - 1]
call fcn.140094820
mov rcx, r14
mov qword [rbp + 0xf], rcx
mov r8, qword [rbp + 0x17]
lea rax, [rbp - 1]
mov qword [rbp - 0x39], rax
cmp rdi, rbx
je 0x1400513e5
nop dword [rax]
movzx r9d, byte [rdi]
cmp rcx, r8
jae 0x1400513c9
lea rax, [rcx + 1]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 1]
cmp r8, 0x10
cmovae rax, qword [rbp - 1]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400513d2
lea rcx, [rbp - 1]
call fcn.140094970
add rdi, 2
cmp rdi, rbx
je 0x1400513e5
mov r8, qword [rbp + 0x17]
mov rcx, qword [rbp + 0xf]
jmp 0x1400513a0
movups xmm0, xmmword [rbp - 1]
movups xmmword [0x140210d00], xmm0
movups xmm1, xmmword [rbp + 0xf]
movups xmmword [0x140210d10], xmm1
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], 0
lea rcx, [rbp - 1]
call fcn.140092cd0
nop
lea rcx, [rbp + 0x1f]
call fcn.140092b40
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14005145c
mov rdx, qword [rbp - 9]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051457
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcce4
mov rax, r15
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400fcc80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400026e0
int3