joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140233e90]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400c8d59
mov rcx, r10
call fcn.1400c8bb0
test eax, eax
je 0x1400c8d59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400c8d56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400c8d4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400c8d59
add r8, 0x28
cmp r8, r9
jne 0x1400c8d38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400c9410
Capabilities:
Get thread local storage value

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

Function at 0x1400d5f70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400d6072
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400d604a
add rax, 1
cmp rax, 0x6b
je 0x1400d6067
cmp byte [rcx + rax], 0
jne 0x1400d6040
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400d6067
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400d605b
Function at 0x1400d6410
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1402fa870], 1
je 0x1400d6488
lea rdi, [0x1402fa870]
mov rcx, rdi
call fcn.1400d5cf0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400d5600
mov esi, dword [0x1402fa870]
test esi, esi
jne 0x1400d6498
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140217508], eax
cmp eax, 0xffffffff
je 0x1402161a6
mov dword [0x1402fa870], 1
mov rcx, rbp
call fcn.1400d58f0
test rbx, rbx
je 0x1400d6488
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400d6090
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400d6468
mov ecx, 2
call qword [str._N_r_]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400d6468
call sub.msvcrt.dll_abort
nop

Function at 0x1400d64c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400d61a0
cmp qword [0x1402ff050], 0
mov rbx, rax
je 0x1400d65d8
test rax, rax
je 0x1400d65d8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400d5bf0
cmp eax, 1
je 0x1400d65e6
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
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1402161ac
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140217508]
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 0x1400d65ec
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.1400d5f70
nop
jmp fcn.1402161ac

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

Disassembly:
sub rsp, 0x28
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d6620
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400d64c0
Function at 0x1400d6d90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400d6eb8
cmp eax, 1
je 0x1400d6deb
call fcn.1400d5cf0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400d5600
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400d6e00
cmp r12d, 1
jne 0x1400d6e90
mov rcx, rbp
call fcn.1400d58f0
test rdi, rdi
je 0x1400d6deb
mov rcx, rdi
call fcn.1400d6090
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400d6170]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400d6410
mov ecx, dword [0x140217508]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400d6ef8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400d6410
mov ecx, dword [0x140217508]
call r12
test rax, rax
je 0x1400d6ee0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400d6410
mov ecx, dword [0x140217508]
call r12
test rax, rax
je 0x1400d6ed0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400d6dd6
mov ecx, 2
call qword [str._N_r_]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400d6dd6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400d64c0
test rax, rax
jne 0x1400d6e79
jmp 0x1402161c5
call fcn.1400d64c0
test rax, rax
jne 0x1400d6e55
jmp 0x1402161de
call fcn.1400d64c0
test rax, rax
jne 0x1400d6e2f
jmp 0x1402161d4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400d7180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d71f8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400d5c00
cmp esi, dword [rbx + 0x48]
jae 0x1400d71d3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400d71d3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400d5c40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d71ad
Function at 0x1400d7210
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, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7310
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400d5c00
cmp esi, dword [rbx + 0x48]
jae 0x1400d7290
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400d5c40
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400d731d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400d731d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400d725f
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d724a
mov rcx, r13
call fcn.1400d5c40
mov eax, 0xc
jmp 0x1400d727d

Function at 0x1400d73a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d73c8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400d64c0
test rax, rax
jne 0x1400d73ba
add rsp, 0x28
ret

Function at 0x1400d7430
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7458
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400d64c0
test rax, rax
jne 0x1400d744a
jmp 0x1400d744e

Function at 0x1400d7570
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402fa878]
test eax, eax
jne 0x1400d7588
xor eax, eax
add rsp, 0x28
ret
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d75b8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400d757e
test byte [rax + 0x40], 3
je 0x1400d757e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400d7580
call fcn.1400d64c0
test rax, rax
jne 0x1400d759e
jmp 0x1400d757e

Function at 0x1400d75d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7610
test ebx, ebx
jle 0x1400d7600
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.1400d64c0
test rax, rax
jne 0x1400d75ed
add rsp, 0x20
pop rbx
ret
Function at 0x1400d7700
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7778
test byte [rbx + 0x40], 0xc
jne 0x1400d772f
mov eax, dword [0x1402fa878]
test eax, eax
jne 0x1400d7740
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400d5600
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400d7763
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400d7763
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400d778c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400d58f0
call fcn.1400d64c0
mov rbx, rax
test rax, rax
jne 0x1400d771f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400d77aa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400d58f0
call fcn.1400d7620
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400d7830
call fcn.1400d53b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400d7868
call fcn.1400d6410
mov ecx, dword [0x140217508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d78c0
test esi, esi
je 0x1400d7846
call fcn.1400d7700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d78a0
mov edx, edi
call fcn.1400d5460
call fcn.1400d7700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d78b0
call fcn.1400d7700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6410
mov ecx, dword [0x140217508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400d7805
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d7805
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d781e
call fcn.1400d64c0
jmp 0x1400d7846
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d7801
Function at 0x1400d77c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7778
test byte [rbx + 0x40], 0xc
jne 0x1400d772f
mov eax, dword [0x1402fa878]
test eax, eax
jne 0x1400d7740
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400d5600
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400d7763
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400d7763
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400d778c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400d58f0
call fcn.1400d64c0
mov rbx, rax
test rax, rax
jne 0x1400d771f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400d77aa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400d58f0
call fcn.1400d7620
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400d7830
call fcn.1400d53b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400d7868
call fcn.1400d6410
mov ecx, dword [0x140217508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d78c0
test esi, esi
je 0x1400d7846
call fcn.1400d7700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d78a0
mov edx, edi
call fcn.1400d5460
call fcn.1400d7700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d78b0
call fcn.1400d7700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7700
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6410
mov ecx, dword [0x140217508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400d7805
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d7805
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d781e
call fcn.1400d64c0
jmp 0x1400d7846
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d7801

Function at 0x1400d78d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7940
test esi, esi
je 0x1400d7920
call fcn.1400d7700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d7950
mov edx, esi
call fcn.1400d5460
call fcn.1400d7700
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400d7700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7700
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400d64c0
mov rbx, rax
jmp 0x1400d78f1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d790a
Function at 0x1400d7ee0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.1400d61a0
mov rbx, rax
test rax, rax
je 0x1400d8117
test rbp, rbp
je 0x1400d7f1b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400d7f90
test esi, esi
jne 0x1400d7f80
xor ecx, ecx
mov esi, 1
call r14
jmp 0x1400d7f4f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x1400d7f4f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.1400d5bf0
cmp eax, 1
je 0x1400d8167
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x1400d8100
xor edx, edx
test rdi, rdi
je 0x1400d7ffd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x1400d8128
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x1400d6770]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d80c8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400d80a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400d8080
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400d8067
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400d8041
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x1400d8041
mov rcx, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
test rcx, rcx
je 0x1400d80db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400d5a80
mov rcx, r12
call fcn.1400d5bf0
cmp eax, 1
je 0x1400d8167
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x1400d810d
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x1400d8150
mov eax, 0xb
jmp 0x1400d8071
call fcn.1400d6410
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d8160
mov eax, dword [rax + 0xc0]
jmp 0x1400d7ff5
mov rcx, rbx
call fcn.1400d6270
jmp 0x1400d8117
call fcn.1400d64c0
jmp 0x1400d813e
call fcn.1400d5f70
nop
nop dword [rax]
Function at 0x1400d96a0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x70], xmm13
mov rax, qword [0x140232d50]
movdqa xmm0, xmmword [rcx]
movdqa xmm4, xmmword [rax + 0xa0]
movdqa xmm8, xmmword [rax + 0xe0]
movdqa xmm12, xmmword [rcx + 0x10]
movdqa xmm2, xmmword [rcx + 0x20]
movdqa xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqa xmm5, xmmword [rax + 0xb0]
aesenc xmm12, xmm4
movdqa xmm9, xmmword [rax + 0xf0]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqa xmm6, xmmword [rax + 0xc0]
aesdec xmm0, xmm5
movdqa xmm10, xmmword [rax + 0x100]
aesenc xmm12, xmm5
movdqa xmm7, xmmword [rax + 0xd0]
aesdec xmm2, xmm9
movdqa xmm11, xmmword [rax + 0x110]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movaps xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movaps xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movaps xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movaps xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movaps xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movaps xmmword [r8 - 0x30], xmm12
movaps xmmword [r8 - 0x20], xmm2
movaps xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x1400d98d5
movdqa xmm3, xmmword [0x14022b7b0]
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movaps xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movaps xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movaps xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movaps xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x1400d9830
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x140232d50]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x1c]
lea edx, [rdx*8 + 0x80]
jmp 0x1400d96a0
Function at 0x1400dbb60
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqa xmm0, xmmword [str._f__nc]
movdqa xmm1, xmmword [0x14022b710]
movdqa xmm2, xmmword [0x14022b720]
movdqa xmm3, xmmword [0x14022b730]
add rdx, rcx
cmp rcx, rdx
jae 0x1400dbbb0
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rcx, rdx
jb 0x1400dbb90
movdqa xmm4, xmmword [0x14022b780]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqa xmm4, xmmword [0x14022b790]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movaps xmmword [r8], xmm3
movaps xmmword [r8 + 0x10], xmm2
movaps xmmword [r8 + 0x20], xmm1
movaps xmmword [r8 + 0x30], xmm0
ret