joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017794
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001032c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001781e
cmp byte [rbp - 0x21], r15b
je 0x140017819
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017854
call fcn.14000c860
test eax, eax
jne 0x140017840
cmp byte [rbp - 0x21], r15b
je 0x140017838
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017854
cmp byte [rbp - 0x21], r15b
je 0x140017851
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001018c
test eax, eax
jne 0x1400178f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001032c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017893
cmp byte [rbp - 0x21], r15b
je 0x1400178c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400178c8
call fcn.14000c860
test eax, eax
jne 0x1400178b4
cmp byte [rbp - 0x21], r15b
je 0x1400178ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400178c8
cmp byte [rbp - 0x21], r15b
je 0x1400178c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001018c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400178f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400178f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017905
mov rcx, rdi
call fcn.14000c5c0
cmp byte [rbp + 0x3f], r15b
je 0x140017914
mov rcx, qword [rbp + 0x27]
call fcn.14000c5c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140019da0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019dc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019dc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x66201524
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x390]
mov eax, 0x490
call fcn.6620e430
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov qword [rsp + 0x4b8], rsi
mov qword [rsp + 0x4c0], rdi
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
or r8, 0xffffffffffffffff
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.66203540
nop
xor r14d, r14d
cmp qword [rbx + 8], r14
je 0x66201599
mov r8d, 0x104
lea rdx, [rbp + 0x180]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, rdi
call fcn.6620e74c
movzx edi, r14b
mov r12d, 1
test eax, eax
cmovne edi, r12d
mov rax, qword [rbx + 8]
neg rax
sbb rdx, rdx
lea rax, [rbp + 0x180]
and rdx, rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.66206f10
test al, al
je 0x6620170f
lea ebx, [r12 + 0x67]
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.6620e520
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.66203540
nop
test dil, dil
jne 0x6620167d
movzx eax, word [rbx]
lea ecx, [r12 + 0x21]
cmp ax, cx
jne 0x6620165e
jmp 0x6620163d
cmp cx, ax
je 0x6620164b
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x66201638
jmp 0x66201663
add rbx, 2
jmp 0x66201663
cmp ax, 0x20
je 0x66201663
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x66201651
mov r9, rbx
mov r8, qword [rbp - 0x20]
lea rdx, str.__ls__ls
lea rcx, [rbp + 0xb0]
call fcn.66204d20
xor edx, edx
lea rcx, str.TS_SOURCE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.TS_ORIGIN
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test dil, dil
je 0x662016b6
mov rdx, qword [rbp - 0x20]
lea rcx, str.TS_UPDATED_DATFILE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rsi
jmp 0x662016ba
mov rcx, qword [rbp - 0x20]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x66201702
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0xb0]
call fcn.66203630
nop
lea rcx, [rbp - 0x20]
call fcn.66203630
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x66201738
Capabilities:
Set environment variable

Disassembly:
push rdi
mov eax, 0x100
call fcn.6620e430
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.662035e0
nop
xor edx, edx
mov rcx, rdi
call fcn.662041f0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, str.TS_UPDATED_DATFILE
call fcn.66204270
xor ebx, ebx
test eax, eax
js 0x662017a8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.66204670
xor edx, edx
lea rcx, str.TS_UPDATED_DATFILE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.66203630
mov al, bl
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rdi
ret
Function at 0x66201ef0
Capabilities:
Create process on windows
Delete file
Set environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x320]
mov eax, 0x420
call fcn.6620e430
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov qword [rsp + 0x438], rdi
mov qword [rsp + 0x440], r14
mov rbx, rcx
lea rcx, [rbp + 0x180]
call fcn.662035e0
nop
lea rcx, [rbp + 0xb0]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_THINREG
lea rcx, [rbp + 0xb0]
call fcn.66204d20
xor r8d, r8d
lea rdx, [rbp + 0x180]
mov rcx, qword [rbp + 0xb0]
call fcn.66204270
xor edi, edi
test eax, eax
jne 0x662020e8
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.66203360
nop
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
or r14, 0xffffffffffffffff
mov r9, r14
lea r8, [0x6621e96c]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, r14
lea r8, str..exe
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, r14
lea r8, [0x6621e988]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
lea ebx, [rdi + 0x68]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.6620e520
mov dword [rbp + 0x40], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x6620207b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x22
mov rax, qword [rsp + 0x70]
cmp word [rax], dx
jne 0x662020cd
lea r8d, [rdx - 0x21]
lea rcx, [rsp + 0x70]
call fcn.66204870
cmp rax, r14
je 0x662020cd
lea r9, [rax - 1]
mov r8d, 1
lea rdx, [rbp + 0x250]
lea rcx, [rsp + 0x70]
call fcn.66202718
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x250]
call fcn.66203630
xor edx, edx
lea rcx, str.TS_UPDATE_THINREG
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rsp + 0x70]
call fcn.66203630
nop
lea rcx, [rbp + 0xb0]
call fcn.66203630
nop
lea rcx, [rbp + 0x180]
call fcn.66203630
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x6620233c
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x370]
mov eax, 0x470
call fcn.6620e430
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rsi, rcx
lea rcx, [rbp + 0x100]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_CMDLINE
lea rcx, [rbp + 0x100]
call fcn.66204d20
lea rcx, [rbp + 0x30]
call fcn.662035e0
nop
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x100]
call fcn.66204270
test eax, eax
js 0x6620241b
or r8, 0xffffffffffffffff
lea rdx, [0x6621e844]
lea rcx, [rbp + 0x2a0]
call fcn.66203540
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.66203ab0
test eax, eax
sete bl
lea rcx, [rbp + 0x2a0]
call fcn.66203630
test bl, bl
je 0x6620240c
xor r9d, r9d
lea r8, [0x6621e848]
lea rdx, str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
lea rcx, str.TS_UPDATE_CMDLINE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.6620e520
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x1d0]
call fcn.66203360
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x398]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r8, qword [rbp + 0x398]
lea rdx, [0x6621e904]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x20]
lea rcx, str.TS_PARENT_HANDLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1d0]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x6620250a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0x1d0]
call fcn.66203630
nop
lea rcx, [rbp + 0x30]
call fcn.66203630
nop
lea rcx, [rbp + 0x100]
call fcn.66203630
nop
mov rcx, rsi
call fcn.66203630
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x6620254c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x280]
mov eax, 0x380
call fcn.6620e430
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x3b0], rbx
mov rdi, rcx
call fcn.66203c70
mov rdx, rax
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rcx, rdi
call fcn.662047c0
mov rdx, rax
mov rcx, rdi
call fcn.662041f0
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.66203360
nop
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x2a8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, [0x6621e9c4]
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, str..ase
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xe0]
call fcn.66203360
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x1b0]
call fcn.66203360
nop
mov rdx, rbx
mov rcx, rax
call fcn.6620211c
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.66204670
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x2a8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, [0x6621e9c4]
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, str..asd
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xe0]
call fcn.66203360
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x1b0]
call fcn.66203360
nop
mov rdx, rbx
mov rcx, rax
call fcn.6620211c
lea rcx, [rbp + 0x10]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_COMPLETE
lea rcx, [rbp + 0x10]
call fcn.66204d20
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rbp + 0x10]
call fcn.66203630
nop
lea rcx, [rsp + 0x40]
call fcn.66203630
nop
mov rcx, rdi
call fcn.66203630
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x380
pop r14
pop rdi
pop rbp
ret

Function at 0x662027b4
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.6620e430
sub rsp, rax
cmp qword [rcx + 8], 0
mov rsi, rcx
mov rcx, qword [rdx]
mov r14, r8
mov rdi, rdx
jne 0x662027f2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x6620285f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66202811
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x662027eb
xor ebp, ebp
jmp 0x6620282a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x96
je 0x6620283a
mov rdx, qword [r14]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x66202815
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x6620285d
mov rdx, rdi
mov rcx, rsi
call fcn.66204670
jmp 0x662027eb
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x66202ea0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rcx, [rbp - 0x20]
call fcn.662035e0
nop
xor ebx, ebx
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov r8d, dword [rdx + 0x2c0]
test r8d, r8d
je 0x66202f46
xor ecx, ecx
lea rdx, str.Sessions_
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
mov word [rsp + rcx + 0x60], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x66202f00
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x66202f20
mov rdx, r8
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rbx*2]
mov r8d, 0xa
call fcn.662080b0
mov eax, eax
add rbx, rax
lea rax, str.BaseNamedObjects
lea rcx, [rbx + rbx]
sub rcx, rax
lea rdx, [rsp + 0x60]
add rdx, rcx
nop dword [rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x66202f60
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.662046d0
lea rcx, [rbp - 0x20]
call fcn.662048a0
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x20]
mov edx, 0xf
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov esi, eax
test eax, eax
js 0x66202fe2
mov rcx, qword [rbp + 0xc8]
mov qword [rdi + 0x178], rcx
jmp 0x66203096
lea r8, [rsp + 0x20]
mov edx, 3
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x6620300b
mov rax, qword [rbp + 0xc8]
mov qword [rdi + 0x178], rax
lea r8, [rsp + 0x20]
mov edx, 2
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x662030a1
mov rbx, qword [rbp + 0xc8]
or r8, 0xffffffffffffffff
lea rdx, str.Restricted
lea rcx, [rbp - 0x20]
call fcn.662046d0
lea rcx, [rbp - 0x20]
call fcn.662048a0
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x20]
mov edx, 0xf
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0xc8]
test esi, esi
js 0x662030a1
mov qword [rdi + 0x170], rcx
lea rcx, [rbp - 0x20]
call fcn.66203630
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x66205250
Capabilities:
Map section object

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov esi, r8d
mov r12d, edx
mov rdi, rcx
test rcx, rcx
je 0x6620529b
cmp r8d, 0xffffffff
jne 0x6620529b
mov r15b, 1
jmp 0x6620529e
xor r15b, r15b
mov r8b, 1
or rdx, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
call fcn.662089a0
nop
test r15b, r15b
je 0x662052e2
mov qword [rsp + 0x20], r12
lea r9, [rbp]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.66209980
mov ebx, eax
test eax, eax
js 0x66205447
lea rcx, [rbp]
call fcn.66209be0
mov esi, dword [rbp + 0x50]
mov eax, esi
mov qword [rsp + 0x68], rax
mov eax, 0x40
mov ecx, 4
cmp byte [rbp + 0x180], 0
cmovne eax, ecx
mov dword [rbp + 0x150], eax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [rcx + 0xb]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x66205447
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov eax, dword [rbp + 0x150]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 1]
lea r8, [rsp + 0x50]
or rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x662053bb
test r15b, r15b
je 0x662053c8
mov r9, qword [rsp + 0x50]
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp]
call fcn.66209480
mov ebx, eax
test eax, eax
jns 0x662053f7
mov rdx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x66205447
test rdi, rdi
je 0x662053f7
test r12d, r12d
je 0x662053e7
mov r9d, esi
mov r8, qword [rsp + 0x50]
mov edx, r12d
mov rcx, rdi
call fcn.6620c650
jmp 0x662053f7
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call fcn.6620e7b0
test r13, r13
jne 0x66205409
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x66205412
mov rax, qword [rsp + 0x58]
mov qword [r13], rax
mov rcx, qword [rbp + 0x170]
test rcx, rcx
jne 0x6620542f
mov rdx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66205437
mov rax, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rbp + 0x178]
test rax, rax
je 0x6620544a
mov dword [rax], esi
jmp 0x6620544a
mov r14d, ebx
lea rcx, [rbp - 0x80]
call fcn.66208af0
mov eax, r14d
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x66205e10
Capabilities:
Get file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rbp, r9
mov rdi, rcx
add rcx, 0x1c0
call fcn.66208260
xor esi, esi
cmp qword [rdi + 0x1a0], rsi
jne 0x66205f60
cmp qword [rdi + 8], rsi
je 0x66205f24
lea rcx, [rsp + 0x90]
call fcn.662035e0
nop
lea rdx, [rsp + 0x90]
mov rcx, qword [rdi]
call fcn.6620bfb0
lea rcx, [rsp + 0x90]
call fcn.662048a0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov eax, 0x20
cmp byte [rdi + 0x1e4], sil
mov ecx, esi
cmovne eax, ecx
or eax, 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, dword [rdi + 0x1e0]
lea rcx, [rdi + 0x1b0]
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [rsp + 0x180], eax
test eax, eax
jns 0x66205f17
xor eax, eax
mov qword [rdi + 0x1b0], rax
lea rcx, [rsp + 0x90]
call fcn.66203630
mov eax, dword [rsp + 0x180]
jmp 0x66206021
lea rcx, [rsp + 0x90]
call fcn.66203630
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x1b0]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x66206021
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x1a8], rax
mov rcx, rdi
call fcn.66206260
mov esi, eax
test eax, eax
jns 0x66205f89
lea rcx, [rdi + 0x1c0]
call fcn.66208260
mov rcx, rdi
call fcn.66205160
mov eax, esi
jmp 0x66206021
cmp byte [rsp + 0x188], 0
je 0x66205f9a
xor eax, eax
jmp 0x66206021
mov rbx, qword [rdi + 0x1c0]
mov rcx, rbx
call fcn.66205000
test al, al
je 0x66205f93
cmp byte [rsp + 0x190], 0
je 0x66205f93
mov rax, qword [rdi + 0x1b0]
mov qword [rdi + 0x1b8], rax
xor esi, esi
mov qword [rdi + 0x1b0], rsi
test rbp, rbp
je 0x66205fe4
or r8, 0xffffffffffffffff
mov rdx, rbp
mov rcx, rdi
call fcn.662046d0
jmp 0x66206011
mov rcx, rbx
call fcn.66204fe0
mov rbx, rax
mov rcx, rdi
call fcn.662045a0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9, 0xffffffffffffffff
mov r8, rbx
mov dl, 1
mov rcx, rax
call fcn.66203710
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.66205e10
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret