joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180049350
Capabilities:
Hash data using sha1

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, r8
mov edi, edx
test rcx, rcx
je 0x1800b3ee8
test r9, r9
je 0x1800b3ee8
lea eax, [rdx - 0x50]
cmp eax, 0x1f
ja 0x1800b3ee8
mov eax, dword [r9]
mov dword [r9], 0x20
cmp eax, 0x20
jae 0x1800493bc
mov eax, 0xc0000023
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.18008b0e0
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret
mov rdx, rcx
mov r8b, 1
lea rcx, [rbp - 0x49]
call sym.ntdll.dll_RtlUpcaseUnicodeString
test eax, eax
js 0x1800493a5
movzx r8d, word [rbp - 0x49]
lea rcx, [rbp - 0x39]
mov rdx, qword [rbp - 0x41]
and dword [rbp + 0x1b], 0
and dword [rbp + 0x1f], 0
mov dword [rbp + 7], 0x67452301
mov dword [rbp + 0xb], 0xefcdab89
mov dword [rbp + 0xf], 0x98badcfe
mov dword [rbp + 0x13], 0x10325476
mov dword [rbp + 0x17], 0xc3d2e1f0
call sym.ntdll.dll_A_SHAUpdate
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call sym.ntdll.dll_A_SHAFinal
lea rcx, [rbp - 0x49]
call sym.ntdll.dll_RtlFreeAnsiString
mov r8b, 6
lea rdx, [0x180114790]
mov rcx, rbx
call sym.ntdll.dll_RtlInitializeSid
mov eax, dword [rbp + 0x27]
mov dword [rbx + 8], edi
mov dword [rbx + 0xc], eax
mov eax, dword [rbp + 0x2b]
mov dword [rbx + 0x10], eax
mov eax, dword [rbp + 0x2f]
mov dword [rbx + 0x14], eax
mov eax, dword [rbp + 0x33]
mov dword [rbx + 0x18], eax
mov eax, dword [rbp + 0x37]
mov dword [rbx + 0x1c], eax
xor eax, eax
jmp 0x1800493a5
mov eax, 0xc000000d
jmp 0x1800493a5

Function at 0x180049b18
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
and qword [rcx], 0
mov rdi, rcx
mov rcx, qword gs:[0x60]
mov rbp, r8
mov r14d, edx
mov r12d, 0xa8
mov r8d, r12d
xor edx, edx
mov rsi, r9
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rbx, rax
test rax, rax
je 0x1800b4014
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sym.ntdll.dll_memset
mov dword [rbx], 0xa80914
mov rax, qword gs:[0x30]
mov qword [rdi], rbx
mov rcx, qword [rax + 0x1720]
mov rax, qword [rsp + 0x60]
and qword [rbx + 0x18], 0
and qword [rbx + 0x58], 0
and dword [rbx + 0x60], 0
and qword [rbx + 0x68], 0
and qword [rbx + 0x70], 0
and qword [rbx + 0x98], 0
and dword [rbx + 0xa0], 0
mov qword [rbx + 0x48], rax
mov eax, dword [rsp + 0x68]
mov dword [rbx + 0x3c], eax
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x40], eax
xor eax, eax
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rsi
mov dword [rbx + 0x38], r14d
mov dword [rbx + 0x50], 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
mov eax, 0xc0000017
jmp 0x180049be6
Function at 0x18004a8a8
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, rcx
shr rdi, 5
xor bpl, bpl
and edi, 0x7f
mov r15b, dl
mov r14, rcx
xor r10d, r10d
mov rsi, qword [rax + 0x60]
mov rax, qword [rsi + rdi*8 + 0x3a0]
test rax, rax
je 0x18004a9f8
test al, 1
jne 0x18004a9f8
test al, 2
jne 0x18004aa45
mov rdx, rax
or rdx, 2
lock cmpxchg qword [rsi + rdi*8 + 0x3a0], rdx
jne 0x18004a8eb
mov r9, rdx
and r9, 0xfffffffffffffffc
mov r8, r9
cmp qword [r9 + 0x20], 0
je 0x18004aa91
mov r8, qword [r8 + 0x20]
mov qword [r9 + 0x20], r8
test r8, r8
je 0x18004a9a9
mov rbx, qword [r8 + 0x18]
cmp qword [r8], r14
jne 0x18004aa33
mov rcx, qword [r8 + 0x10]
cmp r8, r9
jne 0x18004aa11
test rcx, rcx
jne 0x18004aa66
mov rax, rdx
lock cmpxchg qword [rsi + rdi*8 + 0x3a0], rcx
jne 0x18004aa89
mov r11, qword [r8 + 0x10]
test rcx, rcx
sete bpl
test r11, r11
jne 0x18004aa77
mov eax, 2
xchg dword [r8 + 0x28], eax
cmp eax, 2
je 0x18004aa33
test eax, eax
jne 0x18004a9a0
mov qword [r8 + 0x10], r10
mov r10, r8
test r15b, r15b
jne 0x18004aa33
test r10, r10
je 0x18004a9c3
mov rcx, qword [r10 + 8]
mov rbx, qword [r10 + 0x10]
call sym.ntdll.dll_NtAlertThreadByThreadId
mov r10, rbx
test rbx, rbx
jne 0x18004a9ae
test bpl, bpl
jne 0x18004a9f8
mov rax, qword [rsi + rdi*8 + 0x3a0]
mov r8, rax
xor edx, edx
mov rcx, rax
and r8d, 1
and rcx, 0xfffffffffffffffc
test r8, r8
cmove rdx, rcx
lock cmpxchg qword [rsi + rdi*8 + 0x3a0], rdx
jne 0x18004a9d0
test r8b, r8b
jne 0x18004aa3b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov qword [rbx + 0x10], rcx
mov rcx, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
test rcx, rcx
jne 0x18004aa5d
mov qword [r9 + 0x20], rax
mov rax, qword [r8 + 0x18]
mov qword [rax + 0x20], rax
jmp 0x18004a983
mov r8, rbx
jmp 0x18004a934
mov rcx, rax
call fcn.18004adc0
jmp 0x18004a9f8
mov rcx, rax
or rcx, 1
lock cmpxchg qword [rsi + rdi*8 + 0x3a0], rcx
je 0x18004a9f8
jmp 0x18004a8eb
mov qword [rcx + 0x18], rax
jmp 0x18004a983
mov rax, rcx
xor rax, rdx
and eax, 3
xor rcx, rax
jmp 0x18004a95c
and qword [r11 + 0x18], 0
mov rax, qword [r8 + 0x20]
mov qword [r11 + 0x20], rax
jmp 0x18004a983
mov rdx, rax
jmp 0x18004a917
mov rax, r8
mov r8, qword [r8 + 0x10]
mov qword [r8 + 0x18], rax
cmp qword [r8 + 0x20], 0
jne 0x18004a92c
jmp 0x18004aa91
Function at 0x18004ad34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x18015d058]
add rcx, 0x30
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
or eax, 0xffffffff
lock xadd dword [rbx + 0x20], eax
cmp eax, 1
je 0x18004ad6f
mov rcx, qword [0x18015d058]
add rcx, 0x30
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlReleaseSRWLockExclusive
lea rax, [rbx + 8]
mov rcx, qword [rax]
cmp qword [rcx + 8], rax
jne 0x18004adb8
mov rdx, qword [rax + 8]
cmp qword [rdx], rax
jne 0x18004adb8
mov qword [rdx], rcx
mov qword [rcx + 8], rdx
mov rcx, qword [0x18015d058]
add rcx, 0x30
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlFreeHeap
mov ecx, 3
int 0x29
int3

Function at 0x18004b9a4
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x20]
mov rbp, qword [rbx + 0x80]
test rbp, rbp
je 0x1800b4692
mov edx, 1
mov rcx, rbp
call fcn.18004c748
mov rcx, rax
mov rdi, rax
call fcn.18004c724
mov rsi, rax
test rax, rax
je 0x18004ba48
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call sym.ntdll.dll_RtlCopyMemory
inc qword [rbx + 0x3f8]
lea rcx, [0x18015cb20]
xor edx, edx
mov qword [rbx + 0x80], rsi
mov r8d, 0x468
mov qword [rbx + 0x3f0], rdi
call sym.ntdll.dll_memset
call fcn.18004bc58
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov eax, 0xc000009a
jmp 0x18004ba33
mov edi, 4
lea rdx, [rsp + 0x30]
mov r8d, edi
xor ecx, ecx
call sym.ntdll.dll_RtlCreateEnvironmentEx
test eax, eax
js 0x18004ba33
mov rsi, qword [rsp + 0x30]
jmp 0x18004ba03
Function at 0x18004d6f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x30], 0
lea rdi, [rcx + 0x10]
cmp qword [rdi], 0
mov r15, rdx
mov rbx, rcx
je 0x18004d758
mov rcx, qword [rdi]
mov qword [rbp + 0x30], rcx
mov rax, qword [rcx]
mov qword [rdi], rax
and qword [rcx], 0
test r15, r15
jne 0x18004d743
mov rax, qword [rbp + 0x30]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rbx + 4]
mov rax, qword [rbp + 0x30]
sub rax, qword [rbx + 0x18]
cqo
idiv rcx
mov dword [r15], eax
jmp 0x18004d72e
cmp dword [rcx + 8], 0
jne 0x18004d833
mov rax, qword [rcx + 0x20]
or r14, 0xffffffffffffffff
mov esi, 4
test rax, rax
jne 0x18004d7c2
mov eax, dword [rcx + 4]
lea r9, [rbp + 0x48]
imul eax, dword [rcx]
lea rdx, [rbp + 0x40]
and qword [rbp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rcx, r14
mov dword [rsp + 0x20], 0x2000
mov qword [rbp + 0x48], rax
call sym.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
js 0x18004d896
mov rcx, qword [rbp + 0x40]
mov qword [rbx + 0x20], rcx
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x18], rcx
add rcx, qword [rbp + 0x48]
mov qword [rbx + 0x28], rcx
mov qword [rbp + 0x30], rax
cmp rax, qword [rbx + 0x28]
jae 0x18004d896
mov eax, 0x1000
mov dword [rsp + 0x28], esi
lea r9, [rbp - 0x10]
mov qword [rbp - 0x10], rax
xor r8d, r8d
mov dword [rsp + 0x20], eax
lea rdx, [rbp + 0x30]
mov rcx, r14
call sym.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
js 0x18004d896
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp - 0x10]
add rdx, rcx
mov qword [rbx + 0x20], rdx
mov rax, rdi
cmp rcx, rdx
jae 0x18004d718
mov qword [rax], rcx
mov rax, qword [rbp + 0x30]
mov ecx, dword [rbx + 4]
add rcx, rax
mov qword [rbp + 0x30], rcx
cmp rcx, qword [rbx + 0x20]
jb 0x18004d817
jmp 0x18004d718
mov ecx, dword [rcx + 0xc]
cmp ecx, dword [rbx]
ja 0x18004d896
mov eax, dword [rbx + 4]
mov edx, 8
mov r8, qword [rbx + 0x18]
mov esi, eax
imul esi, ecx
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
lea r14d, [rsi + rax*8]
test r8, r8
je 0x18004d88c
mov r9d, r14d
call sym.ntdll.dll_RtlReAllocateHeap
mov qword [rbp + 0x40], rax
test rax, rax
je 0x18004d896
add dword [rbx + 0xc], 8
lea rdx, [r14 + rax]
mov ecx, esi
add rcx, rax
mov qword [rbx + 0x18], rax
mov qword [rbp + 0x30], rcx
jmp 0x18004d807
mov r8, r14
call sym.ntdll.dll_RtlAllocateHeap
jmp 0x18004d869
xor eax, eax
jmp 0x18004d732
Function at 0x18004dbbc
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
and qword [rax + 0x28], 0
mov rsi, r9
and qword [rax - 0x18], 0
and qword [rax + 0x10], 0
mov rax, qword gs:[0x60]
mov edi, r8d
lea r8, [0x180110418]
cmp rdx, r8
je 0x1800b4cee
test r9, r9
je 0x18004dc03
and qword [r9], 0
test ecx, 0xfffffffc
jne 0x1800b4d4e
cmp edi, 1
jb 0x1800b4d4e
test rsi, rsi
je 0x1800b4d4e
lea r8, [rsp + 0x40]
and ecx, 3
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x20], r8
mov r8, rdx
mov rdx, rax
call fcn.18004dcd8
mov ebx, eax
test eax, eax
js 0x1800b4d08
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18004dcbb
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18004dccf
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18004dccf
mov r8d, dword [rax + 8]
cmp edi, r8d
jae 0x1800b4d2b
mov rax, qword [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], rax
call fcn.18004e290
mov ebx, eax
test eax, eax
js 0x1800b4d11
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rax, qword [rcx + rdi*8]
test rax, rax
je 0x18004dccf
add rax, 8
mov qword [rsi], rax
xor ebx, ebx
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov ebx, 0xc00000e5
jmp 0x18004dcbd
xor edx, edx
lea r9, str.RtlGetAssemblyStorageRoot
lea r8, str.SXS:__s___passed_the_empty_activation_context_n
lea ecx, [rdx + 0x33]
call sym.ntdll.dll_DbgPrintEx
jmp 0x1800b4d7f
lea r8, str.SXS:_RtlGetAssemblyStorageRoot___unable_to_get_activation_context_data__storage_map_and_assembly_roster_header.__Status__0x_08lx_n
jmp 0x1800b4d18
lea r8, str.SXS:_RtlGetAssemblyStorageRoot___unable_to_resolve_storage_map_entry.__Status__0x_08lx_n
xor edx, edx
mov r9d, eax
lea ecx, [rdx + 0x33]
call sym.ntdll.dll_DbgPrintEx
nop
jmp 0x18004dcbd
mov dword [rsp + 0x28], r8d
lea r9, str.RtlGetAssemblyStorageRoot
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8, str.SXS:__s___bad_parameters_AssemblyRosterIndex_0x_lx___AssemblyRosterHeader__EntryCount:_0x_lx_n
lea ecx, [rdx + 0x33]
call sym.ntdll.dll_DbgPrintEx
jmp 0x1800b4d7f
lea rax, [fcn.18004e6b0]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, str.RtlGetAssemblyStorageRoot
mov qword [rsp + 0x30], rsi
lea r8, str.SXS:__s___bad_parameters:_nSXS:____Flags______________:_0x_lx_nSXS:____AssemblyRosterIndex:_0x_lx_nSXS:____AssemblyStorageRoot:__p_nSXS:____Callback___________:__p_n
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
lea ecx, [rdx + 0x33]
call sym.ntdll.dll_DbgPrintEx
mov ebx, 0xc000000d
jmp 0x18004dcbd
Function at 0x180050ad8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov r14, r8
mov r15, rcx
mov edx, dword [0x18015c294]
add edx, 0xc0000
mov rcx, qword gs:[0x60]
mov r8d, 0x48
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1800b5fac
xor edi, edi
movups xmm0, xmmword [r15]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rax + 0x20], xmm1
movsd xmm0, qword [r15 + 0x20]
movsd qword [rax + 0x30], xmm0
jmp 0x180050b61
test edi, edi
js 0x1800b5fbb
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], rax
jb 0x1800b5fb6
test rsi, rsi
je 0x180050c0e
mov rdx, rsi
mov rcx, r14
call fcn.180050c1c
mov edi, eax
test eax, eax
js 0x1800b5fbb
mov edx, dword [r14]
mov dword [rsp + 0x20], edx
mov rcx, qword [rbx + 0x20]
mov dword [rcx], edx
jmp 0x180050bb4
test edi, edi
js 0x1800b5fd9
mov dword [rbx + 0x40], edx
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x38], rax
mov rax, qword [0x1801565e0]
lea rcx, [0x1801565d8]
cmp qword [rax], rcx
jne 0x1800b5ff6
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x1801565e0], rbx
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x180050c00
mov qword [rax], rbx
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, dword [r14]
lea eax, [rdx + 1]
mov dword [r14], eax
jmp 0x180050b98
mov eax, 0xc0000017
jmp 0x180050c02
mov edi, 0xc000007b
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov eax, edi
jmp 0x180050c02
test rsi, rsi
je 0x1800b5fbb
mov rax, qword [0x18015c1d8]
btr dword [rax], edx
cmp byte [rsi], 0
je 0x1800b5fbb
add dword [0x18015c1d0], 0xfffffff8
jmp 0x1800b5fbb
mov ecx, 3
int 0x29
int3
Function at 0x180053e18
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rbx, rdx
mov rdi, rcx
mov r10, r9
test r8, r8
je 0x180053e92
test r9, r9
jne 0x180053e43
movzx eax, word [r8 + 0x14]
lea r10, [r8 + 0x18]
add r10, rax
je 0x180053e92
movzx r11d, word [r8 + 6]
xor edx, edx
test r11d, r11d
je 0x180053e92
mov r8d, dword [rsp + 0x28]
test r9, r9
jne 0x180053e73
cmp byte [rsp + 0x30], r9b
je 0x180053e73
mov rcx, rdi
lea rax, [r10 + 0x28]
and rcx, 0xfffffffffffffffc
add rcx, rbx
cmp rax, rcx
ja 0x180053e92
mov ecx, dword [r10 + 0xc]
cmp r8d, ecx
je 0x180053e96
jbe 0x180053e87
add ecx, dword [r10 + 0x10]
cmp r8d, ecx
jb 0x180053e96
add r10, 0x28
inc edx
cmp edx, r11d
jl 0x180053e54
xor eax, eax
jmp 0x180053e99
mov rax, r10
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180055078
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1800550b8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x1800550af
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlFreeHeap
xor edx, edx
call sym.ntdll.dll_NtSetEvent
jmp 0x180055093
call sym.ntdll.dll_NtAlertThreadByThreadId
jmp 0x180055093
Function at 0x1800550d0
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
and dword [rsp + 0x20], 0
and qword [r11 + 0x20], 0
mov qword [rsp + 0x38], rcx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
cmp byte [rcx + 0x48], 0
jne 0x18005522f
test rdi, rdi
je 0x1800b6f8c
xor edx, edx
lea rcx, [r11 + 0x20]
call fcn.180058f2c
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
js 0x180055214
test r14, r14
je 0x18005513f
cmp r14, 0xffffffffffffffff
je 0x1800551dc
mov qword [rdi + 0x10], r14
lea rcx, [rdi + 8]
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
nop
lea r15, [rdi + 0x18]
mov rsi, qword [r15]
mov qword [rsp + 0x30], rsi
cmp rsi, r15
je 0x1800551b6
mov qword [rsp + 0x28], rsi
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
lock or dword [rsi + 0x30], 1
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpTimerOutstandingCallbackCount
add dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpReleaseTimer
prefetchw byte [rsi + 0x30]
mov eax, dword [rsi + 0x30]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [rsi + 0x30], ecx
jne 0x18005518e
mov dword [rsp + 0x80], eax
test al, 2
je 0x1800551af
mov rcx, qword [rsp + 0x28]
call fcn.18005907c
mov rsi, qword [rsp + 0x30]
jmp 0x180055155
lea rcx, [rdi + 8]
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
or eax, 0xffffffff
lock xadd dword [rdi], eax
sub eax, 1
jne 0x1800551f2
and qword [rdi + 0x28], 0
mov rcx, rdi
call fcn.180055078
xor ebx, ebx
jmp 0x180055214
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x48]
mov qword [rdi + 0x28], rcx
jmp 0x18005513f
cmp r14, 0xffffffffffffffff
je 0x180055208
mov eax, dword [rsp + 0x20]
neg eax
sbb ebx, ebx
and ebx, 0x103
jmp 0x180055214
xor edx, edx
mov rcx, rdi
call sym.ntdll.dll_NtWaitForAlertByThreadId
jmp 0x1800551d8
mov rcx, qword [rsp + 0x88]
call fcn.1800588b4
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
jmp 0x180055223
mov eax, 0xc00000ef
jmp 0x180055223
Function at 0x180056890
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x10], rdx
push r14
sub rsp, 0x30
mov esi, r9d
mov r14d, r8d
mov rbx, rdx
and qword [r11 - 0x18], 0
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
cmp byte [r10 + 0x48], 0
jne 0x1800b741a
test rcx, rcx
je 0x1800b7424
test rdx, rdx
je 0x1800b742e
mov eax, dword [rdx + 0x30]
test al, 1
jne 0x1800b7438
xor edx, edx
lea rcx, [r11 - 0x18]
call fcn.180058f2c
mov edi, eax
test eax, eax
js 0x18005694e
lea rcx, [rbx + 0x50]
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
nop
cmp byte [rbx + 0x58], 0
je 0x18005693c
test esi, esi
setne al
mov byte [rbx + 0x58], al
mov qword [rsp + 0x28], r14
imul rax, r14, 0xffffffffffffd8f0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x28]
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpSetTimerEx
jmp 0x180056943
mov eax, dword [rbx + 0x5c]
test eax, eax
je 0x18005690d
lea rcx, [rbx + 0x50]
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
xor edi, edi
mov rcx, qword [rsp + 0x20]
call fcn.1800588b4
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov eax, 0xc0000001
jmp 0x18005695a
mov eax, 0xc00000ef
jmp 0x18005695a
mov eax, 0xc00000f0
jmp 0x18005695a
mov eax, 0xc0000008
jmp 0x18005695a
Function at 0x180057ea0
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
and qword [r11 - 0x10], 0
mov rax, qword gs:[0x60]
mov r9, qword [rax + 0x18]
cmp byte [r9 + 0x48], 0
jne 0x180057fd8
test rcx, rcx
je 0x1800b77b6
test rdx, rdx
je 0x1800b77c0
xor edx, edx
lea rcx, [r11 - 0x10]
call fcn.180058f2c
mov edi, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x180057fbc
mov rcx, qword [rbx + 0x38]
add rcx, 8
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
nop
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
cmp qword [rcx + 8], rbx
jne 0x180057f2b
cmp qword [rax], rbx
jne 0x180057f2b
mov qword [rax], rcx
mov qword [rcx + 8], rax
jmp 0x180057f32
mov ecx, 3
int 0x29
mov rcx, qword [rbx + 0x38]
add rcx, 8
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
lock or dword [rbx + 0x30], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpSetTimerEx
cmp rsi, 0xffffffffffffffff
jne 0x180057fb1
lea edx, [rsi + 2]
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpWaitForTimer
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpTimerOutstandingCallbackCount
mov dword [rsp + 0x58], eax
mov rcx, qword [rbx + 0x40]
call sym.ntdll.dll_TpReleaseTimer
prefetchw byte [rbx + 0x30]
mov eax, dword [rbx + 0x30]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [rbx + 0x30], ecx
jne 0x180057f84
test al, 2
je 0x180057fa1
mov rcx, rbx
call fcn.18005907c
and dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
neg eax
sbb edi, edi
and edi, 0x103
jmp 0x180057fbc
test rsi, rsi
je 0x180057f67
mov qword [rbx + 0x48], rsi
jmp 0x180057f67
mov rcx, qword [rsp + 0x28]
call fcn.1800588b4
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
jmp 0x180057fc8
mov eax, 0xc00000ef
jmp 0x180057fc8
mov eax, 0xc00000f0
jmp 0x180057fc8
Function at 0x180058ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180058ca0
mov rcx, qword gs:[0x60]
mov r8, rbx
mov edx, dword [0x18015d050]
add edx, 0x100000
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlFreeHeap

Function at 0x18005907c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
jne 0x1800590c3
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x1800590d7
mov rcx, qword [rbx + 0x38]
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x1800590cc
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlFreeHeap
xor edx, edx
call sym.ntdll.dll_NtSetEvent
jmp 0x18005908e
mov rcx, qword [rbx + 0x38]
call fcn.180055078
jmp 0x1800590a7
call sym.ntdll.dll_NtClose
jmp 0x180059097

Function at 0x1800594e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
test rcx, rcx
jne 0x180059516
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18005951f
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp sym.ntdll.dll_RtlFreeHeap
xor edx, edx
call sym.ntdll.dll_NtSetEvent
jmp 0x1800594f2
call sym.ntdll.dll_NtClose
jmp 0x1800594fa

Function at 0x18005a184
Capabilities:
Encode data using xor

Disassembly:
and qword [r8], 0
lea rax, [r8 + 8]
mov qword [rax + 8], rax
mov qword [rax], rax
lea rax, [r8 + 0x78]
mov qword [r8 + 0x18], rcx
mov ecx, 0xc
lea r11d, [rcx - 0xb]
mov dword [rax - 4], 0
mov dword [rax], 6
lea rax, [rax + 0x30]
sub rcx, r11
jne 0x18005a1a4
xor r9d, r9d
lea r10, [0x180119600]
lea rcx, [r8 + 0x2a7]
movzx eax, word [r10]
lea r10, [r10 + 2]
shr ax, 4
add ax, r11w
mov byte [rcx - 1], r9b
mov word [rcx - 3], ax
add r9d, r11d
mov al, byte [0x18015abac]
add al, al
xor al, byte [rcx]
and al, 6
xor byte [rcx], al
lea rcx, [rcx + 4]
cmp r9d, 0x81
jb 0x18005a1cb
test r11b, dl
jne 0x18005a226
mov eax, dword [0x18015a580]
test eax, eax
je 0x18005a225
lea rcx, [r8 + 0xcd8]
mov edx, eax
mov qword [rcx], r8
lea rcx, [rcx + 0x30]
sub rdx, r11
jne 0x18005a219
ret
mov eax, r11d
jmp 0x18005a210