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

Disassembly:
mov rdx, qword [0x1400bf130]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ca60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ca68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ca60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000cab5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000caac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ca60
add rax, 0x28
cmp rax, r9
jne 0x14000ca98
xor eax, eax
ret

Function at 0x14000cac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bf130]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000cae0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000cae8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000cae0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000cb70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bf130]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000cb90
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000cb98
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400186f0
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 + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 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 0x140018802
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400187da
add rax, 1
cmp rax, 0x6b
je 0x1400187f7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400187d0
cmp edx, 0x6a
je 0x1400187f7
lea eax, [rdx + 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 0x1400187eb
Function at 0x140018bb0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x1400e7d40]
call fcn.140018460
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140017cf0
mov ebx, dword [0x1400e7d40]
test ebx, ebx
jne 0x140018c20
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b4398], eax
cmp eax, 0xffffffff
je 0x1400b3616
mov dword [0x1400e7d40], 1
mov rcx, r13
call fcn.140018010
test r12, r12
je 0x140018c56
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp fcn.140018820
cmp ebx, 1
je 0x140018bfd
mov ecx, 2
call qword [fcn.1400164d0]
mov r9d, ebx
lea r8, [0x1400e7d40]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140018010
test r12, r12
jne 0x140018c0a
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop

Function at 0x140018c60
Capabilities:
Set thread local storage value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
call fcn.140018920
cmp qword [0x1400ea048], 0
mov r12, rax
je 0x140018d90
test rax, rax
je 0x140018d90
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [r12 + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [r12 + 0x68]
mov qword [r12 + 0x38], 0xffffffffffffffff
mov qword [r12 + 0x30], rax
call fcn.140018360
cmp eax, 1
je 0x140018da1
mov qword [r12 + 0x68], 0xffffffffffffffff
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [r12 + 0xb8], 0
mov qword [r12 + 0x28], 0
call rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r13, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, rbx
mov rdx, r13
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [r12 + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b361c
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b4398]
mov rdx, r12
mov dword [r12 + 0xbc], 0
mov dword [r12 + 0xc0], eax
movzx eax, byte [r12 + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [r12 + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140018da7
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
call fcn.1400186f0
nop
jmp fcn.1400b361c

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

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
je 0x140018dc2
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018de0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140018c60
Function at 0x1400195e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140019718
cmp eax, 1
je 0x140019639
call fcn.140018460
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140017cf0
mov edi, dword [rbx]
test edi, edi
je 0x140019650
cmp edi, 1
jne 0x1400196f0
mov rcx, r13
call fcn.140018010
test r12, r12
je 0x140019639
mov rcx, r12
call fcn.140018820
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea rax, [0x1400188f0]
cmp dword [0x1400e7d40], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
je 0x14001966f
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rdi
test rax, rax
je 0x140019758
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
cmp dword [0x1400e7d40], 1
je 0x1400196a1
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call rdi
test rax, rax
je 0x140019740
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
cmp dword [0x1400e7d40], 1
je 0x1400196ce
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call rdi
test rax, rax
je 0x140019730
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140019624
mov ecx, 2
call qword [fcn.1400164d0]
mov r9d, edi
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140019624
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call fcn.140018c60
test rax, rax
jne 0x1400196db
jmp 0x1400b3635
call fcn.140018c60
test rax, rax
jne 0x1400196b2
jmp 0x1400b364e
call fcn.140018c60
test rax, rax
jne 0x140019687
jmp 0x1400b3644
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 0x1400199f0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400e7d40], 1
mov r12d, eax
je 0x140019a15
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019a70
lea r13, [rbx + 0x68]
xor r14d, r14d
mov rcx, r13
call fcn.140018370
cmp dword [rbx + 0x48], esi
jbe 0x140019a4f
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140019a4f
mov rax, qword [rbx + 0x50]
mov r14, qword [rax + rsi*8]
mov rcx, r13
call fcn.1400183b0
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call fcn.140018c60
mov rbx, rax
jmp 0x140019a29
Function at 0x140019a80
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 rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400e7d40], 1
mov r12d, eax
je 0x140019aac
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019b88
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140018370
cmp dword [rbx + 0x48], esi
jbe 0x140019b10
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], rbp
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400183b0
mov ecx, r12d
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 0x140019b95
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140019b95
mov eax, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
sub r8d, eax
lea rcx, [rdi + rax*8]
shl r8, 3
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 0x140019ad9
call fcn.140018c60
mov rbx, rax
jmp 0x140019ac4
mov rcx, r13
call fcn.1400183b0
mov eax, 0xc
jmp 0x140019af8

Function at 0x140019c20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
je 0x140019c32
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019c50
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140018c60
test rax, rax
jne 0x140019c43
add rsp, 0x28
ret

Function at 0x140019cc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
je 0x140019cd2
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019cf0
add rax, 0x18
add rsp, 0x28
ret
call fcn.140018c60
test rax, rax
jne 0x140019ce3
jmp 0x140019ce7

Function at 0x140019e10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e7d48]
test eax, eax
jne 0x140019e28
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1400e7d40], 1
je 0x140019e36
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019e60
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140019e1e
test byte [rax + 0x40], 3
je 0x140019e1e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140019e20
call fcn.140018c60
test rax, rax
je 0x140019e1e
jmp 0x140019e47
Function at 0x140019e70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e7d40], 1
mov ebx, ecx
je 0x140019e85
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019ec0
add rax, 0x20
test ebx, ebx
jle 0x140019eb0
lock add dword [rax], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax], 1
add rsp, 0x20
pop rbx
ret
call fcn.140018c60
test rax, rax
jne 0x140019e96
add rsp, 0x20
pop rbx
ret

Function at 0x140019fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
je 0x140019fd5
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a040
test byte [rbx + 0x40], 0xc
jne 0x140019ff9
mov eax, dword [0x1400e7d48]
test eax, eax
jne 0x14001a008
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call fcn.140017cf0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001a02b
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001a02b
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001a055
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp fcn.140018010
call fcn.140018c60
mov rbx, rax
test rax, rax
jne 0x140019fe9
add rsp, 0x28
pop rbx
pop r12
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 0x14001a073
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call fcn.140018010
call fcn.140019ed0
nop
nop word cs:[rax + rax]
nop dword [rax]
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
test rcx, rcx
je 0x14001a0b6
call fcn.140017a80
mov edx, 0xfffffffe
mov r12d, 0xffffffff
cmp rax, rdx
cmovbe r12d, eax
cmp dword [0x1400e7d40], 1
je 0x14001a0c4
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a128
test r12d, r12d
je 0x14001a108
call fcn.140019fc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a138
mov edx, r12d
call fcn.140017b40
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140019fc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140018c60
mov rbx, rax
jmp 0x14001a0d8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a0f3
Function at 0x14001a090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
je 0x140019fd5
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a040
test byte [rbx + 0x40], 0xc
jne 0x140019ff9
mov eax, dword [0x1400e7d48]
test eax, eax
jne 0x14001a008
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call fcn.140017cf0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001a02b
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001a02b
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001a055
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp fcn.140018010
call fcn.140018c60
mov rbx, rax
test rax, rax
jne 0x140019fe9
add rsp, 0x28
pop rbx
pop r12
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 0x14001a073
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call fcn.140018010
call fcn.140019ed0
nop
nop word cs:[rax + rax]
nop dword [rax]
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
test rcx, rcx
je 0x14001a0b6
call fcn.140017a80
mov edx, 0xfffffffe
mov r12d, 0xffffffff
cmp rax, rdx
cmovbe r12d, eax
cmp dword [0x1400e7d40], 1
je 0x14001a0c4
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a128
test r12d, r12d
je 0x14001a108
call fcn.140019fc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a138
mov edx, r12d
call fcn.140017b40
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140019fc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140018c60
mov rbx, rax
jmp 0x14001a0d8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a0f3

Function at 0x14001a150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x1400e7d40], 1
mov r12d, ecx
je 0x14001a168
call fcn.140018bb0
mov ecx, dword [0x1400b4398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a1d0
test r12d, r12d
je 0x14001a1b0
call fcn.140019fc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a1e0
mov edx, r12d
call fcn.140017b40
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140019fc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019fc0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.140018c60
mov rbx, rax
jmp 0x14001a17c
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a197
Function at 0x1400785e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140078607
call rbp
cmp dword [rax], 4
jne 0x140078624
mov rcx, rdi
call fcn.140078400
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140078600
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
retf
shl ch, 1
call [rax + 0x53ffdcbf]
xchg ebp, eax
invalid
jmp 0x1bb03df3d
sbb edi, edi
push rbp
push rcx
push rax
call qword [rsi + 0x54]
push rsp
inc dword [rax + 0x14ff8080]
adc edx, dword [rdx]
call qword [rdx + rdx]
adc al, 0x12
adc al, 0x12
adc edi, edi
xor eax, 0x1bff3333
sbb dword [rax], ebx
jmp [rbp + 0x43ffacac]
invalid
invalid
xor dword [0xffc4f5c3], ebp
mov edi, 0x252628ff
invalid
mov al, 0xff
cmp esi, dword [rdi]
cmp bh, bh
push rsp
push rax
push rcx
jmp qword [rdi - 0x7d005657]
cmpsd dword [rsi], dword [rdi]
invalid
invalid
invalid
invalid
test eax, 0x928f82ff
invalid
Function at 0x14000100a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140004d90
sub rsp, 0x58
xor ecx, ecx
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREValidityWBF
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004e5d
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
lea rdx, str.UpdateEFIImage
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140004e51
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea rdx, str.UpdateEFIImage
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x140004e5d
lea rcx, str._UpdateEFIImage_value_present
call fcn.14000107d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140004e6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x140001014
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1400043e0
mov eax, 0x1028
call fcn.1400095c0
sub rsp, rax
lea r8, [rsp + 0x1030]
lea edx, [rax - 0x28]
lea rcx, [rsp + 0x20]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x140004413
mov eax, 1
add rsp, 0x1028
ret
mov eax, dword [rsp + 0x1030]
shr eax, 2
je 0x140004457
mov qword [rsp + 0x1038], rbx
mov qword [rsp + 0x1020], rdi
mov edi, eax
lea rbx, [rsp + 0x20]
mov ecx, dword [rbx]
call fcn.140001019
add rbx, 4
sub rdi, 1
jne 0x140004436
mov rdi, qword [rsp + 0x1020]
mov rbx, qword [rsp + 0x1038]
xor eax, eax
add rsp, 0x1028
ret

Function at 0x140001019
Capabilities:
Enumerate process modules
Execute command

Disassembly:
jmp 0x140004160
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x2370
call fcn.1400095c0
sub rsp, rax
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0x2360], rax
mov ebp, ecx
lea rcx, [rsp + 0x2141]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2140], 0
call sub.MSVCR80.dll_memset
lea rcx, str.IN_terminateValProcess_nProcess_ID:__u_n
mov edx, ebp
call fcn.14000107d
mov r8d, ebp
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rsi, rax
jne 0x1400041d2
lea eax, [rsi + 1]
jmp 0x140004336
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000432b
lea rcx, [rsp + 0x2031]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2030], 0
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x2030]
mov r9d, 0x104
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea rdx, str.WUDFHost.exe
lea rcx, [rsp + 0x2030]
mov r8d, 0xd
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
jne 0x14000432b
lea rdx, [rsp + 0x2030]
lea rcx, str._nProcess_name:__s_n
mov qword [rsp + 0x2388], rbx
call fcn.14000107d
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140004323
mov qword [rsp + 0x2390], rdi
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea r8, [rsp + 0x2250]
mov r9d, 0x104
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea rdx, str.C:WindowsSystem32driversUMDFwbf_vfs_0050.dll
lea rcx, [rsp + 0x2250]
mov r8d, 0x32
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
je 0x1400042cf
mov eax, dword [rsp + 0x20]
add ebx, 1
add rdi, 8
shr eax, 3
cmp ebx, eax
jb 0x140004283
jmp 0x14000431b
lea rcx, str._nValidity_process__Terminating......_n
call fcn.14000107d
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rsp + 0x2250]
lea rcx, str._t_s__0x_08X__n
call qword [sym.imp.MSVCR80.dll_printf]
lea rdx, str.taskkill__PID__d__F
lea rcx, [rsp + 0x2140]
mov r8d, ebp
call qword [sym.imp.MSVCR80.dll_sprintf]
lea rcx, [rsp + 0x2140]
call qword [sym.imp.MSVCR80.dll_system]
mov rdi, qword [rsp + 0x2390]
mov rbx, qword [rsp + 0x2388]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2360]
xor rcx, rsp
call fcn.1400078a0
mov rbp, qword [rsp + 0x2398]
add rsp, 0x2370
pop rsi
ret