joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033ee0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400731c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x140033f91
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140043c0c
cmp rax, 1
jne 0x140033fc7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140033f6d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140033f60
cmp rcx, 1
jb 0x140033fc7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140033f30
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140034380
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400439b8
int3

Function at 0x140034200
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400731c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
lea edi, [rbp + 0x28]
test al, al
je 0x1400342af
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140043c0c
cmp rax, 1
jne 0x1400342e5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14003428c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140034280
cmp rcx, 1
jb 0x1400342e5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140034250
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140034380
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400439b8
int3

Function at 0x140034db4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034dfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034dfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034dfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034dfe
cmp dword [rcx + 0x84], 0xe
jbe 0x140034dfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034e00
xor al, al
add rsp, 0x28
ret
Function at 0x14003a1f8
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 0x14003a063
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a063
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a063
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a063
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a063
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a063
cmp dword [rcx + 0xf8], 0
je 0x14003a063
mov ecx, ebx
call fcn.14003a114
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.140039ef0
nop
cmp dword [rbp + 0x20], 0
je 0x14003a0b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003a0bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140039ff4
Function at 0x14004bcb0
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 0x14004bd37
mov rsi, rbx
cmp word [rax], bp
je 0x14004bcf6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004bce0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004bcdc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140046b30
mov rdi, rax
test rax, rax
je 0x14004bd24
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140052030
mov rbp, rdi
xor ecx, ecx
call fcn.140047a64
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 0x14004f8ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f8c2
mov al, 1
jmp 0x14004f922
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f8d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004f920
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004c454
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f920
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004f920
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f920
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004f922
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140051e10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140051e38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140051e38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180004e90
Capabilities:
Print debug messages

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
add rdx, rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rdx
mov word [rbp - 0x48], 0
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x58]
call fcn.180008180
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x180004efc
lea r9, [rax + rax]
xor r8d, r8d
nop
cmp word [rdx + r8*2], 0
je 0x180004ef3
inc r8
add r9, 0xfffffffffffffffe
jne 0x180004ee0
jmp 0x180004efc
lea r9, [rax - 1]
cmp r9, r8
jne 0x180004f54
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x28]
call fcn.1800088e0
mov qword [rbp], rdx
mov qword [rbp - 8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp - 8]
mov word [rcx], 0
mov rdx, qword [rbp]
test rdx, rdx
je 0x180004f4a
add rdx, rdx
mov r8d, 2
add rsp, 0x90
pop rbp
jmp fcn.180009cf0
nop
add rsp, 0x90
pop rbp
ret
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, [0x180038eb8]
mov qword [rsp + 0x20], rax
lea rcx, [0x180038dc0]
lea r9, [0x180038df0]
lea r8, [rbp - 0x28]
mov edx, 0x2b
call fcn.180036380
ud2
Function at 0x180012a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
sub rsp, 0x70
mov qword [rsp + 0x28], r9
cmp r9, 0xf
jae 0x180012afe
mov eax, 0x5545
bt eax, r9d
jae 0x180012afe
mov rsi, rcx
lea rax, [0x18003f980]
mov eax, dword [rax + r9*4]
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov rcx, rdx
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, 5
test eax, eax
jne 0x180012af3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov ecx, 3
mov dword [rsi], ecx
mov rax, rsi
add rsp, 0x70
pop rsi
ret
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [0x180012c40]
mov qword [rsp + 0x38], rax
lea rax, str.internal_error:_entered_unreachable_code:_Protection:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_region_3.0.0_srcoswindows.rs
lea rcx, [rsp + 0x40]
call fcn.180035fa0
ud2
Function at 0x18001ae40
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x18001aed0
jmp 0x18001aebf
jae 0x18001af90
cmp r8, 0x201
jae 0x18001aed0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x18001af28
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x18001aeff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.180035670
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x18001af51
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001aff8
mov r8d, r14d
cmp r15, r8
jne 0x18001aeb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001b01b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x18001aebf
jmp 0x18001aed0
cmp rsi, r8
jb 0x18001b035
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.18001d6d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x18001afe1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.180009cf0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x18001afc9
jmp 0x18001afe1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_2f8d81f9dbac6b8df982199f69da04a4c8357227library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.180036050
jmp 0x18001b04a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1800364a0
ud2
Function at 0x18001b0a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.180023710
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x18001b226
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x18001b160
jmp 0x18001b14f
jae 0x18001b238
cmp r8, 0x201
jae 0x18001b160
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x18001b1b8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x18001b18f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.180035670
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x18001b1e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001b30b
mov r8d, esi
cmp r12, r8
jne 0x18001b140
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001b335
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x18001b14f
jmp 0x18001b160
lea rcx, [rbp - 0x58]
call fcn.1800184c0
mov byte [rsi + 0x18], 2
jmp 0x18001b2ca
cmp r15, r8
jb 0x18001b34f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.18001d6d0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x18001b289
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.180009cf0
cmp byte [rbp + 0x3d8], 2
jne 0x18001b2e1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1800184c0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x18001b2ca
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.180009cf0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x18001b2b5
jmp 0x18001b2ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x18001b271
jmp 0x18001b289
lea rcx, str.internal_error:_entered_unreachable_code_rustc_2f8d81f9dbac6b8df982199f69da04a4c8357227library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.180036050
jmp 0x18001b364
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1800364a0
ud2
Function at 0x180021850
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x180042640]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x180021894
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1800218f3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x180021902
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x18002193a
cmp eax, 0x103
je 0x180021944
test eax, eax
js 0x18002191f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x18002193a
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
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18001d3a0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.180018800
mov ecx, 7
int 0x29
ud2
Function at 0x1800219b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x180042640]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1800219f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180021a5a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x180021a91
test eax, eax
js 0x180021a6b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x180021a84
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
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18001d3a0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.180018800
mov ecx, 7
int 0x29
ud2
Function at 0x18002fb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x18002fbea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x18002fbe0
cmp r11, r10
ja 0x18002fc83
cmp r10, rdx
ja 0x18002fc97
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x18002fbe2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18002fbc0
jmp 0x18002fc57
ja 0x18002fbea
mov r11, r10
cmp rax, r8
jne 0x18002fb92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18002fc5b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18002fc30
mov r8, r10
sub ecx, r9d
jns 0x18002fc4e
jmp 0x18002fc5d
cmp r10, rdx
je 0x18002fc69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18002fc5d
xor al, 1
cmp r8, rdx
jne 0x18002fc10
jmp 0x18002fc5d
xor eax, eax
jmp 0x18002fc5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x180044ebb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180036050
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180036520
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800364a0
ud2
Function at 0x14001c440
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400205b0
sub rsp, rax
mov rax, qword [0x14005db00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001c502
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002f50c
cmp rax, 1
jne 0x14001c55e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001c4df
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001c4d3
cmp rcx, 1
jb 0x14001c55e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001c4a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001c533
lea rcx, [rsp + 0x80]
call fcn.1400320b4
jmp 0x14001c535
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400202e0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002f2b8
int3
Function at 0x14001fe40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005db00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14001fef1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14002f50c
cmp rax, 1
jne 0x14001ff27
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14001fecd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14001fec0
cmp rcx, 1
jb 0x14001ff27
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001fe90
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400202e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002f2b8
int3

Function at 0x140020160
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005db00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14002020f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002f50c
cmp rax, 1
jne 0x140020245
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400201ec
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400201e0
cmp rcx, 1
jb 0x140020245
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400201b0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400202e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002f2b8
int3

Function at 0x140020d14
Capabilities:
Parse pe header

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