joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005dbc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140003643
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.140009ac0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14005bde0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x140003620
cmp byte [0x140197268], 0
je 0x14005dbd5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x14005ae20
jmp 0x140003620

Function at 0x14005dbe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140197520]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x140197268], 0
je 0x14005dc15
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x1401977e0]
aesenc xmm0, xmmword [0x1401977f0]
aesenc xmm0, xmmword [0x140197800]
movq rax, xmm0
ret
jmp 0x140009ce0

Function at 0x14005dc20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140197520]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x140197268], 0
je 0x14005dc56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x1401977e0]
aesenc xmm0, xmmword [0x1401977f0]
aesenc xmm0, xmmword [0x140197800]
movq rax, xmm0
ret
jmp 0x140009d40

Function at 0x1400671a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14006726a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.1400035c0
xorps xmm15, xmm15
mov r14, qword [0x140197488]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x14006724f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x1400a2aa0]
xor ebx, ebx
mov rcx, rdx
call fcn.140046480
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.140067780
inc rbx
cmp rcx, rbx
jae 0x14006723e
mov edi, 1
lea rsi, [0x1400a2aa0]
call fcn.140046560
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x1400d6658]
lea rsi, [0x1400d6008]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14005bde0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1400671a0
Function at 0x140086ea8
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp - 4], 0
jmp 0x140086f18
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__beginthread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x140086f0b
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0xd
jne 0x140086f0b
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140086f14
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x140086f51
jmp 0x140086f1e
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x13
jle 0x140086ec4
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [fcn.14008d420]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rdx, rax
call fcn.140086b20
call sub.msvcrt.dll_abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x14008c330
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14008d420
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14008d420
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14008c3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14019bd64]
mov rbx, rcx
test esi, esi
jle 0x14008c4d0
mov rax, qword [0x14019bd68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14008c3eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14008c475
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14008c3d0
mov rcx, rbx
call fcn.14008ce10
mov rdi, rax
test rax, rax
je 0x14008c4f2
mov rax, qword [0x14019bd68]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14008cf50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14019bd68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14008c4d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14008c46e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14008c480
add dword [0x14019bd64], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14019bd68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14008c46e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14008c330
nop dword [rax]
xor esi, esi
jmp 0x14008c3f8
mov rax, qword [0x14019bd68]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14008c330
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14008c330
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14008ca80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14019bdc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14019bda0]
test rbx, rbx
je 0x14008cadc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14008cad3
test eax, eax
jne 0x14008cad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14008cab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14008ce10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14013cf80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14008ce30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14008ce38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14008ce30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14008ce8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14008ce84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14008ce30
add rax, 0x28
cmp rax, r9
jne 0x14008ce70
xor eax, eax
ret

Function at 0x14008ce90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013cf80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14008ceaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14008ceb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14008ceaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14008cf50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013cf80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14008cf6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14008cf78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006900
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000c918], rbx
je 0x14000694c
cmp rax, rbx
jne 0x14000693f
mov ebx, 1
mov esi, ebx
jmp 0x140006951
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006924
mov ebx, 1
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x140006967
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400069cc
mov eax, dword [0x14000c920]
test eax, eax
jne 0x1400069c6
mov dword [0x14000c920], ebx
lea r15, [0x1400085d8]
lea rdi, [0x1400085c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400069b8
test eax, eax
jne 0x1400069bc
cmp qword [rdi], 0
je 0x1400069ad
mov rax, qword [rdi]
mov rcx, qword [0x1400085a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000698e
test eax, eax
je 0x1400069cc
mov eax, 0xff
jmp 0x140006aa8
mov dword [0x14000c354], ebx
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x1400069f3
lea rdx, [0x1400085b8]
lea rcx, [0x1400085a8]
call sub.msvcrt.dll__initterm
mov dword [0x14000c920], 2
test esi, esi
jne 0x140006a00
xor eax, eax
xchg qword [0x14000c918], rax
cmp qword [0x14000c928], 0
je 0x140006a34
lea rcx, [0x14000c928]
call fcn.140006d70
test eax, eax
je 0x140006a34
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000c928]
mov r9, qword [0x1400085a0]
call r9
mov r8, qword [0x14000c368]
mov rdx, qword [0x14000c360]
mov ecx, dword [0x14000c358]
call fcn.1400017f4
mov dword [0x14000c350], eax
cmp dword [0x14000c370], 0
jne 0x140006a64
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c354], 0
jne 0x140006a79
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c350]
jmp 0x140006aa8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140183000
add rsp, 0x28
jmp 0x140006900

Function at 0x140006c5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006ca8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ca0
cmp dword [rcx + 0x3c], edx
jl 0x140006ca0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006ca0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006ca8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000c3ac
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x14001a710]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000c41d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000c41d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000c3fb
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x140014f08]
lea rcx, [rsp + 0x30]
call fcn.140006fa8
lea r8, [rsp + 0x30]
xor edx, edx
mov esi, 0x1f0003
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000c568
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.140009cb0
mov edi, eax
test eax, eax
jns 0x14000c4ac
mov rcx, qword [rbp + 0x168]
mov r9d, eax
lea r8, [0x140014db4]
mov edx, 0xcf
call fcn.140006f84
nop
mov rcx, rbx
call fcn.140008fd0
nop
mov eax, edi
jmp 0x14000c58e
lea r8, [0x140014f10]
lea rcx, [rsp + 0x30]
call fcn.140006fa8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000c547
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140009cb0
mov esi, eax
test eax, eax
jns 0x14000c51f
mov rcx, qword [rbp + 0x168]
mov r9d, eax
lea r8, [0x140014db4]
mov edx, 0xd7
call fcn.140006f84
nop
mov rcx, rdi
call fcn.140008fd0
nop
mov rcx, rbx
call fcn.140008fd0
nop
mov eax, esi
jmp 0x14000c58e
mov rcx, rdi
call fcn.140008fd0
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.140008fd0
nop
jmp 0x14000c579
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.140006f64
mov edi, eax
mov rcx, rbx
call fcn.140008fd0
nop
jmp 0x14000c4a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000c57d
xor eax, eax
jmp 0x14000c58e
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.140006f64
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400015e0
lea r11, [rsp + 0x250]
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 0x14000ece4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor edx, edx
mov r9d, eax
test eax, eax
jne 0x14000ed5e
call fcn.140011b58
mov ebx, eax
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000ed5a
test byte [rcx + 0x1c], 1
je 0x14000ed5a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015100]
mov edx, 0x38
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.14000729c
mov eax, ebx
jmp 0x14000ed80
cmp r9d, ebx
ja 0x14000ed74
lea eax, [r9 - 1]
cmp word [rdi + rax*2], dx
je 0x14000ed7b
mov eax, 0x8000ffff
jmp 0x14000ed80
test ebx, ebx
je 0x14000ed7b
mov word [rdi], dx
mov qword [rsi], r9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000ee0b
call fcn.140011b58
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x14000ee07
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000ee07
test byte [rcx + 0x1c], 1
je 0x14000ee07
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015100]
mov edx, 0x3d
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000729c
mov eax, ebx
jmp 0x14000ee0f
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000eefc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000ef27
xor eax, eax
jmp 0x14000efc8
call fcn.140011b58
mov ebx, eax
cmp eax, 0x800700b7
je 0x14000ef6e
mov rcx, qword [0x14001a028]
lea rdx, [0x14001a028]
cmp rcx, rdx
je 0x14000ef6a
test byte [rcx + 0x1c], 1
je 0x14000ef6a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015100]
mov edx, 0x2d
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.14000729c
mov eax, ebx
jmp 0x14000efc8
and dword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.14000ed9c
test eax, eax
js 0x14000efc8
test byte [rsp + 0x48], 0x10
jne 0x14000efc3
mov rcx, qword [0x14001a028]
lea rdx, [0x14001a028]
cmp rcx, rdx
je 0x14000efbc
test byte [rcx + 0x1c], 1
je 0x14000efbc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015100]
mov edx, 0x37
mov r9, rdi
call fcn.1400056e0
mov eax, 0x800700b7
jmp 0x14000efc8
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ff1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
mov rdi, r9
mov eax, r14d
mov r15, r8
mov dword [rsp + 0x68], eax
mov rbp, rdx
cmp rax, r14
je 0x14000ff56
mov eax, 0x80070057
jmp 0x140010024
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000ff8b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14000ffc6
test rsi, rsi
je 0x14000ffa7
mov eax, dword [rsp + 0x68]
cmp rax, qword [rdi]
jbe 0x14000ffa7
mov qword [rdi], rax
mov eax, 0x800700ea
jmp 0x140010024
mov eax, dword [rsp + 0x68]
mov r9, rdi
mov r8d, dword [r15]
mov rdx, r14
mov rcx, rbp
mov qword [rdi], rax
mov qword [rsp + 0x20], rsi
call fcn.1400106c8
jmp 0x140010024
mov eax, 0x80070002
cmp ebx, eax
je 0x140010024
mov eax, 0x800700ea
cmp ebx, eax
je 0x140010011
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14001000d
test byte [rcx + 0x1c], 1
je 0x14001000d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015110]
mov edx, 0x15
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.14000729c
mov eax, ebx
jmp 0x140010024
mov ecx, dword [rsp + 0x68]
cmp qword [rdi], rcx
jb 0x140010021
mov eax, 0x8000ffff
jmp 0x140010024
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140012110
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rdx], 0
lea rbp, [rcx + 0x28]
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140012164
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001215d
call fcn.140011b58
mov edi, eax
cmp eax, 0x80070012
jmp 0x1400121f1
xor edi, edi
jmp 0x1400121f3
mov r9, qword [rsi + 0x20]
lea rdx, str._ws_ws
mov r8, qword [rsi + 0x18]
lea rcx, [rsp + 0x40]
and qword [rsp + 0x40], 0
call fcn.14000fa24
mov ebx, eax
test eax, eax
js 0x14001221b
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400121ad
cmp rcx, 0xffffffffffffffff
je 0x1400121a8
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
and qword [rsi + 0x10], 0
mov rbx, qword [rsp + 0x40]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x1400121d8
call fcn.140011b58
mov edi, eax
add eax, 0x7ff8fffe
jmp 0x1400121de
mov qword [rsi + 0x10], rax
xor edi, edi
test rbx, rbx
je 0x1400121eb
mov rcx, rbx
call fcn.14000164c
cmp edi, 0x80070012
je 0x140012213
test edi, edi
js 0x14001220f
test byte [rsi + 0x280], 2
je 0x14001220a
test byte [rbp], 0x10
jne 0x140012130
mov qword [r14], rbp
jmp 0x140012217
mov eax, edi
jmp 0x14001222c
and qword [r14], 0
xor eax, eax
jmp 0x14001222c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001222a
call fcn.14000164c
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400046c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400046f1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14000476b
mov rdi, r14
mov rcx, rbx
call fcn.140003010
test rax, rax
jle 0x140004743
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1405a6980
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000475b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004763
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004705
sub r14, rdi
jmp 0x14000484f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004782
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004784
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400047b6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1405a6980
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000484c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400047f1
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 rbp, 0xfff
jbe 0x14000482d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1405ac2c0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000484c
cmp rbp, rax
ja 0x140004800
test rbp, rbp
je 0x14000484c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1405ac2c0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1405a5714
Capabilities:
Parse pe header

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

Function at 0x1405af1a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1405aefa0