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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140269040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140213b95
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140213b4d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140213b40
cmp rcx, 1
jb 0x140213bc6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140213b63
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14023dd18
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140213b30
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14022ec20
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140233240
int3
Function at 0x140213bd0
Capabilities:
Set environment variable

Disassembly:
push rbx
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140269040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14027e2c0]
mov rbx, r8
mov r14, rdx
mov r15, rcx
test rax, rax
jne 0x140213c21
lea rcx, [0x1402568d4]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14027e2c0], rax
test rax, rax
je 0x140213dd4
mov qword [rsp + 0xd8], rbp
lea rdx, str.environ
mov qword [rsp + 0x98], rsi
mov rcx, rax
mov qword [rsp + 0x90], rdi
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, r14
mov rdi, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rbp, rax
test rbx, rbx
je 0x140213cbe
mov rdx, rbx
mov rcx, r14
call fcn.140213af0
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, rbp
mov rcx, rdi
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140213ca5
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x140213d78
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140213d78
movzx edx, byte [r14]
lea rbx, [rsp + 0x30]
xor eax, eax
mov word [rsp + 0x30], ax
lea esi, [rax + 0x28]
test dl, dl
je 0x140213d53
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140213cfd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140213cf0
cmp rcx, 1
jb 0x140213dce
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140213d20
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14023dd18
movzx edx, byte [r14 + 1]
inc r14
add rbx, 2
dec rsi
test dl, dl
jne 0x140213ce0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140213d78
mov rcx, r15
call fcn.1400015a0
sub qword [rbp], 1
jne 0x140213d89
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
sub qword [rdi], 1
jne 0x140213d99
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14022ec20
add rsp, 0xa0
pop r15
pop r14
pop rbx
ret
call fcn.140233240
int3
call fcn.140233240
int3
Function at 0x14022f624
Capabilities:
Parse pe header

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

Function at 0x1402335a0
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 0x14023340b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14023340b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14023340b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14023340b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14023340b
cmp dword [rcx + 0x84], 0xe
jbe 0x14023340b
cmp dword [rcx + 0xf8], 0
je 0x14023340b
mov ecx, ebx
call fcn.1402334bc
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.140233298
nop
cmp dword [rbp + 0x20], 0
je 0x140233459
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140233464
int3
xor r8d, r8d
xor edx, edx
jmp 0x14023339c
Function at 0x140243ff4
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 0x14024407b
mov rsi, rbx
cmp word [rax], bp
je 0x14024403a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140244024
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140244020
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14024187c
mov rdi, rax
test rax, rax
je 0x140244068
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14024a4a0
mov rbp, rdi
xor ecx, ecx
call fcn.14023fd38
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 0x140247794
Capabilities:
Get file size

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

Function at 0x140249dd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140249df8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140249df8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009750
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 0x1400097e0
jmp 0x1400097cf
jae 0x1400098a0
cmp r8, 0x201
jae 0x1400097e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009838
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000980f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002b5e0
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 0x140009861
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009908
mov r8d, r14d
cmp r15, r8
jne 0x1400097c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000992b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400097cf
jmp 0x1400097e0
cmp rsi, r8
jb 0x140009945
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000b7a0
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 0x1400098f1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140002590
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 0x1400098d9
jmp 0x1400098f1
lea rcx, [0x14332e460]
lea r8, [0x143330c68]
mov edx, 0x28
call fcn.14002bfb0
jmp 0x14000995a
lea rax, [0x143330c50]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002c400
ud2
Function at 0x1400099b0
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.14001ace0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140009b36
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 0x140009a70
jmp 0x140009a5f
jae 0x140009b48
cmp r8, 0x201
jae 0x140009a70
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140009ac8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140009a9f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14002b5e0
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 0x140009af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009c1b
mov r8d, esi
cmp r12, r8
jne 0x140009a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009c45
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140009a5f
jmp 0x140009a70
lea rcx, [rbp - 0x58]
call fcn.140003c90
mov byte [rsi + 0x18], 2
jmp 0x140009bda
cmp r15, r8
jb 0x140009c5f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14000b7a0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140009b99
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140002590
cmp byte [rbp + 0x3d8], 2
jne 0x140009bf1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140003c90
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140009bda
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140002590
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 0x140009bc5
jmp 0x140009bda
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 0x140009b81
jmp 0x140009b99
lea rcx, [0x14332e460]
lea r8, [0x143330c68]
mov edx, 0x28
call fcn.14002bfb0
jmp 0x140009c74
lea rax, [0x143330c50]
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14002c400
ud2
Function at 0x14000e930
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002aad0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140014560]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140014300
cmp qword [rbp + 0xfe8], 0
jne 0x14000eb07
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14000ead3
cmp r12, 0x1000
ja 0x14000eb29
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14000eaa7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000ea50
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14000eaad
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14000ea90
jbe 0x14000ea00
jmp 0x14000eb15
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14000e9b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140003c90
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140003c90
jmp 0x14000ead3
lea r8, [0x143330618]
mov rcx, r13
mov rdx, r12
call fcn.14002c480
jmp 0x14000eb3d
lea r8, [0x143330618]
mov edx, 0x1000
mov rcx, r12
call fcn.14002c400
ud2
Function at 0x140011a30
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 [0x1433302b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140011a74
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 0x140011ada
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140011b11
test eax, eax
js 0x140011aeb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140011b04
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, [0x143330318]
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.14000b570
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140004200
mov ecx, 7
int 0x29
ud2
Function at 0x140018ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x140019e30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140019e73
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000a7a0]
mov qword [rbp - 0x28], rax
lea rax, [0x1433307b8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1433307f0]
lea rcx, [rbp - 0x60]
call fcn.14002bf00
ud2
Function at 0x140027fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002804a
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 0x140028040
cmp r11, r10
ja 0x1400280e3
cmp r10, rdx
ja 0x1400280f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140028042
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028020
jmp 0x1400280b7
ja 0x14002804a
mov r11, r10
cmp rax, r8
jne 0x140027ff2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400280bb
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 0x140028090
mov r8, r10
sub ecx, r9d
jns 0x1400280ae
jmp 0x1400280bd
cmp r10, rdx
je 0x1400280c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400280bd
xor al, 1
cmp r8, rdx
jne 0x140028070
jmp 0x1400280bd
xor eax, eax
jmp 0x1400280bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x143332e70]
lea r8, [0x143333788]
mov edx, 0x2b
call fcn.14002bfb0
ud2
lea r8, [0x1433337a0]
mov rcx, r11
mov rdx, r10
call fcn.14002c480
ud2
lea r8, [0x1433337a0]
mov rcx, r10
call fcn.14002c400
ud2

Function at 0x140029040
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x14333b25c], 0
jne 0x140029064
lea rcx, [0x14332d950]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140029064
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x14002b03c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b086
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b086
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b086
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b086
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b086
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002b088
xor al, al
add rsp, 0x28
ret
Function at 0x140001180
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor edi, edi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
lea ecx, [rdi + 0x20]
call fcn.140001680
mov rcx, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0x12
mov qword [rsp + 0x70], 0x1f
movups xmm0, xmmword [str..PhysicalDrive0]
movups xmmword [rax], xmm0
movzx eax, word [0x1400033d0]
mov word [rcx + 0x10], ax
mov byte [rcx + 0x12], dil
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001300
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0xc]
lea r8, [rsp + 0x48]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400012f7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xa8]
test eax, eax
je 0x1400012d4
mov eax, eax
lea r8, [rsp + 0x90]
add r8, rax
lea edx, [rdi + 0x14]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.Serial_Number:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400013d0
mov rcx, rax
lea rdx, [rsp + 0x78]
jmp 0x1400012e2
lea rdx, str.Serial_Number_not_available.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400013d0
lea rdx, [0x1400015a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14000134c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001347
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001347
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400016bc
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rdi
ret