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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx ebp, r8b
movaps xmm6, xmm1
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x18002241e
mov rdx, qword [rcx]
movabs rsi, 0xcbf29ce484222325
mov r9, rsi
xor edi, edi
mov ecx, edi
movabs r15, 0x100000001b3
test r10, r10
je 0x180022453
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r15
inc rcx
cmp rcx, r10
jb 0x180022440
mov r8, r14
lea rdx, [rsp + 0x20]
call fcn.180022bc0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180022475
mov rbx, qword [0x1800e8568]
cmp rcx, rbx
jne 0x1800224b8
lea rcx, [rsp + 0x20]
call fcn.180022de0
mov rbx, rax
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.18001edf0
mov rax, qword [rbx]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.1800225f0
nop
lea rcx, [rsp + 0x40]
call fcn.18001f4d0
mov rbx, qword [0x1800e8568]
mov rdx, qword [r14 + 0x10]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1800224c9
mov rcx, qword [r14]
test rdx, rdx
je 0x1800224e3
nop
movzx eax, byte [rcx + rdi]
xor rsi, rax
imul rsi, r15
inc rdi
cmp rdi, rdx
jb 0x1800224d0
mov r9, rsi
mov r8, r14
lea rdx, [rsp + 0x30]
call fcn.180022bc0
mov rcx, qword [rax + 8]
test rcx, rcx
cmovne rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.180022de0
mov rax, qword [rax]
sub rax, qword [rbx + 0x30]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1800d41e8]
comiss xmm0, xmm6
jb 0x180022546
test bpl, bpl
je 0x18002253a
lea rcx, [rsp + 0x20]
call fcn.180022de0
mov rax, qword [rax]
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.18001f4d0
mov al, 1
jmp 0x180022550
mov rcx, r14
call fcn.18001f4d0
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800a3dc0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18002bdf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18002be4d
lea rbx, [0x1800afbf0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18002be34
cmp r10, 2
jb 0x18002be34
cmp byte [r9], r8b
jne 0x18002be34
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18002be10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18002be8f
lea rbx, [0x1800afbf0]
cmp r8b, 0x23
jne 0x18002be73
cmp byte [r9], r8b
jne 0x18002be73
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18002be60
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18002bfd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18002bfea
mov qword [r8], 0
lea rdx, [0x1800d0e90]
call fcn.18002bea0
mov rbx, rax
test rax, rax
jne 0x18002c00a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18002c0e3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18002c0e3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18002c0e3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18002c0e3
cmp rdi, 0xffffffffffffffff
je 0x18002c0e3
mov rax, qword [0x1800ea290]
test rax, rax
je 0x18002c080
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18002c0e3
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]
mov rcx, rbx
cmp rax, rdi
je 0x18002c0d0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800ea290]
test rax, rax
je 0x18002c0c5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18002c0ec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18002c0de
mov qword [r14], rdi
mov rax, rsi
jmp 0x18002c0ee
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18002e4b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x1800afbf0]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f40], ebx
jne 0x18002e544
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180040b60
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180031b20
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180031b70
lea r11, [0x1800afbf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180031b53
cmp byte [r8], r9b
jne 0x180031b53
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180031b40
mov rcx, qword [0x1800ea290]
not eax
movsxd rdx, dword [rcx + 0x3ed8]
mov r9, qword [rcx + 0x3ee0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180031bd1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180031bc9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180031bcc
mov rdx, r8
test rdx, rdx
jne 0x180031ba0
cmp r9, r10
je 0x180031be0
cmp dword [r9], eax
jne 0x180031be0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18003f470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca8], 0
lea rbx, [rcx + 0x5cb0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18003f517
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18003f4ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180042d70
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18002c430
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800ea280]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18003f51f
mov rcx, rbx
call fcn.18002c430
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18003f9a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800ea290]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18003fa03
mov qword [rsp], rbx
lea rbx, [0x1800afbf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003f9e3
cmp byte [r8], r9b
jne 0x18003f9e3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18003f9d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c20]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18003fa37
mov r10, qword [r10 + 0x5c28]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18003fa3e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18003fa24
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180064e40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180064ea1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180064e60
mov ecx, dword [r9]
jmp 0x180064f8b
cmp ecx, 0x4e0
jb 0x180064f8b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180064ec0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180064f10
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x18006c520
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], r12
mov rsi, rcx
mov qword [rsp + 0x40], r13
mov r14, r9
mov qword [rsp + 0x38], r15
mov r13, r8
lea r15, [r8 - 1]
mov rdi, rdx
sar r15, 1
mov rbp, rdx
mov rcx, rdx
cmp rdx, r15
jge 0x18006c59f
lea rbx, [rcx + rcx]
mov r8, qword [rsi + rbx*8 + 8]
lea rcx, [rsp + 0xa0]
mov rdx, qword [rsi + rbx*8 + 0x10]
call fcn.18006c8f0
movzx ecx, al
xor rcx, 1
inc rcx
add rcx, rbx
mov rax, qword [rsi + rcx*8]
mov qword [rsi + rdi*8], rax
mov rdi, rcx
cmp rcx, r15
jl 0x18006c567
cmp rcx, r15
mov rdi, rcx
mov r15, qword [rsp + 0x38]
jne 0x18006c5bf
test r13b, 1
jne 0x18006c5bf
mov rax, qword [rsi + r13*8 - 8]
lea rdi, [r13 - 1]
mov qword [rsi + rcx*8], rax
mov rax, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
cmp rbp, rdi
jge 0x18006c615
nop dword [rax + rax]
mov r8, qword [r14]
lea rbx, [rdi - 1]
sar rbx, 1
lea rcx, [rsp + 0x20]
mov rdx, qword [rsi + rbx*8]
call fcn.18006c8f0
test al, al
je 0x18006c615
mov rax, qword [rsi + rbx*8]
mov qword [rsi + rdi*8], rax
mov rdi, rbx
cmp rbp, rbx
jl 0x18006c5e0
mov rax, qword [r14]
mov qword [rsi + rbx*8], rax
jmp 0x18006c61c
mov rax, qword [r14]
mov qword [rsi + rdi*8], rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180073060
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov edx, 5
mov r8d, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
movabs rax, 0x9090909090909090
mov edx, 5
mov dword [rbx], eax
mov rcx, rbx
mov byte [rbx + 4], al
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x30
pop rbx
ret

Function at 0x1800730d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rcx + 0xa0]
movss xmm0, dword [rcx + 0x98]
movss dword [0x1800e84d8], xmm0
test rbx, rbx
je 0x180073165
cmp byte [rcx + 0x94], 0
mov rcx, rbx
je 0x180073160
lea r9, [rsp + 0x20]
mov edx, 5
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1800d28c4]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov edx, 5
mov dword [rbx], eax
mov rcx, rbx
movzx eax, byte [0x1800d28c8]
mov byte [rbx + 4], al
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x30
pop rbx
ret
call fcn.180073060
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x30
pop rbx
ret
Function at 0x1800862d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x78], r12
mov rsi, rcx
mov qword [rsp + 0x28], r13
mov r14, r9
mov qword [rsp + 0x20], r15
mov r13, r8
lea r15, [r8 - 1]
mov rdi, rdx
sar r15, 1
mov rbp, rdx
mov rcx, rdx
cmp rdx, r15
jge 0x180086340
nop dword [rax + rax]
lea rbx, [rcx + rcx]
mov r8, qword [rsi + rbx*8 + 8]
mov rdx, qword [rsi + rbx*8 + 0x10]
call fcn.1800865f0
movzx ecx, al
xor rcx, 1
inc rcx
add rcx, rbx
mov rax, qword [rsi + rcx*8]
mov qword [rsi + rdi*8], rax
mov rdi, rcx
cmp rcx, r15
jl 0x180086310
cmp rcx, r15
mov rdi, rcx
mov r15, qword [rsp + 0x20]
jne 0x180086360
test r13b, 1
jne 0x180086360
mov rax, qword [rsi + r13*8 - 8]
lea rdi, [r13 - 1]
mov qword [rsi + rcx*8], rax
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x78]
cmp rbp, rdi
jge 0x1800863a9
nop
mov r8, qword [r14]
lea rbx, [rdi - 1]
sar rbx, 1
mov rdx, qword [rsi + rbx*8]
call fcn.1800865f0
test al, al
je 0x1800863a9
mov rax, qword [rsi + rbx*8]
mov qword [rsi + rdi*8], rax
mov rdi, rbx
cmp rbp, rbx
jl 0x180086370
mov rax, qword [r14]
mov qword [rsi + rbx*8], rax
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [r14]
mov qword [rsi + rdi*8], rax
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180088970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rcx + 0x90]
test rbx, rbx
je 0x1800889c8
lea r9, [rsp + 0x20]
mov edx, 4
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
mov dword [rbx], 0x40400000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x30
pop rbx
ret

Function at 0x180088b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov edx, 4
mov r8d, 0x40
movaps xmm6, xmm1
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
movss dword [rbx], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1800ea250]
mov rax, qword [rcx]
mov rdx, qword [rax + 0xe8]
call rdx
test rax, rax
je 0x180088bdf
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180088bdf
movss xmm1, dword [rbx + 0x98]
add rsp, 0x20
pop rbx
jmp 0x180088b30
add rsp, 0x20
pop rbx
ret

Function at 0x180088ba0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov edx, 4
mov r8d, 0x40
movaps xmm6, xmm1
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
movss dword [rbx], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3dc0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1800ea250]
mov rax, qword [rcx]
mov rdx, qword [rax + 0xe8]
call rdx
test rax, rax
je 0x180088bdf
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180088bdf
movss xmm1, dword [rbx + 0x98]
add rsp, 0x20
pop rbx
jmp 0x180088b30
add rsp, 0x20
pop rbx
ret
Function at 0x18009c0d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18009c10d
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x18009c114
call qword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x18009c213
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18001edf0
nop
xor ebx, ebx
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
cmp rbx, rsi
jae 0x18009c18d
mov r8, rsi
sub r8, rbx
lea rcx, [rdi + rbx]
mov edx, 0xa
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18009c18d
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x18009c18d
mov qword [rsp + 0x20], 2
lea r9, [0x1800d0e84]
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18005f890
add rbx, 2
jmp 0x18009c124
lea rdx, [rsi + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x18009c1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18009c1eb
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
lea r8, [rsi + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x18009c1fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor bl, bl
jmp 0x18009c206
call qword [sym.imp.USER32.dll_CloseClipboard]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.18001f4d0
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a3dc0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x18009f160
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 1
call fcn.1800a3df0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18009f120]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18009f1f1
cmp dword [rsp + 0x38], 0
je 0x18009f1e5
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18009f1e5
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a3dc0
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18009feac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18009fee6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18009feeb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18009ff34
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x18009ff34
dec r8
sub rdx, 1
jne 0x18009ff1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800a11a0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1800a0f90
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800a1277
mov dword [rsp + 0x20], 0
jmp 0x1800a1214
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800a1277
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800a1275
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800a0d70
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800a120a
add rsp, 0x30
pop rdi
ret

Function at 0x1800a1290
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800a1334
mov dword [rsp + 0x20], 0
jmp 0x1800a12cd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800a131d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800a131b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800a12c3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1800e9be8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret