joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00414900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004148e0]
test rbx, rbx
je 0x4024d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4024cb
test r12, r12
je 0x4024cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024b0
lea rcx, [0x00414900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402810
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004113b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402889
mov rcx, r10
call fcn.004026e0
test eax, eax
je 0x402889
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402886
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40287d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402889
add r8, 0x28
cmp r8, r9
jne 0x402868
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402d10
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x58
xor eax, eax
mov r10d, eax
xor eax, eax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x34], r9d
mov rcx, r10
lea rdx, str.https:__google.com_
lea r8, str.C:Index.html
mov r9d, eax
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileA
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov eax, r9d
add rsp, 0x58
ret
sub rsp, 0x28
call fcn.00401640
mov rax, qword [0x00411420]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00411410]
mov r8, qword [rax]
mov rax, qword [0x00411400]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x402cb0
Function at 0x18000bb10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000bb88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000bb88
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18000bb75
nop
cmp rbx, rcx
jae 0x18000bb88
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18000bb60
cmp rbx, rcx
jae 0x18000bb88
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18000bb8a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000bf10
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1801c1038]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x1801d8984], 0
jne 0x18000bf7f
lea rcx, [rsp + 0x20]
mov byte [0x1801d8984], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x28]
cvtsi2ss xmm1, qword [rsp + 0x20]
movss dword [0x1801d8ba0], xmm0
movss dword [0x1801d8a10], xmm1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x20]
subss xmm0, dword [0x1801d8a10]
divss xmm0, dword [0x1801d8ba0]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800d0360
add rsp, 0x48
ret
Function at 0x18003c300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
test edx, edx
je 0x18003c32f
mov r9d, edx
lea r10, [0x18019d290]
movsx edx, byte [rcx]
lea rcx, [rcx + 1]
mov eax, r8d
shr r8d, 8
xor rdx, rax
movzx eax, dl
xor r8d, dword [r10 + rax*4]
sub r9, 1
jne 0x18003c311
not r8d
mov eax, r8d
ret

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

Disassembly:
not r8d
test edx, edx
je 0x18003c36f
mov r9d, edx
lea r10, [0x18019d290]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov eax, r8d
shr r8d, 8
xor rdx, rax
movzx eax, dl
xor r8d, dword [r10 + rax*4]
sub r9, 1
jne 0x18003c351
not r8d
mov eax, r8d
ret
Function at 0x180061900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0x70
movaps xmmword [rax - 0x28], xmm7
mov rbp, rdx
mov qword [rax + 8], rbx
movaps xmm7, xmm2
mov qword [rax + 0x10], rsi
mov rdi, rcx
mov rax, qword [rcx]
mov dword [rax], 0x7f7fffff
mov dword [rax + 4], 0x800000
mov dword [rax + 8], 0x7f7fffff
mov dword [rax + 0xc], 0x800000
mov rbx, qword [rcx + 8]
lea rsi, [rbx + 0x280]
cmp rbx, rsi
je 0x180061a47
movaps xmmword [rsp + 0x60], xmm6
add rbx, 0x14
movss xmm6, dword [0x1801a4e3c]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 0x10]
movsx edx, byte [rbx - 8]
mov rcx, qword [rax]
call fcn.18004dc70
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180043ce0
cmp byte [rbx - 8], 0x30
movsd xmm0, qword [rax]
movsd qword [rbx - 4], xmm0
mov eax, dword [rax + 8]
mov dword [rbx + 4], eax
jne 0x1800619ae
movss xmm0, dword [rbx]
addss xmm0, xmm6
movss dword [rbx], xmm0
movsd xmm0, qword [rbx - 4]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x3c]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
call fcn.180055350
movsd xmm0, qword [rax]
movsd qword [rbx - 0x14], xmm0
mov eax, dword [rax + 8]
mov dword [rbx - 0xc], eax
mov rax, qword [rdi]
movss xmm1, dword [rbx - 0x14]
movss xmm0, dword [rax]
comiss xmm0, xmm1
jbe 0x1800619f0
movss dword [rax], xmm1
mov rax, qword [rdi]
movss xmm0, dword [rbx - 0x14]
comiss xmm0, dword [rax + 4]
jbe 0x180061a03
movss dword [rax + 4], xmm0
mov rax, qword [rdi]
movss xmm1, dword [rbx - 0x10]
movss xmm0, dword [rax + 8]
comiss xmm0, xmm1
jbe 0x180061a1a
movss dword [rax + 8], xmm1
mov rax, qword [rdi]
movss xmm0, dword [rbx - 0x10]
comiss xmm0, dword [rax + 0xc]
jbe 0x180061a2d
movss dword [rax + 0xc], xmm0
mov byte [rbx - 7], 1
add rbx, 0x20
lea rax, [rbx - 0x14]
cmp rax, rsi
jne 0x180061970
movaps xmm6, xmmword [rsp + 0x60]
mov rax, qword [rdi]
movss xmm2, dword [0x1801a511c]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
movss xmm1, dword [rax]
ucomiss xmm1, xmm2
jp 0x180061a6d
je 0x180061a99
movss xmm0, dword [rax + 4]
movss xmm3, dword [0x1801a4de8]
ucomiss xmm0, xmm3
jp 0x180061a81
je 0x180061a99
movss xmm0, dword [rax + 8]
ucomiss xmm0, xmm2
jp 0x180061a8d
je 0x180061a99
movss xmm0, dword [rax + 0xc]
ucomiss xmm0, xmm3
jp 0x180061aae
jne 0x180061aae
xor al, al
mov rbp, qword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
movaps xmm0, xmm7
subss xmm1, xmm7
movss dword [rax], xmm1
mov rax, qword [rdi]
addss xmm0, dword [rax + 4]
movss dword [rax + 4], xmm0
mov rax, qword [rdi]
movss xmm0, dword [rax + 8]
subss xmm0, xmm7
movss dword [rax + 8], xmm0
mov rax, qword [rdi]
addss xmm7, dword [rax + 0xc]
movss dword [rax + 0xc], xmm7
mov rax, qword [rdi]
movaps xmm7, xmmword [rsp + 0x50]
movups xmm0, xmmword [rax]
mov al, 1
movups xmmword [rbp], xmm0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x180071150
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180071186
xor eax, eax
lea r8, [0x180070f70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180071186
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x180071e90
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180071eb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180071f2c
mov rdi, r14
mov rcx, rbx
call fcn.1800060d0
test rax, rax
jle 0x180071f04
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18013c6f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180071f1c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180071f24
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180071ec6
sub r14, rdi
jmp 0x18007200f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180071f43
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180071f45
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180071f77
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18013c6f0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18007200c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180071fb2
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
cmp rbp, 0xfff
jbe 0x180071fed
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18014be74
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18007200c
cmp rbp, rax
ja 0x180071fc0
test rbp, rbp
je 0x18007200c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18014be74
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18007b9c0
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 0x18007ba1d
lea rbx, [0x18019d940]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18007ba04
cmp r10, 2
jb 0x18007ba04
cmp byte [r9], r8b
jne 0x18007ba04
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 0x18007b9e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18007ba5f
lea rbx, [0x18019d940]
cmp r8b, 0x23
jne 0x18007ba43
cmp byte [r9], r8b
jne 0x18007ba43
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 0x18007ba30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18007bba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18007bbba
mov qword [r8], 0
lea rdx, [0x1801a41e0]
call fcn.18007ba70
mov rbx, rax
test rax, rax
jne 0x18007bbda
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 fcn.18014ccf0
mov esi, eax
cmp eax, 0xffffffff
je 0x18007bca8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18014c224
test eax, eax
jne 0x18007bca8
mov rcx, rbx
call fcn.18014ccf0
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18007bca8
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18014c224
test eax, eax
jne 0x18007bca8
cmp rdi, 0xffffffffffffffff
je 0x18007bca8
mov rax, qword [0x1801d8bd8]
test rax, rax
je 0x18007bc4a
inc dword [rax + 0xf4]
mov rcx, rdi
call fcn.18014a714
mov rsi, rax
test rax, rax
je 0x18007bca8
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.18014be74
mov rcx, rbx
cmp rax, rdi
je 0x18007bc96
call fcn.18014b024
mov rax, qword [0x1801d8bd8]
test rax, rax
je 0x18007bc8c
dec dword [rax + 0xf4]
mov rcx, rsi
call fcn.180147ae0
jmp 0x18007bcb0
call fcn.18014b024
test r14, r14
je 0x18007bca3
mov qword [r14], rdi
mov rax, rsi
jmp 0x18007bcb2
mov rcx, rbx
call fcn.18014b024
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 0x18007ea00
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x18019d940]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x18007ea96
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.180091f20
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180083040
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180083090
lea r11, [0x18019d940]
nop dword [rax]
cmp r9b, 0x23
jne 0x180083073
cmp byte [r8], r9b
jne 0x180083073
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 0x180083060
mov rcx, qword [0x1801d8bd8]
not eax
movsxd rdx, dword [rcx + 0x3eb0]
mov r9, qword [rcx + 0x3eb8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x1800830f1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800830e9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800830ec
mov rdx, r8
test rdx, rdx
jne 0x1800830c0
cmp r9, r10
je 0x180083100
cmp dword [r9], eax
jne 0x180083100
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180090ca0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801d8bd8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180090d03
mov qword [rsp], rbx
lea rbx, [0x18019d940]
nop dword [rax]
cmp r9b, 0x23
jne 0x180090ce3
cmp byte [r8], r9b
jne 0x180090ce3
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 0x180090cd0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c00]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180090d37
mov r10, qword [r10 + 0x5c08]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180090d3e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180090d24
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 0x18009d040
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1801d8bd8]
mov edx, 0x210
call fcn.180088e60
cmp byte [rax], 0
je 0x18009d0b6
xor edx, edx
mov ecx, 0x210
call fcn.18008b0c0
test al, al
je 0x18009d0b6
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18009d0b6
mov rbx, qword [0x1801d8bd8]
cmp byte [rbx + 0x37b9], 0
je 0x18009d0a2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.18007b2d0
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov rcx, qword [0x1801d8bd8]
mov edx, 0x214
call fcn.180088e60
cmp byte [rax], 0
je 0x18009d126
xor edx, edx
mov ecx, 0x214
call fcn.18008b0c0
test al, al
je 0x18009d126
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18009d126
mov rbx, qword [0x1801d8bd8]
cmp byte [rbx + 0x37b9], 0
je 0x18009d112
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.18007b2d0
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov rcx, qword [0x1801d8bd8]
mov edx, 0x212
call fcn.180088e60
cmp byte [rax], 0
je 0x18009d196
xor edx, edx
mov ecx, 0x212
call fcn.18008b0c0
test al, al
je 0x18009d196
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18009d196
mov rbx, qword [0x1801d8bd8]
cmp byte [rbx + 0x37b9], 0
je 0x18009d182
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.18007b2d0
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov rcx, qword [0x1801d8bd8]
mov edx, 0x216
call fcn.180088e60
cmp byte [rax], 0
je 0x18009d206
xor edx, edx
mov ecx, 0x216
call fcn.18008b0c0
test al, al
je 0x18009d206
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18009d206
mov rbx, qword [0x1801d8bd8]
cmp byte [rbx + 0x37b9], 0
je 0x18009d1f2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.18007b2d0
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1800a9f40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1801c1038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800a9f8f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801da6d0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800a9fcd
cmp rsi, r14
jb 0x1800a9fc5
cmp rsi, r15
jae 0x1800a9fc5
cmp qword [rsi + 8], 0
jne 0x1800aa197
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800a9fb0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800aa062
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800aa059
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800aa059
cmp dword [rsp + 0x40], 0x10000
je 0x1800aa0db
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800aa059
sub rbx, rbp
cmp rbx, r14
jae 0x1800aa020
test rsi, rsi
jne 0x1800aa140
cmp rdi, r15
ja 0x1800aa17f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800aa17f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800aa17f
cmp dword [rsp + 0x40], 0x10000
je 0x1800aa111
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800aa092
jmp 0x1800aa17f
test rbx, rbx
je 0x1800aa059
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800aa140
cmp rbx, r14
jae 0x1800aa000
jmp 0x1800aa062
test rdi, rdi
je 0x1800aa17f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800aa140
cmp rdi, r15
jbe 0x1800aa070
jmp 0x1800aa17f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800aa150
mov rax, qword [0x1801da6d0]
mov qword [rsi], rax
mov qword [0x1801da6d0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d0360
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800aaca0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1801c1038]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800aadcb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800aadc2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800aada4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800aada4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800aada4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800aad62
mov rcx, qword [0x1801d8bf0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800aadc2
jmp 0x1800aad97
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800aad97
mov rcx, qword [0x1801d8bf0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800aadc2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800aad10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800aae23
cmp dword [rbx + 0xc], esi
jbe 0x1800aae23
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800aae1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800aaaf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800aade0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d0360
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800aae50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1801c1038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801da6c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800aaec3
mov eax, 0xa
jmp 0x1800aaf52
test esi, esi
je 0x1800aaee5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800aaf08
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800aaf08
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800aaf01
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800aaf08
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, 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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d0360
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret