joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14028a8a8
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, [0x140383f70]
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 0x14028a8ff
cmp word [rdx], r13w
jne 0x14028a8ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14028a904
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14028aa29
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14028aa4a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14028a93d
mov rdx, r9
mov word [rbx], cx
jmp 0x14028a964
cmp r9, r8
jae 0x14028a974
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 0x14028a91e
jmp 0x14028aa29
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 0x14028aa1e
cmp dword [rsp + 0x80], esi
je 0x14028aa1e
lea r8, [0x140383f70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14028a9f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14028a9c6
mov word [rbx], r13w
jmp 0x14028aa26
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 0x14028a9d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14028aa26
cmp word [rsp + 0x70], r13w
jne 0x14028aa03
cmp rbx, r14
je 0x14028a9c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140285398
cmp word [rsp + 0x70], r13w
je 0x14028aa29
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, [0x140383f70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14028aa23
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14028aa29
Function at 0x14028dd64
Capabilities:
Get file size

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

Function at 0x14029056c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14029058c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14027c5d4
or eax, 0xffffffff
jmp 0x14029058e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140295e98
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 0x140295ec8
xor eax, eax
jmp 0x140295f8b
mov rbp, rbx
cmp word [rax], si
je 0x140295eed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140295ed4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140295ed0
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.140292ba8
movsxd r14, eax
test eax, eax
jne 0x140295f2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140295ec1
mov rcx, r14
call fcn.14029047c
mov rdi, rax
test rax, rax
jne 0x140295f44
xor ecx, ecx
call fcn.14028f188
jmp 0x140295f20
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.140292ba8
test eax, eax
jne 0x140295f75
mov rcx, rdi
call fcn.14028f188
jmp 0x140295f7f
xor ecx, ecx
call fcn.14028f188
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 0x140295fa8
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 0x14029602f
mov rsi, rbx
cmp word [rax], bp
je 0x140295fee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140295fd8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140295fd4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14029047c
mov rdi, rax
test rax, rax
je 0x14029601c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140263500
mov rbp, rdi
xor ecx, ecx
call fcn.14028f188
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 0x140298fec
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.14028e224
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 0x14029908d
cmp ebx, dword [rsp + 0x30]
je 0x140299086
test esi, esi
je 0x140299086
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140299061
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14029906e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14029904b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140299072
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14029908f
mov eax, 1
jmp 0x14029908f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402994d4
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.140285398
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140285398
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140299624
cmp rax, 0xffffffffffffffff
je 0x140299624
xor edi, edi
test rbp, rbp
jle 0x1402995cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14028e7f8
mov rbx, rax
test rax, rax
jne 0x14029955c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402995c5
mov edx, 0x8000
mov ecx, r14d
call fcn.1402860ac
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.14028bc60
cmp eax, 0xffffffff
je 0x1402995a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14029956c
mov edx, r15d
mov ecx, r14d
call fcn.1402860ac
jmp 0x1402995c5
cmp byte [rsi + 0x38], dil
je 0x1402995bc
cmp dword [rsi + 0x34], 5
jne 0x1402995bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402995c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14028f188
jmp 0x140299638
jns 0x140299638
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140285398
cmp rax, 0xffffffffffffffff
jne 0x1402995f0
cmp byte [rsi + 0x30], dil
je 0x140299638
mov edi, dword [rsi + 0x2c]
jmp 0x140299638
mov ecx, r14d
call fcn.140293a10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140299638
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 0x140299638
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140299631
mov eax, dword [rsi + 0x2c]
jmp 0x140299636
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140285398
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 0x14029c250
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14037a660]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14029c29a
call fcn.14027c640
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14027c660
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140276830
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14029c2a5
lea eax, [rbx + 1]
jmp 0x14029c287
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 0x14029c285
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14029c287
Function at 0x14029c8e4
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.140270ce4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14029c96e
cmp byte [rbp - 0x21], r15b
je 0x14029c969
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14029c9a4
call fcn.14028d36c
test eax, eax
jne 0x14029c990
cmp byte [rbp - 0x21], r15b
je 0x14029c988
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14029c9a4
cmp byte [rbp - 0x21], r15b
je 0x14029c9a1
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.140274f50
test eax, eax
jne 0x14029ca44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140270ce4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14029c9e3
cmp byte [rbp - 0x21], r15b
je 0x14029ca18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14029ca18
call fcn.14028d36c
test eax, eax
jne 0x14029ca04
cmp byte [rbp - 0x21], r15b
je 0x14029c9fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14029ca18
cmp byte [rbp - 0x21], r15b
je 0x14029ca15
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.140274f50
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029ca44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029ca47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029ca55
mov rcx, rdi
call fcn.14028f188
cmp byte [rbp + 0x3f], r15b
je 0x14029ca64
mov rcx, qword [rbp + 0x27]
call fcn.14028f188
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 0x14029fc90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14029fcb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14029fcb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400019a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001a01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400019c0
mov ecx, dword [r9]
jmp 0x140001aeb
cmp ecx, 0x4e0
jb 0x140001aeb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001a20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001a70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400024ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002536
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002536
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002536
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002536
cmp dword [rcx + 0x84], 0xe
jbe 0x140002536
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002538
xor al, al
add rsp, 0x28
ret
Function at 0x140001774
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 7]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140001841
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x3e]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400017e4
mov eax, 0xc000009a
jmp 0x140001841
xor ebx, ebx
xor esi, esi
cmp dword [rsp + 0x20], ebx
jbe 0x140001821
mov r9d, esi
lea r8, str.__PhysicalDrive_lu
mov edx, 0x1f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14000109c
test eax, eax
cmovs ebx, eax
inc esi
cmp esi, dword [rsp + 0x20]
jb 0x1400017ee
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140007d40
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140001868
Capabilities:
Encrypt data using rc4 prga
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea r8, [0x14000c2bc]
mov edx, 3
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ebx, 0x41
mov word [rsp + 0x20], bx
lea esi, [rbx + 0x20]
mov r8d, 0x106
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
je 0x140001911
movzx ecx, word [rsp + 0x20]
movzx eax, cx
sub ax, si
cmp ax, 0x19
ja 0x1400018e6
sub ecx, esi
jmp 0x1400018f9
movzx eax, cx
sub ax, bx
cmp ax, 0x19
ja 0x1400018f6
sub ecx, ebx
jmp 0x1400018f9
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x140001948
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.140001408
test eax, eax
js 0x140001926
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
cmp ax, 0x5a
jbe 0x1400018b1
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140007d40
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rsi
ret
mov eax, 0xc00000ef
jmp 0x140001926
Function at 0x1400045d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140016070]
test eax, eax
jne 0x1400046d4
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000463f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x140016070], eax
sub ecx, 1
je 0x1400046b0
cmp ecx, 1
jne 0x1400046d4
cmp edx, 5
jne 0x14000469e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140004697
sub eax, ecx
je 0x14000467d
cmp eax, ecx
je 0x140004673
lea eax, [rdx + 0xf]
jmp 0x1400046f2
mov edx, 0x10
lea ecx, [rdx - 0xf]
jmp 0x140004685
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x1400046f2
mov eax, 4
jmp 0x1400046f2
cmp edx, 4
ja 0x1400046ed
mov ecx, 2
mov eax, ecx
mov dword [0x140016070], ecx
cmp edx, 4
jne 0x1400046d4
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1400046c7
cmp ecx, 0xa
je 0x1400046c7
cmp ecx, 0x5a
jne 0x1400046d4
mov ecx, 1
mov eax, ecx
mov dword [0x140016070], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007d40
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x140016070], eax
jmp 0x1400046d4

Function at 0x1400048bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x20]
mov dword [rsp + 0x30], 6
mov r9d, 1
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftActive_SetupInstalled_Components89820200_ECBD_11CF_8B85_00AA005B4383
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000499f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Locale
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14000499f
lea rsi, [0x1400091b0]
mov rdi, rsi
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 3
call fcn.140007d70
test eax, eax
je 0x14000498d
inc ebx
add rdi, 0x10
cmp ebx, 0x1c
jb 0x140004969
jmp 0x14000499f
movsxd rax, ebx
add rax, rax
movzx eax, word [rsi + rax*8 + 8]
mov word [0x140016074], ax
movzx eax, word [0x140016074]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007d40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400053dc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, edx
lea r9, [rsp + 0x58]
xor edx, edx
mov rsi, r8
mov r14, rcx
xor r8d, r8d
lea ecx, [rdx + 0x63]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005425
test eax, eax
js 0x1400054b1
jmp 0x1400054c5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400054c5
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x63
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140005493
movzx ecx, word [rdi]
add ecx, 2
mov dword [rsi], ecx
cmp ecx, ebp
jbe 0x140005484
mov ebx, 0xc0000023
jmp 0x140005493
mov rdx, qword [rdi + 8]
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ecx, 0x80000000
lea eax, [rbx + rcx]
test ecx, eax
jne 0x1400054dc
cmp ebx, 0xc0000023
je 0x1400054dc
mov r9, rsi
lea rcx, [0x140005720]
mov r8d, ebp
mov rdx, r14
call fcn.140005848
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140005914
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 8], ecx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, r9
xor edx, edx
lea r9, [rax + 8]
mov ebp, r8d
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005966
test eax, eax
js 0x1400059f9
mov ebx, 0xc0000001
jmp 0x1400059f9
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140005995
mov ebx, 0xc000009a
jmp 0x1400059f9
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400059db
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x1400059cc
mov ebx, 0xc0000023
jmp 0x1400059db
mov rdx, qword [rdi + 8]
mov rcx, r14
mov r8d, eax
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140007d10
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax