joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002b5c
Capabilities:
Access peb ldr_data
Create thread
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
call fcn.180001650
xor ebx, ebx
test al, al
je 0x180002e4c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180003710]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movabs rax, 0xf09470fd440bb584
mov qword [rbp + 0x60], rax
movabs rax, 0x1afea9ab1f8a3491
mov qword [rbp + 0x68], rax
movabs rcx, 0x9574460e41014e9d
mov qword [rbp + 0x70], rcx
movabs rax, 0x70c4257683426be
mov qword [rbp + 0x78], rax
movabs rdi, 0x95e703bc2166d4c3
mov qword [rbp + 0xc0], rdi
movabs rsi, 0x7692cd8566e656fc
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rax
vmovdqu ymm0, ymmword [rbp + 0x60]
vpxor ymm1, ymm0, ymmword [rbp + 0xc0]
vmovdqa ymmword [rbp + 0x60], ymm1
lea rcx, [rbp + 0x60]
mov qword [rbp + 0x20], rcx
mov r11d, 0x811c9dc5
mov edx, r11d
vzeroupper
movsx eax, byte [rcx]
inc rcx
mov qword [rbp + 0x20], rcx
test al, al
jne 0x180002d8d
mov dword [rbp], edx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rcx, r9
mov qword [rbp + 0x48], rcx
mov rdx, qword [rcx + 0x60]
movzx eax, word [rcx + 0x58]
shr rax, 1
lea r10, [rdx + rax*2]
mov r8d, r11d
mov qword [rbp + 0x28], rdx
cmp rdx, r10
je 0x180002c91
movsx eax, byte [rdx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rdx, 2
jmp 0x180002c75
cmp r8d, dword [rbp]
jne 0x180002c9d
mov rax, qword [rcx + 0x30]
jmp 0x180002cac
mov rcx, qword [rcx]
cmp rcx, r9
jne 0x180002d84
mov rax, rbx
mov qword [0x1803a6d60], rax
movabs rax, 0xf48b53c5550fba96
mov qword [rbp + 0x10], rax
movabs rax, 0x76fea1e148943385
mov qword [rbp + 0x18], rax
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rsi
movdqa xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x10], xmm0
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x30], rcx
mov edx, r11d
movsx eax, byte [rcx]
inc rcx
mov qword [rbp + 0x30], rcx
test al, al
jne 0x180002d77
mov dword [rbp], edx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rcx, r9
mov qword [rbp + 0x40], rcx
mov rdx, qword [rcx + 0x60]
movzx eax, word [rcx + 0x58]
shr rax, 1
lea r10, [rdx + rax*2]
mov r8d, r11d
mov qword [rbp + 0x38], rdx
cmp rdx, r10
je 0x180002d51
movsx eax, byte [rdx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rdx, 2
jmp 0x180002d35
cmp r8d, dword [rbp]
jne 0x180002d5d
mov rbx, qword [rcx + 0x30]
jmp 0x180002d65
mov rcx, qword [rcx]
cmp rcx, r9
jne 0x180002d71
mov qword [0x1803a6d58], rbx
jmp 0x180002e4a
mov qword [rbp + 0x40], rcx
jmp 0x180002d23
xor eax, edx
imul edx, eax, 0x1000193
jmp 0x180002cfa
mov qword [rbp + 0x48], rcx
jmp 0x180002c63
xor eax, edx
imul edx, eax, 0x1000193
jmp 0x180002c36
mov al, 1
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18002dad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x18002dadd
mov rax, rdx
ret

Function at 0x180035150
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
cmp byte [rcx + 0x2c], sil
je 0x180035280
call sub.MSVCP140.dll__Xtime_get_ticks
mov rdx, rax
movabs rax, 0x346dc5d63886594b
imul rdx
mov rbx, rdx
sar rbx, 0xb
mov rax, rbx
shr rax, 0x3f
add rbx, rax
movsxd rax, dword [0x18037bc6c]
add rax, qword [0x1803a3e00]
cmp rbx, rax
je 0x180035280
jl 0x180035280
lea ecx, [rsi + 0x57]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x18003525b
lea ecx, [rsi + 0x26]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x18003525b
lea ecx, [rsi + 0x41]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180035247
lea ecx, [rsi + 0x25]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180035247
lea ecx, [rsi + 0x53]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180035238
lea ecx, [rsi + 0x28]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180035238
lea ecx, [rsi + 0x44]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180035229
lea ecx, [rsi + 0x27]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18003526d
movss xmm0, dword [rdi + 0x24]
addss xmm0, dword [0x180155488]
jmp 0x180035254
movss xmm0, dword [rdi + 0x28]
addss xmm0, dword [0x180155488]
jmp 0x180035268
movss xmm0, dword [rdi + 0x24]
subss xmm0, dword [0x180155488]
movss dword [rdi + 0x24], xmm0
jmp 0x18003526d
movss xmm0, dword [rdi + 0x28]
subss xmm0, dword [0x180155488]
movss dword [rdi + 0x28], xmm0
mov rcx, rdi
call fcn.18003dea0
mov qword [rdi + 0x24], rsi
mov qword [0x1803a3e00], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18003fdcc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18003fe28
cmp byte [rcx + 0x71], 0
je 0x18003fe28
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18003fe70
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003fe35
sub eax, 1
je 0x18003fe39
cmp eax, 2
jne 0x18003fe70
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x18003fe67
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18003fe70
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18003fe2a
xor al, al
jmp 0x18003fe2a
Function at 0x18004e1ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x18004e214
xor eax, eax
jmp 0x18004e32c
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18004e242
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x18004e242
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x18004e32c
cmp qword [rbx + 0x80], 0
je 0x18004e32a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18004e27d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18004e2a1
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x18004e32a
lea rax, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18004e2ef
sub eax, 1
je 0x18004e2ef
cmp eax, 2
jne 0x18004e32a
movsx ecx, byte [rbp - 0x30]
jmp 0x18004e28a
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x18004e31a
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x18004e32a
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x18004e32c
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180061780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800617ad
xor eax, eax
jmp 0x18006189c
cmp qword [rcx + 0x68], 0
je 0x1800617bf
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x18006189c
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1800617d6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800617d8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180061805
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
mov rbx, rbp
je 0x180061896
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180061843
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
jmp 0x180061871
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1800618b5
cmp rbp, r15
ja 0x18006184b
test rbx, rbx
je 0x180061896
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x180061899
Function at 0x1800618bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1800618ed
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x180061960
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180061904
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180061906
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18006195a
test ecx, ecx
jle 0x18006193a
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x18006195a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18006195a
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18006ab74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18006ab9b
and qword [r8], 0
call fcn.18006ac80
mov rbx, rax
test rax, rax
je 0x18006ac63
mov rcx, rax
call fcn.18006aafc
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18006ac5a
mov rax, qword [0x1803a4170]
test rax, rax
je 0x18006abd3
inc dword [rax + 0xf4]
mov rdx, qword [0x1803a4180]
lea rcx, [rdi + rbp]
call qword [0x18037bed8]
mov rsi, rax
test rax, rax
je 0x18006ac5a
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18006ac32
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1803a4170]
test rax, rax
je 0x18006ac20
dec dword [rax + 0xf4]
mov rdx, qword [0x1803a4180]
mov rcx, rsi
call qword [0x18037bee0]
jmp 0x18006ac63
test ebp, ebp
jle 0x18006ac44
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18006ac55
mov qword [r14], rdi
mov rax, rsi
jmp 0x18006ac65
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18006afc8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18006aff6
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1801557e0]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18006afd3
not r8d
mov eax, r8d
ret

Function at 0x18006b000
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18006b05a
mov r11b, 0x23
lea rdi, [0x1801557e0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18006b044
cmp rdx, 2
jb 0x18006b044
cmp byte [r10], r11b
jne 0x18006b044
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18006b022
jmp 0x18006b09b
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18006b09b
mov r11b, 0x23
lea rdi, [0x1801557e0]
cmp dl, r11b
jne 0x18006b07f
cmp byte [r10], r11b
jne 0x18006b07f
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18006b06d
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18006cdf8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c88], 0
lea rbx, [rcx + 0x5c90]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18006ce91
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x18006ce49
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180078c80
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1800786c0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c88]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1803a4178]
movsxd r8, eax
mov rax, qword [rdi + 0x5c98]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18006ce99
mov rcx, rbx
call fcn.1800786c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800743c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1803a4170]
mov rbx, rcx
and dword [rax + 0x5bec], 0
test rcx, rcx
je 0x180074431
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18007443c
lea rdx, [0x180157144]
mov rcx, rbx
mov rdi, rax
call fcn.18006ac80
mov rbx, rax
test rax, rax
je 0x180074431
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a5e94
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800a5ede
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x1803a7d00]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x1800a5f1b
cmp rbx, rsi
jb 0x1800a5f16
cmp rbx, r15
jae 0x1800a5f16
cmp qword [rbx + 8], 0
jne 0x1800a6077
mov rbx, qword [rbx]
jmp 0x1800a5efc
mov r14, rdi
cmp rdi, rsi
jb 0x1800a5f9f
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x1800a5f96
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a5f96
cmp dword [rbp - 0x10], 0x10000
je 0x1800a5f66
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x1800a5f96
jmp 0x1800a5f32
test r14, r14
je 0x1800a5f96
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800a6037
cmp r14, rsi
jae 0x1800a5f23
test rbx, rbx
jne 0x1800a6037
cmp rdi, r15
ja 0x1800a6077
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800a6077
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a6077
cmp dword [rbp - 0x10], 0x10000
je 0x1800a600d
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x1800a5fc6
test rdi, rdi
je 0x1800a6077
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1800a5f99
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800a604a
mov rax, qword [0x1803a7d00]
mov qword [rbx], rax
mov qword [0x1803a7d00], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800a698c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x40]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1803a7cf0]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [r8 - 5]
cmove rbp, r8
lea rdi, [r8 - 5]
test al, al
lea r14, [rcx*2 + 5]
cmove rdi, r8
mov rdx, r14
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800a69f7
mov eax, 0xa
jmp 0x1800a6a83
test esi, esi
je 0x1800a6a19
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800a6a3a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800a6a3a
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800a6a34
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800a6a3a
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800a6fac
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x1800a7012
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800a7003
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a6ff9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800a6fcd
mov r8, qword [rbx]
mov rcx, qword [0x1803a6a20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret