joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d6e0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor esi, esi
test rcx, rcx
je 0x14002d71c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002d731
jle 0x14002d72d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rsi
mov edi, esi
mov edx, edi
mov rcx, rbx
call fcn.14002d480
inc edi
cmp edi, 4
jl 0x14002d733
cmp qword [rbx + 0x10], rsi
je 0x14002d7b6
call fcn.140009120
mov rcx, qword [rbx]
mov dword [rsp + 0x40], esi
mov edx, dword [rcx + 8]
mov rcx, qword [rax]
mov dword [rsp + 0x44], edx
cmp rcx, 0xffffffffffffffff
je 0x14002d7a1
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
mov dword [rsp + 0x28], esi
mov r9d, 4
mov edx, 0x8005e020
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14002d7a1
mov rax, qword gs:[0x30]
lea rcx, [rbx + 8]
call fcn.14002d8b0
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x50], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14002e7a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x140096228], 0
jne 0x14002e811
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x140096218], rax
mov eax, dword [rsp + 0x48]
mov qword [0x140096220], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x140096228], rax
lea rax, [0x140096218]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x68
ret

Function at 0x14002fae0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
mov qword [rcx + 8], rdx
lea rax, vtable.blackbone::Native.0
mov rdi, rcx
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 0x10], rsi
movzx ebx, r8b
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov dword [rdi + 0x18], ecx
test bl, bl
je 0x14002fb4d
mov word [rdi + 0x14], 0x101
mov byte [rdi + 0x16], 1
jmp 0x14002fba9
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x24], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [rsp + 0x20]
cmp ecx, 1
mov edx, dword [rsp + 0x24]
sete al
cmp edx, 1
mov byte [rdi + 0x14], al
sete al
mov byte [rdi + 0x15], al
cmp ecx, 1
jne 0x14002fbcf
cmp edx, ecx
je 0x14002fba9
cmp ecx, 1
mov byte [rdi + 0x17], 1
setne sil
add esi, 2
mov dword [rdi + 0x10], esi
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
test ecx, ecx
jne 0x14002fb9b
test edx, edx
jne 0x14002fb9b
mov dword [rdi + 0x10], 1
jmp 0x14002fbac
Function at 0x14002fef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13d, r9d
mov r12, r8
mov r15d, edx
mov r14, rcx
call fcn.140012290
mov rbp, rax
lea rdx, str.NtSetInformationProcess
lea rcx, [rsp + 0x28]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x28]
call fcn.140002bf0
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.140002ee0
xor edx, edx
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x14002ff93
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rdi
jb 0x14002ff80
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14002ffb2
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x58], rcx
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.140001650
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x20]
call fcn.140001650
mov rax, qword [rsp + 0x58]
lea rcx, [rbp + 0x40]
cmp rax, qword [rsp + 0x20]
je 0x14003000e
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140030014
mov r9d, r13d
mov r8, r12
mov edx, r15d
mov rcx, qword [r14 + 8]
call rbx
mov ebx, eax
jmp 0x140030019
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x28]
call fcn.140002f90
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140030050
Capabilities:
Create thread
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r13, r9
mov r12, r8
mov r14, rdx
mov r15, rcx
call fcn.140012290
mov rbx, rax
mov qword [rsp + 0x60], rax
lea rdx, str.NtCreateThreadEx
lea rcx, [rsp + 0x68]
call fcn.140003040
nop
call fcn.14002b010
lea rbp, [rbx + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x68]
call fcn.140002bf0
mov rsi, rax
lea rcx, [rsp + 0x68]
call fcn.140002ee0
xor ebx, ebx
movabs r9, 0xcbf29ce484222325
mov edx, ebx
test rsi, rsi
je 0x140030103
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rsi
jb 0x1400300f0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140030126
mov rcx, qword [rdi]
mov qword [rsp + 0x98], rcx
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.140001650
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140001650
mov rax, qword [rsp + 0x98]
mov rcx, rbp
cmp rax, qword [rsp + 0x60]
je 0x140030171
mov rdi, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14003017a
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, rbx
lea rcx, [rsp + 0x68]
call fcn.140002f90
mov eax, dword [rsp + 0x120]
xor r8d, r8d
test rdi, rdi
je 0x1400301d6
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0x100000
mov qword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov r9, qword [r15 + 8]
mov edx, dword [rsp + 0x128]
mov rcx, r14
call rdi
test eax, eax
jns 0x140030212
mov qword [r14], rbx
jmp 0x140030212
and eax, 1
shl eax, 2
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, r12
xor edx, edx
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [r14], rax
test rax, rax
jne 0x140030210
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x1250]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140030270
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, r8
mov r15, rdx
cmp byte [rcx + 0x15], 0
jne 0x1400302a8
xor eax, eax
jmp 0x1400303be
call fcn.140012290
mov r14, rax
lea rdx, str.Wow64GetThreadContext
lea rcx, [rsp + 0x28]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x28]
call fcn.140002bf0
mov rsi, rax
lea rcx, [rsp + 0x28]
call fcn.140002ee0
xor edi, edi
movabs r9, 0xcbf29ce484222325
mov edx, edi
test rsi, rsi
je 0x140030323
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rsi
jb 0x140030310
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140030342
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x58], rcx
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x58]
call fcn.140001650
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x20]
call fcn.140001650
mov rax, qword [rsp + 0x58]
lea rcx, [r14 + 0x40]
cmp rax, qword [rsp + 0x20]
je 0x140030397
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14003039d
mov rdx, r12
mov rcx, r15
call rbx
mov ebx, eax
jmp 0x14003039f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, edi
lea rcx, [rsp + 0x28]
call fcn.140002f90
test ebx, ebx
jne 0x1400303bc
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400433a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140030420
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, r8
mov r15, rdx
cmp byte [rcx + 0x15], 0
jne 0x140030458
xor eax, eax
jmp 0x14003056e
call fcn.140012290
mov r14, rax
lea rdx, str.Wow64SetThreadContext
lea rcx, [rsp + 0x28]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x28]
call fcn.140002bf0
mov rsi, rax
lea rcx, [rsp + 0x28]
call fcn.140002ee0
xor edi, edi
movabs r9, 0xcbf29ce484222325
mov edx, edi
test rsi, rsi
je 0x1400304d3
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rsi
jb 0x1400304c0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1400304f2
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x58], rcx
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x58]
call fcn.140001650
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x20]
call fcn.140001650
mov rax, qword [rsp + 0x58]
lea rcx, [r14 + 0x40]
cmp rax, qword [rsp + 0x20]
je 0x140030547
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14003054d
mov rdx, r12
mov rcx, r15
call rbx
mov ebx, eax
jmp 0x14003054f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, edi
lea rcx, [rsp + 0x28]
call fcn.140002f90
test ebx, ebx
jne 0x14003056c
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400433a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400305a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r9
mov r12, r8
mov r15, rdx
cmp dword [rcx + 0x10], 3
jne 0x1400306de
call fcn.140012290
mov r14, rax
lea rdx, str.RtlQueueApcWow64Thread
lea rcx, [rbp - 0x50]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x50]
call fcn.140002bf0
mov rdi, rax
lea rcx, [rbp - 0x50]
call fcn.140002ee0
xor edx, edx
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x140030653
movabs r8, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + rdx]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rdi
jb 0x140030640
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140030670
mov rcx, qword [r14 + 8]
mov qword [rbp - 0x20], rcx
lea rdx, [r14 + 8]
lea rcx, [rbp - 0x20]
call fcn.140001650
mov rax, qword [r14 + 8]
mov qword [rbp - 0x18], rax
lea rdx, [r14 + 8]
lea rcx, [rbp - 0x18]
call fcn.140001650
mov rax, qword [rbp - 0x20]
lea rcx, [r14 + 0x40]
cmp rax, qword [rbp - 0x18]
je 0x1400306ce
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400306d4
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, r15
call rbx
mov ebx, eax
jmp 0x1400306d9
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
jmp 0x1400307d9
call fcn.140012290
mov r14, rax
lea rdx, str.NtQueueApcThread
lea rcx, [rbp - 0x50]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x50]
call fcn.140002bf0
mov rdi, rax
lea rcx, [rbp - 0x50]
call fcn.140002ee0
xor edx, edx
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x140030753
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
xor r9, rcx
imul r9, r8
inc rdx
cmp rdx, rdi
jb 0x140030740
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140030770
mov rcx, qword [r14 + 8]
mov qword [rbp - 0x18], rcx
lea rdx, [r14 + 8]
lea rcx, [rbp - 0x18]
call fcn.140001650
mov rax, qword [r14 + 8]
mov qword [rbp - 0x20], rax
lea rdx, [r14 + 8]
lea rcx, [rbp - 0x20]
call fcn.140001650
mov rax, qword [rbp - 0x18]
lea rcx, [r14 + 0x40]
cmp rax, qword [rbp - 0x20]
je 0x1400307ce
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400307d4
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, r15
call rbx
mov ebx, eax
jmp 0x1400307d9
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rbp - 0x50]
call fcn.140002f90
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400397d0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
jne 0x1400397f5
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x10], 3
jne 0x140039851
cmp byte [rcx + 0x16], 0
jne 0x140039851
call fcn.140012290
mov rbx, rax
lea rdx, str.Wow64SuspendThread
lea rcx, [rsp + 0x20]
call fcn.140003040
nop
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140039870
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002f90
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140039870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r8
mov r14, rdx
mov rbp, rcx
call fcn.14002b010
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, r14
call fcn.140002bf0
mov rcx, r14
mov rdi, rax
call fcn.140002ee0
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x1400398f4
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx edx, byte [rax + r10]
inc r10
xor r9, rdx
imul r9, rcx
cmp r10, rdi
jb 0x1400398e0
mov r8, r14
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140039911
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x30], rcx
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x30]
call fcn.140001650
mov rax, qword [rbp + 8]
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140001650
mov rax, qword [rsp + 0x30]
lea rcx, [rbp + 0x40]
cmp rax, qword [rsp + 0x20]
je 0x140039961
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140039967
mov rcx, qword [r15]
call rbx
jmp 0x140039969
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039990
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x970
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov edi, edx
mov rbx, rcx
cmp edx, 4
ja 0x140039b6f
mov qword [r11 + 0x10], rbp
lea rcx, [r11 - 0x688]
xor edx, edx
mov qword [r11 + 0x18], rsi
mov r8d, 0x670
call fcn.140045d80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140045d80
mov rbp, qword [rbx]
mov rax, qword [rbp + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140039a20
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x2f0]
mov dword [rsp + 0x320], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140039a4d
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x2c8
call fcn.140045d80
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rbp, qword [rsp + 0x988]
lea r8, [rsp + 0x360]
test sil, sil
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
js 0x140039b46
mov edx, dword [r8]
test edi, edi
jne 0x140039a80
and edx, 0xfff0fffe
jmp 0x140039ac3
cmp edi, 1
jne 0x140039a8d
and edx, 0xff0ffffb
jmp 0x140039ac3
cmp edi, 2
mov ecx, 0xffffffbf
mov eax, 0xffffffef
cmovne eax, ecx
mov ecx, 0xf3ffffff
and eax, edx
mov edx, 0x3fffffff
cmp edi, 2
cmovne ecx, edx
mov edx, 0xfcffffff
and ecx, eax
mov eax, 0xcfffffff
cmp edi, 2
cmovne edx, eax
and edx, ecx
mov eax, edx
mov dword [r8], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x140039ae2
btr edx, 8
mov dword [r8], edx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.1400397d0
test sil, sil
jne 0x140039b13
test al, al
je 0x140039b44
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140039b2d
test al, al
je 0x140039b44
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140039b44
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rsi, qword [rsp + 0x990]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x998]
add rsp, 0x970
pop rdi
ret
xor eax, eax
jmp 0x140039b4e
Function at 0x140039b80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x970
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x670
call fcn.140045d80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140045d80
mov rbp, qword [rbx]
mov rax, qword [rbp + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140039c09
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x2f0]
mov dword [rsp + 0x320], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140039c36
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x2c8
call fcn.140045d80
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
jns 0x140039c55
xor eax, eax
jmp 0x140039d4d
xor ecx, ecx
mov edx, ecx
mov eax, ecx
nop dword [rax + rax]
cmp qword [rsp + rax*8 + 0x338], rdi
je 0x140039c85
cmp dword [rsp + rax*4 + 0x24], edi
je 0x140039c85
inc edx
inc rax
cmp rax, 4
jl 0x140039c60
mov eax, 0xc0000225
jmp 0x140039d4d
movsxd rax, edx
test sil, sil
jne 0x140039c97
mov qword [rsp + rax*8 + 0x338], rcx
jmp 0x140039c9b
mov dword [rsp + rax*4 + 0x24], ecx
mov ecx, dword [r8]
test edx, edx
jne 0x140039caa
and ecx, 0xfff0fffe
jmp 0x140039cca
cmp edx, 1
jne 0x140039cb7
and ecx, 0xff0ffffb
jmp 0x140039cca
cmp edx, 2
jne 0x140039cc4
and ecx, 0xf0ffffef
jmp 0x140039cca
and ecx, 0xfffffbf
mov eax, ecx
mov dword [r8], ecx
shr eax, 2
or eax, ecx
shr eax, 2
or eax, ecx
shr eax, 2
or eax, ecx
test al, 1
jne 0x140039ce9
btr ecx, 8
mov dword [r8], ecx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.1400397d0
test sil, sil
jne 0x140039d1a
test al, al
je 0x140039d4b
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140039d34
test al, al
je 0x140039d4b
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140039d4b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1400433a0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret