joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c14d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b890
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b8ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000b8e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b890
add rax, 0x28
cmp rax, r9
jne 0x14000b8d0
xor eax, eax
ret

Function at 0x14000b8f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c14d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b90f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b918
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b90f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b9b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c14d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b9cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b9d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400171c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 + 0x78], 0
mov dword [rsp + 0x87], 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 0x1400172ca
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x1400172a2
add rax, 1
cmp rax, 0x6b
je 0x1400172bf
cmp byte [rcx + rax], 0
jne 0x140017298
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400172bf
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
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x1400172b3
Function at 0x140017640
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e7d20], 1
je 0x1400176b8
lea rdi, [0x1400e7d20]
mov rcx, rdi
call fcn.140016f40
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016850
mov esi, dword [0x1400e7d20]
test esi, esi
jne 0x1400176c8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b8158], eax
je 0x1400b73b6
mov dword [0x1400e7d20], 1
mov rcx, rbp
call fcn.140016b40
test rbx, rbx
je 0x1400176b8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400172e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017698
mov ecx, 2
call qword [fcn.140014c70]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017698
call sub.msvcrt.dll_abort
nop

Function at 0x1400176f0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400173f0
cmp qword [0x1400ea048], 0
mov rbx, rax
je 0x140017808
test rax, rax
je 0x140017808
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.140016e40
cmp eax, 1
je 0x140017816
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.1400b73bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b8158]
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 0x14001781c
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.1400171c0
nop
jmp fcn.1400b73bc

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

Disassembly:
sub rsp, 0x28
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017850
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400176f0
Function at 0x140017fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400180e8
cmp eax, 1
je 0x14001801b
call fcn.140016f40
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016850
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018030
cmp r12d, 1
jne 0x1400180c0
mov rcx, rbp
call fcn.140016b40
test rdi, rdi
je 0x14001801b
mov rcx, rdi
call fcn.1400172e0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400173c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017640
mov ecx, dword [0x1400b8158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018128
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017640
mov ecx, dword [0x1400b8158]
call r12
test rax, rax
je 0x140018110
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017640
mov ecx, dword [0x1400b8158]
call r12
test rax, rax
je 0x140018100
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018006
mov ecx, 2
call qword [fcn.140014c70]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018006
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400176f0
test rax, rax
jne 0x1400180a9
jmp 0x1400b73d5
call fcn.1400176f0
test rax, rax
jne 0x140018085
jmp 0x1400b73ee
call fcn.1400176f0
test rax, rax
jne 0x14001805f
jmp 0x1400b73e4
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 0x1400183b0
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.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018428
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140016e50
cmp esi, dword [rbx + 0x48]
jae 0x140018403
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140018403
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140016e90
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.1400176f0
mov rbx, rax
jmp 0x1400183dd
Function at 0x140018440
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.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018550
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140016e50
cmp esi, dword [rbx + 0x48]
jae 0x1400184d0
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.140016e90
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.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001855d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001855d
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.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140018494
call fcn.1400176f0
mov rbx, rax
jmp 0x14001847f
mov rcx, r14
call fcn.140016e90
mov eax, 0xc
jmp 0x1400184b2

Function at 0x1400185e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018608
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400176f0
test rax, rax
jne 0x1400185fa
add rsp, 0x28
ret

Function at 0x140018670
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018698
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400176f0
test rax, rax
jne 0x14001868a
jmp 0x14001868e

Function at 0x1400187b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e7d28]
test eax, eax
jne 0x1400187c8
xor eax, eax
add rsp, 0x28
ret
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400187f8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400187be
test byte [rax + 0x40], 3
je 0x1400187be
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400187c0
call fcn.1400176f0
test rax, rax
jne 0x1400187de
jmp 0x1400187be
Function at 0x140018810
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018850
test ebx, ebx
jle 0x140018840
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.1400176f0
test rax, rax
jne 0x14001882d
add rsp, 0x20
pop rbx
ret

Function at 0x140018940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400189b8
test byte [rbx + 0x40], 0xc
jne 0x14001896f
mov eax, dword [0x1400e7d28]
test eax, eax
jne 0x140018980
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016850
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400189a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400189a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400189cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016b40
call fcn.1400176f0
test rax, rax
mov rbx, rax
jne 0x14001895f
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 0x1400189ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016b40
call fcn.140018860
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018a70
call fcn.140016610
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018aa8
call fcn.140017640
mov ecx, dword [0x1400b8158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018b00
test esi, esi
je 0x140018a86
call fcn.140018940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018ae0
mov edx, edi
call fcn.1400166c0
call fcn.140018940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018af0
call fcn.140018940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017640
mov ecx, dword [0x1400b8158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018a45
call fcn.1400176f0
mov rbx, rax
jmp 0x140018a45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018a5e
call fcn.1400176f0
jmp 0x140018a86
call fcn.1400176f0
mov rbx, rax
jmp 0x140018a41
Function at 0x140018a00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400189b8
test byte [rbx + 0x40], 0xc
jne 0x14001896f
mov eax, dword [0x1400e7d28]
test eax, eax
jne 0x140018980
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016850
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400189a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400189a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400189cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016b40
call fcn.1400176f0
test rax, rax
mov rbx, rax
jne 0x14001895f
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 0x1400189ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016b40
call fcn.140018860
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018a70
call fcn.140016610
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018aa8
call fcn.140017640
mov ecx, dword [0x1400b8158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018b00
test esi, esi
je 0x140018a86
call fcn.140018940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018ae0
mov edx, edi
call fcn.1400166c0
call fcn.140018940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018af0
call fcn.140018940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017640
mov ecx, dword [0x1400b8158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018a45
call fcn.1400176f0
mov rbx, rax
jmp 0x140018a45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018a5e
call fcn.1400176f0
jmp 0x140018a86
call fcn.1400176f0
mov rbx, rax
jmp 0x140018a41

Function at 0x140018b10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017640
mov ecx, dword [0x1400b8158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018b80
test esi, esi
je 0x140018b60
call fcn.140018940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018b90
mov edx, esi
call fcn.1400166c0
call fcn.140018940
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018940
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400176f0
mov rbx, rax
jmp 0x140018b31
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018b4a
Function at 0x14007c780
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x14007c7c8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c79a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140007da0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x30], 0
lea r8, [rbp + 0x30]
xor ebx, ebx
lea rcx, str.D:PAI_A_OICI_FA___WD_
xor r14d, r14d
xor r9d, r9d
mov qword [rbp + 0x38], r14
lea edi, [rbx + 1]
mov edx, edi
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x140007e00
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140007ded
mov esi, 0x80004005
jmp 0x140007f65
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140007f65
xor eax, eax
lea r8, str.GlobalMicrosoft.Windows.Remediation.TelemetryPlugin
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
xor edx, edx
mov rax, qword [rbp + 0x30]
and dword [rbp - 0x10], ebx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 0x18
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140007dd9
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x140007e8b
cmp eax, 0x102
je 0x140007e81
cmp eax, 0xffffffff
jne 0x140007de3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140007e66
xor esi, esi
jmp 0x140007f6c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140007f6c
jmp 0x140007f65
mov esi, 0x800705b4
jmp 0x140007f65
lea r9, [rbp + 0x38]
call fcn.140009b20
mov r14, qword [rbp + 0x38]
test eax, eax
cmovs r14, rdi
call fcn.140009c68
mov esi, eax
test eax, eax
jns 0x140007eb0
mov ecx, eax
jmp 0x140007f67
xor ecx, ecx
int3
mov ecx, esi
call fcn.140008b48
test rbx, rbx
je 0x140007f7a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test esi, esi
jns 0x140007f8c
lea rdx, str.Failed_to_get_a_proper_GlobalEventCounter_for_telemetry__using_0
mov ecx, esi
call fcn.14000821c
test rbx, rbx
je 0x140007f9a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140007fa9
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov rax, r14
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001c00d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14001c02b
je 0x14001c036
call 0x14001c085
mov bl, 0xc7
lahf
pop rsi
jne 0x14001c016
call 0x14001c02e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14001c016
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14001c064
je 0x14001c0a2
invalid
je 0x14001c0b3
jne 0x14001c016
lea rax, [0x14001bf3c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140017c9d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14001c154
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001c1ad
je 0x14001c1b3
call 0x14001c1a4
fild qword [rdi - 0x7c]
jmp 0x174f58926
jne 0x14001c176
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14001c136
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x14001c010
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14001c02b
je 0x14001c036
call 0x14001c085
mov bl, 0xc7
lahf
pop rsi
jne 0x14001c016
call 0x14001c02e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14001c016
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14001c064
je 0x14001c0a2
invalid
je 0x14001c0b3
jne 0x14001c016
lea rax, [0x14001bf3c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140017c9d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14001c154
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001c1ad
je 0x14001c1b3
call 0x14001c1a4
fild qword [rdi - 0x7c]
jmp 0x174f58926
jne 0x14001c176
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14001c136
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret