joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180039ed0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r15d, r15d
mov rsi, r9
mov qword [rbp - 0x10], r15
mov rdi, rdx
mov qword [rbp - 0x18], r15
cmp rcx, 0xffffffff80000004
jne 0x180039f12
lea eax, [r15 + 6]
jmp 0x18003a002
cmp r8d, 1
jne 0x180039ffd
test rsi, rsi
je 0x180039ffd
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNELBASE.dll_MapPredefinedHandleInternal]
mov ebx, eax
test eax, eax
jne 0x180039feb
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r15w
jne 0x180039f45
lea r14, [rax*2 + 2]
mov eax, 0xffffffff
cmp r14, rax
ja 0x180039fe6
test rdi, rdi
je 0x180039faf
cmp word [rdi], r15w
je 0x180039faf
mov rcx, qword [rbp + 0x20]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rdx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x180039feb
mov rcx, qword [rbp - 0x20]
jmp 0x180039fb7
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x20], rcx
mov dword [rsp + 0x28], r14d
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
cmp rcx, qword [rbp + 0x20]
je 0x180039feb
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x180039feb
mov ebx, 0x57
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNELBASE.dll_CLOSE_LOCAL_HANDLE_INTERNAL]
mov eax, ebx
jmp 0x18003a002
mov eax, 0x57
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18003d8d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov word [rax + 0x18], r8w
mov word [rax + 0x10], dx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r12d, r9d
movzx r13d, r8w
xor ebx, ebx
mov dword [rax - 0x54], ebx
movzx r14d, word [rsp + 0xe8]
mov r8d, r14d
shl r8, 3
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18003dada
mov edi, ebx
mov dword [rsp + 0x60], ebx
lea esi, [rbx + 1]
movzx eax, r14w
cmp edi, eax
jae 0x18003d9f3
mov rcx, qword gs:[0x60]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, rax
mov edi, dword [rsp + 0x60]
mov qword [r15 + rdi*8], rax
test rax, rax
je 0x18003d9e8
mov rax, qword [rsp + 0xf8]
mov r8, qword [rax + rdi*8]
mov qword [rsp + 0x70], r8
mov r9d, ebx
mov dword [rsp + 0x68], ebx
mov word [rdx], bx
mov qword [rdx + 8], r8
test r8, r8
je 0x18003d9e6
mov ecx, ebx
mov al, byte [r8]
add r8, rsi
mov qword [rsp + 0x70], r8
test al, al
je 0x18003d9c1
cmp ecx, 0x7fff
jae 0x18003d9d6
lea r9d, [rcx + 1]
mov dword [rsp + 0x68], r9d
mov ecx, r9d
jmp 0x18003d99c
cmp ecx, 0x7fff
jae 0x18003d9d6
mov word [rdx], r9w
add cx, si
mov word [rdx + 2], cx
jmp 0x18003d9e8
add edi, esi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], 0xc000000d
jmp 0x18003d9f3
mov dword [rdx], ebx
add edi, esi
mov dword [rsp + 0x60], edi
jmp 0x18003d941
jmp 0x18003da25
cmp dword [rsp + 0x64], ebx
jne 0x18003da8a
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x48], bx
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], r14w
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
movzx r8d, r13w
movzx edx, word [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call sym.ADVAPI32.dll_ElfReportEventA
mov dword [rsp + 0x64], eax
mov r14d, ebx
cmp r14d, edi
jae 0x18003dabc
mov eax, r14d
mov r8, qword [r15 + rax*8]
test r8, r8
je 0x18003dab7
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [rsp + 0x60]
add r14d, esi
jmp 0x18003da8d
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [rsp + 0x64]
jmp 0x18003dae4
mov ecx, 0xc0000017
mov esi, 1
test ecx, ecx
jns 0x18003daf8
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18003dafa
mov ebx, esi
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x18003df90
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov rdx, rcx
mov ecx, 0x10002
call qword [sym.imp.SspiCli.dll_GetUserNameExA]
movzx eax, al
add rsp, 0x28
ret
Function at 0x18003e2c0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov dword [rax + 0x18], r8d
mov rdi, rcx
lea r9, [rax + 0x20]
mov r8b, 1
mov edx, 4
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtOpenThreadToken]
mov ebx, eax
mov eax, 0x80000000
lea r8d, [rbx + rax]
test eax, r8d
jne 0x18003e30f
cmp ebx, 0xc000007c
je 0x18003e30f
xor eax, eax
jmp 0x18003e34f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ImpersonateNamedPipeClient]
test eax, eax
jne 0x18003e32d
test ebx, ebx
js 0x18003e30b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003e30b
lea r8, [rsp + 0x40]
mov rdx, rsi
mov ecx, 0x10002
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
movzx edi, al
test ebx, ebx
jns 0x18003e35f
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9d, 8
lea r8, [rsp + 0x48]
mov rcx, 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jns 0x18003e34d
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18003e30b
Function at 0x18004a1b0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r14, r8
mov r12b, dl
mov rbp, rcx
mov ebx, r13d
mov r15b, 1
test r8, r8
jne 0x18004a1ec
lea ebx, [r8 + 0x57]
jmp 0x18004a2e6
or rsi, 0xffffffffffffffff
mov qword [r8], r13
test rbp, rbp
je 0x18004a1fe
cmp word [rcx], r13w
jne 0x18004a205
mov eax, 0x10c
jmp 0x18004a218
mov r15b, r13b
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x18004a20b
add eax, 8
and eax, 0xfffffff8
lea ecx, [rax*2 + 0x60]
call fcn.18000618c
mov rdi, rax
test rax, rax
je 0x18004a2e1
mov eax, r13d
test r12b, r12b
sete al
or dword [rdi + 0x20], eax
call fcn.180013564
mov dword [rdi + 0x24], eax
lea rcx, [rdi + 0x60]
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r13
test r15b, r15b
jne 0x18004a273
mov rdx, rsi
inc rdx
cmp word [rbp + rdx*2], r13w
jne 0x18004a25b
inc rdx
mov r8, rbp
call fcn.18000e694
jmp 0x18004a286
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov rax, qword [rdi + 8]
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x18004a28a
lea eax, [rsi*2 + 9]
and eax, 0xfffffff8
add eax, 0x10
mov dword [rdi + 0x5c], eax
cmp eax, 0x10
jae 0x18004a2b8
mov rcx, rdi
mov ebx, 0x216
call fcn.18000940c
jmp 0x18004a2e6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x18004a30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.18000940c
test ebx, ebx
jne 0x18004a2e6
mov ebx, 0xe
xor ecx, ecx
call fcn.18000940c
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [r14], rdi
jmp 0x18004a2ed
Function at 0x18004a704
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 0x80
je 0x18004a74f
cmp byte [rcx + 0x19], 2
jb 0x18004a74f
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d3b0]
mov edx, 0x1a
mov dword [rax - 0x48], ebx
mov r9, rdi
call fcn.18004b680
lea eax, [rbx - 1]
mov dword [rsp + 0x80], ebx
mov ebp, 1
test eax, 0xfffffffc
jne 0x18004a76a
cmp ebx, 3
jne 0x18004a771
mov dword [rsp + 0x80], ebp
mov r9d, 4
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], r9d
lea rdx, str.Disable_Performance_Counters
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp dword [0x180094ff0], ebp
jl 0x18004a7ef
mov rcx, qword [0x180096360]
neg eax
mov qword [rsp + 0x50], rdi
sbb r9d, r9d
xor r10d, r10d
neg r9d
add r9d, 0xc00003f9
test rcx, rcx
je 0x18004a7ef
mov qword [rsp + 0x40], r10
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r10d
mov edx, ebp
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r10
call sym.ADVAPI32.dll_ReportEventW
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18004a808
Capabilities:
Set registry value

Disassembly:
test byte [0x180094fec], 2
jne 0x18004a837
mov eax, dword [rcx + 0x184]
test al, 0x10
jne 0x18004a837
or eax, 0x10
mov r8d, edx
mov rdx, qword [rcx + 0x190]
mov dword [rcx + 0x184], eax
mov rcx, qword [rcx + 0x70]
jmp fcn.18004a704
xor eax, eax
ret

Function at 0x18004a83c
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rdi, rdx
mov qword [rax - 0x28], rbx
xor r9d, r9d
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
mov dword [rax - 0x38], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18004a8f3
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x18004a8e0
lea r8, [rsp + 0x70]
mov rcx, rdi
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test eax, eax
je 0x18004a8be
movzx edx, word [rsp + 0x70]
mov r8, rdi
movzx ecx, word [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x18004a8e0
mov rax, qword [rsp + 0x40]
mov qword [rdi + 8], rax
jmp 0x18004a8e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004a8fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18004ad88
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor ebx, ebx
lea rcx, [rbp - 0x39]
mov r14, r8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x180093040]
test dword [rcx + 0x1c], 0x800
je 0x18004adf5
cmp byte [rcx + 0x19], 4
jb 0x18004adf5
mov rax, qword [rsi + 0x18]
mov r9d, dword [rsi + 0x10]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x39]
mov qword [rsp + 0x20], rax
call fcn.18004b778
mov rcx, qword [rbp - 0x39]
lea rdi, [rsi + 0x18]
mov rdx, qword [rdi]
mov rax, rcx
sub rax, rdx
movabs r15, 0xc92a69c000
cmp rax, r15
jge 0x18004ae1c
xor eax, eax
jmp 0x18004af21
mov word [rbp - 0x19], bx
test r14, r14
je 0x18004af0c
mov ecx, dword [rsi + 0x10]
lea rax, [rbp - 0x19]
lea r8, [rbp - 0x29]
mov qword [rbp - 0x21], rax
mov edx, 0xa
mov dword [rbp - 0x29], 0x400000
call qword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
mov rcx, qword [0x180093040]
test dword [rcx + 0x1c], 0x800
je 0x18004ae76
cmp byte [rcx + 0x19], 4
jb 0x18004ae76
mov rax, qword [rbp - 0x21]
mov r9d, dword [rsi + 0x10]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.18004b6f0
cmp qword [rdi], rbx
jne 0x18004aecd
lea rax, [rbp - 0x2d]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov dword [rbp - 0x31], 4
mov dword [rbp - 0x2d], 8
call fcn.18000d9e0
test eax, eax
jne 0x18004aecd
cmp dword [rbp - 0x31], 0xb
jne 0x18004aecd
mov rcx, qword [rbp - 0x39]
mov rax, rcx
sub rax, qword [rdi]
cmp rax, r15
jl 0x18004aed1
mov qword [rdi], rbx
jmp 0x18004aed1
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18004af0c
lea ebx, [rdx + 1]
mov qword [rdi], rcx
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 8
lea r9d, [rdx + 0xb]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
mov rcx, r14
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
sub rax, rdx
cmp rax, r15
jl 0x18004af1f
mov qword [rdi], rcx
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004bc18
Capabilities:
Copy file
Delete file
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
or rdi, 0xffffffffffffffff
mov r12b, r9b
xor r13d, r13d
mov r14, rcx
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x18004bc42
add edi, 0x13
mov rbx, r13
mov r15d, edi
lea rsi, [rdi + rdi]
mov rcx, rsi
call fcn.18000618c
mov rbp, rax
test rax, rax
je 0x18004bdb8
lea rcx, [rsi + 0x18]
call fcn.18000618c
mov rbx, rax
test rax, rax
je 0x18004bdb8
cmp dword [rsp + 0x88], 4
lea r13, [rax + 0x14]
jne 0x18004bca0
lea rax, str.perfh004.dat
lea rsi, str.perfc004.dat
jmp 0x18004bcae
lea rax, str.perfh016.dat
lea rsi, str.perfc016.dat
test r12b, r12b
lea r8, str._ws_ws
mov r9, r14
mov rdx, r15
cmove rsi, rax
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.1800061b4
mov rcx, qword [rsp + 0x90]
mov r9, r14
test rcx, rcx
je 0x18004bd3b
lea rdx, str.prfh
test r12b, r12b
lea rax, str.prfc
cmove rax, rdx
lea r8, str._ws_ws_ws_ws
lea rdx, str..dat
mov qword [rsp + 0x30], rdx
mov rdx, r15
mov qword [rsp + 0x28], rcx
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1800061b4
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
jmp 0x18004bdb8
lea r8, str._ws_ws.tmp
mov qword [rsp + 0x20], rsi
mov rdx, r15
mov rcx, r13
call fcn.1800061b4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov edx, 0x40010000
mov rcx, rbp
lea r15d, [r14 + 3]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18004bdb8
lea r9d, [rdi*2 + 0x18]
mov byte [rbx], r14b
mov r8, rbx
mov qword [rbx + 8], r14
mov edx, r15d
mov dword [rbx + 0x10], edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.18000940c
mov rcx, rbp
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.18000940c
Function at 0x1800511b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r15
sub rsp, 0x50
mov esi, r9d
mov r12d, r8d
mov rbx, rdx
mov r13, rcx
call qword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
xor ecx, ecx
test al, al
je 0x1800511eb
mov ebx, 0x42b
jmp 0x18005133d
test rbx, rbx
je 0x180051338
cmp qword [rsp + 0x90], rcx
je 0x180051338
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x180051206
add eax, eax
mov dword [rsp + 0x40], eax
lea r15d, [rsi + 0x49]
add r15d, eax
mov r8d, r15d
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18005124c
lea ebx, [rax + 8]
jmp 0x18005133d
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, rdi
call sub.msvcrt.dll_memset
mov dword [rdi + 0x2c], 2
mov qword [rdi + 0x10], r13
mov dword [rdi], r15d
and dword [rdi + 0xc], 0
mov dword [rdi + 8], r12d
mov dword [rdi + 0x3c], esi
mov dword [rdi + 0x30], 0x40
lea rcx, [rdi + 0x40]
mov edx, dword [rsp + 0x40]
mov word [rcx], dx
add rcx, 2
lea r8d, [rdx + 9]
add r8d, dword [rdi + 0x30]
and r8d, 0xfffffff8
mov dword [rdi + 0x38], r8d
mov r8d, edx
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov r8, rsi
mov ecx, dword [rdi + 0x38]
add rcx, rdi
mov rdx, qword [rsp + 0x90]
call sub.msvcrt.dll_memcpy
nop
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov r9d, r15d
mov r8, rdi
mov edx, 0x228008
call fcn.180054b6c
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x18005133d
mov ebx, 0x57
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x180051440
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r12
push r13
push r15
sub rsp, 0x50
mov r12d, r9d
mov r13d, r8d
mov rbx, rdx
call qword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
xor ecx, ecx
test al, al
je 0x18005147c
mov ebx, 0x42b
jmp 0x1800515d7
test rbx, rbx
je 0x1800515d2
cmp qword [rsp + 0x98], rcx
je 0x1800515d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x180051497
add eax, eax
mov dword [rsp + 0x40], eax
mov esi, dword [rsp + 0x90]
lea r15d, [rsi + 0x4d]
add r15d, eax
mov r8d, r15d
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1800514e4
lea ebx, [rax + 8]
jmp 0x1800515d7
xor edx, edx
lea r8d, [rdx + 0x44]
mov rcx, rdi
call sub.msvcrt.dll_memset
mov dword [rdi + 0x2c], 4
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x10], rax
mov dword [rdi], r15d
and dword [rdi + 0xc], 0
mov dword [rdi + 8], r12d
mov dword [rdi + 0x38], r13d
mov dword [rdi + 0x40], esi
mov dword [rdi + 0x30], 0x44
mov edx, dword [rsp + 0x40]
lea eax, [rdx + 0x4d]
and eax, 0xfffffff8
mov dword [rdi + 0x3c], eax
lea rcx, [rdi + 0x44]
mov word [rcx], dx
add rcx, 2
mov r8d, edx
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov r8, rsi
mov ecx, dword [rdi + 0x3c]
add rcx, rdi
mov rdx, qword [rsp + 0x98]
call sub.msvcrt.dll_memcpy
nop
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov r9d, r15d
mov r8, rdi
mov edx, 0x22800c
call fcn.180054b6c
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1800515d7
mov ebx, 0x57
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x18005168c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
movzx esi, word [rcx]
mov r15, rcx
mov rcx, qword gs:[0x60]
movzx ebp, r8w
mov r14, rdx
mov ebx, 8
mov edx, ebx
lea r8, [rsi + 2]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov rdi, rax
test rax, rax
je 0x180051762
lea rdx, [r15 + 2]
mov r8d, esi
mov rcx, rax
call sub.msvcrt.dll_memcpy
shr rsi, 1
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov word [rdi + rsi*2], r12w
call fcn.18005475c
mov ebx, eax
test eax, eax
jne 0x18005174a
mov ecx, dword [rsp + 0x50]
add rcx, 2
movzx eax, bp
cmp rax, rcx
jae 0x18005171d
lea ebx, [r12 + 0x7a]
jmp 0x18005174a
movzx eax, bp
lea rdx, [r14 + 2]
sub eax, 2
lea r8, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call fcn.1800547b8
mov ebx, eax
test eax, eax
jne 0x18005174a
movzx eax, word [rsp + 0x50]
mov ebx, r12d
mov word [r14], ax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180052430
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rcx], 0
mov rsi, rcx
mov rcx, qword gs:[0x60]
mov edi, 0x2940
and dword [rsp + 0x50], 0
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180052511
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0x224158
mov qword [rsp + 0x20], rbx
call fcn.180054b6c
mov edi, eax
test eax, eax
jne 0x18005252f
mov eax, dword [rsp + 0x50]
cmp eax, 4
jne 0x18005251e
mov rcx, qword gs:[0x60]
mov r8, rbx
mov edi, dword [rbx]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword gs:[0x60]
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180052511
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0x224158
mov qword [rsp + 0x20], rbx
call fcn.180054b6c
mov edi, eax
jmp 0x180052516
mov edi, 8
test edi, edi
jne 0x18005252f
mov eax, dword [rsp + 0x50]
cmp eax, 0x10
jb 0x180052528
mov qword [rsi], rbx
jmp 0x18005254c
mov edi, 0x57
jmp 0x180052534
test rbx, rbx
je 0x18005254c
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret