joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400643f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400643fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006440d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400643f5
lea eax, [rcx + 1]
jmp 0x14006441b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006442e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140064414
sub eax, 3
jb 0x14006444e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006449d
sar eax, 1
movsxd rbp, eax
jb 0x140064484
jmp 0x14006445c
add ebx, ebx
jne 0x14006445a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064484
inc ecx
add ebx, ebx
jne 0x14006446a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064484
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006447d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006446c
add ecx, 2
jmp 0x140064489
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400643b2
jmp 0x1400643fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28a00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400644e9
cmp rsi, rcx
jae 0x1400644f1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400644d0
cmp al, 0x8f
ja 0x1400644d0
cmp byte [rsi - 2], 0xf
je 0x1400644d6
sub al, 0xe8
cmp al, 1
ja 0x1400644ba
cmp rsi, rcx
jae 0x1400644f1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400644c0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400644f1
lodsb al, byte [rsi]
jmp 0x1400644d0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x62000]
mov eax, dword [rdi]
or eax, eax
je 0x14006455a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x734b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400644fe
jns 0x140064533
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14006453d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140064554
mov qword [rbx], rax
add rbx, 8
jmp 0x14006451e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140064594
cmp al, 0xef
ja 0x140064586
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140064566
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140064575
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400645e8
sub rsp, 0xffffffffffffff80
jmp 0x14000b340
Function at 0x140001270
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r9, rcx
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea r8, str.netsh
lea rdx, str.runas
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0xfffffff5
cmp rax, 0x20
jbe case.default.0x1400012f7
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.DNS_disabled_successfully.
call fcn.140001930
lea rdx, [0x140001b00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xf
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 9
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_disable_DNS._Error_code:
mov ebx, eax
call fcn.140001930
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001b00]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xf
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
Function at 0x140002428
Capabilities:
Parse pe header

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

Disassembly:
mov r8, r10
mov r10, 1
xor r10, r10
mov r10, 0xa
mov r10, rcx
xor eax, eax
sub r8, r10
add eax, 0x18
xor r8, r8
syscall
ret
Function at 0x140001af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov r15, r9
mov r12, r8
mov rbx, rdx
mov rdi, qword [rdx + 0x10]
mov rbp, rdi
shr rbp, 4
lea r14d, [rbp + 1]
shl r14d, 4
mov dword [rsp + 0x4f8], r14d
movsxd rsi, r14d
inc rsi
mov rcx, rsi
call fcn.140004adc
mov r13, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0x10
jb 0x140001b58
mov rbx, qword [rbx]
mov rcx, r13
sub rcx, rbx
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140001b60
and edi, 0xf
mov edx, 0x10
sub edx, edi
test edx, edx
jle 0x140001b93
movsxd rax, ebp
shl rax, 4
mov ecx, edi
add rax, r13
add rcx, rax
mov r8d, edx
call sub.VCRUNTIME140.dll_memset
movsxd r14, r14d
mov byte [r14 + r13], 0
mov rcx, rsi
call fcn.140004adc
mov rbp, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.AES.0
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 0
xor ebx, ebx
mov qword [rsp + 0x3fc], rbx
mov dword [rsp + 0x404], ebx
mov r8, r15
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1400043a0
movzx r8d, byte [rsp + 0x38]
test r8b, r8b
je 0x140001cc0
test r14, r14
je 0x140001cc0
movsxd r9, dword [rsp + 0x400]
xor edx, edx
mov rax, r14
div r9
test rdx, rdx
jne 0x140001cc0
mov esi, ebx
mov rbx, r13
mov rdi, rbp
test rax, rax
je 0x140001cc0
nop word [rax + rax]
lea rax, [rsp + 0x428]
test r8b, r8b
je 0x140001c68
xor edx, edx
test r9d, r9d
jle 0x140001c68
lea rcx, [rsp + 0x428]
mov r8, rbx
sub r8, rcx
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
inc edx
cmp edx, dword [rsp + 0x400]
jl 0x140001c52
mov r8, rdi
lea rdx, [rsp + 0x428]
lea rcx, [rsp + 0x30]
call fcn.140003cf0
movsxd r8, dword [rsp + 0x400]
mov rdx, rdi
lea rcx, [rsp + 0x428]
call sub.VCRUNTIME140.dll_memcpy
movsxd r9, dword [rsp + 0x400]
add rbx, r9
add rdi, r9
inc esi
xor edx, edx
mov rax, r14
div r9
movsxd rcx, esi
cmp rcx, rax
jae 0x140001cc0
movzx r8d, byte [rsp + 0x38]
jmp 0x140001c30
mov r8d, dword [rsp + 0x4f8]
mov rdx, rbp
mov rcx, qword [rsp + 0x4f0]
call fcn.140002c20
mov rcx, r13
call fcn.140004824
mov rcx, rbp
call fcn.140004824
nop
mov rax, qword [rsp + 0x4f0]
mov rbx, qword [rsp + 0x500]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fb30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000fb3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000fb4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000fb35
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000fb65
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000fb52
sub eax, 3
jb 0x14000fb7f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000fbb6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000fba6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000fba4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000fb93
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000faf2
jmp 0x14000fb3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000fc02
cmp rsi, rcx
jae 0x14000fc0a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000fbe9
cmp al, 0x8f
ja 0x14000fbe9
cmp byte [rsi - 2], 0xf
je 0x14000fbef
sub al, 0xe8
cmp al, 1
ja 0x14000fbd3
cmp rsi, rcx
jae 0x14000fc0a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000fbd9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000fc0a
lodsb al, byte [rsi]
jmp 0x14000fbe9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x14000fc67
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000fc17
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000fc61
mov qword [rbx], rax
add rbx, 8
jmp 0x14000fc37
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000fca1
cmp al, 0xef
ja 0x14000fc93
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000fc73
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000fc82
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000fcf5
sub rsp, 0xffffffffffffff80
jmp 0x140005590
Function at 0x1800012f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
xor ebx, ebx
mov dword [rsp + 0x68], 1
xor r9d, r9d
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x58]
mov dword [rsp + 0x58], 0x18
lea rdx, [0x180024c50]
lea rcx, [0x180024c60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x180024c58]
lea rcx, [0x180024c48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
movups xmm0, xmmword [str.C:WindowsSystem32cmd.exe]
mov rax, qword [0x180024c60]
xor edx, edx
movups xmm1, xmmword [0x180020318]
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x40], rax
movaps xmmword [rbp - 0x20], xmm0
mov r8d, 0x3c8
mov rax, qword [0x180024c58]
movups xmm0, xmmword [0x180020328]
mov dword [rbp - 0x54], 0x101
movaps xmmword [rbp - 0x10], xmm1
movsd xmm1, qword [0x180020338]
movaps xmmword [rbp], xmm0
mov word [rbp - 0x50], bx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
movsd qword [rbp + 0x10], xmm1
call fcn.180007990
lea rax, [0x180024c30]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, 0x12c
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x180024c48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18000147f
cmp eax, 1
jne 0x18000147a
mov rcx, qword [0x180024c48]
lea r9, [rsp + 0x50]
mov r8d, 0x1ff
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1800064d0
mov rbx, qword [rsp + 0x700]
add rsp, 0x6f0
pop rbp
ret
Function at 0x180001c50
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.180001d40
test eax, eax
je 0x180001c79
lea rcx, str.hello_from_world_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp ebx, 1
jne 0x180001cdc
call fcn.180002470
call fcn.1800049b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180004ee0
lea rdx, [0x180001b50]
lea rcx, [0x180023a50]
call fcn.180003f90
lea rdx, [0x180001c10]
lea rcx, [0x180024c88]
call fcn.180003f90
lea rdx, [0x180001b40]
lea rcx, [0x180023a58]
call fcn.180003f90
call fcn.180004a30
mov eax, ebx
add rsp, 0x20
pop rbx
ret
test ebx, ebx
jne 0x180001d31
call fcn.1800049b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180004ee0
lea rdx, [0x180001b50]
lea rcx, [0x180023a50]
call fcn.180004610
lea rdx, [0x180001c10]
lea rcx, [0x180024c88]
call fcn.180004610
lea rdx, [0x180001b40]
lea rcx, [0x180023a58]
call fcn.180004610
call fcn.180004a30
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180001fc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180007990
jmp 0x180002008
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180002028
jmp 0x1800020c5
cmp dword [rsp + 0x68], 0x1000
jne 0x18000204d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18000204d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18000204f
jmp 0x180001ff3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180002085
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180002085
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18000208a
jmp 0x180001ff3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180001ff3
mov rax, qword [rsp + 0x20]
jmp 0x1800020c7
xor eax, eax
add rsp, 0x88
ret
Function at 0x180002910
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.180002b30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180002a17
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180002974
mov rax, qword [0x180023008]
cmp qword [rsp + 0x20], rax
ja 0x180002974
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180002936
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180007990
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800029a3
jmp 0x180002a17
cmp dword [rsp + 0x50], 0x10000
jne 0x1800029fa
cmp qword [rsp + 0x48], 0x10000
jb 0x1800029fa
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800029e8
mov rax, qword [rsp + 0x28]
jmp 0x180002a19
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180002a12
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180002b30
mov qword [rsp + 0x20], rax
jmp 0x180002936
xor eax, eax
add rsp, 0x68
ret

Function at 0x180002a20
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.180002b70
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180002b23
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180002a7b
mov rax, qword [0x180023008]
cmp qword [rsp + 0x20], rax
ja 0x180002a7b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180002a3d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180007990
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180002aaa
jmp 0x180002b23
cmp dword [rsp + 0x50], 0x10000
jne 0x180002b01
cmp qword [rsp + 0x48], 0x10000
jb 0x180002b01
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002aef
mov rax, qword [rsp + 0x28]
jmp 0x180002b25
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180002b1e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180002b70
mov qword [rsp + 0x20], rax
jmp 0x180002a3d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180002bc0
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.180003150
mov qword [rsp + 0x28], 0
cmp qword [0x180023b48], 0
jne 0x180002c08
cmp qword [0x180023b40], 0
je 0x180002c08
mov rax, qword [0x180023b40]
mov qword [0x180023b48], rax
cmp qword [0x180023b48], 0
je 0x180002cae
mov rax, qword [0x180023b48]
cmp qword [rax + 0x10], 0
je 0x180002cae
mov rax, qword [0x180023b48]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180002cae
mov rax, qword [0x180023b48]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180002cae
mov rax, qword [0x180023b48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180002c74
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180002c7b
xor eax, eax
jmp 0x180002e29
mov rax, qword [0x180023b48]
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.180007990
mov rax, qword [rsp + 0x28]
jmp 0x180002e29
mov rax, qword [0x180023b40]
mov qword [0x180023b48], rax
jmp 0x180002cd0
mov rax, qword [0x180023b48]
mov rax, qword [rax + 8]
mov qword [0x180023b48], rax
cmp qword [0x180023b48], 0
je 0x180002d1d
cmp qword [0x180023b48], 0
je 0x180002d1b
mov rax, qword [0x180023b48]
cmp qword [rax + 0x10], 0
je 0x180002d1b
mov rax, qword [0x180023b48]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180002d1b
mov rax, qword [0x180023b48]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180002d1b
jmp 0x180002c4c
jmp 0x180002cbe
mov rcx, qword [rsp + 0x60]
call fcn.1800050b0
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.180002e30
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180002e27
mov rax, qword [rsp + 0x48]
mov qword [0x180023b48], rax
mov rax, qword [0x180023b48]
mov dword [rax], 0x52727464
mov rax, qword [0x180023b48]
mov qword [rax + 0x10], 0
mov rax, qword [0x180023b48]
mov rcx, qword [0x180023b40]
mov qword [rax + 8], rcx
mov rax, qword [0x180023b48]
mov qword [0x180023b40], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180023b48]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180002dd8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180002e12
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 0x180002dce
mov rax, qword [0x180023b48]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180002c4c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180006d48
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180006dd9
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180006dd9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006dd9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180006dbd
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180006db7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180006dbf
add rdx, 0x28
jmp 0x180006d9c
xor edx, edx
test rdx, rdx
jne 0x180006dc8
xor al, al
jmp 0x180006ddf
test dword [rdx + 0x24], 0x80000000
je 0x180006dd5
xor al, al
jmp 0x180006ddf
mov al, 1
jmp 0x180006ddf
xor al, al
jmp 0x180006ddf
add rsp, 0x18
ret

Function at 0x18000ba70
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 0x18000badf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000badf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000badf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000badf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000badf
cmp dword [rcx + 0x84], 0xe
jbe 0x18000badf
cmp dword [rcx + 0xf8], 0
je 0x18000badf
mov ecx, ebx
call fcn.18000bb9c
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.18000b96c
nop
cmp dword [rbp + 0x20], 0
je 0x18000bb2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000bb38
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000ba70