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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1404b27e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1402b5bdb
cmp word [rdx], r13w
jne 0x1402b5bdb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402b5be0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402b5d05
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402b5d26
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402b5c19
mov rdx, r9
mov word [rbx], cx
jmp 0x1402b5c40
cmp r9, r8
jae 0x1402b5c50
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1402b5bfa
jmp 0x1402b5d05
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402b5cfa
cmp dword [rsp + 0x80], esi
je 0x1402b5cfa
lea r8, [0x1404b27e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402b5cd2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402b5ca2
mov word [rbx], r13w
jmp 0x1402b5d02
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1402b5caf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402b5d02
cmp word [rsp + 0x70], r13w
jne 0x1402b5cdf
cmp rbx, r14
je 0x1402b5c9c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402b41e4
cmp word [rsp + 0x70], r13w
je 0x1402b5d05
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1404b27e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402b5cff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402b5d05

Function at 0x1402b8238
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402b8258
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402b23cc
or eax, 0xffffffff
jmp 0x1402b825a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1402c0ec0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1402c0edd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402c0f38
test al, 7
jne 0x1402c0ed0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1402c0ef1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402c0f62
test dh, dh
je 0x1402c0f5c
shr rdx, 0x10
test dl, dl
je 0x1402c0f56
test dh, dh
je 0x1402c0f50
shr rdx, 0x10
test dl, dl
je 0x1402c0f4a
test dh, dh
je 0x1402c0f44
shr edx, 0x10
test dl, dl
je 0x1402c0f3e
test dh, dh
jne 0x1402c0ef1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1402c4b3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
test r8, r8
jne 0x1402c4b5c
call fcn.1402b238c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402b3c14
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x1402c4b45
test rcx, rcx
jne 0x1402c4b6b
cmp qword [r8], rcx
je 0x1402c4b45
add rsp, 0x28
jmp 0x1402c4b74
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r10d, r10d
mov rdi, r8
mov eax, r10d
mov r11, rdx
cmp rax, 0x20
mov r9, rcx
jae 0x1402c4c93
mov byte [rsp + rax + 0x20], r10b
inc rax
cmp rax, 0x20
jl 0x1402c4b9e
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1402c4bb2
test r9, r9
jne 0x1402c4bdf
mov r9, qword [rdi]
movzx r8d, byte [r9]
mov edx, 1
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
mov r11, r9
test byte [rsp + rax + 0x20], dl
je 0x1402c4c36
mov rsi, r9
mov bl, r8b
mov r8b, bl
test bl, bl
je 0x1402c4c36
lea r9, [rsi + 1]
mov edx, 1
movzx ebx, byte [r9]
mov r11, r9
mov eax, ebx
mov ecx, ebx
and ecx, 7
shr rax, 3
shl edx, cl
mov rsi, r9
mov r8b, bl
test byte [rsp + rax + 0x20], dl
jne 0x1402c4c06
mov rbx, r11
test r8b, r8b
je 0x1402c4c71
mov al, byte [r11]
movzx r8d, al
mov edx, 1
mov ecx, r8d
inc rbx
and ecx, 7
shr r8, 3
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1402c4c6b
mov al, byte [rbx]
mov r9, rbx
test al, al
jne 0x1402c4c41
jmp 0x1402c4c71
mov byte [r9], r10b
mov r9, rbx
cmp rbx, r11
mov qword [rdi], r9
cmovne r10, r11
mov rax, r10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14029fd30
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.1402a1a8c
int3

Function at 0x1402c5d40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402c5d68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402c5d68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1402d0124
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1402c945c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1402d01c5
cmp ebx, dword [rsp + 0x30]
je 0x1402d01be
test esi, esi
je 0x1402d01be
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402d0199
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402d01a6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402d0183
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402d01aa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402d01c7
mov eax, 1
jmp 0x1402d01c7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402d1a90
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 0x1402d1ac0
xor eax, eax
jmp 0x1402d1b83
mov rbp, rbx
cmp word [rax], si
je 0x1402d1ae5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402d1acc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402d1ac8
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.1402c931c
movsxd r14, eax
test eax, eax
jne 0x1402d1b23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402d1ab9
mov rcx, r14
call fcn.1402c922c
mov rdi, rax
test rax, rax
jne 0x1402d1b3c
xor ecx, ecx
call fcn.1402c91f0
jmp 0x1402d1b18
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.1402c931c
test eax, eax
jne 0x1402d1b6d
mov rcx, rdi
call fcn.1402c91f0
jmp 0x1402d1b77
xor ecx, ecx
call fcn.1402c91f0
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 0x1402d1ba0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402d1c27
mov rsi, rbx
cmp word [rax], bp
je 0x1402d1be6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402d1bd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402d1bcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402c922c
mov rdi, rax
test rax, rax
je 0x1402d1c14
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402a44e0
mov rbp, rdi
xor ecx, ecx
call fcn.1402c91f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402d2578
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1402b41e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402b41e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402d26c8
cmp rax, 0xffffffffffffffff
je 0x1402d26c8
xor edi, edi
test rbp, rbp
jle 0x1402d2673
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402ca8f0
mov rbx, rax
test rax, rax
jne 0x1402d2600
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402d2669
mov edx, 0x8000
mov ecx, r14d
call fcn.1402b6120
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402b82f8
cmp eax, 0xffffffff
je 0x1402d2649
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402d2610
mov edx, r15d
mov ecx, r14d
call fcn.1402b6120
jmp 0x1402d2669
cmp byte [rsi + 0x38], dil
je 0x1402d2660
cmp dword [rsi + 0x34], 5
jne 0x1402d2660
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402d2669
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402c91f0
jmp 0x1402d26dc
jns 0x1402d26dc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402b41e4
cmp rax, 0xffffffffffffffff
jne 0x1402d2694
cmp byte [rsi + 0x30], dil
je 0x1402d26dc
mov edi, dword [rsi + 0x2c]
jmp 0x1402d26dc
mov ecx, r14d
call fcn.1402b3664
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402d26dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402d26dc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402d26d5
mov eax, dword [rsi + 0x2c]
jmp 0x1402d26da
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402b41e4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1402d3ec8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402d3ede
mov al, 1
jmp 0x1402d3f3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402d3eef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402d3f3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402b3664
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402d3f3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402d3f3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402d3f3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402d3f3e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402d7748
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402d7792
call fcn.1402b23ac
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1402b238c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1402b3c14
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14029fd30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402d779d
lea eax, [rbx + 1]
jmp 0x1402d777f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402d777d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402d777f
Function at 0x1402d7938
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.1402a52cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402d79c2
cmp byte [rbp - 0x21], r15b
je 0x1402d79bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402d79f8
call fcn.1402c9dd0
test eax, eax
jne 0x1402d79e4
cmp byte [rbp - 0x21], r15b
je 0x1402d79dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402d79f8
cmp byte [rbp - 0x21], r15b
je 0x1402d79f5
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.1402a5368
test eax, eax
jne 0x1402d7a98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402a52cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402d7a37
cmp byte [rbp - 0x21], r15b
je 0x1402d7a6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402d7a6c
call fcn.1402c9dd0
test eax, eax
jne 0x1402d7a58
cmp byte [rbp - 0x21], r15b
je 0x1402d7a51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402d7a6c
cmp byte [rbp - 0x21], r15b
je 0x1402d7a69
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.1402a5368
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402d7a98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402d7a9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402d7aa9
mov rcx, rdi
call fcn.1402c91f0
cmp byte [rbp + 0x3f], r15b
je 0x1402d7ab8
mov rcx, qword [rbp + 0x27]
call fcn.1402c91f0
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 0x1400024e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140002579
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.140011dac
mov rbp, rax
mov r8d, edi
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140002620
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400025a8
test eax, eax
jle 0x140002592
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.DOTNET_RUNTIME_ID
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8d, 7
lea rdx, str.win_x64
mov rcx, rsi
call fcn.1400037a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000268a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002610
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002610
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140011d6c
jmp 0x14000268a
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140002620
mov rax, qword [rsp + 0x48]
cmp rbx, rax
ja 0x140002661
lea rdi, [rsp + 0x30]
cmp rax, 7
cmova rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140016220
mov word [rbx + rdi], r14w
jmp 0x140002671
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140003960
mov rcx, rbp
call fcn.140011d6c
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140011d10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400026b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov r14, rcx
lea r15, [rdx + 0x10]
xor r12d, r12d
mov qword [r15], r12
mov rax, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1400026f2
mov rax, qword [rdx]
mov word [rax], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140002757
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140002875
test eax, eax
jle 0x140002740
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
mov rdx, r14
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
jmp 0x140002875
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.140011dac
mov rbp, rax
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140002723
nop dword [rax + rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140002790
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x1400027d1
lea rdi, [rsp + 0x20]
cmp rax, 7
cmova rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140016220
mov word [rbx + rdi], r12w
jmp 0x1400027e1
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003960
mov rcx, rbp
call fcn.140011d6c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140007e70
test al, al
je 0x140002855
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x140002851
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140002846
cmp rax, 7
jbe 0x14000282b
mov rsi, qword [rsi]
mov qword [r15], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.140016220
mov word [rsi + rbx*2], r12w
mov bl, 1
jmp 0x140002877
mov rdx, rbx
mov rcx, rsi
call fcn.140003960
mov bl, 1
jmp 0x140002877
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r8, qword [rsp + 0x20]
mov rdx, r14
lea rcx, str.Did_not_find___s__directory___s_
call fcn.140001980
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400028bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140011d6c
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011d10
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400072e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
jne 0x140007381
mov qword [rsp + 0x30], rbp
mov word [rsp + 0x20], bp
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x1400073dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140007381
test eax, eax
jle 0x14000736b
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
mov rdx, r14
mov ecx, 7
call fcn.140007500
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400074d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400074d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.140011dac
mov rsi, rax
mov r8d, edi
mov rdx, rax
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140007352
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140007416
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x140007455
lea rdi, [rsp + 0x20]
cmp rax, 7
cmova rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140016220
mov word [rbx + rdi], bp
jmp 0x140007465
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003960
mov rcx, rsi
call fcn.140011d6c
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x1400074cb
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x1400074c0
mov rdi, r14
cmp rax, 7
jbe 0x1400074a2
mov rdi, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.140016220
mov word [rdi + rbx*2], bp
mov bl, 1
jmp 0x140007391
mov rdx, rbx
mov rcx, r14
call fcn.140003960
mov bl, 1
jmp 0x140007391
call fcn.140011d6c
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011d10
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c020
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x14001299c
Capabilities:
Parse pe header

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

Function at 0x1400160f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016118
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016118
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret