joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401070b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140229b98]
cmp rsi, 1
jbe 0x1401070d3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140100810
lea rcx, [0x140229b98]
call fcn.14008ba60
test al, al
je 0x140107119
mov qword [0x140229ba0], 0
lea rdi, [0x140229b98]
lea rsi, [0x140229ba0]
mov rcx, rsi
xor edx, edx
call fcn.14009cb70
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008bb00
jmp 0x1401070c3
mov rsi, qword [0x140229b98]
jmp 0x1401070c3

Function at 0x1401071b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140229fb0]
cmp rsi, 1
jbe 0x1401071d3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140100810
lea rcx, [0x140229fb0]
call fcn.14008ba60
test al, al
je 0x140107219
mov qword [0x140229fb8], 0
lea rdi, [0x140229fb0]
lea rsi, [0x140229fb8]
mov rcx, rsi
xor edx, edx
call fcn.14009cb70
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008bb00
jmp 0x1401071c3
mov rsi, qword [0x140229fb0]
jmp 0x1401071c3

Function at 0x14010bdc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022a008]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010bdf5
lea rcx, [0x14022a000]
add rsp, 0x28
jmp fcn.1401007d0
lea rcx, [0x14022a008]
call fcn.140110b10
cmp dword [0x14022a008], 0xffffffff
jne 0x14010bde5
mov qword [0x14022a000], 0
lea rcx, [0x14022a000]
xor edx, edx
call fcn.14009cb70
lea rcx, [0x14022a008]
call fcn.140110ba8
jmp 0x14010bde5

Function at 0x1401127a5
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x14010e584]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140112862
je 0x140112879
insb byte [rdi], dx
cld
add byte [rax], al
je 0x140112883
jne 0x14011284d
lea rax, [0x140111d76]
add rax, 0xb32
call rax
je 0x14011281e
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x14011288c
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret
Function at 0x14014e560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r15b, byte [rbp + 0x78]
test byte [r9 + 8], 1
jne 0x14014e5bf
movzx eax, word [rbp + 0x70]
movzx edx, r15b
mov rbx, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, r14
mov r8, rdi
call qword [rbx + 0x30]
mov rax, r14
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rsi, [rbp - 0x20]
mov rcx, r9
mov rdx, rsi
call fcn.1400e2d10
lea rdx, [0x140220f20]
mov rcx, rsi
call fcn.1400e34e0
mov r12, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14014e5f8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rbp - 0x20]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [r13], xmm0
mov rax, qword [r12]
xor r15b, 1
movzx esi, r15b
mov rcx, r12
mov rdx, r13
call qword [rax + rsi*8 + 0x28]
movzx ebx, byte [r13 + 0x17]
test bl, bl
mov rcx, qword [r13]
mov r8, qword [r13 + 8]
mov rax, rbx
cmovs rax, r8
test rax, rax
je 0x14014e6b0
test bl, bl
mov rsi, rcx
cmovns rsi, r13
test rdi, rdi
je 0x14014e69f
movzx eax, word [rsi]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14014e6a3
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x14014e675
xor edi, edi
mov bl, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
add rsi, 2
test bl, bl
mov rax, r13
cmovs rax, rcx
movzx edx, bl
cmovs rdx, r8
lea rax, [rax + rdx*2]
cmp rsi, rax
jne 0x14014e650
jmp 0x14014e6b0
xor edi, edi
jmp 0x14014e680
mov rbx, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [rbx + 0x60]
jmp 0x14014e66d
shr bl, 7
mov qword [r14], rdi
test bl, bl
je 0x14014e5ab
call fcn.1401109f8
jmp 0x14014e5ab
Function at 0x14015e6d0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400e7e10
test al, al
jne 0x14015e6f1
mov rcx, rsi
call fcn.1400e7e10
test al, al
je 0x14015e6fa
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140163290
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x455
call fcn.1400e8370
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400f4950
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x140163323
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x140163356
lea rcx, [rsp + 0x40]
call fcn.1400f49b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140163366
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x140163373
xor ebx, ebx
jmp 0x14016332c
mov rdx, r14
test cl, cl
jns 0x14016337d
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x140163387
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x14016332c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.140050680
test al, al
jne 0x1401633b7
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14016336f
mov rcx, rdi
mov rdx, r14
call fcn.1401633d0
test al, al
jne 0x14016332c
jmp 0x1401633ad

Function at 0x140164050
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rax], 0
mov r9d, 0x20019
or r9d, dword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1401640b6
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x6c]
mov dword [rax], 0
mov rcx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14016409c
mov ebx, 0x91
cmp dword [rsp + 0x6c], 0
jne 0x14016409c
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi]
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
jmp 0x14016409c
Function at 0x1401641d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x14016feb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rbp, qword [rcx + 0x40]
mov r15d, 1
cmp rdi, rbp
je 0x14016ff48
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.140171aa0
test al, al
jne 0x14016ff0c
add rdi, 0x70
cmp rbp, rdi
jne 0x14016fef1
mov rdi, rbp
cmp rdi, qword [rsi + 0x40]
je 0x14016ff48
cmp byte [rdi + 0x27], 0
jns 0x14016ff1e
mov rcx, qword [rdi + 0x10]
jmp 0x14016ff22
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x14016ff48
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140111870
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14016ff70
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
cmp rbx, rsi
jne 0x14016ff9c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, r8
mov edi, edx
lea r14, [r8 + 0x18]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
jne 0x14016ffeb
cmp byte [rbx + 0x27], 0
jns 0x14016ffbd
mov rcx, qword [rbx + 0x10]
jmp 0x14016ffc1
lea rcx, [rbx + 0x10]
call r13
test al, 0x10
jne 0x14016ffeb
mov r15, qword [r12 + 8]
cmp r15, qword [r12 + 0x10]
je 0x14016fff6
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.140076680
add r15, 0x68
mov qword [r12 + 8], r15
add rbx, 0x70
cmp rsi, rbx
je 0x14016ff8c
jmp 0x14016ffac
mov rcx, r12
mov rdx, rbx
call fcn.140170c60
jmp 0x14016ffeb
Function at 0x1401701e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
mov r12d, 1
cmp rdi, rsi
je 0x14017026a
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140171aa0
test al, al
jne 0x140170241
add rdi, 0x70
cmp rsi, rdi
jne 0x140170226
mov rdi, rsi
cmp rdi, qword [rbx + 0x40]
je 0x14017026a
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x14017025b
cmp byte [rdi + 0x27], 0
jns 0x140170289
mov rcx, qword [rdi + 0x10]
jmp 0x14017028d
xor ecx, ecx
cmp eax, 1
sete cl
lea r12d, [rcx + rcx*2]
inc r12d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140111870
mov eax, r12d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14017026a
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x14017026a
mov byte [rbx + 0x30], 1
mov qword [r14], rdi
xor r12d, r12d
jmp 0x14017026a
Function at 0x14018c090
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14018c0b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14018c0d2
and eax, 0x410
cmp eax, 0x410
je 0x14018c1c5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14018c0de
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x14018c107
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140111870
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400e83a0
test al, al
je 0x14018c1be
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.14015f200
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.1400dd7e0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400edb80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14018c198
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400dd7e0
cmp byte [rsp + 0x4f], 0
jns 0x14018c1b4
mov rcx, qword [rsp + 0x38]
call fcn.1401109f8
lea rcx, [rsp + 0x50]
call fcn.14015f280
xor edi, edi
jmp 0x14018c0eb
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140111870
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14018c1f0

Function at 0x14018c1f0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14018c218
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
je 0x14018c246
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400e83a0
test al, al
je 0x14018c224
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x2f
mov r9d, 2
call fcn.14015f200
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1400dd7e0
mov rbx, rax
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400edb80
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14018c2d3
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.1400dd7e0
cmp byte [rsp + 0x57], 0
jns 0x14018c2ef
mov rcx, qword [rsp + 0x40]
call fcn.1401109f8
lea rcx, [rsp + 0x58]
call fcn.14015f280
jmp 0x14018c224
Function at 0x14000109c
Capabilities:
Access peb ldr_data
Get kernel32 base address

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, 0x20
mov rsi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x1400010eb
mov ebx, 0xc000009a
jmp 0x140001188
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x1400010ef
mov rcx, qword gs:[0x60]
lea r14, [rax*2 + 2]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14000114b
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov ebx, 0xc000009a
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x140001188
mov r8, r14
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov qword [rdi + 0x10], rbp
lea rcx, [0x1400171c0]
mov rax, qword [0x1400171c8]
cmp qword [rax], rcx
je 0x140001177
mov ecx, 3
int 0x29
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [0x1400171c8], rdi
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140001358
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400171d0]
lea rsi, [0x1400171d0]
cmp rdi, rsi
je 0x1400013e1
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rdi + 0x20]
mov rbx, qword [rdi]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rdi + 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
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 rdi, rbx
cmp rbx, rsi
jne 0x14000137a
mov rbx, qword [rsp + 0x30]
mov qword [0x1400171d8], rsi
mov qword [0x1400171d0], rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
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:
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 0x140003638
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
and qword [rdx], 0
mov rsi, rdx
mov rdx, rcx
xor edi, edi
and qword [rbp + 0x6f], rdi
lea rcx, [rbp + 7]
and qword [rbp + 0x77], rdi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and dword [rsp + 0x28], edi
lea rax, [rbp + 7]
and qword [rbp + 0x1f], rdi
lea r9, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
mov dword [rbp + 0x17], 0x30
mov edx, 0x80000000
mov dword [rbp + 0x2f], 0x40
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp + 0x37], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x1400037f2
xor r9d, r9d
mov byte [rsp + 0x20], dil
xor r8d, r8d
lea rcx, [rbp + 0x6f]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000379f
mov rcx, qword gs:[0x60]
lea ebx, [rdi + 0x18]
mov r8d, ebx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140003721
mov ebx, 0xc000009a
jmp 0x14000379f
mov rdx, qword [rbp + 0x6f]
lea rax, [rbp - 9]
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov dword [rsp + 0x48], ebx
xor r8d, r8d
mov qword [rsp + 0x40], rdi
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x70000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
jne 0x140003786
mov rcx, qword [rbp + 0x6f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rbp - 9]
mov rcx, qword [rbp + 0x6f]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResetEvent]
nop dword [rax + rax]
test ebx, ebx
js 0x14000379f
mov qword [rsi], rdi
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400037b4
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400037c9
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x1400037f0
test rdi, rdi
je 0x1400037f0
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 rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret