joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073540
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
mov eax, 0x2070
call fcn.1400e64d0
sub rsp, rax
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rsp + 0x2060], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
mov edi, 0x2000
mov rcx, qword [0x140159238]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
xor r8d, r8d
mov rbx, rax
xor edx, edx
xor eax, eax
mov rcx, r15
mov qword [rsp + 0x40], rax
mov r14d, eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, eax
test eax, eax
js 0x1400736a8
lfence
nop
mov esi, dword [rsp + 0x58]
test esi, esi
je 0x1400736b5
lea ebp, [r14 + rsi]
cmp edi, ebp
jae 0x140073649
lea eax, ds:[rdi + rdi]
mov edi, eax
mov r8d, eax
test eax, eax
jne 0x14007361f
test rbx, rbx
je 0x14007361b
mov rcx, qword [0x140159238]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
jmp 0x140073649
mov rcx, qword [0x140159238]
mov edx, 4
test rbx, rbx
je 0x14007363e
mov r9, r8
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x140073646
nop
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov ecx, r14d
lea rdx, [rsp + 0x60]
add rcx, rbx
mov r8, rsi
call fcn.1400e6ce0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], rax
mov rcx, r15
lea rax, [rsp + 0x50]
mov r14d, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, eax
test eax, eax
jns 0x1400735e0
mov r8, rbx
cmp ebp, 0xc0000011
jne 0x1400736f1
xor ebp, ebp
mov esi, r14d
mov eax, edi
lea rcx, [rsi + 1]
cmp rax, rcx
jae 0x14007373e
lea eax, [rdi + 1]
mov r8d, eax
test eax, eax
jne 0x140073713
test rbx, rbx
je 0x1400736ed
lfence
mov rcx, qword [0x140159238]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
jmp 0x14007373e
test ebp, ebp
jns 0x1400736b5
lfence
mov rcx, qword [0x140159238]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov qword [r12], rax
mov dword [r13], eax
jmp 0x14007374a
lfence
mov rcx, qword [0x140159238]
mov edx, 4
test rbx, rbx
je 0x140073735
mov r9, r8
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x14007373b
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov byte [rsi + rbx], 0
mov qword [r12], rbx
mov dword [r13], r14d
mov eax, ebp
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.1400c6a20
mov rbx, qword [rsp + 0x20c8]
add rsp, 0x2070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073f40
Capabilities:
Get system information on windows

Disassembly:
push r14
sub rsp, 0x60
mov r14, r8
test r8, r8
jne 0x140073f5a
mov eax, 0xc0000030
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x50], r15
mov eax, 0x100
xor r15d, r15d
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], 0x1000000
nop dword [rax]
mov rcx, qword [0x140159238]
xor edx, edx
movzx r8d, ax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rsp + 0x40], rax
test rax, rax
je 0x1400740f2
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, 0x18
mov ecx, 0x58
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x140073fe6
mov r8, qword ds:[rsp + 0x40]
xor edx, edx
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc0000004
jne 0x140073ff5
movzx eax, word [rsp + 0x3a]
jmp 0x140073f80
lfence
test ebx, ebx
jns 0x14007400f
mov r15, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop r14
ret
mov qword ss:[rsp + 0x78], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x80], rsi
mov edx, 0x5c
movzx esi, word [rsp + 0x38]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call fcn.1400613e0
cmp rax, 0xffffffffffffffff
jne 0x140074062
movzx eax, word [rsp + 0x38]
test ax, ax
je 0x140074075
mov rbp, qword [rsp + 0x40]
lea rcx, [rax + 0x12]
mov esi, eax
jmp 0x140074083
add rax, rax
lea rbp, [rdi + 2]
add rbp, rax
sub rsi, rax
add rsi, 0xfffffffffffffffe
jne 0x14007407f
call fcn.140061980
mov rdi, rax
jmp 0x1400740b6
lea rcx, [rsi + 0x12]
mov rdx, qword [0x140159180]
call fcn.1400601a0
mov rdi, rax
mov qword [rax], rsi
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rsi], r15w
test rbp, rbp
je 0x1400740b6
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.1400e6ce0
mov qword [r14], rdi
xor edx, edx
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xc0000017
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
Function at 0x140074120
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x40
mov r15, rdx
mov rbx, rcx
mov rcx, qword [0x140159238]
mov edx, 4
mov r8d, 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x1000000
mov ecx, 0x58
mov rdi, rax
xor r12d, r12d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x1400741e1
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx r8d, word [rsp + 0x2a]
mov edx, 4
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x18
mov qword [rsp + 0x30], rax
mov ecx, 0x58
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x1400741ff
lfence
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140074293
nop
cmp word [rsp + 0x28], r12w
jne 0x140074222
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
jmp 0x140074295
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r14
lfence
movzx ebp, word [rsp + 0x28]
mov rdx, qword [0x140159180]
mov r14, qword [rsp + 0x30]
lea rcx, [rbp + 0x12]
call fcn.1400601a0
mov rbx, rax
mov qword [rax], rbp
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbp], r12w
test r14, r14
je 0x140074274
mov rcx, qword [rax + 8]
mov r8d, ebp
mov rdx, r14
call fcn.1400e6ce0
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
mov qword [r15], rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret

Function at 0x140074520
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov esi, 0x200
mov r15, r8
mov r8d, esi
mov ebp, edx
mov r14, rcx
mov rcx, qword [0x140159238]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, esi
mov dword [rsp + 0x20], ebp
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r14
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp eax, 0x80000005
je 0x14007458e
nop
cmp eax, 0xc0000023
je 0x14007458e
cmp eax, 0xc0000004
jne 0x1400745b0
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rsi + rsi]
mov esi, eax
mov r8d, eax
jmp 0x140074548
test ebx, ebx
js 0x1400745b9
mov qword [r15], rdi
jmp 0x1400745cd
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140074600
Capabilities:
Set file attributes

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x140155040]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov edi, dword [r9]
mov rsi, r9
add edi, 0x1a
mov r14, rcx
cmp dword [0x140155b08], 0x66
mov eax, edi
jae 0x1400746f6
xor ecx, ecx
lea rdx, [rdi + 0x10]
cmp rdx, rax
cmova rcx, rdx
test rcx, rcx
je 0x1400747cb
nop dword [rax]
cmp rcx, 0x400
ja 0x14007469e
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14007467c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e64d0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400747cb
mov dword [rbx], 0xcccc
jmp 0x1400746b4
lfence
call fcn.1400d1f90
mov rbx, rax
test rax, rax
je 0x1400746b8
mov dword [rax], 0xdddd
add rbx, 0x10
nop dword [rax + rax]
test rbx, rbx
je 0x1400747cb
mov byte [rbx], 1
lea rcx, [rbx + 0x14]
mov qword [rbx + 8], 0
mov eax, dword [rsi]
mov dword [rbx + 0x10], eax
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.1400e6ce0
mov dword [rsp + 0x20], 0xa
jmp 0x14007479f
xor edx, edx
lea rcx, [rdi + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x1400747cb
cmp rdx, 0x400
ja 0x140074751
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140074728
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e64d0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400747cb
mov dword [rbx], 0xcccc
jmp 0x14007476b
lfence
mov rcx, rdx
call fcn.1400d1f90
mov rbx, rax
test rax, rax
je 0x14007476f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400747cb
mov dword [rbx], 0x43
lea rcx, [rbx + 0x14]
mov qword [rbx + 8], 0
mov eax, dword [rsi]
mov dword [rbx + 0x10], eax
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.1400e6ce0
mov dword [rsp + 0x20], 0x41
mov r9d, edi
lea rdx, [rbp]
mov r8, rbx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp dword ds:[rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
mov edi, eax
jne 0x1400747c7
call fcn.1400d1f80
mov eax, edi
jmp 0x1400747d0
mov eax, 0xc0000017
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.1400c6a20
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140074800
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
mov r15, rdx
mov rbp, rcx
mov rcx, qword [0x140159238]
mov edx, 4
mov r8d, 0x10c
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov r8d, 0x10c
mov rcx, rax
mov rsi, rax
call fcn.1400e6910
mov r9d, 0x10c
mov dword [rsp + 0x20], 9
mov r8, rsi
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
cmp eax, 0x80000005
jne 0x1400748c9
mov edi, dword [rsi]
mov r8, rsi
mov rcx, qword [0x140159238]
xor edx, edx
add edi, 0xa
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x140159238]
mov edx, 4
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1400e6910
mov r9d, edi
mov dword [rsp + 0x20], 9
mov r8, rsi
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
lfence
test edi, edi
jns 0x1400748e8
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14007494b
mov ebp, dword ds:[rsi]
mov rdx, qword [0x140159180]
mov qword [rsp + 0x60], r14
lea r14, [rsi + 4]
lea rcx, [rbp + 0x12]
call fcn.1400601a0
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbp
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbp], ax
test r14, r14
je 0x14007492d
mov rcx, qword [rbx + 8]
mov r8d, ebp
mov rdx, r14
call fcn.1400e6ce0
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
mov qword [r15], rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x60]
mov rbx, qword ss:[rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x140074980
Capabilities:
Get file attributes

Disassembly:
mov qword ss:[rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r13, r8
mov rbp, rcx
mov rcx, qword [0x140159238]
mov r15d, 0x400
mov r8d, r15d
mov edx, 4
mov r12, r9
mov dil, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r14d, r14d
mov rsi, rax
nop dword [rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov byte [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x38], 1
xor edx, edx
mov dword [rsp + 0x30], r15d
mov rcx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x140074a2f
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x140074a3f
cmp ebx, 0xc0000004
jne 0x140074a72
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x140159238]
lea eax, [r15 + r15]
mov r8d, eax
mov edx, 4
mov r15d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x1400749c9
cmp ebx, 0x80000006
je 0x140074ad7
test ebx, ebx
js 0x140074ada
lfence
mov r8, r12
mov rdx, rsi
mov rcx, rbp
mov rax, r13
mov rdi, rsi
call qword [case.0x140071b98.0]
test al, al
je 0x140074ada
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x140074acc
add r14d, eax
mov r8, r12
mov edi, r14d
mov rcx, rbp
add rdi, rsi
mov rax, r13
mov rdx, rdi
call qword [case.0x140071b98.0]
test al, al
jne 0x140074aa0
jmp 0x140074ada
xor dil, dil
xor r14d, r14d
jmp 0x1400749d0
mov ebx, r14d
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140076b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push r14
sub rsp, 0x40
mov r14, r9
mov rbp, rcx
mov esi, 0x10
test rdx, rdx
je 0x140076b97
mov r8, qword [rdx]
test r8, r8
je 0x140076b97
mov word ds:[rsp + 0x30], r8w
lea eax, [r8 + 2]
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
cmp r8, 0xfffe
jbe 0x140076b9f
mov eax, 0xc0000106
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rcx, qword [0x140159238]
mov edx, 4
mov qword [rsp + 0x60], rbx
mov ebx, 0x100
mov r8d, ebx
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop word [rax + rax]
lea rax, [rsp + 0x70]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x140076c4b
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x140076c39
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x70]
mov edx, 4
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
je 0x140076c4b
mov ebx, dword [rsp + 0x70]
jmp 0x140076bd0
lfence
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140076c4e
mov qword [r14], rdi
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
Function at 0x140076c80
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov dword [rsp + 0x58], 0x100
mov rbp, rcx
mov r8d, 0x100
mov rcx, qword [0x140159238]
mov edx, 4
mov r14, r9
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r8d, r8d
xor edx, edx
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140076dbf
nop word [rax + rax]
cmp ebx, 0x80000005
je 0x140076d10
cmp ebx, 0xc0000023
jne 0x140076d68
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x58]
mov edx, 4
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r8d, r8d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
test ebx, ebx
js 0x140076dc1
lfence
mov r8, r14
mov rdx, rdi
mov rcx, rbp
mov rax, r15
call qword [case.0x140071b98.0]
test al, al
je 0x140076dc1
lfence
lea rax, [rsp + 0x58]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x58]
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x140076d00
xor ebx, ebx
mov rcx, qword [0x140159238]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140077980
Capabilities:
Get system information on windows

Disassembly:
mov qword ss:[rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rdi
push r14
push r15
sub rsp, 0x30
mov ebx, dword [0x140156da8]
mov r14, r8
mov rcx, qword [0x140159238]
mov r15, rdx
mov r8d, ebx
mov dword [rsp + 0x68], 4
mov edx, 4
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rsi, rax
mov ecx, 0x6b
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor ebx, ebx
mov edi, eax
cmp eax, 0xc0000004
jne 0x140077a67
nop dword [rax + rax]
cmp ebx, 8
jae 0x140077a6b
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x50]
mov edx, 4
mov rcx, qword [0x140159238]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rsi, rax
mov ecx, 0x6b
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc ebx
mov edi, eax
cmp eax, 0xc0000004
je 0x140077a00
test edi, edi
jns 0x140077a88
lfence
mov rcx, qword [0x140159238]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140077aa2
lfence
mov eax, dword [rsp + 0x50]
cmp eax, 0x100000
ja 0x140077a9c
mov dword [0x140156da8], eax
mov qword [r15], rsi
mov dword [r14], eax
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140078600
Capabilities:
Map section object

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov rdx, qword [rcx + 8]
mov rdi, r8
mov dword [rax - 0x60], 0x60
lea rcx, [rax + 0x20]
mov dword [rax - 0x68], 1
mov r8d, 0x100081
mov dword [rax - 0x70], 5
mov dword [rax - 0x78], 0x80
call fcn.140076e00
nop dword [rax]
test eax, eax
jns 0x140078650
lfence
add rsp, 0x90
pop rdi
ret
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0xa8], rbp
mov eax, 0x11000000
xor ebp, ebp
mov qword [rsp + 0xb0], rsi
cmp dword [0x140155b08], 0x3e
mov ecx, 0x1000000
mov rsi, qword [rsp + 0xb8]
xorps xmm0, xmm0
cmovb eax, ecx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0xb8]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 5
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x70], rbp
movdqu xmmword [rsp + 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x140078769
cmp dword [0x140155b08], 0x67
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
mov eax, 0x40000
mov dword [rsp + 0x48], 2
cmovb eax, ebp
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword [rsp + 0xb8]
mov ebx, ebp
cmp eax, 0x40000003
cmovne ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140078769
test rdi, rdi
je 0x140078769
mov rdx, qword [rsp + 0x50]
or rdx, 2
mov qword [rdi], rdx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x1400787a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xa0]
lea r9, [rsp + 0x28]
mov qword [rsp + 0x38], r8
mov rbx, rcx
mov qword [rsp + 0x40], rdx
mov r8d, 3
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], 0
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140078862
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140078862
mov qword [rsp + 0x98], rbp
mov rbp, qword [rsp + 0x30]
test rsi, rsi
je 0x140078856
mov rcx, qword [0x140159238]
mov edx, 4
mov qword [rsp + 0x60], rdi
mov edi, dword [rsp + 0x20]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.1400e6ce0
mov rdi, qword [rsp + 0x60]
mov qword [rsi], rbx
mov rbp, qword [rsp + 0x98]
mov al, 1
jmp 0x140078864
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c6a20
add rsp, 0x68
pop rsi
pop rbx
ret
Function at 0x140078880
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [0x140159210]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x18]
add rdx, 0x10
mov rax, qword [rdx]
cmp rax, rdx
je 0x1400788de
test rbx, rbx
je 0x140078905
nop dword [rax]
cmp qword [rax + 0x30], rbx
je 0x140078905
mov rax, qword [rax]
cmp rax, rdx
jne 0x1400788d0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rax, rax
je 0x1400788de
movzx ecx, word [rax + 0x48]
test cx, cx
jne 0x14007891d
call fcn.140061980
mov rbx, rax
jmp 0x14007896a
mov rdx, qword [0x140159180]
mov rdi, rcx
add rcx, 0x12
mov qword [rsp + 0x30], rsi
mov rsi, qword [rax + 0x50]
call fcn.1400601a0
mov rbx, rax
xor ecx, ecx
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], cx
test rsi, rsi
je 0x140078965
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1400e6ce0
mov rsi, qword [rsp + 0x30]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
je 0x1400788f8
mov rcx, rbx
call fcn.140075ae0
mov rdi, rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400789b2
call fcn.1400602c0
mov rbx, qword ss:[rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret