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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180058240]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebp, 0xffff
movzx esi, dx
mov rdi, rcx
cmp bp, dx
jne 0x18001e0e1
xor eax, eax
jmp 0x18001e222
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
test rax, rax
je 0x18001e122
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18001e122
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x18001e21a
cmp qword [rdi + 0x80], 0
je 0x18001e217
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18001e15c
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18001e16a
movzx ecx, si
jmp 0x18001e1be
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], si
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18001e1d7
sub eax, 1
je 0x18001e1d7
cmp eax, 2
jne 0x18001e217
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, bp
cmove si, bp
movzx eax, si
jmp 0x18001e21a
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18001e205
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18001e217
lea rax, [rsp + 0x40]
mov byte [rdi + 0x72], 1
cmp qword [rsp + 0x50], rax
cmovne bp, si
movzx eax, bp
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180029320
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x180020bd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rdi, rcx
mov r8d, dword [0x180058f40]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r8*8]
xor r14d, r14d
mov eax, dword [rcx + rax]
cmp dword [0x180058e00], eax
jg 0x180020dae
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x20], xmm0
movabs rcx, 0xcbf29ce484222325
mov rax, qword [rsi + 8]
lea r8, [rax + rax]
mov rdx, r14
test r8, r8
je 0x180020c64
movabs r10, 0x100000001b3
mov r9, qword [rsp + 0x20]
nop
movzx eax, byte [rdx + r9]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r8
jb 0x180020c50
and rcx, qword [0x180058df0]
add rcx, rcx
mov rax, qword [0x180058dd8]
mov r8, qword [rax + rcx*8 + 8]
cmp r8, qword [0x180058dc8]
je 0x180020cd1
mov r11, qword [rax + rcx*8]
movaps xmmword [rsp + 0x20], xmm0
mov r10, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [r8 + 0x10]
cmp r10, qword [r8 + 0x18]
jne 0x180020cc6
mov rdx, r10
test r10, r10
je 0x180020cd4
mov r9, rbx
sub r9, rcx
nop
movzx eax, word [rcx + r9]
cmp ax, word [rcx]
jne 0x180020cc6
add rcx, 2
sub rdx, 1
jne 0x180020cb0
jmp 0x180020cd4
cmp r8, r11
je 0x180020cd1
mov r8, qword [r8 + 8]
jmp 0x180020c96
mov r8, r14
mov rax, qword [0x180058dc8]
test r8, r8
cmovne rax, r8
cmp rax, qword [0x180058dc8]
je 0x180020cff
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdi + 0x10], xmm1
jmp 0x180020d8c
cmp qword [rsi + 8], 0
mov rcx, r14
je 0x180020d0c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x180020d2c
movups xmm0, xmmword [rsi]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
movups xmmword [rdi], xmm0
jmp 0x180020d83
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rdx, rbx
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x180020d1a
movups xmm6, xmmword [rsi]
movups xmmword [rsp + 0x48], xmm6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x48]
mov r8, rsi
lea rdx, [rsp + 0x20]
lea rcx, [0x180058dc0]
call fcn.180020590
movups xmmword [rdi], xmm6
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm0
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
ret
lea rcx, [0x180058e00]
call fcn.18002921c
cmp dword [0x180058e00], 0xffffffff
jne 0x180020c1e
mov ecx, 0x40
call fcn.180028dc0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [0x180058dc8], rax
mov qword [0x180058dd8], r14
xorps xmm0, xmm0
movdqa xmmword [0x180058de0], xmm0
mov qword [0x180058df0], 7
mov qword [0x180058df8], 8
mov dword [0x180058dc0], 0x3f800000
mov r8, rax
mov edx, 0x10
lea rcx, [0x180058dd8]
call fcn.180001e40
nop
lea rcx, [0x18002c940]
call fcn.18002915c
nop
lea rcx, [0x180058e00]
call fcn.1800291b0
jmp 0x180020c1e
Function at 0x1800222b0
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r11, rdx
movzx eax, byte [r8 + 1]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 4]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 5]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 6]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 7]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x18002236e
mov rcx, qword [r8]
mov rdx, qword [rdx]
cmp rcx, qword [rax + 0x10]
je 0x180022370
cmp rax, rdx
je 0x18002236e
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x180022351
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
xor eax, eax
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
Function at 0x180022bb0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180022d8f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180001e40
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180022d54
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180022ccc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180022d43
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180022d09
mov r10, qword [rdx]
cmp r10, rax
je 0x180022d03
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180022d43
cmp r9, rdx
je 0x180022d1f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180022d69
cmp r9, rdx
jne 0x180022d10
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180022c50
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180022d43
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x180024c70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
mov r8, rdx
mov rbx, rcx
test rcx, rcx
je 0x180024d31
cmp byte [rcx + 0x40], 1
jne 0x180024d31
cmp qword [rdx + 0x18], 7
mov rcx, rdx
mov r10, qword [rdx + 0x10]
jbe 0x180024ca0
mov rcx, qword [rdx]
xor edx, edx
movabs r9, 0xcbf29ce484222325
mov r11, rbx
add r10, r10
je 0x180024ce8
mov qword [rsp + 0x50], rdi
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rdx
xor r9, rax
imul r9, rdi
cmp rdx, r10
jb 0x180024cd0
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
mov rcx, r11
call fcn.180006d50
mov rax, qword [rax + 8]
test rax, rax
je 0x180024d0e
cmp rax, qword [rbx + 8]
je 0x180024d0e
add rax, 0x30
add rsp, 0x40
pop rbx
ret
lea rdx, str.Key_not_found_in_JSON_object
lea rcx, [rsp + 0x20]
call fcn.180024a60
lea rdx, [0x1800551e0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Trying_to_access_key_in_non_object_JSON_value
lea rcx, [rsp + 0x20]
call fcn.1800125d0
lea rdx, [0x180055118]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x180024d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x60
mov r8, rdx
mov rbx, rcx
test rcx, rcx
je 0x180024e21
cmp byte [rcx + 0x40], 1
jne 0x180024e21
cmp qword [rdx + 0x18], 7
mov rcx, rdx
mov r10, qword [rdx + 0x10]
jbe 0x180024d90
mov rcx, qword [rdx]
xor edx, edx
movabs r9, 0xcbf29ce484222325
mov r11, rbx
add r10, r10
je 0x180024dd8
mov qword [rsp + 0x70], rdi
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rdx
xor r9, rax
imul r9, rdi
cmp rdx, r10
jb 0x180024dc0
mov rdi, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov rcx, r11
call fcn.180006d50
mov rax, qword [rax + 8]
test rax, rax
je 0x180024dfe
cmp rax, qword [rbx + 8]
je 0x180024dfe
add rax, 0x30
add rsp, 0x60
pop rbx
ret
lea rdx, str.Key_not_found_in_JSON_object
lea rcx, [rsp + 0x30]
call fcn.180024a60
lea rdx, [0x1800551e0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Trying_to_access_key_in_non_object_JSON_value
lea rcx, [rsp + 0x48]
call fcn.1800125d0
lea rdx, [0x180055118]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x180024e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x40], 1
mov rbx, rcx
jne 0x180024f0e
cmp qword [rdx + 0x18], 7
mov r8, rdx
mov r10, qword [rdx + 0x10]
jbe 0x180024eb0
mov r8, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
add r10, r10
je 0x180024ee4
movabs r11, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, r10
jb 0x180024ed0
mov r8, rdx
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.180006d50
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x180024f01
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 8]
setne al
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x180026b30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r8, qword [rdx + 8]
sub r8, qword [rdx]
mov rdx, qword [rdx]
jmp 0x180026b30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
lea r9, [rsp + 0x48]
mov rsi, rdx
mov r8d, 0x40
mov rdx, rbx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180026b96
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180026bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180026c95
nop dword [rax]
cmp rbx, qword [0x1800581f8]
jb 0x180026bfe
cmp rbx, qword [0x180058200]
ja 0x180026bfe
sub rbx, 0x8000000
jmp 0x180026c8c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180026c95
cmp dword [rsp + 0x40], 0x10000
jne 0x180026c70
cmp qword [rsp + 0x38], 0x10000
jb 0x180026c70
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180026c97
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180026c95
sub rbx, 0x10000
jmp 0x180026c8c
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180026be0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180026cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180026cd2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180026d97
nop dword [rax + rax]
cmp rbx, qword [0x1800581f8]
jb 0x180026cfe
cmp rbx, qword [0x180058200]
ja 0x180026cfe
add rbx, 0x8000000
jmp 0x180026d8e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180026d97
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180026d73
cmp rcx, 0x10000
jb 0x180026d73
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180026d99
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180026d97
add rbx, 0x10000
jmp 0x180026d8e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180026d8e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180026ce0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180026db0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x180026dce
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x180026dea
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180026e01
cmp byte [rcx + 1], 0x25
jne 0x180026e45
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180026e0d
cmp al, 0xe9
jne 0x180026e45
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180026e30
cmp rcx, 0xffffffff80000000
jae 0x180026e27
lea rdi, [rcx + 0x7ff80000]
jmp 0x180026e45
mov rdi, 0xfffffffffff80000
jmp 0x180026e45
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180026e45
mov ebx, 0x80000
mov rax, qword [0x180058ea8]
mov rcx, qword [0x180058ea0]
test rax, rax
jne 0x180026e67
test rcx, rcx
je 0x180026e7e
mov rax, rcx
mov qword [0x180058ea8], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180026e7e
cmp rdx, rbx
jb 0x180026e7e
cmp rdx, rdi
jbe 0x180026f38
mov qword [0x180058ea8], rcx
mov rax, rcx
test rcx, rcx
je 0x180026ec2
mov rdx, rcx
test rcx, rcx
je 0x180026eac
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180026eac
cmp rcx, rbx
jb 0x180026eac
cmp rcx, rdi
jbe 0x180026f38
mov rax, qword [rax + 8]
mov qword [0x180058ea8], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x180026e90
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180026f90
test rax, rax
je 0x180026f7b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x180058ea8], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x180058ea0]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x180058ea0], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180026f20
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x180026f7b
cmp rdx, rdi
ja 0x180026f7b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x180032680]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800272b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1800272dd
xor al, al
jmp 0x18002731f
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800272ee
xor al, al
jmp 0x18002731f
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180027315
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180027315
mov al, 1
jmp 0x18002731f
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180027820
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180058eb8], eax
je 0x180027846
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x180058ebc]
test eax, eax
jne 0x180027980
test rbp, rbp
jne 0x180027863
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18002787f
cmp qword [rsi], 0
jne 0x18002788b
mov dword [0x180058ebc], 6
mov qword [0x180058ec0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180028dc0
mov rdi, rax
test rax, rax
jne 0x1800278af
lea ebx, [rax + 8]
jmp 0x180027955
mov rcx, qword [rsi]
xor edx, edx
call fcn.180027770
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180027770
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180027947
cmp rdx, 0x1e
ja 0x180027947
cmp qword [rbx + 0x50], rax
jne 0x180027947
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180027909
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x180027955
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x180058ed0]
mov qword [rdi], rax
xor eax, eax
mov qword [0x180058ed0], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x180058eb0], 0
mov ebx, 9
jne 0x180027960
mov dword [0x180058ebc], ebx
test rdi, rdi
je 0x18002796d
mov edx, 0x30
mov rcx, rdi
call fcn.180028dfc
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x180058ec0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret
Function at 0x180027990
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180058eb8], eax
je 0x1800279ab
mov eax, 0x10dd
add rsp, 0x28
ret
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180058ed0]
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x20], rdi
test rbx, rbx
je 0x180027a44
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x180027a2c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x180027a2c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.180028dfc
mov rbx, rdi
test rdi, rdi
jne 0x1800279d0
mov qword [0x180058ed0], rsi
call sub.KERNEL32.dll_GetCurrentProcess
mov rbx, qword [0x180058ea0]
mov rdi, rax
test rbx, rbx
je 0x180027a92
nop
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rdi
call sub.KERNEL32.dll_FlushInstructionCache
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180027a60
mov rdi, qword [0x180058ec8]
test rdi, rdi
je 0x180027ac1
nop
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.180028dfc
mov rdi, rbx
test rbx, rbx
jne 0x180027aa0
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov qword [0x180058ec8], rsi
mov dword [0x180058eb8], esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x28
ret

Function at 0x180027af0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180058eb8], 0
jne 0x180027b95
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180058eb8], ecx
jne 0x180027b95
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180058ea0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180058ed0], rdi
mov qword [0x180058ec8], rdi
mov qword [0x180058ec0], rdi
test rbx, rbx
je 0x180027b7e
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x180027b77
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180027b50
jmp 0x180027b7e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x180058ebc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret