joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005490
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rsi, rdx
mov byte [rdx], 0
xor ecx, ecx
xor edx, edx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1800054cb
mov eax, 0x80004005
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
lea rdx, str.KuaiZipDrive
mov r8d, 4
mov rcx, rax
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x180005557
jmp 0x18000558b
xor eax, eax
xor ecx, ecx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x78]
lea r9d, [rcx + 0x24]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x78], ecx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x180005578
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
cmp dword [rsp + 0x34], 4
jne 0x180005582
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rsi
ret
Function at 0x180005a70
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x180005aa5
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
lea rdx, str.KuaiZipDrive
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005ae3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180005b3d
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x180005b56
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005ba8
lea rdx, str.KuaiZipDrive
mov rcx, rbp
call fcn.180005e50
mov rcx, qword [rsi + 0x10]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180005b8b
mov rcx, qword [rsi + 0x10]
lea r8d, [rax + 4]
xor edx, edx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x180005e50
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x180005e97
mov eax, 0x80004005
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
lea rdx, str.KuaiZipDrive
mov r8d, 0x2c
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180005ecd
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005ff2
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000600a
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x180005fdc
cmp eax, 3
jne 0x180005f6a
nop word [rax + rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000600a
cmp dword [rsp + 0x34], 1
je 0x180005fdc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000600a
cmp dword [rsp + 0x34], 3
je 0x180005f10
mov ebx, 1
lea r8, [rsp + 0x30]
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180005fde
cmp dword [rsp + 0x34], ebx
je 0x180005fdc
nop dword [rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000600a
cmp dword [rsp + 0x34], ebx
je 0x180005fdc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000600a
cmp dword [rsp + 0x34], ebx
jne 0x180005f90
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ebx, 0x80004005
jmp 0x180005fde
Function at 0x1800063b0
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
lea rax, str.2B99178A_21A2_4176_8D32_81DA708CFD0A_FileMap
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x19644
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180006408
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
cmp eax, 0xb7
jne 0x180006410
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180006408
xor edx, edx
mov r8d, 0x19644
mov rcx, rax
call fcn.18000b230
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180009b30
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
cmp dword [rcx + 0x70], 2
mov rdi, rcx
jne 0x180009b61
xor eax, eax
jmp 0x180009bfe
mov dword [rcx + 0x70], ebx
movabs rax, 0x5c003a0020
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 0x68]
movzx ecx, word [rax]
mov word [rsp + 0x40], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x180009ba4
cmp eax, 5
je 0x180009b9b
mov ebx, 0x80004005
jmp 0x180009bfc
mov dword [rdi + 0x70], 4
jmp 0x180009bfc
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x50], bx
call fcn.18000b230
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, 5
mov edx, 3
test eax, eax
cmovne ecx, edx
mov dword [rdi + 0x70], ecx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000a150
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x18000bd1b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001f090]
jne 0x18000a16a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000a166
repz ret
ror rcx, 0x10
jmp 0x18000bc74
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180020af0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180020be8]
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 0x18000bcf9
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, [0x180020af0]
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 0x18000bd1b
mov rax, qword [rsp + 0x88]
mov qword [0x180020be8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180020b88], rax
mov rax, qword [0x180020be8]
mov qword [0x180020a60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180020b70], rax
mov dword [0x180020a50], 0xc0000409
mov dword [0x180020a54], 1
mov rax, qword [0x18001f090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001f098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180020ae8], eax
mov ecx, 1
call fcn.18000c47c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180017788]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180020ae8], 0
jne 0x18000bda2
mov ecx, 1
call fcn.18000c47c
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 0x18000f62c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000f4a0
Function at 0x180013118
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.18000c48c
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800217b0], rbx
jne 0x18001321e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1800132f3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800132f3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800217b0], 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 [0x1800217b8], 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 [0x1800217c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800217d0], rax
test rax, rax
je 0x180013215
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800217c8], rax
jmp 0x180013225
mov rax, qword [0x1800217c8]
jmp 0x18001322c
mov rax, qword [0x1800217c8]
mov r11, qword [0x1800217d0]
cmp rax, rdi
je 0x180013294
cmp r11, rdi
je 0x180013294
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800217d0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180013294
test rax, rax
je 0x180013294
call rsi
test rax, rax
je 0x18001328e
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 0x18001328e
test byte [rsp + 0x38], 1
jne 0x180013294
bts ebp, 0x15
jmp 0x1800132d2
mov rcx, qword [0x1800217b8]
cmp rcx, rdi
je 0x1800132d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800132d2
call rax
mov rbx, rax
test rax, rax
je 0x1800132d2
mov rcx, qword [0x1800217c0]
cmp rcx, rdi
je 0x1800132d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800132d2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800217b0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800132f3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800132f5
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 0x140001070
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword gs:[0x60]
mov rbp, rcx
mov r8, rcx
lea rcx, str._t_i__Hooked_Ntdll_Base_Address_:_0x_p__n_t_i__Unhooked_Ntdll_Base_Address_:_0x_p__n
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0x20]
mov rdx, rbx
call fcn.140001010
lea rcx, str.___Press__Enter__To_Continue_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
test rbx, rbx
je 0x1400010e0
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14000120f
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
cmp dword [rcx], 0x4550
jne 0x14000120f
xor r10d, r10d
mov qword [rsp + 0x68], rsi
xor r11d, r11d
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x40], r11
xor edi, edi
movzx esi, word [rcx + 0x14]
xor r8d, r8d
movzx r9d, word [rcx + 6]
add rsi, rcx
test r9, r9
je 0x140001174
xor edx, edx
lea rcx, [rsi + 0x18]
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rcx]
or eax, 0x20202020
cmp eax, 0x7865742e
je 0x14000114f
inc r8d
inc rdx
add rcx, 0x28
cmp rdx, r9
jl 0x140001130
jmp 0x140001174
movsxd rax, r8d
lea rcx, [rax + rax*4]
mov r10d, dword [rsi + rcx*8 + 0x24]
add r10, rbx
mov qword [rsp + 0x30], r10
mov edi, dword [rsi + rcx*8 + 0x24]
mov r11d, dword [rsi + rcx*8 + 0x20]
add rdi, rbp
mov qword [rsp + 0x40], r11
mov r9, r11
lea rcx, str._t_i__Hooked_Ntdll_Text_Section_Address_:_0x_p__n_t_i__Unhooked_Ntdll_Text_Section_Address_:_0x_p__n_t_i__Text_Section_Size_:__d__n
mov r8, rdi
mov rdx, r10
call fcn.140001010
lea rcx, str.___Press__Enter__To_Continue_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
test rcx, rcx
je 0x14000120f
test rdi, rdi
je 0x14000120f
cmp qword [rsp + 0x40], 0
je 0x14000120f
mov eax, dword [rdi]
cmp dword [rcx], eax
jne 0x14000120f
lea rcx, str._i__Replacing_The_Text_Section_...
call fcn.140001010
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0
mov r9d, 0x80
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
call fcn.1400018aa
test eax, eax
je 0x14000122e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__1__Failed_With_Error_:__d__n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400019b0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov r9d, dword [rsp + 0x38]
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call fcn.1400018aa
test eax, eax
je 0x14000127a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__2__Failed_With_Error_:__d__n
jmp 0x14000120a
lea rcx, str.___DONE___n
call fcn.140001010
mov eax, 1
jmp 0x140001211
Function at 0x140001290
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, str._i__Fetching_A_New__ntdll.dll__File_from__KnownDlls___n
xor ebx, ebx
call fcn.140001010
lea rcx, str.___Press__Enter__When_MalDevEdr.dll_Is_Injected_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdi, str.__UNHOOKED__
mov r8, rax
lea rsi, str.__HOOKED__
mov r9, rdi
lea rdx, str.NtProtectVirtualMemory
cmp dword [rax], 0xb8d18b4c
lea rcx, str.____s___0x_p_________s__n
cmovne r9, rsi
call fcn.140001010
lea rax, str.KnownDlls_ntdll.dll
mov qword [rbp - 0x11], rbx
mov qword [rbp - 1], rax
lea rcx, str.NTDLL
lea rax, [rbp - 9]
mov qword [rbp - 0x19], rbx
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
mov qword [rbp - 9], 0x2a0028
mov qword [rbp + 7], 0x30
mov qword [rbp + 0x1f], 0x40
mov qword [rbp + 0x3f], rbx
mov qword [rbp + 0xf], rbx
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtOpenSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rbp + 7]
lea edx, [rbx + 0xd]
lea rcx, [rbp - 0x11]
call fcn.140001810
test eax, eax
je 0x1400013ac
mov edx, eax
lea rcx, str.____NtOpenSection_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x140001403
mov rcx, qword [rbp - 0x11]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x48], 0x20
lea r8, [rbp - 0x19]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], rbx
mov qword [rbp + 0x37], rbx
call fcn.14000185d
mov rdx, qword [rbp - 0x19]
lea rcx, str.____pLocalAddress:_0x_0.8X__n
call fcn.140001010
mov rbx, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140001411
call fcn.140001944
test rbx, rbx
je 0x140001487
mov rcx, rbx
call fcn.140001070
test eax, eax
je 0x140001487
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.1400018f7
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, rax
lea rdx, str.NtProtectVirtualMemory
lea rcx, str.____s___0x_p_________s__n
cmp dword [rax], 0xb8d18b4c
cmovne rdi, rsi
mov r9, rdi
call fcn.140001010
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x14000148c
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400019b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14006f6c0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov r15, r8
mov ecx, pe_nt_image_headers64
mov rsi, rdx
xor edi, edi
call fcn.140074088
mov rcx, rax
mov rbx, rax
lea rdx, [rax + 0x100]
call fcn.140070400
mov r9d, edi
mov r10, rbx
nop dword [rax]
mov byte [r10], r9b
lea r10, [r10 + 1]
inc r9d
cmp r9d, 0x100
jl 0x14006f710
mov r12, qword [r13 + 8]
mov ecx, edi
sub r12, qword [r13]
mov r9d, edi
mov r10, rbx
mov r11, rdi
mov ebp, pe_nt_image_headers64
nop dword [rax + rax]
movzx r14d, byte [r10]
xor edx, edx
mov rax, r11
div r12
mov rax, qword [r13]
movzx edx, byte [rdx + rax]
add edx, edi
add edx, r14d
and edx, 0x800000ff
jge 0x14006f76b
dec edx
or edx, 0xffffff00
inc edx
movsxd rdi, edx
inc r11
movzx eax, byte [rdi + rbx]
mov byte [r10], al
inc r10
mov byte [rdi + rbx], r14b
sub rbp, 1
jne 0x14006f740
test r15, r15
je 0x14006f7f1
nop word [rax + rax]
inc ecx
and ecx, 0x800000ff
jge 0x14006f7a4
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
movzx r8d, byte [r10 + rbx]
add r9d, r8d
and r9d, 0x800000ff
jge 0x14006f7c5
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
movzx eax, byte [rdx + rbx]
mov byte [r10 + rbx], al
mov byte [rdx + rbx], r8b
movzx eax, byte [r10 + rbx]
add r8, rax
movzx eax, r8b
movzx r8d, byte [rax + rbx]
xor byte [rsi], r8b
inc rsi
sub r15, 1
jne 0x14006f790
test rbx, rbx
je 0x14006f803
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.1400740c4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14007aa7c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14007a8e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007a8e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007a8e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007a8e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007a8e7
cmp dword [rcx + 0x84], 0xe
jbe 0x14007a8e7
cmp dword [rcx + 0xf8], 0
je 0x14007a8e7
mov ecx, ebx
call fcn.14007a998
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14007a774
nop
cmp dword [rbp + 0x20], 0
je 0x14007a935
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007a940
int3
xor r8d, r8d
xor edx, edx
jmp 0x14007a878
Function at 0x140084660
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140084676
mov al, 1
jmp 0x1400846d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140084687
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400846d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140089614
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400846d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400846d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400846d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400846d6
xor al, al
add rsp, 0x20
pop rbx
ret