joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e080
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x14023bf70]
movzx esi, r9b
mov r15d, dword [rsp + 0x80]
mov r14d, edx
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x4018]
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or r15d, eax
cmp qword [rbx + 0x1a8], 0
jne 0x14000e0e3
cmp qword [rdi + 0x4db8], 0
lea rax, [rbx + 0x250]
je 0x14000e0ea
lea rax, [rbx + 0x220]
movss xmm3, dword [rax]
xorps xmm5, xmm5
movss xmm4, dword [rax + 4]
cvttss2si eax, dword [r8]
subss xmm3, dword [rbx + 0x100]
subss xmm4, dword [rbx + 0x104]
movss xmm2, dword [0x1400dae8c]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
comiss xmm5, xmm1
cvtdq2ps xmm0, xmm0
jb 0x14000e138
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x14000e138
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x14000e149
addss xmm0, xmm4
comiss xmm0, xmm2
jae 0x14000e149
movaps xmm0, xmm2
or dword [rdi + 0x49c8], 2
xor edx, edx
movss dword [rdi + 0x49e8], xmm1
movss dword [rdi + 0x49ec], xmm0
mov dword [rdi + 0x49d0], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x14000e192
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140007600
jmp 0x14000e1a8
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.140007600
movss xmm6, dword [rdi + 0x3920]
test sil, sil
jne 0x14000e1bf
mov dword [rdi + 0x3920], 0
mov rcx, qword [rsp + 0x60]
mov r8d, r15d
xor edx, edx
call fcn.140010d40
mov rsi, qword [rdi + 0x4018]
movzx ebp, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
jne 0x14000e1fe
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x1400d1a71]
not r9d
lea r10, [0x1400d2a60]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14000e22b
cmp byte [rdx], r8b
jne 0x14000e22b
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14000e218
not ebx
cmp dword [rdi + 0x4078], ebx
jne 0x14000e25b
xor edx, edx
xor ecx, ecx
call fcn.14000acf0
cmp dword [rdi + 0x4af8], r14d
jne 0x14000e2a8
bt r15d, 0x17
jb 0x14000e2a8
cmp word [rsi + 0x15c], 0
jne 0x14000e27e
cmp byte [rsi + 0x162], 0
je 0x14000e2a8
xor edx, edx
mov rcx, rsi
call fcn.140013280
xor edx, edx
mov rcx, rsi
call fcn.140018cd0
mov rdx, rsi
mov ecx, ebx
call fcn.14000acf0
mov eax, dword [rdi + 0x4b1c]
mov dword [rdi + 0x40a0], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400173d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14023bf70]
mov edi, ecx
cmp byte [rbx + 0x4d01], 0
jne 0x140017431
cmp byte [rbx + 0x4d02], 0
jne 0x140017431
movsx r9d, word [rbx + 0x5e34]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140007580
test dil, 2
je 0x14001755f
jmp 0x1400174ba
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e34]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400daeb8]
mulss xmm1, dword [0x1400daea8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49e0], rax
mov dword [rbx + 0x49cc], 1
movss dword [rbx + 0x49d8], xmm0
movss dword [rbx + 0x49dc], xmm1
movss xmm0, dword [rbx + 0x3a30]
mulss xmm0, dword [0x1400dae20]
or dword [rbx + 0x49c8], 0x41
movss dword [rbx + 0x4a28], xmm0
call fcn.140007580
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140017510
lea r11, [0x1400d2a60]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400174f3
cmp byte [r8], r9b
jne 0x1400174f3
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 0x1400174e0
not ecx
call fcn.14000e5b0
test rax, rax
je 0x14001755f
cmp byte [rax + 0xb6], 0
je 0x14001755f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5e34]
movsx r9d, word [rbx + 0x5e34]
call fcn.140007580
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140010d40
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140085d50
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001c420
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 + 0x5f88], 0
lea rbx, [rcx + 0x5f90]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001c4c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001c47a
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.14001e3f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140007e90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f88]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5f98]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14023bf68]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001c4cf
mov rcx, rbx
call fcn.140007e90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c730
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
mov rbx, qword [0x14023bf70]
xor ebp, ebp
cmp byte [rbx + 0x5ee0], bpl
jne 0x14001c80f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c808
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140007910
mov rsi, rax
test rax, rax
je 0x14001c808
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c794
mov rcx, rax
call fcn.14001c960
mov r8, qword [0x14023bf70]
test r8, r8
je 0x14001c7ff
movsx rdx, word [r8 + 0x6040]
lea rcx, [r8 + 0x6044]
mov r9d, dword [r8 + 0x3f70]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001c7f4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6040], cx
movsx rax, cx
lea rcx, [r8 + 0x6044]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x603c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ee0], 1
movss xmm0, dword [rbx + 0x5ee4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001c89e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ee4], xmm0
jb 0x14001c89e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001c891
mov rax, qword [0x14023bf70]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5ee4], ebp
call fcn.14001cbc0
lea rdx, [0x1400d25b4]
mov rcx, rdi
mov rsi, rax
call fcn.140007820
mov rdi, rax
test rax, rax
je 0x14001c898
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001c898
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5ee4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c8c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14023bf70]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001c923
mov qword [rsp], rbx
lea rbx, [0x1400d2a60]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001c903
cmp byte [r8], r9b
jne 0x14001c903
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 0x14001c8f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ef8]
not eax
mov r8, qword [r10 + 0x5f00]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001c94f
cmp dword [r8 + 8], eax
je 0x14001c956
add r8, 0x48
cmp r8, rcx
jne 0x14001c940
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140037d70
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140037da1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14023c528]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14023c538]
lea rdx, [rdi + rdi]
call fcn.1400377f0
mov rax, qword [0x14023c528]
lea r9, [rdi - 1]
mov qword [0x14023c550], r9
mov qword [0x14023c558], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140037f14
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14023c538]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140037e60
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140037ed5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140037e9d
mov r10, qword [rdx]
cmp r10, rax
je 0x140037e97
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140037ed5
cmp r9, rdx
je 0x140037eb1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140037ee9
cmp r9, rdx
jne 0x140037ea2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140037f0f
mov r9, qword [0x14023c550]
jmp 0x140037e11
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140037ed5
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400382c0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x40], 1
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 4
jb 0x140038492
mov r9, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140038347
mov r9, qword [rdx]
mov qword [rsp + 0x30], 4
lea rax, [0x1400d73e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x78]
call fcn.14003bad0
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140038455
nop word [rax + rax]
test byte [rbp - 0x60], 0x10
jne 0x140038436
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [rbp - 0x34]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400383d0
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x48]
call fcn.14003b1b0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14003841e
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
add qword [rbx + 8], 0x20
jmp 0x14003842c
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14003bdf0
nop
lea rcx, [rsp + 0x48]
call fcn.14003ab00
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400383a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x78]
call fcn.14003ab00
nop
mov rcx, rdi
call fcn.14003ab00
mov rax, rbx
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140085d50
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140037f20
int3
Function at 0x1400388b0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov dword [rsp + 0x20], 0x70
mov rdi, rcx
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x80], rax
xor ecx, ecx
lea rax, str.runas
mov dword [rsp + 0x24], 0x40
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
cmp qword [rdi + 0x18], 0xf
mov rax, rdi
mov rbx, rdx
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x28], rcx
jbe 0x14003891e
mov rax, qword [rdi]
cmp qword [rdx + 0x18], 0xf
mov qword [rsp + 0x38], rax
mov rax, rbx
jbe 0x140038930
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
lea rax, [0x1400d17b6]
mov qword [rsp + 0x48], rax
movzx eax, r9b
xor eax, 1
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x88], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test eax, eax
je 0x14003898b
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14003ab00
mov rcx, rbx
call fcn.14003ab00
mov eax, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140085d50
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140038bd0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
lea rax, str.runas
mov rbx, rcx
xor ecx, ecx
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 0x70
movups xmmword [rsp + 0x30], xmm0
cmp qword [rbx + 0x18], 0xf
mov qword [rsp + 0x30], rax
mov rax, rbx
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x24], 0x40
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], rcx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
jbe 0x140038c47
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
lea rax, [0x1400d17b6]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rcx, rbx
test eax, eax
je 0x140038c88
call fcn.14003ab00
mov eax, 1
jmp 0x140038c8f
call fcn.14003ab00
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140085d50
add rsp, 0xa0
pop rbx
ret
Function at 0x14003c280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14003c2e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14003c2a0
mov ecx, dword [r9]
jmp 0x14003c3cb
cmp ecx, 0x4e0
jb 0x14003c3cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003c300
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003c350
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14003d890
Capabilities:
Get uefi variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.14004a520
test al, al
je 0x14003da9b
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFirmwareType]
cmp dword [rsp + 0x38], 2
jne 0x14003d9a3
xor ebx, ebx
lea r8, [rsp + 0x40]
lea rdx, str.SeSystemEnvironmentPrivilege
mov qword [rsp + 0x40], rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x14003d908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SeSystemEnvironmentPrivilege
lea rcx, str.___Cannot_adjust_permissions_to__s___d__n
call fcn.14003de90
jmp 0x14003d9a3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14003d95a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cannot_open_the_current_process_ID___d__n
call fcn.14003de90
jmp 0x14003d9a3
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rbx
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14003da20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cannot_adjust_the_flag_of_the_current_process__d__n
call fcn.14003de90
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rdi
call fcn.14003dc20
mov rdi, qword [rax + 0x40]
mov edx, 0xff
lea rbx, [rax + 0x30]
cmp rdi, rdx
ja 0x14003d9d8
cmp qword [rbx + 0x18], 0xfe
ja 0x14003d9d8
sub rdx, rdi
mov rcx, rbx
call fcn.14003dcb0
mov qword [rbx + 0x10], rdi
call fcn.14003daf0
mov rcx, rax
call fcn.140044750
call fcn.14003dc20
call fcn.140042960
call fcn.14003dc20
call fcn.140043300
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140085d50
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x14003da3e
lea rcx, str.____Permission_adjustment_failed_n
call fcn.14003de90
jmp 0x14003d998
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
lea rdx, str.00000000_0000_0000_0000_000000000000
xor r8d, r8d
lea rcx, [0x1400d17b6]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x14003d9a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x14003da81
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003d9a3
mov r9d, 0x1010
mov dword [rsp + 0x28], 0x4e20
lea rdx, str.Your_BIOS_mode_must_be_UEFI.
call fcn.1400387e0
call fcn.1400388a0
int3
Function at 0x14003e640
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14003e661
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14003e68e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003e690
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003e6e9
test ecx, ecx
jle 0x14003e6c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14003e6e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003e6e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rcx], al
add dword [rdx], edi
invalid
Function at 0x14003e710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003e732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14003e741
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003e766
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003e7a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003e83e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003e7dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14003e81e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14003e83e
cmp rbx, rax
ja 0x14003e7f0
test rbx, rbx
je 0x14003e83e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add ebx, dword [rax + rax]