joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x98
lea rdx, [rcx + 0x310]
mov r9d, 8
lea r8, [rsp + 0xa0]
call fcn.140001ec0
mov r8d, dword [0x140057d9c]
lea rcx, [rsp + 0x20]
mov rdx, qword [rsp + 0xa0]
call fcn.140002160
movups xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call fcn.140002c90
movsd xmm1, qword [rsp + 0x28]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
jp 0x140005fb4
je 0x140006197
mov eax, dword [0x140057d40]
xorps xmm3, xmm3
cdq
mov qword [rsp + 0x90], rbx
sub eax, edx
movaps xmmword [rsp + 0x80], xmm6
sar eax, 1
xorps xmm2, xmm2
movaps xmmword [rsp + 0x70], xmm7
xorps xmm7, xmm7
movaps xmmword [rsp + 0x60], xmm8
movsd xmm8, qword [rsp + 0x20]
movd xmm5, eax
mov eax, dword [0x140057cd4]
cdq
sub eax, edx
sar eax, 1
cvtpd2ps xmm8, xmm8
movd xmm4, eax
ucomiss xmm8, xmm3
cvtdq2ps xmm4, xmm4
cvtpd2ps xmm6, xmm1
cvtdq2ps xmm5, xmm5
jp 0x140006014
je 0x14000605c
comiss xmm8, xmm5
jbe 0x14000603f
movaps xmm2, xmm5
movaps xmm0, xmm5
subss xmm2, xmm8
addss xmm0, xmm5
xorps xmm2, xmmword [0x14004f610]
movaps xmm1, xmm2
addss xmm1, xmm5
comiss xmm1, xmm0
jbe 0x14000603f
xorps xmm2, xmm2
comiss xmm5, xmm8
jbe 0x14000605c
movaps xmm2, xmm8
subss xmm2, xmm5
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm3, xmm0
jbe 0x14000605c
xorps xmm2, xmm2
ucomiss xmm6, xmm3
movaps xmm8, xmmword [rsp + 0x60]
jp 0x140006069
je 0x1400060ad
comiss xmm6, xmm4
jbe 0x140006092
movaps xmm7, xmm4
movaps xmm0, xmm4
subss xmm7, xmm6
addss xmm0, xmm4
xorps xmm7, xmmword [0x14004f610]
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm1, xmm0
jbe 0x140006092
xorps xmm7, xmm7
comiss xmm4, xmm6
jbe 0x1400060ad
movaps xmm7, xmm6
subss xmm7, xmm4
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm3, xmm1
jbe 0x1400060ad
xorps xmm7, xmm7
divss xmm2, dword [0x140057050]
xorps xmm1, xmm1
movaps xmm0, xmm2
movdqu xmmword [rsp + 0x28], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
divss xmm7, dword [0x140057050]
cvttss2si eax, xmm0
movaps xmm0, xmm7
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [0x140057c10]
cvttsd2si eax, xmm1
mov dword [rsp + 0x20], eax
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si eax, xmm0
xor ecx, ecx
mov edx, 0x1000
mov r8d, edx
lea r9d, [rcx + 0x40]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm1, qword [0x140057d48]
cvttsd2si eax, xmm1
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm7, xmmword [rsp + 0x70]
mov rbx, rax
movaps xmm6, xmmword [rsp + 0x80]
test rax, rax
je 0x14000618f
movups xmm0, xmmword [0x140057e30]
mov edx, 1
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140057e40]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x140057e48]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x140057e4c]
mov word [rax + 0x1c], cx
lea rcx, [rsp + 0x20]
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x90]
add rsp, 0x98
ret
Function at 0x140010500
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001055d
lea rbx, [0x140049f70]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140010544
cmp r10, 2
jb 0x140010544
cmp byte [r9], r8b
jne 0x140010544
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140010520
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001059f
lea rbx, [0x140049f70]
cmp r8b, 0x23
jne 0x140010583
cmp byte [r9], r8b
jne 0x140010583
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140010570
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400106e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400106fa
mov qword [r8], 0
lea rdx, [0x14004ed54]
call fcn.1400105b0
mov rbx, rax
test rax, rax
jne 0x14001071a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400107f1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400107f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400107f1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400107f1
cmp rdi, 0xffffffffffffffff
je 0x1400107f1
mov rax, qword [0x140057d60]
test rax, rax
je 0x14001078e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400107f1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400107de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140057d60]
test rax, rax
je 0x1400107d3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400107fa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400107ec
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400107fc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140012cc0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140049f70]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140057d60]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x140012d4b
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140024a90
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001ed80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140057d60]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x14001ede1
cmp byte [rbx + 0x4236], 0
jne 0x14001ede1
movsx r9d, word [rbx + 0x531a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400103c0
test dil, 1
je 0x14001ef08
jmp 0x14001ee6a
movss xmm1, dword [rbx + 0x3890]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x531a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004f39c]
mulss xmm1, dword [0x14004f390]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdf4]
addss xmm1, dword [rbx + 0xdf8]
mov qword [rbx + 0x3fa0], rax
mov dword [rbx + 0x3f8c], 1
movss dword [rbx + 0x3f98], xmm0
movss dword [rbx + 0x3f9c], xmm1
movss xmm0, dword [rbx + 0x38ec]
mulss xmm0, dword [0x14004f260]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.1400103c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001eec0
lea r11, [0x140049f70]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001eea3
cmp byte [r8], r9b
jne 0x14001eea3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001ee90
not ecx
call fcn.1400180b0
test rax, rax
je 0x14001ef08
cmp byte [rax + 0x96], 0
je 0x14001ef08
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x531a]
mov edx, 0x10
movsx r9d, word [rbx + 0x531a]
call fcn.1400103c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14001a760
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140047190
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140023610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53c8], 0
lea rbx, [rcx + 0x53d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400236b7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002366a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400256d0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140010c00
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140057d54]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400236bf
mov rcx, rbx
call fcn.140010c00
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140023c30
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140057d60]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140023c93
mov qword [rsp], rbx
lea rbx, [0x140049f70]
nop dword [rax]
cmp r9b, 0x23
jne 0x140023c73
cmp byte [r8], r9b
jne 0x140023c73
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140023c60
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140023cc7
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140023cce
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140023cb4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140047d10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047d5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047d5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047d5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047d5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140047d5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047d5c
xor al, al
add rsp, 0x28
ret
Function at 0x14000e684
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1400b3010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e6ff
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.140003ffc
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e82f
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e806
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e82f
mov al, 1
jmp 0x14000e831
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140016790
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002b50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x288]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, rbx
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x30]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x40], rbx
jle 0x140002ba0
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400081f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x1400740e8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x104
call fcn.14003e9d0
lea rsi, [rbp + 0x100]
call fcn.1400084e0
mov qword [rsp + 0x28], rsi
lea rdx, [rbp - 0x60]
xor esi, esi
mov r9, rbx
mov r8d, 0x104
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call fcn.1400458dc
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x140076e86], 0x20
je 0x140008330
xorps xmm0, xmm0
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x60]
lea rax, [rsp + 0x38]
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rax
mov rax, 0xffffffffffffffff
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], edi
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x78], 4
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1400082e0
inc eax
mov dword [rbp - 0x74], esi
mov dword [rbp - 0x78], eax
lea rcx, [rbp - 0x60]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rax
lea rdx, [0x140056110]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x68], 4
mov r9d, 5
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [section..data]
call fcn.140002d50
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14001fca0
add rsp, 0x1c8
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000dfb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov edi, 0x80008003
cmp dword [rcx + 0x30], eax
jbe 0x14000dfe5
lea rdx, str.Length_of_Message_write_to_MEI_should_be_shorter_than_m_MTU
xor ecx, ecx
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rcx + 0x40], 0xffffffffffffffff
jne 0x14000e007
lea rdx, str.Invalid_Device_Handle
xor ecx, ecx
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x38]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000e038
lea rdx, str.HECI_lock_timeout
xor ecx, ecx
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test eax, eax
je 0x14000e060
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_attain_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rbx + 0x30]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000e0de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000e0de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Write_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400081f0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jns 0x14000e1a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rsp + 0x40]
lea rdx, str.message_size_write_to_MEI_is__d
xor ecx, ecx
call fcn.1400081f0
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000e15e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Read_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400081f0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jns 0x14000e1a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
js 0x14000e0ba
mov r8d, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rbx + 0x30], r8d
cmp r8d, dword [rbx + 0x10]
jbe 0x14000e19a
lea rdx, str.Length_of_Message_read_from_MEI_should_be_shorter_than_m_MTU
call fcn.1400081f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.message_size_read_from_MEI_is__d
call fcn.1400081f0
xor edi, edi
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000eae0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x50564150
mov rdi, rdx
mov rbx, rcx
je 0x14000eb06
lea rdx, str.Unexpected_packet_Sig
xor ecx, ecx
call fcn.1400081f0
mov eax, 0x100
cmp word [rbx + 4], ax
je 0x14000eb1f
lea rdx, str.Unexpected_packet_Ver
xor ecx, ecx
call fcn.1400081f0
mov ecx, dword [rbx + 0x10]
lea rax, [rdi - 0x14]
cmp rcx, rax
je 0x14000eb39
lea rdx, str.Unexpected_packet_DataLen
xor ecx, ecx
call fcn.1400081f0
mov r8d, dword [rbx + 0xc]
cmp r8d, 6
ja case.default.0x14000eb59
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0xec04]
add rcx, rdx
jmp rcx
lea rdx, str.Invalid_packet_status:_CHS_STATUS_MAX_MESSAGE_LENGTH_EXCEEDED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_UNSPEC_ERROR
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_CONN_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_COMM_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_NOT_CONNECTED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_HECI_NOT_READY
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400081f0
lea rdx, str.Unsupported_packet_status___d
xor ecx, ecx
call fcn.1400081f0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ec70
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
cmp byte [0x140076e8c], 0
je 0x14000ec87
mov eax, 0xffffffff
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140076f00]
call fcn.14000ef50
cmp al, 1
jne 0x14000ed6a
lea rdx, str.Start__
xor ecx, ecx
call fcn.1400081f0
call fcn.14001da40
cmp byte [rax], bl
je 0x14000ed55
call fcn.14001da40
cmp byte [rax + 0x70], bl
je 0x14000ed55
call fcn.14001da40
cmp byte [rax + 0x30], bl
je 0x14000ed55
call fcn.14001da40
cmp byte [rax + 0x80], bl
je 0x14000ed55
call fcn.14001da40
cmp byte [rax + 0x90], bl
je 0x14000ed55
call fcn.14001da40
cmp byte [rax + 0xa0], bl
je 0x14000ed55
lea rax, [0x140076f68]
mov dword [0x14007718c], 1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
lea rax, [0x140011630]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000ed6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14007717c], eax
mov ebx, eax
jmp 0x14000ed6e
lea rdx, str.One_or_more_required_APIs_are_not_available__service_will_exit.
xor ecx, ecx
call fcn.1400081f0
mov ebx, 0x80070032
jmp 0x14000ed6e
mov ebx, dword [rsp + 0x20]
cmp dword [0x14007718c], 0
jne 0x14000ed86
cmp byte [0x140076f62], 0
je 0x14000ed86
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret