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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x140038068]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rbx, rdx
mov edi, ecx
call fcn.140004a7c
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140004a54
movzx ecx, byte [rbx + 0xf]
shl rcx, 8
cmp byte [0x140038c10], 0
je 0x1400049f5
movzx eax, byte [rbx + 0xa]
movzx edx, byte [rbx + 0xb]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 9]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 8]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0xe]
or rcx, rax
movzx eax, byte [rbx + 0xd]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 0xc]
shl rcx, 8
or rcx, rax
shl rcx, 0x20
or rdx, rcx
jl 0x140004a54
xor r8d, r8d
mov ecx, edi
call fcn.140015afc
test rax, rax
js 0x140004a54
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140019750
test eax, eax
js 0x140004a54
movzx eax, byte [rsp + 0x22]
movzx ecx, byte [rsp + 0x23]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x21]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x20]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6064b50
jne 0x140004a54
movzx eax, byte [rsp + 0x56]
movzx edx, byte [rsp + 0x57]
movzx r8d, byte [rsp + 0x53]
shl edx, 8
or edx, eax
shl r8d, 8
movzx eax, byte [rsp + 0x55]
shl edx, 8
or edx, eax
movzx eax, byte [rsp + 0x54]
shl edx, 8
or rdx, rax
movzx eax, byte [rsp + 0x52]
or r8d, eax
shl rdx, 0x20
movzx eax, byte [rsp + 0x51]
shl r8d, 8
or r8d, eax
movzx eax, byte [rsp + 0x50]
shl r8d, 8
or r8, rax
or rdx, r8
jl 0x140004a54
xor r8d, r8d
mov ecx, edi
call fcn.140015afc
test rax, rax
js 0x140004a54
movzx eax, byte [rsp + 0x4e]
mov r8, 0xffffffffffffffc8
movzx edx, byte [rsp + 0x4f]
movzx ecx, byte [rsp + 0x4b]
shl rdx, 8
or rdx, rax
shl rcx, 8
movzx eax, byte [rsp + 0x4d]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x4c]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x4a]
or rcx, rax
shl rdx, 0x20
movzx eax, byte [rsp + 0x49]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x48]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x56]
or rdx, rcx
movzx ecx, byte [rsp + 0x53]
sub r8, rdx
shl rcx, 8
movzx edx, byte [rsp + 0x57]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x55]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x54]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x52]
or rcx, rax
shl rdx, 0x20
movzx eax, byte [rsp + 0x51]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x50]
shl rcx, 8
or rcx, rax
or rdx, rcx
sub r8, rdx
add rsi, r8
jmp 0x140004a4f
movzx eax, byte [rbx + 0x12]
xor r8d, r8d
movzx edx, byte [rbx + 0x13]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0x11]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0x10]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0xe]
or rcx, rax
movzx eax, byte [rbx + 0xd]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 0xc]
shl rcx, 8
or rcx, rax
add rcx, rdx
sub rsi, rcx
mov ecx, edi
add rdx, rsi
call fcn.140015afc
test rax, rax
js 0x140004a54
mov rax, rsi
jmp 0x140004a58
or rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14000ac30
mov rbx, qword [rsp + 0x460]
add rsp, 0x430
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov edi, 2
mov r8d, edi
mov rdx, 0xffffffffffffffea
mov ebp, ecx
call fcn.140015afc
mov rbx, rax
test rax, rax
js 0x140004c0c
lea r8d, [rdi + 0x14]
mov rdx, rsi
mov ecx, ebp
call fcn.140019750
test eax, eax
js 0x140004c0c
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x140004b19
mov rcx, rsi
call fcn.140004fec
test eax, eax
je 0x140004b11
mov r8, rbx
mov rdx, rsi
mov ecx, ebp
call fcn.140004c2c
mov rbx, rax
mov rax, rbx
jmp 0x140004c10
mov r8d, edi
xor edx, edx
mov ecx, ebp
call fcn.140015afc
mov r15, rax
test rax, rax
js 0x140004c0c
mov r14d, 0x10015
mov r8d, edi
cmp rax, r14
mov ebx, r14d
mov ecx, ebp
cmovl rbx, rax
mov rdx, rbx
neg rdx
call fcn.140015afc
test rax, rax
js 0x140004c0c
mov ecx, r14d
call fcn.14000ecc4
mov rdi, rax
test rax, rax
je 0x140004c0c
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
call fcn.140019750
test eax, eax
js 0x140004c04
movsxd r14, eax
add eax, 0xffffffea
movsxd rbx, eax
add r14, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140004c04
cmp byte [rbx], 0x50
jne 0x140004bdb
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x140004bdb
movzx eax, byte [rbx + 0x14]
movzx ecx, byte [rbx + 0x15]
shl rcx, 8
or rcx, rax
lea rax, [rbx + 0x16]
add rax, rcx
cmp rax, r14
je 0x140004be0
dec rbx
jmp 0x140004b92
mov r8d, 0x16
mov rdx, rbx
mov rcx, rsi
call fcn.14000b450
mov rcx, rdi
call fcn.14000ecb0
sub rbx, r14
add rbx, r15
jmp 0x140004af5
mov rcx, rdi
call fcn.14000ecb0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140004c2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov esi, ecx
lea rdx, [r8 - 0x14]
xor r8d, r8d
call fcn.140015afc
mov rdi, rax
test rax, rax
js 0x140004c93
mov r8d, 0x14
mov rdx, rbx
mov ecx, esi
call fcn.140019750
test eax, eax
js 0x140004c93
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
cmp ecx, 0x7064b50
jne 0x140004c93
mov rax, rdi
jmp 0x140004c97
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005068
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 0x1400051b8
cmp qword [rdx], 0xffffffffffffffff
je 0x1400051b8
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.140015afc
test rax, rax
js 0x1400051b8
mov rcx, qword [rbx + 8]
inc rcx
call fcn.14000ecc4
mov rdi, rax
test rax, rax
je 0x1400051b8
mov r8d, dword [rbx + 8]
mov rdx, rax
mov ecx, esi
call fcn.140019750
movsxd rcx, eax
mov rax, qword [rbx + 8]
cmp rcx, rax
jne 0x1400051b0
cmp dword [rbx + 0x18], 0
jne 0x140005105
mov byte [rax + rdi], 0
test r14, r14
je 0x1400050fd
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov rax, rdi
jmp 0x1400051ba
cmp dword [rbx + 0x18], 8
jne 0x1400051b0
and qword [rsp + 0x50], 0
lea r8, str.1.2.11
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.140009444
test eax, eax
js 0x1400051b0
mov rcx, qword [rbx]
inc rcx
call fcn.14000ecc4
mov rsi, rax
test rax, rax
je 0x1400051b0
mov ecx, dword [rbx]
mov edx, 1
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140007d64
mov rcx, rdi
test eax, eax
jns 0x140005187
call fcn.14000ecb0
mov rcx, rsi
jmp 0x1400051b3
mov rax, qword [rbx]
mov byte [rsi + rax], 0
call fcn.14000ecb0
lea rcx, [rsp + 0x20]
call fcn.1400093fc
test eax, eax
js 0x140005182
test r14, r14
je 0x1400051ab
mov eax, dword [rbx]
mov dword [r14], eax
mov rax, rsi
jmp 0x1400051ba
mov rcx, rdi
call fcn.14000ecb0
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 0x140005458
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.140016030
mov rbx, rax
test rax, rax
jne 0x1400054bf
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.140016030
mov rbx, rax
cmp dword [0x140038040], 0
je 0x140005576
lea rcx, str.J2D_D3D
call fcn.14000ea8c
test rax, rax
je 0x1400054f6
lea rdx, str.false
mov rcx, rax
call fcn.1400182a0
neg eax
sbb ecx, ecx
and dword [0x140038040], ecx
lea rcx, str.J2D_D3D_PRELOAD
call fcn.14000ea8c
mov rdi, rax
test rax, rax
je 0x14000552b
lea rdx, str.false
mov rcx, rax
call fcn.1400182a0
neg eax
sbb ecx, ecx
and ecx, dword [0x140038040]
mov dword [0x140038040], ecx
jmp 0x140005531
mov ecx, dword [0x140038040]
test ecx, ecx
jns 0x140005568
and dword [0x140038040], 0
test rdi, rdi
je 0x140005576
lea rdx, str.true
mov rcx, rdi
call fcn.1400182a0
mov ecx, dword [0x140038040]
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x140038040], ecx
test ecx, ecx
je 0x140005576
lea rcx, str.preloadD3D
call fcn.1400052e0
test rbx, rbx
je 0x1400055a0
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 0x1400055a9
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x140038c18], 0
je 0x1400055c0
mov rax, qword [0x140038c40]
test rax, rax
je 0x1400055c0
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 0x140006480
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 0x1400064f4
cmp dword [rsp + 0x34], 1
jne 0x1400064f4
cmp dword [rsp + 0x30], ebx
jae 0x1400064f4
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400064f4
mov al, 1
jmp 0x1400064f6
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 0x140006b58
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 [0x140038068]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x38], 0
mov r15, rcx
movdqa xmm0, xmmword [0x140029e30]
xor esi, esi
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + rsi*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 0x140006ce9
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rcx, r14
mov r9d, 0x104
xor edx, edx
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140006ce9
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
inc ebx
call fcn.140007084
test eax, eax
je 0x140006c32
test rdi, rdi
je 0x140006c25
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000719c
test eax, eax
jle 0x140006c32
mov rcx, rdi
call fcn.1400011d4
lea rcx, [rsp + 0x60]
call fcn.14000126c
mov rdi, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140006bf3
test rdi, rdi
je 0x140006ce9
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rdi
mov ebx, eax
call fcn.1400011d4
mov rcx, qword [rsp + 0x30]
test ebx, ebx
je 0x140006c94
test rcx, rcx
je 0x140006ce9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006ce9
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140006c87
test rcx, rcx
je 0x140006cd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.14000126c
mov rbx, rax
test rax, rax
jne 0x140006d31
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006cf9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rsi
cmp rsi, 1
jle 0x140006b9f
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000ac30
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 0x140006d41
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140006d08
Function at 0x1400079f8
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.1400011a8
lea ecx, [rbx + 0x70]
mov rsi, rax
mov dword [rax + 0xc], ebx
call fcn.1400011a8
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.1400011a8
lea rdx, [0x140038c50]
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140007a6f
mov rcx, r14
call fcn.1400011d4
mov rcx, rsi
call fcn.140007730
xor eax, eax
jmp 0x140007bad
lea r13, [0x140038c7c]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x140007a8d
and qword [r14 + 8], 0
jmp 0x140007aa5
mov rcx, qword [r14]
lea rdx, [0x140038c50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r13
test rbp, rbp
je 0x140007b90
mov rcx, rbp
call fcn.14000eb70
cmp eax, 4
jl 0x140007a7d
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140007a7d
lea rbx, [rcx + rbp]
lea rcx, [rbx - 3]
lea rdx, [0x140029e50]
call fcn.140014b80
test eax, eax
je 0x140007af1
lea rdx, [0x140029e54]
lea rcx, [rbx - 3]
call fcn.140014b80
test eax, eax
jne 0x140007a7d
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bb18
test rax, rax
jne 0x140007a7d
mov rcx, r12
call fcn.14000eb70
mov rcx, rbp
mov rdi, rax
call fcn.14000eb70
mov rbx, rax
lea ecx, [rax + rdi]
movsxd rcx, ecx
call fcn.1400011a8
lea ecx, [rdi - 1]
mov rdx, r12
movsxd r8, ecx
mov r15, rax
mov rcx, rax
call fcn.14000b450
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
movsxd rcx, edi
dec rcx
add rcx, r15
call fcn.14000b450
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 0xc]
lea eax, [rdx + 1]
cmp ecx, eax
jge 0x140007b7e
add ecx, ecx
cmp ecx, eax
jl 0x140007b60
movsxd rdx, ecx
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsi]
shl rdx, 3
call fcn.1400011dc
mov edx, dword [rsi + 8]
mov qword [rsi], rax
mov rax, qword [rsi]
movsxd rcx, edx
mov qword [rax + rcx*8], r15
inc dword [rsi + 8]
jmp 0x140007a7d
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r14 + 8]
call fcn.1400011d4
mov rcx, r14
call fcn.1400011d4
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 0x14000efb0
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 0x14000ee43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ee43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ee43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ee43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ee43
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ee43
cmp dword [rcx + 0xf8], 0
je 0x14000ee43
mov ecx, ebx
call fcn.14000eee4
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.14000ecd4
cmp dword [rbp + 0x20], 0
je 0x14000ee90
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ee98
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000eddc
Function at 0x14001e514
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14001e4f1
call fcn.140015bc4
mov dword [rax], 0x16
call fcn.14001a72c
or eax, 0xffffffff
jmp 0x14001e50e
sub dword [rcx + 0x10], 1
jns 0x14001e500
add rsp, 0x28
jmp 0x140024250
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14001e4d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140024282
call fcn.140015bc4
mov dword [rax], 0x16
call fcn.14001a72c
jmp 0x14002439f
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002439f
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002439f
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400242b1
lock or dword [rcx + 0x14], 0x10
jmp 0x14002439f
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400242c5
call fcn.1400243bc
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14001cc2c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140019750
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002438d
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140024358
mov rcx, rdi
call fcn.14001cc2c
cmp eax, esi
je 0x140024343
mov rcx, rdi
call fcn.14001cc2c
cmp eax, 0xfffffffe
je 0x140024343
mov rcx, rdi
call fcn.14001cc2c
movsxd rbx, eax
lea r14, [0x1400398b0]
mov rcx, rdi
sar rbx, 6
call fcn.14001cc2c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002434a
lea rdx, [0x1400382d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024358
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14002437c
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14002437c
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14002437c
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1400243a2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b8520]
mov dword [rax], 1
mov rax, qword [0x1400b8530]
mov dword [rax], 1
mov rax, qword [0x1400b8540]
mov dword [rax], 1
mov rax, qword [0x1400b84c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019a00
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140093750
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140019ac5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a4652
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140019aa6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140019a98
test rsi, rsi
je 0x1400a4652
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019a58
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140019af4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [8]
ud2

Function at 0x140019b10
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x140019bcd
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a4658
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140019bae
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140019ba0
test rsi, rsi
je 0x1400a4658
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019b60
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret