joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e89c
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 0x14000e90b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e90b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e90b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e90b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e90b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e90b
cmp dword [rcx + 0xf8], 0
je 0x14000e90b
mov ecx, ebx
call fcn.14000e9bc
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.14000e798
nop
cmp dword [rbp + 0x20], 0
je 0x14000e959
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e964
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000e89c

Function at 0x14000eaa0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e89c
Function at 0x1400148c4
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 0x1400148f4
xor eax, eax
jmp 0x1400149b7
mov rbp, rbx
cmp word [rax], si
je 0x140014919
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014900
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400148fc
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.1400147e4
movsxd r14, eax
test eax, eax
jne 0x140014957
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400148ed
mov rcx, r14
call fcn.140010098
mov rdi, rax
test rax, rax
jne 0x140014970
xor ecx, ecx
call fcn.14001005c
jmp 0x14001494c
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.1400147e4
test eax, eax
jne 0x1400149a1
mov rcx, rdi
call fcn.14001005c
jmp 0x1400149ab
xor ecx, ecx
call fcn.14001005c
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 0x140018840
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018856
mov al, 1
jmp 0x1400188b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018867
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400188b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001512c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400188b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400188b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400188b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400188b6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019954
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.14000db08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400199de
cmp byte [rbp - 0x21], r15b
je 0x1400199d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019a14
call fcn.1400109e4
test eax, eax
jne 0x140019a00
cmp byte [rbp - 0x21], r15b
je 0x1400199f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019a14
cmp byte [rbp - 0x21], r15b
je 0x140019a11
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.14000f974
test eax, eax
jne 0x140019ab4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000db08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140019a53
cmp byte [rbp - 0x21], r15b
je 0x140019a88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140019a88
call fcn.1400109e4
test eax, eax
jne 0x140019a74
cmp byte [rbp - 0x21], r15b
je 0x140019a6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140019a88
cmp byte [rbp - 0x21], r15b
je 0x140019a85
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.14000f974
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019ab4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019ab7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019ac5
mov rcx, rdi
call fcn.14001005c
cmp byte [rbp + 0x3f], r15b
je 0x140019ad4
mov rcx, qword [rbp + 0x27]
call fcn.14001005c
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 0x14001b890
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b8b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b8b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400114ba
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001c960
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x140041100]
call fcn.140011b5e
mov rcx, qword [rbp + 0x120]
call fcn.1400113ac
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], 4
mov rcx, qword [rbp + 0x128]
call fcn.1400113ac
lea rcx, [rbp + 0x24]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x130]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x30]
lea rdx, [0x14002ff90]
call fcn.140011988
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001165e
Capabilities:
Terminate process

Disassembly:
jmp 0x140026170
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400117e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400274c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400274e0
xor al, al
jmp 0x140027561
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400274f3
xor al, al
jmp 0x140027561
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002751d
xor al, al
jmp 0x140027561
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140027531
xor al, al
jmp 0x140027561
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140027543
xor al, al
jmp 0x140027561
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002755f
xor al, al
jmp 0x140027561
mov al, 1
add rsp, 0x38
ret
Function at 0x140011861
Capabilities:
Set registry value

Disassembly:
jmp 0x14001ef80
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x140041100]
call fcn.140011b5e
mov rcx, qword [rbp + 0x100]
call fcn.1400113ac
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x108]
call fcn.1400113ac
mov dword [rsp + 0x28], 4
lea rcx, [rbp + 0x110]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x30]
lea rdx, [0x140030020]
call fcn.140011988
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011020
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
shl rcx, 3
add rcx, qword [0x140047bc8]
movabs rdx, 0x73a898aa46f41102
movabs r8, 0x77fd67c347275860
add r8, qword [rdx + rcx]
jmp r8

Function at 0x140011e60
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x248
mov rsi, r8
mov rdi, rcx
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
test eax, eax
setne cl
shl rcx, 3
add rcx, qword [0x140047cd8]
movabs rax, 0x16ed006d4565e06
movabs rdx, 0x60bb1ffc0df2cde6
add rdx, qword [rax + rcx]
jmp rdx

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

Disassembly:
sub rsp, 0x28
lea rcx, [0x14004cb60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
shl rcx, 3
add rcx, qword [0x140047fc8]
movabs rdx, 0x26a69611451ac6d8
movabs r8, 0x7d5a0392992221fc
add r8, qword [rdx + rcx]
jmp r8

Function at 0x14001aad0
Capabilities:
Parse pe header

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

Function at 0x14001e63c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e74c
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 0x14001e7bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e7bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e7bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e7bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e7bb
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e7bb
cmp dword [rcx + 0xf8], 0
je 0x14001e7bb
mov ecx, ebx
call fcn.14001e6b8
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.14001e8f0
nop
cmp dword [rbp + 0x20], 0
jne 0x14001e81c
call fcn.14002520c
cmp eax, 1
jne 0x14001e80c
xor dl, dl
jmp 0x14001e816
call fcn.1400251d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001e827
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e71c
int3
Function at 0x14001e74c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e74c
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 0x14001e7bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e7bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e7bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e7bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e7bb
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e7bb
cmp dword [rcx + 0xf8], 0
je 0x14001e7bb
mov ecx, ebx
call fcn.14001e6b8
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.14001e8f0
nop
cmp dword [rbp + 0x20], 0
jne 0x14001e81c
call fcn.14002520c
cmp eax, 1
jne 0x14001e80c
xor dl, dl
jmp 0x14001e816
call fcn.1400251d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001e827
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e71c
int3

Function at 0x140020580
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400205a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400205a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140026408
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 0x14002648f
mov rsi, rbx
cmp word [rax], bp
je 0x14002644e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026438
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026434
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400233d0
mov rdi, rax
test rax, rax
je 0x14002647c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002f200
mov rbp, rdi
xor ecx, ecx
call fcn.140022390
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 0x14002b0d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002b0e6
mov al, 1
jmp 0x14002b152
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002b0f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002b150
mov ecx, dword [rcx + 0x18]
nop
call fcn.140026900
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002b150
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002b150
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002b150
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002b152
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800013b0
Capabilities:
Allocate or change rwx memory
Enumerate processes via ntquerysysteminformation
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18010bb00]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
lea r9, [rsp + 0x30]
mov rdi, rcx
xor ebx, ebx
xor edx, edx
mov dword [rsp + 0x30], ebx
mov ecx, 5
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18000145f
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
cmovns rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18000145f
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x180001480
mov rcx, rbx
call fcn.180001360
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180066c80
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdx, rsi
mov rcx, rbx
call rdi
test al, al
je 0x180001496
mov eax, dword [rbx]
add rbx, rax
cmp dword [rbx], 0
jne 0x180001480
mov rcx, rbx
call fcn.180001360
mov al, 1
jmp 0x180001461
Function at 0x180006fb0
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 0x180007011
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 0x180006fd0
mov ecx, dword [r9]
jmp 0x1800070fb
cmp ecx, 0x4e0
jb 0x1800070fb
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 0x180007030
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 0x180007080
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 0x18001faa0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18001fac4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x18001fb52
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18001fb20
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18001fb20
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180093d20
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001fb3d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001fb45
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18001fae1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x18001fc30
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18001fb69
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001fb6b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001fb9d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180093d20
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001fc2d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001fbd8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18001fc0e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18006d928
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18001fc2d
cmp rsi, rax
ja 0x18001fbe1
test rsi, rsi
je 0x18001fc2d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18006d928
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret