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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 0x60]
lea rdi, [0x180110710]
cmp rdi, rbx
je 0x18004db83
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x18004db77
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.180022f00
mov r8, qword [rbx + 0x20]
lea rdx, [rbx + 0x28]
lea rbx, [0x180110738]
mov qword [0x180110730], r8
cmp rbx, rdx
je 0x18004dbbb
cmp qword [rdx + 0x18], 0xf
mov r8, qword [rdx + 0x10]
jbe 0x18004dbac
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.180022f00
mov r8, qword [0x180110730]
cmp qword [0x180110750], 0xf
lea rcx, str._s__llx__s
cmova rbx, qword [0x180110738]
cmp qword [0x180110728], 0xf
mov r9, rbx
cmova rdi, qword [0x180110710]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180003ff0
Function at 0x18005c400
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1370]
mov eax, 0x1470
call fcn.1800b79b0
sub rsp, rax
mov r10, qword [rcx]
movabs rax, 0xcbf29ce484222325
mov r9, qword [0x180f625c8]
mov rbx, rcx
movabs rcx, 0x100000001b3
movzx r11d, byte [r10]
xor r11, rax
movzx eax, byte [r10 + 1]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 2]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 3]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 4]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 5]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 6]
imul r11, rcx
xor r11, rax
movzx eax, byte [r10 + 7]
imul r11, rcx
xor r11, rax
imul r11, rcx
and r11, qword [0x180f625f0]
shl r11, 4
add r11, qword [0x180f625d8]
mov rdx, qword [r11 + 8]
mov rax, rdx
cmp rdx, r9
je 0x18005c4d6
mov rcx, qword [r10]
mov r8, qword [r11]
cmp rcx, qword [rdx + 0x10]
je 0x18005c4d8
cmp rax, r8
je 0x18005c4d6
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x18005c4c5
jmp 0x18005c4d8
xor eax, eax
test rax, rax
mov rcx, r9
cmovne rcx, rax
cmp rcx, r9
je 0x18005c615
cmp rdx, r9
je 0x18005c626
mov rax, qword [r10]
mov rcx, qword [r11]
cmp rax, qword [rdx + 0x10]
je 0x18005c513
cmp rdx, rcx
je 0x18005c626
mov rdx, qword [rdx + 8]
cmp rax, qword [rdx + 0x10]
jne 0x18005c500
movups xmm0, xmmword [rdx + 0x18]
lea rcx, [rsp + 0x20]
movups xmm1, xmmword [rdx + 0x28]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x38]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
call fcn.1800801c0
test al, al
je 0x18005c615
xor edx, edx
lea rcx, [rsp + 0x58]
mov r8d, 0x178
call fcn.1800df480
xor eax, eax
lea rcx, [rbp + 0x100]
xor edx, edx
mov qword [rbp + 0xd8], rax
mov r8d, 0x448
mov qword [rbp + 0xe8], rax
call fcn.1800df480
xor edx, edx
lea rcx, [rbp + 0x558]
mov r8d, 0x400
call fcn.1800df480
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov r8d, 0xa08
mov dword [rbp + 0x554], 1
mov rcx, qword [rax]
mov rax, qword [rbx]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rax]
mov rax, qword [rsp + 0x20]
or rax, 0x401020
mov qword [rbp + 0x548], rcx
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x960]
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xf0], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0xf8], rax
mov eax, dword [rsp + 0x28]
mov dword [rbp + 0x550], eax
movsxd rax, dword [rsp + 0x2c]
mov qword [rbp + 0xe0], rax
call fcn.1800df840
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x960]
call fcn.1800042f0
mov rbx, qword [rsp + 0x1480]
add rsp, 0x1470
pop rbp
ret
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.1800b4c1c
int3
Function at 0x180084010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1390]
mov eax, 0x1490
call fcn.1800b79b0
sub rsp, rax
mov rax, qword [0x180110c00]
xor rax, rsp
mov qword [rbp + 0x1388], rax
mov dword [rbp + 0x1370], 0x245c8948
mov dword [rbp + 0x1374], 0x57565520
mov dword [rbp + 0x1378], 0x55415441
mov dword [rbp + 0x137c], 0x57415641
mov dword [rbp + 0x1380], 0x60ec8348
mov r8d, 0x14
mov rax, qword [0x180f62848]
mov qword [rsp + 0x28], rax
mov rax, qword [0x180f62638]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea rdx, [rbp + 0x1370]
lea rcx, [rsp + 0x30]
call fcn.1800ae990
nop
mov rbx, qword [rsp + 0x30]
cmp rbx, qword [rsp + 0x38]
je 0x180084177
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.InsertArtemis64Hook__p
call fcn.180003ff0
xor edx, edx
mov r8d, 0x174
lea rcx, [rsp + 0x5c]
call fcn.1800df480
xor edx, edx
mov r8d, 0x880
lea rcx, [rbp + 0xd8]
call fcn.1800df480
mov qword [rsp + 0x50], rbx
mov qword [rbp + 0xd0], 0xd0022
mov dword [rsp + 0x58], 0xffffffd8
lea rcx, [rbp + 0x960]
lea rdx, [rsp + 0x50]
mov r8d, 0xa08
call fcn.1800df840
lea rdx, str.Artemis64
lea rcx, [rbp + 0x960]
call fcn.1800042f0
movzx ebx, al
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800841c2
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x180084170
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800841f1
call fcn.1800b7518
jmp 0x1800841c2
lea rcx, str.InsertArtemis64Hook_failed
call fcn.180003ff0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800841c0
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800841bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800841f1
call fcn.1800b7518
xor bl, bl
call fcn.180083e30
test al, al
jne 0x1800841cf
test bl, bl
je 0x1800841d1
mov al, 1
mov rcx, qword [rbp + 0x1388]
xor rcx, rsp
call fcn.1800b7a10
mov rbx, qword [rsp + 0x14a0]
add rsp, 0x1490
pop rbp
ret
call fcn.1800c5d88
int3
Function at 0x180086c80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movsxd rax, dword [rcx + 0x14]
cmp eax, 5
ja case.default.0x180086cae
lea r8, [0x180000000]
mov edx, dword [r8 + rax*4 + 0x86e70]
add rdx, r8
jmp rdx
mov byte [rcx + 0x11], 0
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0x58], 0
jne 0x180086e5b
mov rcx, qword [rcx + 0x18]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.1800ae590
lea rdx, [rcx + 0x18]
cmp byte [rdx + 0x40], 1
jne 0x180086e5b
lea rcx, [rsp + 0x20]
call fcn.1800869f0
nop
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x180086d28
mov rbx, rdi
mov rcx, qword [rbx]
call fcn.1800ae590
test al, al
je 0x180086d7b
add rbx, 8
cmp rbx, rsi
jne 0x180086d13
mov bl, 1
test rdi, rdi
je 0x180086d68
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov r8, rdi
cmp rdx, 0x1000
jb 0x180086d60
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub r8, rdi
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x180086e61
mov rcx, rdi
call fcn.1800b7518
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor bl, bl
jmp 0x180086d2a
lea rdx, [rcx + 0x18]
cmp byte [rdx + 0x40], 1
jne 0x180086e5b
lea rcx, [rsp + 0x20]
call fcn.1800869f0
nop
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x180086dc5
mov rbx, rdi
nop word [rax + rax]
mov rcx, qword [rbx]
call fcn.1800ae590
test al, al
jne 0x180086e02
add rbx, 8
cmp rbx, rsi
jne 0x180086db0
xor bl, bl
test rdi, rdi
je 0x180086d68
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x180086d60
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180086e61
jmp 0x180086d60
mov bl, 1
jmp 0x180086dc7
cmp byte [rcx + 0x58], 0
jne 0x180086e5b
mov rcx, qword [rcx + 0x18]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.1800aebc0
cmp byte [rcx + 0x58], 2
jne 0x180086e5b
mov rcx, qword [rcx + 0x50]
test rcx, rcx
je 0x180086e67
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [rax + 0x10]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.180086c50
int3
call fcn.1800c5d88
int3
call fcn.1800b4bb4
int3
Function at 0x180089210
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x180113035], 0
je 0x180089264
mov rdx, qword [0x180112fa8]
xor r8d, r8d
add rdx, 0xa0
nop
cmp qword [rdx - 0xa0], 0
je 0x180089257
mov rax, qword [rcx + 8]
cmp qword [rdx - 0x50], rax
jne 0x180089257
mov rax, qword [rcx + 0x10]
cmp qword [rdx], rax
jne 0x180089257
mov rax, qword [rcx + 0x18]
cmp qword [rdx + 0x50], rax
je 0x18008926b
inc r8
add rdx, 8
cmp r8, 0xa
jl 0x180089230
xor al, al
add rsp, 0x28
ret
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 0xf0
jne 0x180089298
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 0xf0
je 0x1800892a8
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 0xf0
jne 0x1800892a8
mov rax, qword [0x180112fa8]
cmp byte [rax + 0x9f8], 0
jne 0x180089264
mov al, 1
add rsp, 0x28
ret

Function at 0x1800892b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [0x180112fa8]
xor edx, edx
add rcx, 0x158
mov r8d, 0x7d0
call fcn.1800df480
cmp rdi, 0x3e8
jbe 0x1800892f1
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
mov eax, r9d
mov edx, r9d
test rdi, rdi
je 0x180089317
nop
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
add rax, rcx
inc edx
add rax, rax
movsxd rcx, edx
cmp rcx, rdi
jb 0x180089300
movabs r10, 0x100000001b3
movabs rdx, 0xcbf29ce484222325
mov rcx, rax
shr rcx, 8
movzx r8d, cl
movzx ecx, al
xor rcx, rdx
imul rcx, r10
xor r8, rcx
mov rcx, rax
imul r8, r10
shr rcx, 0x10
movzx edx, cl
mov rcx, rax
xor r8, rdx
shr rcx, 0x18
imul r8, r10
movzx edx, cl
mov rcx, rax
xor r8, rdx
shr rcx, 0x20
imul r8, r10
movzx edx, cl
mov rcx, rax
xor r8, rdx
shr rcx, 0x28
imul r8, r10
movzx edx, cl
mov rcx, rax
xor r8, rdx
shr rcx, 0x30
imul r8, r10
movzx edx, cl
mov rcx, rax
xor r8, rdx
shr rcx, 0x38
mov rdx, qword [0x180f62b00]
imul r8, r10
xor r8, rcx
imul r8, r10
and rdx, r8
mov r8, qword [0x180f62ad8]
shl rdx, 4
add rdx, qword [0x180f62ae8]
mov rcx, qword [rdx + 8]
cmp rcx, r8
je 0x1800893ea
mov rdx, qword [rdx]
cmp rax, qword [rcx + 0x10]
je 0x1800893e7
cmp rcx, rdx
je 0x1800893ea
mov rcx, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
jne 0x1800893d8
mov r9, rcx
mov rbx, qword [rsp + 0x30]
test r9, r9
mov rax, r8
cmovne rax, r9
cmp rax, r8
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x180089410
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
call fcn.1800b2f90
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800b34c0
mov rbx, qword [0x180f62a68]
mov rdi, qword [0x180f62a70]
cmp rbx, rdi
je 0x180089539
movabs rbp, 0xcbf29ce484222325
movabs rsi, 0x100000001b3
mov r8, qword [rbx]
mov rax, r8
shr rax, 8
movzx edx, al
movzx eax, r8b
xor rax, rbp
imul rax, rsi
xor rdx, rax
mov rax, r8
imul rdx, rsi
shr rax, 0x10
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x18
imul rdx, rsi
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x20
imul rdx, rsi
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x28
imul rdx, rsi
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x30
imul rdx, rsi
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x38
mov rcx, qword [0x180f62ac0]
imul rdx, rsi
xor rdx, rax
imul rdx, rsi
and rcx, rdx
shl rcx, 4
add rcx, qword [0x180f62aa8]
mov rax, qword [rcx + 8]
cmp rax, qword [0x180f62a98]
je 0x180089552
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x18008951f
nop
cmp rax, rcx
je 0x180089552
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x180089510
mov rdx, qword [rax + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800b2bf0
add rbx, 8
cmp rbx, rdi
jne 0x180089462
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.1800b3010
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.1800b4c1c
int3
Function at 0x18008d720
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov edx, 4
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18008d76a
mov r8, qword [rbx + 0x10]
lea r9, [rsp + 0x30]
movzx eax, byte [rbx + 0x70]
mov edx, 4
mov byte [r8], al
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rsp, 0x20
pop rbx
ret

Function at 0x1800942f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x180f64cdc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180094337
mov rax, qword [0x180f64cd0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180094344
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180094320
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180094337
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180094670
mov edi, eax
test eax, eax
jne 0x18009442f
mov r9d, dword [0x180f64cdc]
cmp ebx, r9d
jae 0x1800943bc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180f64cd0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1800943b5
mov edx, esi
mov ecx, ebx
call fcn.180094560
mov edi, eax
test eax, eax
jne 0x1800943bc
mov r9d, dword [0x180f64cdc]
inc ebx
cmp ebx, r9d
jb 0x180094380
cmp qword [rsp + 0x20], 0
je 0x18009442d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180094419
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18009440a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800943e0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180f62c00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180094560
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, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180f64cd0]
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 0x1800945c4
mov eax, 0xa
jmp 0x180094657
test esi, esi
je 0x1800945e6
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 0x180094609
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180094609
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180094602
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180094609
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
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]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180094670
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180110c00]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18009481a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800947b5
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180094770
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180094770
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180094770
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180094732
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180f62c00]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180094798
jmp 0x180094763
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180094763
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x180f62c00]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180094798
mov qword [rbx], rax
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, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800946e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800947b5
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x1800947b5
mov rcx, qword [0x180f62c00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18009481a
cmp qword [rbx], r15
je 0x180094815
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180094815
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18009480e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800950b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800947d0
mov eax, r15d
jmp 0x18009481f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b7a10
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180094840
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x180f62bf8], edi
je 0x180094891
nop
cmp rbx, 0x20
jae 0x18009487a
xor ecx, ecx
jmp 0x18009487c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180f62bf8], edi
jne 0x180094870
cmp qword [0x180f62c00], rbp
je 0x1800949bf
mov r8d, dword [0x180f64cdc]
mov ebx, r15d
test r8d, r8d
je 0x1800949c4
mov rdx, qword [0x180f64cd0]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x1800948dc
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x1800948c0
jmp 0x1800949c4
cmp ebx, 0xffffffff
je 0x1800949c4
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.180094670
mov ebp, eax
test eax, eax
jne 0x1800949c4
mov r8d, dword [0x180f64cdc]
cmp ebx, r8d
jae 0x180094954
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180f64cd0]
movzx r9d, byte [rdx + rcx + 0x20]
movzx ecx, r9b
shr cl, 1
xor cl, r9b
test cl, 2
je 0x18009494d
mov edx, r9d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.180094560
mov ebp, eax
test eax, eax
jne 0x180094954
mov r8d, dword [0x180f64cdc]
inc ebx
cmp ebx, r8d
jb 0x180094910
cmp qword [rsp + 0x20], r15
je 0x1800949c4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800949a9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18009499a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180094970
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180f62c00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800949c4
mov ebp, 2
xchg dword [0x180f62bf8], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180095260
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
jmp 0x180095260
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov edi, edx
mov r14d, esi
mov ebx, esi
xor eax, eax
mov rbp, rcx
mov r15d, 1
lock cmpxchg dword [0x180f62bf8], r15d
je 0x1800952ba
cmp rbx, 0x20
jae 0x1800952a1
xor ecx, ecx
jmp 0x1800952a4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180f62bf8], r15d
jne 0x180095297
cmp qword [0x180f62c00], rsi
je 0x180095355
test rbp, rbp
jne 0x18009530b
cmp dword [0x180f64cdc], esi
mov r8d, esi
jbe 0x18009535b
shl dil, 2
nop
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x180f64cd0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, dil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x180f64cdc]
jb 0x1800952e0
jmp 0x18009535b
mov edx, dword [0x180f64cdc]
mov eax, esi
test edx, edx
je 0x180095330
mov r8, qword [0x180f64cd0]
mov rcx, r8
cmp rbp, qword [rcx]
je 0x180095338
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x180095321
mov r14d, 4
jmp 0x18009535b
cmp eax, 0xffffffff
je 0x180095330
shl dil, 2
imul rcx, rax, 0x38
xor dil, byte [rcx + r8 + 0x20]
and dil, 4
xor byte [rcx + r8 + 0x20], dil
jmp 0x18009535b
mov r14d, 2
xchg dword [0x180f62bf8], esi
mov rsi, qword [rsp + 0x50]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180095380
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800953f1
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800953da
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800953ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800953a0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180f62c00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret