joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400192c0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc0], 0
jne 0x140019302
mov dword [rsp + 0x38], 1
jmp 0x14001930a
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0
je 0x140019338
xor r9d, r9d
mov r8d, 0x7c
lea rdx, [0x140019950]
lea rcx, [0x1400199a0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x140019340
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0xc0], 0
jne 0x140019355
mov eax, 0xc000000d
jmp 0x1400194b1
xor ecx, ecx
call fcn.140010450
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140019373
mov eax, 0xc0000225
jmp 0x1400194b1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140019395
mov eax, 0xc000007b
jmp 0x1400194b1
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
jmp 0x1400193bf
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x1400194ac
lfence
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x1400194a7
lfence
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0xb8]
movzx edx, byte [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call fcn.1400033a0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x1400194a1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x3c]
jmp 0x1400194b1
jmp 0x1400193b1
mov eax, 0xc0000225
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x98
ret
Function at 0x14011e080
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14011e08d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14011e09d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14011e085
lea eax, [rcx + 1]
jmp 0x14011e0ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14011e0be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14011e0a4
sub eax, 3
jb 0x14011e0de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14011e12d
sar eax, 1
movsxd rbp, eax
jb 0x14011e114
jmp 0x14011e0ec
add ebx, ebx
jne 0x14011e0ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14011e114
inc ecx
add ebx, ebx
jne 0x14011e0fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14011e114
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14011e10d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14011e0fc
add ecx, 2
jmp 0x14011e119
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14011e042
jmp 0x14011e08d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc5c00
mov dl, 0x24
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14011e17d
cmp rsi, rcx
jae 0x14011e185
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14011e164
cmp al, 0x8f
ja 0x14011e164
cmp byte [rsi - 2], 0xf
je 0x14011e16a
sub al, 0xe8
cmp al, 1
ja 0x14011e14e
cmp rsi, rcx
jae 0x14011e185
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14011e154
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14011e185
lodsb al, byte [rsi]
jmp 0x14011e164
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11b000]
mov eax, dword [rdi]
or eax, eax
je 0x14011e1ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x122648]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14011e192
jns 0x14011e1c7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14011e1d1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14011e1e8
mov qword [rbx], rax
add rbx, 8
jmp 0x14011e1b2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14011e246
sub rsp, 0xffffffffffffff80
jmp 0x1400a8378
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054d0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005390]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140002ee0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140002ee0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002792
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000282a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000280e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002802
cmp qword [rbp - 0x10], 0
je 0x140002802
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027c8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000282b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1405c2108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405c228f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405c2139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c211f
add dl, dl
jne 0x1405c2146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c21a6
xor eax, eax
add dl, dl
jne 0x1405c2155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c225d
add dl, dl
jne 0x1405c2166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c2173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c2180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c218d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405c219a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405c212e
mov eax, 1
add dl, dl
jne 0x1405c21b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c21c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c21ab
sub eax, ebx
mov ebx, 1
jne 0x1405c21fc
mov ecx, 1
add dl, dl
jne 0x1405c21de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c21eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c21d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c212e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405c2218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c2225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c220d
cmp eax, 0x7d00
jae 0x1405c224b
cmp eax, 0x500
jb 0x1405c2246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c212e
cmp eax, 0x7f
ja 0x1405c224e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c212e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405c2282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405c212e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002acc1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x14002ad3d
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x14002ad1d
cmp rdi, r14
ja 0x14002ad7a
cmp r14, rax
ja 0x14002ad7a
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14002ad27
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x14002ad0a
jmp 0x14002ad2f
mov rdx, rbx
mov rdi, r14
jbe 0x14002ace4
jmp 0x14002ad3d
mov rdx, rbx
mov rdi, r14
jmp 0x14002ace4
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14002ad31
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x14002ad5b
mov r11, r8
jmp 0x14002ad72
cmp r8, r10
je 0x14002ad7a
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14002ad31
xor al, 1
jmp 0x14002ad45
ud2
Function at 0x14003db77
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rbx, r9
mov rsi, r8
mov r11, rdx
movabs rdi, 0x100000001b3
mov r15, qword [r9 + 8]
mov r8, qword [r9 + 0x10]
lea rdx, [r8*8]
movabs rax, 0xcbf29ce484222325
mov r9, r15
test rdx, rdx
je 0x14003dbeb
movzx r10d, byte [r9 + 4]
xor rax, r10
imul rax, rdi
movzx r10d, byte [r9 + 5]
xor r10, rax
mov eax, dword [r9]
add r9, 8
imul r10, rdi
xor rax, r10
imul rax, rdi
add rdx, 0xfffffffffffffff8
jmp 0x14003dbba
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x14003dd71
xor edx, edx
div r9
mov rdi, rdx
mov rax, qword [rsi + 8]
mov r12, rdx
shl r12, 5
movzx edx, word [rax + r12 + 0x1c]
cmp dx, word [rsi + 0x20]
jne 0x14003dc57
cmp qword [rax + r12 + 0x10], r8
jne 0x14003dc57
mov r14, qword [rax + r12 + 8]
xor edx, edx
cmp r8, rdx
je 0x14003dd5a
mov r9b, byte [r14 + rdx*8 + 4]
cmp r9b, byte [r15 + rdx*8 + 4]
jne 0x14003dc57
mov r9b, byte [r14 + rdx*8 + 5]
cmp r9b, byte [r15 + rdx*8 + 5]
jne 0x14003dc57
mov r9d, dword [r14 + rdx*8]
lea r10, [rdx + 1]
cmp r9d, dword [r15 + rdx*8]
mov rdx, r10
je 0x14003dc25
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
movabs r14, 0x8000000000000008
lea r13, [rsp + 0x38]
mov rcx, r13
mov rdx, r15
mov rbx, r11
call fcn.14003dd73
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, rbx
mov rbx, r14
mov r8, r13
call fcn.14003d65e
mov rdx, qword [rbp]
cmp rdx, r14
jne 0x14003dd02
cmp qword [rsi + 0x10], rdi
jbe 0x14003dd71
mov edi, dword [rsp + 0x58]
movzx ebp, word [rsi + 0x20]
mov rsi, qword [rsi + 8]
mov rcx, qword [rsi + r12]
mov rdx, qword [rsi + r12 + 8]
call fcn.140035ecb
mov r14, qword [rsp + 0x28]
mov rax, qword [r14 + 0x10]
mov qword [rsi + r12 + 0x10], rax
movups xmm0, xmmword [r14]
movups xmmword [rsi + r12], xmm0
mov dword [rsi + r12 + 0x18], edi
mov word [rsi + r12 + 0x1c], bp
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], edi
mov qword [rax], rbx
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x5c]
mov r8d, dword [rsi - 4]
lea rax, [rsp + 0xd4]
mov ecx, 0x1d
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov rdi, qword [rsp + 0x30]
mov qword [rdi], rdx
mov dword [rdi + 8], r8d
add rdi, 0xc
mov ecx, 0x1d
mov rsi, rax
rep movsd dword [rdi], dword [rsi]
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rbx]
mov rdx, r15
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140035ecb
mov eax, dword [rax + r12 + 0x18]
mov dword [rcx + 8], eax
movabs rax, 0x8000000000000008
mov qword [rcx], rax
jmp 0x14003dd3c
ud2
Function at 0x14008658d
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400f2250]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400865fe
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140086635
test eax, eax
js 0x14008660f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140086628
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.1400868a2
mov rcx, rax
call fcn.140001645
mov ecx, 7
int 0x29
ud2
Function at 0x14008a1c4
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
movabs rbx, 0x8000000000000000
lea r14, [rsp + 0x78]
mov rcx, r14
call fcn.1400897c2
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.14008a3a7
mov rax, qword [rsi]
cmp rax, rbx
jne 0x14008a211
mov qword [rdi], rbx
jmp 0x14008a390
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
and qword [rax], 0
mov qword [rax + 8], 2
and qword [rax + 0x10], 0
mov r8d, 0x200
mov r15d, 2
xor r12d, r12d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14008a26b
lea rbp, [rsp + 0x78]
mov ebx, 0x200
mov rsi, r8
jmp 0x14008a2a0
sub r8, r13
lea rcx, [rsp + 0x60]
mov rdx, r8
call fcn.14008601c
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
cmp r12, r14
mov r13d, 0xffffffff
cmovb r13, r12
mov qword [rsp + 0x70], r13
mov rbp, r15
mov rbx, r13
mov rsi, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, esi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14008a2c9
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14008a348
mov r8d, edi
cmp rsi, r8
jne 0x14008a2f2
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008a3a5
add rsi, rsi
cmp rsi, r14
cmovae rsi, r14
mov r8, rsi
jmp 0x14008a253
jb 0x14008a253
cmp rbx, r8
jb 0x14008a3a5
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.140085828
mov rcx, r12
mov rdx, r15
call fcn.1400860da
movabs rdi, 0x8000000000000000
cmp qword [rsi], rdi
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
je 0x14008a376
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x14008a383
call fcn.1400860c3
mov qword [rsp + 0x48], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, r15
call fcn.1400860da
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov qword [rax], rdi
mov rcx, qword [rsp + 0x48]
call fcn.140001281
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
call fcn.1400860da
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14008a655
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400f2250]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14008a6bf
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14008a6ce
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14008a703
cmp eax, 0x103
je 0x14008a70d
test eax, eax
js 0x14008a6e8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
and qword [rsi], 0
jmp 0x14008a703
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.1400868a2
mov rcx, rax
call fcn.140001645
mov ecx, 7
int 0x29
ud2

Function at 0x14008ccaf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.14008cd39
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rdi
call fcn.14008a3a7
mov rdi, qword [rbx]
cmp rdi, r14
jne 0x14008ccf1
mov qword [rsi], r14
jmp 0x14008cd14
mov rbx, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008cd20
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsi], r14
mov rcx, rdi
mov rdx, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400860da
Function at 0x14008df2c
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14008df5f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14008df64
call fcn.14008df6a
nop
add rsp, 0x38
ret

Function at 0x14008df6a
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14008df97
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400860c3
ud2

Function at 0x14008ebb8
Capabilities:
Parse pe header

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