joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021670
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x878
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov rdx, qword [rsp + 0x888]
mov rcx, qword [rsp + 0x880]
call fcn.140021aa0
test eax, eax
jne 0x1400216b6
mov eax, 1
jmp 0x1400217f4
mov dword [rsp + 0x850], 0x800
xor eax, eax
mov word [rsp + 0x50], ax
lea r9, [rsp + 0x850]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x888]
mov rcx, qword [rsp + 0x880]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002171f
mov rdx, qword [rsp + 0x888]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cdqe
mov qword [rsp + 0x858], rax
xor eax, eax
jmp 0x1400217f4
lea rdx, str.NoAssociate.KuaiZipMount
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140021751
mov rdx, qword [rsp + 0x888]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
jmp 0x1400217f4
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x888]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400217f2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x50]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x888]
call fcn.140021490
cmp dword [rsp + 0x38], 0
jne 0x1400217de
mov dword [rsp + 0x860], 1
jmp 0x1400217e9
mov dword [rsp + 0x860], 0
mov eax, dword [rsp + 0x860]
jmp 0x1400217f4
xor eax, eax
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x878
ret

Function at 0x140021820
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x848
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x838], rax
mov r9, qword [rsp + 0x858]
lea r8, [0x140037ca8]
lea rdx, [0x140037cc8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140021887
mov dword [rsp + 0x830], 1
jmp 0x140021892
mov dword [rsp + 0x830], 0
mov eax, dword [rsp + 0x830]
mov rcx, qword [rsp + 0x838]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x848
ret
Function at 0x140021aa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x12a8
call fcn.140031410
sub rsp, rax
mov qword [rsp + 0x1280], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x1290], rax
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x12b8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x840], eax
cmp dword [rsp + 0x840], 0
je 0x140021b0f
xor eax, eax
jmp 0x140021c96
mov dword [rsp + 0x1050], 0x400
lea r9, [rsp + 0x1050]
lea r8, [rsp + 0x850]
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [rsp + 0x840], eax
cmp dword [rsp + 0x840], 0
je 0x140021b5a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140021c96
lea r8, str.KuaiZipMount
lea rdx, [0x140037d50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x850]
call fcn.14001ad10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x850]
cmp qword [rsp + 0x30], rax
jne 0x140021c87
lea rcx, [rsp + 0x1058]
call fcn.140016250
nop
lea rdx, str._shellopencommand
lea rcx, [rsp + 0x850]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r9d, 1
lea r8, [rsp + 0x850]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x1058]
call fcn.1400164a0
mov dword [rsp + 0x840], eax
cmp dword [rsp + 0x840], 0
jne 0x140021c7a
mov dword [rsp + 0x1068], 0x400
lea r9, [rsp + 0x1068]
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [rsp + 0x1058]
call fcn.140021cb0
mov r8d, 0x104
lea rdx, [rsp + 0x1070]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x1070]
lea rcx, [rsp + 0x40]
call fcn.14001ad10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x140021c64
mov dword [rsp + 0x1288], 1
jmp 0x140021c6f
mov dword [rsp + 0x1288], 0
mov eax, dword [rsp + 0x1288]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x1058]
call fcn.140016280
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x1290]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x12a8
ret
Function at 0x140021cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140021cc8
xor eax, eax
test eax, eax
jne 0x140021cc8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140021d30
mov eax, dword [rsp + 0x38]
jmp 0x140021db3
cmp dword [rsp + 0x30], 1
je 0x140021d45
cmp dword [rsp + 0x30], 2
je 0x140021d45
mov eax, 0xd
jmp 0x140021db3
cmp qword [rsp + 0x60], 0
je 0x140021d99
cmp dword [rsp + 0x34], 0
je 0x140021d8f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x140021d86
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x140021d8d
mov eax, 0xd
jmp 0x140021db3
jmp 0x140021d99
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret
Function at 0x140022238
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140044690]
test rcx, rcx
jne 0x14002218f
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140022188
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400221ba
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x140022184
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x140044690], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14002222d
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400221dd
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x140044690]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14002220a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14002222d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140044690]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140022211
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140022114
Function at 0x140024c97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140042dd0]
jne 0x14002270a
rol rcx, 0x10
test cx, 0xffff
jne 0x140022706
repz ret
ror rcx, 0x10
jmp 0x140024bf0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140044830]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140044928]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140024c75
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140044830]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140024c97
mov rax, qword [rsp + 0x88]
mov qword [0x140044928], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400448c8], rax
mov rax, qword [0x140044928]
mov qword [0x1400447a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400448b0], rax
mov dword [0x140044790], 0xc0000409
mov dword [0x140044794], 1
mov rax, qword [0x140042dd0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140042dd8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140044828], eax
mov ecx, 1
call fcn.14002a098
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140038048]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140044828], 0
jne 0x140024d1e
mov ecx, 1
call fcn.14002a098
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400298ac
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140029720
Function at 0x1400298b8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14002acc4
nop
cmp dword [0x140044da0], 1
je 0x140029858
mov dword [0x140044d9c], 1
mov byte [0x140044d98], r12b
test ebx, ebx
jne 0x140029844
mov rcx, qword [0x140046930]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140029831
mov rcx, qword [0x140046928]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400297d0
call fcn.140026ab8
cmp qword [rdi], rax
jne 0x1400297d0
jmp 0x1400297b6
cmp rdi, rsi
jb 0x140029831
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140026ab8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140046930]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140046928]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002980f
cmp r13, rax
je 0x14002982f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400297b6
lea rdx, [0x1400348d8]
lea rcx, [0x1400348c0]
call fcn.140029600
lea rdx, [0x1400348e8]
lea rcx, [0x1400348e0]
call fcn.140029600
nop
test r12d, r12d
je 0x140029867
mov ecx, 8
call fcn.14002abc4
test r12d, r12d
jne 0x140029892
mov dword [0x140044da0], 1
lea ecx, [r12 + 8]
call fcn.14002abc4
mov ecx, r15d
call fcn.140029594
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140029720
Function at 0x14002d9d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140026ab8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400455f0], rbx
jne 0x14002dad6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002dbab
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002dbab
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140039b98]
mov rcx, rsi
mov qword [0x1400455f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400455f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140045600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140045610], rax
test rax, rax
je 0x14002dacd
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140045608], rax
jmp 0x14002dadd
mov rax, qword [0x140045608]
jmp 0x14002dae4
mov rax, qword [0x140045608]
mov r11, qword [0x140045610]
cmp rax, rdi
je 0x14002db4c
cmp r11, rdi
je 0x14002db4c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140045610]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002db4c
test rax, rax
je 0x14002db4c
call rsi
test rax, rax
je 0x14002db46
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002db46
test byte [rsp + 0x38], 1
jne 0x14002db4c
bts ebp, 0x15
jmp 0x14002db8a
mov rcx, qword [0x1400455f8]
cmp rcx, rdi
je 0x14002db8a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002db8a
call rax
mov rbx, rax
test rax, rax
je 0x14002db8a
mov rcx, qword [0x140045600]
cmp rcx, rdi
je 0x14002db8a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002db8a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400455f0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002dbab
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002dbad
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140004060
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400123a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
cmp ecx, 2
je 0x1400040bc
mov rcx, qword [rbx]
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rcx, qword [rbx]
test rax, rax
je 0x1400040a2
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea rcx, [rax + 1]
mov rdx, rcx
lea rcx, str.Usage:__s__executable_path_
call fcn.140001080
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
jmp 0x14000424b
call fcn.140006740
test eax, eax
je 0x1400040e9
lea rcx, str.Failed_to_initialize_MinHook._n
call fcn.140001080
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
lea r9, [0x140012ce8]
lea r8, [0x140003f80]
lea rdx, [0x14000e720]
lea rcx, str.kernel32
call fcn.140006b40
test eax, eax
je 0x140004132
lea rcx, str.Failed_to_initialize_LoadLibraryA_hook._n
call fcn.140001080
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
lea r9, [0x140013340]
lea r8, [0x140003ff0]
lea rdx, [0x14000e778]
lea rcx, str.kernel32
call fcn.140006b40
test eax, eax
je 0x14000417b
lea rcx, str.Failed_to_initialize_LoadLibraryW_hook._n
call fcn.140001080
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.140006d50
test eax, eax
je 0x1400041af
lea rcx, str.Failed_to_enable_LoadLibraryA_hook._n
call fcn.140001080
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.140006d50
test eax, eax
je 0x1400041e3
lea rcx, str.Failed_to_enable_LoadLibraryW_hook._n
call fcn.140001080
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbx + 8]
call fcn.140003500
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a540
add rsp, 0x50
pop rbx
ret
Function at 0x140006080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400060e1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400060a0
mov ecx, dword [r10]
jmp 0x1400061ca
cmp ecx, 0x4e0
jb 0x1400061ca
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006100
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006150
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140007920
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.140007710
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1400079f7
mov dword [rsp + 0x20], 0
jmp 0x140007994
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1400079f7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400079f5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1400074f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000798a
add rsp, 0x30
pop rdi
ret

Function at 0x140007a10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x140007ab4
mov dword [rsp + 0x20], 0
jmp 0x140007a4d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x140007a9d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007a9b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007a43
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1400126c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x140007ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x1400146f0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140007b44
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140007b6d
mov eax, 0xa
jmp 0x140007ca7
cmp dword [rsp + 0x88], 0
je 0x140007bdb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140007bd9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x140007c27
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140007c0b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140007c27
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000d810]
call fcn.14000ac98
mov rax, rdi
add rsp, 0x70
pop rdi
ret