joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180052cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18006ed70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180052d44
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180052d6d
mov eax, 0xa
jmp 0x180052ea7
cmp dword [rsp + 0x88], 0
je 0x180052ddb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180052dd9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180052e27
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180052e0b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180052e27
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180059e90]
call fcn.180056304
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180054390
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800543fe
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1800543fe
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1800543fe
xor eax, eax
jmp 0x180054445
mov dword [rsp], 1
jmp 0x18005440f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180054440
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18005443e
xor eax, eax
jmp 0x180054445
jmp 0x180054407
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x140001170
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400359ac
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140035777
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035777
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035777
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140035777
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035777
cmp dword [rcx + 0x84], 0xe
jbe 0x140035777
cmp dword [rcx + 0xf8], 0
je 0x140035777
mov ecx, ebx
call fcn.140035908
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140035478
cmp dword [rbp + 0x20], 0
je 0x1400357c4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400357fc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140035710

Function at 0x1400013c0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140062b8c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14008e160]
mov ecx, 5
lea r8, [0x14008e158]
lea rdx, str.FlsGetValue
call fcn.140062184
mov ecx, ebx
test rax, rax
je 0x140062bc6
add rsp, 0x20
pop rbx
jmp qword [0x1400af020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400023e0
Capabilities:
Create service
Persist via windows service

Disassembly:
jmp 0x14001e2c0
push rbx
sub rsp, 0x130
mov rax, qword [0x1400a00c8]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14001e379
mov r8d, 0x51
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001e370
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
lea r8, str.WBFPolicyService
mov qword [rsp + 0x58], rcx
lea rdx, str.WBFPolicyService
mov qword [rsp + 0x50], rcx
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x14001e370
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140003a10
add rsp, 0x130
pop rbx
ret

Function at 0x140002e10
Capabilities:
Terminate process

Disassembly:
jmp 0x1400203a8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14007a838
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400a00c8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x1400a3618]
test r9, r9
lea rdi, [0x14008a73c]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x14007a8a1
mov rax, 0xfffffffffffffffe
jmp 0x14007a9ef
cmp word [r11 + 6], r10w
jne 0x14007a910
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007a8cb
test rsi, rsi
je 0x14007a8bc
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x14007a9ef
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x14007a8d9
mov r8b, 2
jmp 0x14007a8f7
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x14007a8e7
mov r8b, 3
jmp 0x14007a8f7
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x14007a9dd
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x14007a939
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14007a9dd
cmp bl, bpl
jb 0x14007a9dd
cmp bl, r8b
jae 0x14007a9dd
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x14007a966
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14007a9dd
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x14007a948
cmp r9, rbp
jae 0x14007a992
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x14007a895
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14007a9dd
cmp edx, 0x110000
jae 0x14007a9dd
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14007a9dd
test rsi, rsi
je 0x14007a9d0
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x14007a9ef
mov qword [r11], r10
call fcn.140003da0
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003a10
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400036e0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140021d08
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140006910
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140089b48]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140002b80
test eax, eax
jne 0x140021d9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140021d9f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140021d98
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400a1490], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400038c0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140062be4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14008e170]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14008e168]
call fcn.140062184
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140062c24
call qword [0x1400af020]
jmp 0x140062c2a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
jmp 0x140035a20
xor r8d, r8d
xor edx, edx
jmp 0x140035710
Function at 0x140004680
Capabilities:
Get system firmware table

Disassembly:
jmp 0x14001bd40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r9d, r9d
mov ecx, 0x52534d42
xor r8d, r8d
mov edx, 0x50434146
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
je 0x14001bd9d
mov ecx, ebx
call fcn.1400098a0
mov r9d, ebx
mov qword [rdi], rax
mov r8, rax
mov edx, 0x50434146
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x14001bd9d
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140005130
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400608e4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x1400609b6
mov rsi, rax
cmp word [rax], r14w
je 0x140060937
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14006091f
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14006091b
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1400095a0
movsxd rbp, eax
test eax, eax
je 0x1400609b6
mov rcx, rbp
call fcn.140006cd0
mov rdi, rax
test rax, rax
je 0x1400609a9
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400095a0
test eax, eax
je 0x1400609a9
mov rsi, rdi
mov rdi, r14
jmp 0x1400609ac
mov rsi, r14
mov rcx, rdi
call fcn.1400061d0
jmp 0x1400609b9
mov rsi, r14
test rbx, rbx
je 0x1400609c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140006930
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140034598
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14008b688]
xor ecx, ecx
lea r8, [0x14008b680]
lea rdx, str.FlsAlloc
call fcn.14003411c
test rax, rax
je 0x1400345d1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400af020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x140007150
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
jmp 0x14001e8c0
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a00c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14001e995
mov r8d, 0x10024
mov qword [rsp + 0x60], rbx
lea rdx, str.WBFPolicyService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001e91d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
jmp 0x14001e98a
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001e975
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001e975
cmp dword [rsp + 0x24], 3
jne 0x14001e975
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001e951
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003a10
add rsp, 0x50
pop rdi
ret

Function at 0x140007a50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14001fc74
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001fd01
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14001fd01
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fd01
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14001fce8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14001fce2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001fcea
add rdx, 0x28
jmp 0x14001fcc7
xor edx, edx
test rdx, rdx
jne 0x14001fcf3
xor al, al
jmp 0x14001fd07
cmp dword [rdx + 0x24], 0
jge 0x14001fcfd
xor al, al
jmp 0x14001fd07
mov al, 1
jmp 0x14001fd07
xor al, al
jmp 0x14001fd07
add rsp, 0x18
ret
Function at 0x1400084b0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400359bc
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140035710

Function at 0x140008630
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400346a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14008b6e8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14008b6e0]
call fcn.14003411c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400346e0
call qword [0x1400af020]
jmp 0x1400346e6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009130
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020a3c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020a87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020a87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020a87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020a87
cmp dword [rcx + 0x84], 0xe
jbe 0x140020a87
cmp dword [rcx + 0xf8], 0
je 0x140020a87
mov al, 1
jmp 0x140020a89
xor al, al
add rsp, 0x28
ret

Function at 0x140009220
Capabilities:
Get uefi variable

Disassembly:
jmp 0x14001d780
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2440
call fcn.140001100
sub rsp, rax
mov rax, qword [0x1400a00c8]
xor rax, rsp
mov qword [rsp + 0x2430], rax
movups xmm0, xmmword [str.EssState]
movzx eax, word [0x140087ab8]
mov rbx, rcx
xor edx, edx
mov word [rsp + 0x440], ax
mov r8d, 0xfee
movaps xmmword [rsp + 0x430], xmm0
lea rcx, [rsp + 0x442]
call fcn.140006910
movaps xmm0, xmmword [str.E771C02B_6657_48FE_8547_52A656868F0F]
lea rcx, [rsp + 0x7e]
movaps xmm1, xmmword [0x140087ad0]
xor edx, edx
mov eax, dword [0x140087b08]
mov r8d, 0x3b2
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140087ae0]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x140087b00]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140087af0]
mov dword [rsp + 0x78], eax
movzx eax, word [0x140087b0c]
movsd qword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x7c], ax
call fcn.140006910
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x1000
xor edi, edi
call fcn.140006910
mov r9d, 0x1000
lea r8, [rsp + 0x1430]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
je 0x14001d88b
movzx ecx, byte [rsp + 0x1430]
mov eax, edi
mov dword [rbx], ecx
jmp 0x14001d890
mov eax, 1
mov rcx, qword [rsp + 0x2430]
xor rcx, rsp
call fcn.140003a10
mov rbx, qword [rsp + 0x2458]
add rsp, 0x2440
pop rdi
ret

Function at 0x1400099a0
Capabilities:
Terminate process

Disassembly:
jmp 0x140034d6c
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140034d86
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140009d30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140009e00
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140034648
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14008b6c8]
mov ecx, 2
lea r8, [0x14008b6c0]
lea rdx, str.FlsGetValue
call fcn.14003411c
mov ecx, ebx
test rax, rax
je 0x140034682
add rsp, 0x20
pop rbx
jmp qword [0x1400af020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000aa90
Capabilities:
Query environment variable

Disassembly:
jmp 0x140060a28
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140060aaf
mov rbp, rax
cmp word [rax], si
je 0x140060a71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140060a58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140060a54
sub rbp, rbx
add rbp, 2
sar rbp, 1
add rbp, rbp
mov rcx, rbp
call fcn.140006cd0
mov rdi, rax
test rax, rax
je 0x140060a9f
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140009100
mov rsi, rdi
xor ecx, ecx
call fcn.1400061d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bd40
Capabilities:
Get system firmware table

Disassembly:
jmp 0x14001bd40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r9d, r9d
mov ecx, 0x52534d42
xor r8d, r8d
mov edx, 0x50434146
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
je 0x14001bd9d
mov ecx, ebx
call fcn.1400098a0
mov r9d, ebx
mov qword [rdi], rax
mov r8, rax
mov edx, 0x50434146
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x14001bd9d
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14001d780
Capabilities:
Get uefi variable

Disassembly:
jmp 0x14001d780
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2440
call fcn.140001100
sub rsp, rax
mov rax, qword [0x1400a00c8]
xor rax, rsp
mov qword [rsp + 0x2430], rax
movups xmm0, xmmword [str.EssState]
movzx eax, word [0x140087ab8]
mov rbx, rcx
xor edx, edx
mov word [rsp + 0x440], ax
mov r8d, 0xfee
movaps xmmword [rsp + 0x430], xmm0
lea rcx, [rsp + 0x442]
call fcn.140006910
movaps xmm0, xmmword [str.E771C02B_6657_48FE_8547_52A656868F0F]
lea rcx, [rsp + 0x7e]
movaps xmm1, xmmword [0x140087ad0]
xor edx, edx
mov eax, dword [0x140087b08]
mov r8d, 0x3b2
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140087ae0]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x140087b00]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140087af0]
mov dword [rsp + 0x78], eax
movzx eax, word [0x140087b0c]
movsd qword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x7c], ax
call fcn.140006910
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x1000
xor edi, edi
call fcn.140006910
mov r9d, 0x1000
lea r8, [rsp + 0x1430]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
je 0x14001d88b
movzx ecx, byte [rsp + 0x1430]
mov eax, edi
mov dword [rbx], ecx
jmp 0x14001d890
mov eax, 1
mov rcx, qword [rsp + 0x2430]
xor rcx, rsp
call fcn.140003a10
mov rbx, qword [rsp + 0x2458]
add rsp, 0x2440
pop rdi
ret