joyce8/EMBER2024-capa huggingface dataset:
Function at 0x137f920
Capabilities:
Encode data using xor

Disassembly:
jmp 0x137f92a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x137f953
pop rbp
sub rbp, 0x33
sub rbp, 0xf7f920
sub rsp, 0x20
jmp 0x137f972
mov rax, 0xf7f920
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8ef7950c
xor byte [rax], dl
inc rax
dec rcx
jne 0x137f991
jmp 0x137f9a8
test ebp, r12d
xchg dword [rbp + 0xc0c0c30], eax
invalid
Function at 0x180001f80
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.18000199c
xor ebx, ebx
test al, al
je 0x180002270
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180002b34]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movabs rax, 0x638c852e086942fe
mov qword [rbp + 0x60], rax
movabs rax, 0x7a23781006e9639b
mov qword [rbp + 0x68], rax
movabs rcx, 0x217dc9f13ed3f723
mov qword [rbp + 0x70], rcx
movabs rax, 0x30cbd5e058f00158
mov qword [rbp + 0x78], rax
movabs rdi, 0x6fff66f6d0423b9
mov qword [rbp + 0xc0], rdi
movabs rsi, 0x164f1c3e7f8501f6
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 0x1800021b1
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 0x1800020b5
movsx eax, byte [rdx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rdx, 2
jmp 0x180002099
cmp r8d, dword [rbp]
jne 0x1800020c1
mov rax, qword [rcx + 0x30]
jmp 0x1800020d0
mov rcx, qword [rcx]
cmp rcx, r9
jne 0x1800021a8
mov rax, rbx
mov qword [0x180263d40], rax
movabs rax, 0x6793a616196d4dec
mov qword [rbp + 0x10], rax
movabs rax, 0x1623705a51f7648f
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 0x18000219b
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 0x180002175
movsx eax, byte [rdx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rdx, 2
jmp 0x180002159
cmp r8d, dword [rbp]
jne 0x180002181
mov rbx, qword [rcx + 0x30]
jmp 0x180002189
mov rcx, qword [rcx]
cmp rcx, r9
jne 0x180002195
mov qword [0x180263d38], rbx
jmp 0x18000226e
mov qword [rbp + 0x40], rcx
jmp 0x180002147
xor eax, edx
imul edx, eax, 0x1000193
jmp 0x18000211e
mov qword [rbp + 0x48], rcx
jmp 0x180002087
xor eax, edx
imul edx, eax, 0x1000193
jmp 0x18000205a
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 0x180032080
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 0x18003208d
mov rax, rdx
ret

Function at 0x180039974
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 0x180039aa4
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 [0x180232c1c]
add rax, qword [0x180260d20]
cmp rbx, rax
je 0x180039aa4
jl 0x180039aa4
lea ecx, [rsi + 0x57]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a7f
lea ecx, [rsi + 0x26]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a7f
lea ecx, [rsi + 0x41]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a6b
lea ecx, [rsi + 0x25]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a6b
lea ecx, [rsi + 0x53]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a5c
lea ecx, [rsi + 0x28]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a5c
lea ecx, [rsi + 0x44]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180039a4d
lea ecx, [rsi + 0x27]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180039a91
movss xmm0, dword [rdi + 0x24]
addss xmm0, dword [0x180169550]
jmp 0x180039a78
movss xmm0, dword [rdi + 0x28]
addss xmm0, dword [0x180169550]
jmp 0x180039a8c
movss xmm0, dword [rdi + 0x24]
subss xmm0, dword [0x180169550]
movss dword [rdi + 0x24], xmm0
jmp 0x180039a91
movss xmm0, dword [rdi + 0x28]
subss xmm0, dword [0x180169550]
movss dword [rdi + 0x28], xmm0
mov rcx, rdi
call fcn.180042c88
mov qword [rdi + 0x24], rsi
mov qword [0x180260d20], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180044b8c
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 0x180044be8
cmp byte [rcx + 0x71], 0
je 0x180044be8
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180044c30
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 0x180044bf5
sub eax, 1
je 0x180044bf9
cmp eax, 2
jne 0x180044c30
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 0x180044c27
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 0x180044c30
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180044bea
xor al, al
jmp 0x180044bea
Function at 0x18005444c
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 0x180054474
xor eax, eax
jmp 0x18005458c
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800544a2
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x1800544a2
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 0x18005458c
cmp qword [rbx + 0x80], 0
je 0x18005458a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800544dd
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 0x180054501
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 0x18005458a
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 0x18005454f
sub eax, 1
je 0x18005454f
cmp eax, 2
jne 0x18005458a
movsx ecx, byte [rbp - 0x30]
jmp 0x1800544ea
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x18005457a
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 0x18005458a
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x18005458c
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 0x180068634
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 0x180068661
xor eax, eax
jmp 0x180068750
cmp qword [rcx + 0x68], 0
je 0x180068673
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 0x180068750
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x18006868a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18006868c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800686b9
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 0x18006874a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800686f7
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 0x180068725
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 0x180068769
cmp rbp, r15
ja 0x1800686ff
test rbx, rbx
je 0x18006874a
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 0x18006874d
Function at 0x180068770
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 0x1800687a1
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 0x180068814
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1800687b8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800687ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18006880e
test ecx, ecx
jle 0x1800687ee
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 0x18006880e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18006880e
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 0x180071a28
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 0x180071a4f
and qword [r8], 0
call fcn.180071b34
mov rbx, rax
test rax, rax
je 0x180071b17
mov rcx, rax
call fcn.1800719b0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180071b0e
mov rax, qword [0x1802610a0]
test rax, rax
je 0x180071a87
inc dword [rax + 0xf4]
mov rdx, qword [0x1802610b0]
lea rcx, [rdi + rbp]
call qword [0x180232e80]
mov rsi, rax
test rax, rax
je 0x180071b0e
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 0x180071ae6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1802610a0]
test rax, rax
je 0x180071ad4
dec dword [rax + 0xf4]
mov rdx, qword [0x1802610b0]
mov rcx, rsi
call qword [0x180232e88]
jmp 0x180071b17
test ebp, ebp
jle 0x180071af8
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 0x180071b09
mov qword [r14], rdi
mov rax, rsi
jmp 0x180071b19
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 0x180071e7c
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x180071eb4
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 0x180071f0e
mov r11b, 0x23
lea rdi, [0x1801699e0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180071ef8
cmp rdx, 2
jb 0x180071ef8
cmp byte [r10], r11b
jne 0x180071ef8
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 0x180071ed6
jmp 0x180071f4f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180071f4f
mov r11b, 0x23
lea rdi, [0x1801699e0]
cmp dl, r11b
jne 0x180071f33
cmp byte [r10], r11b
jne 0x180071f33
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 0x180071f21
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180073cac
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 0x180073d45
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x180073cfd
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.18007fb5c
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18007f59c
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, [0x1802610a8]
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 0x180073d4d
mov rcx, rbx
call fcn.18007f59c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18007b27c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1802610a0]
mov rbx, rcx
and dword [rax + 0x5bec], 0
test rcx, rcx
je 0x18007b2e5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18007b2f0
lea rdx, [0x18016b204]
mov rcx, rbx
mov rdi, rax
call fcn.180071b34
mov rbx, rax
test rax, rax
je 0x18007b2e5
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 0x1800ad190
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 0x1800ad1da
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x180264e00]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x1800ad217
cmp rbx, rsi
jb 0x1800ad212
cmp rbx, r15
jae 0x1800ad212
cmp qword [rbx + 8], 0
jne 0x1800ad373
mov rbx, qword [rbx]
jmp 0x1800ad1f8
mov r14, rdi
cmp rdi, rsi
jb 0x1800ad29b
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x1800ad292
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ad292
cmp dword [rbp - 0x10], 0x10000
je 0x1800ad262
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x1800ad292
jmp 0x1800ad22e
test r14, r14
je 0x1800ad292
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 0x1800ad333
cmp r14, rsi
jae 0x1800ad21f
test rbx, rbx
jne 0x1800ad333
cmp rdi, r15
ja 0x1800ad373
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 0x1800ad373
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ad373
cmp dword [rbp - 0x10], 0x10000
je 0x1800ad309
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 0x1800ad2c2
test rdi, rdi
je 0x1800ad373
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 0x1800ad295
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 0x1800ad346
mov rax, qword [0x180264e00]
mov qword [rbx], rax
mov qword [0x180264e00], 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 0x1800adc8c
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 [0x180264df0]
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 0x1800adcf7
mov eax, 0xa
jmp 0x1800add83
test esi, esi
je 0x1800add19
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 0x1800add3a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800add3a
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800add34
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800add3a
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 0x1800ae2ac
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 0x1800ae312
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800ae303
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 0x1800ae2f9
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 0x1800ae2cd
mov r8, qword [rbx]
mov rcx, qword [0x180263950]
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