joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dc5b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400dd440
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400dd440
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400dc620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401751c4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400dc7b0
mov rax, qword [0x1401751c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400dc66c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400dc6f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400dc650
mov rcx, rdi
call fcn.1400dd180
test rax, rax
mov r12, rax
je 0x1400dc802
mov rax, qword [0x1401751c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400dd2c0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401751c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400dc7e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400dc6ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400dc760
add dword [0x1401751c4], 1
cmp ebx, 8
jae 0x1400dc721
test bl, 4
jne 0x1400dc7c0
test ebx, ebx
je 0x1400dc716
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400dc7d4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400dc716
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400dc73a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1401751c8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400dc6ee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400dc5b0
xor esi, esi
jmp 0x1400dc677
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400dc716
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400dc716
mov rax, qword [0x1401751c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400dc5b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400dc5b0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400dcdd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140175220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140175200]
test rbx, rbx
je 0x1400dce24
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400dce1b
test rsi, rsi
je 0x1400dce1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dce00
lea rcx, [0x140175220]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400dd180
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140162b80]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400dd1ef
mov rcx, r9
call fcn.1400dd050
test eax, eax
je 0x1400dd1ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400dd1ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400dd1e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400dd1ef
add rdx, 0x28
cmp rdx, r9
jne 0x1400dd1d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140001000
Capabilities:
Check for debugger via api
Hide thread from debugger
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400010aa
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x20], 0
jne 0x1400010aa
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001096
lea rdx, str.NtSetInformationThread
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140001091
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x11]
call rbx
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400010d0
add rsp, 0x38
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400019ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019f8
xor al, al
add rsp, 0x28
ret
Function at 0x141338058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413381df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141338089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14133806f
add dl, dl
jne 0x141338096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413380f6
xor eax, eax
add dl, dl
jne 0x1413380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413381ad
add dl, dl
jne 0x1413380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14133807e
mov eax, 1
add dl, dl
jne 0x141338106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141338113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413380fb
sub eax, ebx
mov ebx, 1
jne 0x14133814c
mov ecx, 1
add dl, dl
jne 0x14133812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14133813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141338123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141338168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141338175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14133815d
cmp eax, 0x7d00
jae 0x14133819b
cmp eax, 0x500
jb 0x141338196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133807e
cmp eax, 0x7f
ja 0x14133819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413381d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14133807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x180024200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x1800012b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x140
and qword [rsp + 0x58], 0
lea rax, [rax + 0x18]
and qword [rsp + 0x50], 0
mov r15, rdx
and qword [rsp + 0x48], 0
mov rbx, rcx
and qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180001486
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r14d, r14d
mov rbp, rax
cmp dword [rsp + 0x180], r14d
jbe 0x180001472
lea rax, [rsp + 0x188]
mov dword [rsp + 0x60], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov edx, r14d
mov rcx, r15
mov dword [rsp + 0x188], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001461
cmp dword [rsp + 0x64], 1
jne 0x180001461
mov rdx, rbp
mov rcx, rbx
call fcn.180001530
test eax, eax
jne 0x180001461
test rbp, rbp
je 0x180001461
mov eax, dword [rbx + 4]
cmp dword [rbx], eax
jne 0x18000141a
add eax, 0x10
mov edi, eax
shl rdi, 3
mov dword [rbx + 4], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [rbx]
mov rdi, rax
mov rsi, qword [rbx + 0x10]
shl rcx, 3
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
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, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rdi, eax
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [rbx]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rbp
mov dword [rbx], eax
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
inc r14d
cmp r14d, dword [rsp + 0x180]
jb 0x18000134e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000162c
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x60]
mov edi, edx
mov ebx, ecx
xor esi, esi
mov r8, qword [rax + 0x18]
mov r11, qword [r8 + 0x20]
mov r8, r11
mov r10, qword [r8 + 0x50]
mov r9d, esi
test r10, r10
je 0x18000168b
cmp si, word [r8 + 0x48]
jae 0x18000168b
movzx edx, word [r8 + 0x48]
movsx ecx, byte [r10]
ror r9d, 0xd
cmp byte [r10], 0x61
lea eax, [rcx - 0x20]
cmovge ecx, eax
inc r10
add r9d, ecx
sub rdx, 1
jne 0x18000166d
cmp r9d, ebx
je 0x1800016aa
mov r8, qword [r8]
cmp r8, r11
jne 0x180001655
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r8, qword [r8 + 0x20]
test r8, r8
je 0x180001698
movsxd rax, dword [r8 + 0x3c]
mov ebx, esi
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
mov edx, dword [r9 + 0x20]
mov ecx, dword [r9 + 0x24]
add rdx, r8
add rcx, r8
cmp dword [r9 + 0x18], esi
jbe 0x180001698
mov r10d, dword [rdx]
mov r11d, esi
add r10, r8
jmp 0x1800016f0
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x1800016e3
cmp r11d, edi
je 0x18000170e
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r9 + 0x18]
jb 0x1800016d8
jmp 0x180001698
movzx edx, word [rcx]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x18000169a

Function at 0x180001b50
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, 0xe0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001b63
mov eax, 0x40
ret
mov edx, 0x60000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001b76
mov eax, 0x20
ret
mov edx, 0xa0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001b89
mov eax, 0x80
ret
mov edx, 0xc0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001b9c
mov eax, 4
ret
bt ecx, 0x1d
jae 0x180001ba8
mov eax, 0x10
ret
bt ecx, 0x1e
jae 0x180001bb4
mov eax, 2
ret
mov eax, 1
test ecx, ecx
lea edx, [rax + 7]
cmovs eax, edx
ret
Function at 0x180001e3c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
call fcn.180006190
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800066b0
lea rbx, [0x18001cc20]
mov rcx, rbx
lea r9, [0x1800022a8]
lea r8, [0x180021cd8]
lea rdx, str.NtQuerySystemInformation
call fcn.180002250
lea r9, [0x1800024c0]
mov rcx, rbx
lea r8, [0x180021cb0]
lea rdx, str.NtResumeThread
call fcn.180002250
lea r9, [0x180002584]
mov rcx, rbx
lea r8, [0x180021cc0]
lea rdx, str.NtQueryDirectoryFile
call fcn.180002250
lea r9, [0x180002790]
mov rcx, rbx
lea r8, [0x180021c80]
lea rdx, str.NtQueryDirectoryFileEx
call fcn.180002250
lea r9, [0x180002a5c]
mov rcx, rbx
lea r8, [0x180021c98]
lea rdx, str.NtEnumerateKey
call fcn.180002250
lea r9, [0x180002c28]
mov rcx, rbx
lea r8, [0x180021cb8]
lea rdx, str.NtEnumerateValueKey
call fcn.180002250
lea r9, [0x180002dfc]
lea r8, [0x180021c90]
lea rdx, str.EnumServiceGroupW
lea rcx, str.advapi32.dll
call fcn.180002250
lea r9, [0x180002e80]
lea r8, [0x180021c88]
lea rdx, str.EnumServicesStatusExW
lea rcx, str.advapi32.dll
call fcn.180002250
lea r9, [0x180002f0c]
lea r8, [0x180021c78]
lea rdx, str.EnumServicesStatusExW
lea rcx, str.sechost.dll
call fcn.180002250
lea r9, [0x180002f98]
mov rcx, rbx
lea r8, [0x180021ca0]
lea rdx, str.NtDeviceIoControlFile
call fcn.180002250
lea r9, [0x180003350]
lea r8, [0x180021ce0]
lea rdx, str.PdhGetRawCounterArrayW
lea rcx, [0x18001cd38]
call fcn.180002250
lea r9, [0x180003460]
lea r8, [0x180021c68]
lea rdx, str.PdhGetFormattedCounterArrayW
lea rcx, [0x18001cd38]
call fcn.180002250
lea r9, [0x180003568]
lea r8, [0x180021cc8]
lea rdx, str.AmsiScanBuffer
lea rcx, str.amsi.dll
call fcn.180002250
call fcn.180006200
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021c70], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021c74], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021cd0], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021ca8], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021cd4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180021cac], eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800039c4
Capabilities:
Create thread

Disassembly:
sub rsp, 0x248
cmp edx, 1
jne 0x180003a4b
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x180003a47
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003f30
test eax, eax
jne 0x180003a47
call fcn.180003e70
test eax, eax
je 0x180003a47
cmp dword [0x180021ce8], 0
jne 0x180003a54
and qword [rsp + 0x28], 0
lea r8, [0x180001bc4]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x180021ce8], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180021c60], rax
call fcn.180001e3c
jmp 0x180003a54
xor eax, eax
jmp 0x180003a59
test edx, edx
jne 0x180003a54
call fcn.180003dbc
mov eax, 1
add rsp, 0x248
ret
Function at 0x180003e70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180003f1b
mov esi, 0x7390
cmp word [rax + 0x40], si
je 0x180003f1b
mov eax, 0x7230
cmp word [rbx + 0x40], ax
je 0x180003f1b
mov eax, 0x7265
cmp word [rbx + 0x40], ax
je 0x180003f1b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [rdi + 4]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180003f1b
lea rax, [0x180003e68]
mov word [rbx + 0x40], si
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800040c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004310
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800041da
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004124
mov rax, qword [0x180020008]
cmp qword [rsp + 0x20], rax
ja 0x180004124
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800040e6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180014080
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180004155
jmp 0x1800041da
cmp dword [rsp + 0x50], 0x10000
jne 0x1800041bd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800041bd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000419b
mov rax, qword [rsp + 0x28]
jmp 0x1800041dc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800041ab
xor eax, eax
jmp 0x1800041dc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800041d5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004310
mov qword [rsp + 0x20], rax
jmp 0x1800040e6
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800041f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004350
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004306
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000424b
mov rax, qword [0x180020008]
cmp qword [rsp + 0x20], rax
ja 0x18000424b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000420d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180014080
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000427c
jmp 0x180004306
cmp dword [rsp + 0x50], 0x10000
jne 0x1800042e4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800042e4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800042c2
mov rax, qword [rsp + 0x28]
jmp 0x180004308
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800042d2
xor eax, eax
jmp 0x180004308
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004301
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004350
mov qword [rsp + 0x20], rax
jmp 0x18000420d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800043a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004930
mov qword [rsp + 0x28], 0
cmp qword [0x180020b38], 0
jne 0x1800043e8
cmp qword [0x180020b30], 0
je 0x1800043e8
mov rax, qword [0x180020b30]
mov qword [0x180020b38], rax
cmp qword [0x180020b38], 0
je 0x18000448e
mov rax, qword [0x180020b38]
cmp qword [rax + 0x10], 0
je 0x18000448e
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000448e
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000448e
mov rax, qword [0x180020b38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004454
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000445b
xor eax, eax
jmp 0x180004609
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180014080
mov rax, qword [rsp + 0x28]
jmp 0x180004609
mov rax, qword [0x180020b30]
mov qword [0x180020b38], rax
jmp 0x1800044b0
mov rax, qword [0x180020b38]
mov rax, qword [rax + 8]
mov qword [0x180020b38], rax
cmp qword [0x180020b38], 0
je 0x1800044fd
cmp qword [0x180020b38], 0
je 0x1800044fb
mov rax, qword [0x180020b38]
cmp qword [rax + 0x10], 0
je 0x1800044fb
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800044fb
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800044fb
jmp 0x18000442c
jmp 0x18000449e
mov rcx, qword [rsp + 0x60]
call fcn.1800067a0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004610
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004607
mov rax, qword [rsp + 0x48]
mov qword [0x180020b38], rax
mov rax, qword [0x180020b38]
mov dword [rax], 0x52727464
mov rax, qword [0x180020b38]
mov qword [rax + 0x10], 0
mov rax, qword [0x180020b38]
mov rcx, qword [0x180020b30]
mov qword [rax + 8], rcx
mov rax, qword [0x180020b38]
mov qword [0x180020b30], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180020b38]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800045b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800045f2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800045ae
mov rax, qword [0x180020b38]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000442c
xor eax, eax
add rsp, 0x58
ret