joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004322c
Capabilities:
Parse pe header

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

Function at 0x141d3f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141d3f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141d3f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d3f06f
add dl, dl
jne 0x141d3f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d3f0f6
xor eax, eax
add dl, dl
jne 0x141d3f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d3f1ad
add dl, dl
jne 0x141d3f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d3f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d3f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d3f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141d3f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141d3f07e
mov eax, 1
add dl, dl
jne 0x141d3f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d3f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d3f0fb
sub eax, ebx
mov ebx, 1
jne 0x141d3f14c
mov ecx, 1
add dl, dl
jne 0x141d3f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d3f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d3f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141d3f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d3f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d3f15d
cmp eax, 0x7d00
jae 0x141d3f19b
cmp eax, 0x500
jb 0x141d3f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3f07e
cmp eax, 0x7f
ja 0x141d3f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141d3f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141d3f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140047f60]
mov dword [rax], 1
mov rax, qword [0x140047f70]
mov dword [rax], 1
mov rax, qword [0x140047f80]
mov dword [rax], 1
mov rax, qword [0x140047f10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140015fc0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002bbf0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140024de0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140016019
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002a8d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14003c050
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003c050
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002b5a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140050048]
test eax, eax
je 0x14002b63a
lea rax, [0x140050020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140050050]
mov qword [rbp - 8], rax
jmp 0x14002b61e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002b612
cmp qword [rbp - 0x10], 0
je 0x14002b612
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002b5d8
lea rax, [0x140050020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002b63b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002b740
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002b768
mov eax, 0
jmp 0x14002b7b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002b791
mov eax, 0
jmp 0x14002b7b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002b7b1
mov eax, 0
jmp 0x14002b7b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002b7bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002b83a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b831
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002b831
mov rax, qword [rbp - 8]
jmp 0x14002b84f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002b804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
mov r12, rsp
and r12w, 0xf0a0
xor r13, r13
movabs r14, 0xd3b5e7540ebe369a
fcmovnb st(0), st(7)
mov r13b, 0x5a
fxsave64 [r12]
add r12, 8
mov rsi, qword [r12]
dec r13
xor qword [rsi + r13*8 + 0x1f], r14
test r13, r13
jne 0x140004028
sar byte [rdi + 0xd56859], cl
test dword [rdi], ebp
xlatb
invalid
Function at 0x14001b150
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14001f0a0
sub rsp, rax
mov rax, qword [0x14005c9c0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001b212
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001b1bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001b1b0
cmp rcx, 1
jb 0x14001b26a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001b1e0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e65c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001b1a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001b243
lea rcx, [rsp + 0x80]
call fcn.140031494
jmp 0x14001b245
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001edd0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002e408
int3
Function at 0x14001e950
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005c9c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14001e9f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001e9ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001e9a0
cmp rcx, 1
jb 0x14001ea26
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001e9c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e65c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001e990
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001edd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e408
int3

Function at 0x14001ec60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005c9c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001ed05
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001ecbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001ecb0
cmp rcx, 1
jb 0x14001ed37
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001ecd3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e65c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001eca0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001edd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002e408
int3

Function at 0x14001f804
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f84e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f84e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f84e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f84e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f84e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f850
xor al, al
add rsp, 0x28
ret
Function at 0x140024c48
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 0x140024ab3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024ab3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024ab3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024ab3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024ab3
cmp dword [rcx + 0x84], 0xe
jbe 0x140024ab3
cmp dword [rcx + 0xf8], 0
je 0x140024ab3
mov ecx, ebx
call fcn.140024b64
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.140024940
nop
cmp dword [rbp + 0x20], 0
je 0x140024b01
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024b0c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024a44
Function at 0x140036700
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 0x140036787
mov rsi, rbx
cmp word [rax], bp
je 0x140036746
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140036730
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003672c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031580
mov rdi, rax
test rax, rax
je 0x140036774
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003ca80
mov rbp, rdi
xor ecx, ecx
call fcn.1400324b4
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 0x14003a2fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003a312
mov al, 1
jmp 0x14003a372
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003a323
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003a370
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036ea4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a370
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003a370
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003a370
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003a372
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003c860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003c888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003c888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10006aff4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1003fe1f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10006b062
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006b052
mov ebx, 0x80004005
jmp 0x10006b07f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10006b07b
cmp dword [rsp + 0x30], 2
jne 0x10006b077
cmp dword [rsp + 0x24], 6
jb 0x10006b077
mov eax, 1
jmp 0x10006b079
xor eax, eax
mov dword [rdi], eax
test ebx, ebx
jns 0x10006b0b0
mov rcx, qword [0x1003fe1f0]
lea rax, [0x1003fe1f0]
cmp rcx, rax
je 0x10006b0b0
test byte [rcx + 0x3c], 2
je 0x10006b0b0
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e880]
mov edx, 0x27
mov r9d, ebx
call fcn.10006e130
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1002d7828
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x10006bda8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x1003fe1f8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, 0x11c
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8, rdi
xor ebx, ebx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rbp, [0x1003fe1f0]
lea edi, [rbx + 2]
test eax, eax
jne 0x10006be20
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006be10
mov ebx, 0x80004005
jmp 0x10006be51
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10006be4d
cmp dword [rsp + 0x34], 6
jae 0x10006be42
cmp dword [rsp + 0x34], 5
jne 0x10006be3e
cmp dword [rsp + 0x38], edi
jne 0x10006be3e
cmp word [rsp + 0x144], di
jae 0x10006be42
xor eax, eax
jmp 0x10006be47
mov eax, 1
mov dword [0x10041c8c8], eax
test ebx, ebx
jns 0x10006be7b
mov rcx, qword [0x1003fe1f0]
cmp rcx, rbp
je 0x10006be82
test byte [rcx + 0x3c], dil
je 0x10006be82
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e820]
mov edx, SafeArrayGetDim
mov r9d, ebx
call fcn.10006e130
mov rcx, qword [0x1003fe1f0]
test ebx, ebx
js 0x10006bf32
xor r9d, r9d
lea r8, [0x10004f018]
lea rcx, [0x10004f050]
lea edx, [r9 + 0x64]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
je 0x10006bec3
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10006bf2b
lea rax, [0x10006bf90]
lea rcx, [0x10004eb50]
mov r9d, 0x21
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x4d2
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
test eax, eax
je 0x10006bf0d
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10006bf2b
lea rcx, [0x10041c898]
call fcn.10006d810
mov ebx, eax
test eax, eax
js 0x10006bf2b
mov dword [0x10041c8cc], 1
jmp 0x10006bf55
mov rcx, qword [0x1003fe1f0]
cmp rcx, rbp
je 0x10006bf55
test byte [rcx + 0x3c], dil
je 0x10006bf55
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e820]
mov edx, 0xa
mov r9d, ebx
call fcn.10006e130
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1002d7828
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x10006cfd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r12
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
mov r12, r9
mov rbp, r8
lea r9, [rax - 0x20]
lea r8d, [r13 + 1]
mov qword [rax - 0x20], r13
mov rbx, r13
call fcn.10006d2d4
cmp eax, r13d
mov esi, eax
lea r14, [0x1003fe1f0]
jl 0x10006d127
mov dword [rsp + 0x60], r13d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
je 0x10006d063
movzx esi, ax
or esi, 0x80070000
cmp eax, r13d
cmovle esi, eax
cmp esi, r13d
jne 0x10006d125
cmp rbx, r13
jne 0x10006d0a7
mov eax, dword [rsp + 0x60]
cmp eax, r13d
jbe 0x10006d09d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r13
jne 0x10006d021
mov rbx, r13
mov esi, 0x8007000e
jmp 0x10006d122
mov esi, 0x8000ffff
jmp 0x10006d127
cmp dword [rsp + 0x30], 4
je 0x10006d0b5
mov esi, 0x8007000d
jmp 0x10006d127
mov edx, dword [rsp + 0x60]
mov ebp, r13d
cmp edx, 4
je 0x10006d0fc
mov esi, 0x8007000d
mov ebp, esi
mov rcx, qword [0x1003fe1f0]
cmp rcx, r14
je 0x10006d0f6
test byte [rcx + 0x3c], 2
je 0x10006d0f6
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e8a0]
mov edx, SafeArrayGetDim
mov r9d, esi
call fcn.10006e130
mov edx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x60]
jmp 0x10006d105
mov eax, dword [rbx]
mov dword [r12], eax
mov eax, r13d
cmp ebp, r13d
mov esi, ebp
jl 0x10006d127
cmp eax, r13d
mov rax, qword [rsp + 0x80]
cmovne rbx, r13
cmp rax, r13
je 0x10006d122
mov dword [rax], edx
cmp esi, r13d
jge 0x10006d151
mov rcx, qword [0x1003fe1f0]
cmp rcx, r14
je 0x10006d151
test byte [rcx + 0x3c], 2
je 0x10006d151
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e8a0]
mov edx, 0x22
mov r9d, esi
call fcn.10006e130
cmp rbx, r13
je 0x10006d16a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x38], r13
je 0x10006d17c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x100073540
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x20], 0
xor eax, eax
mov rsi, rcx
and dword [rcx + 8], eax
and qword [r11 + 8], rax
lea ebp, [rax + 1]
lea r8, [r11 + 8]
lea rcx, [0x10004fb98]
mov edx, ebp
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
xor ebx, ebx
xor edi, edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1000735b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000735a1
mov edi, 0x80004005
jmp 0x100073658
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100073654
mov rax, qword [rsp + 0x50]
and dword [rsp + 0x30], ebx
lea r8, [0x100050c80]
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x10007360a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000735a1
lea r8, [0x100050c80]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
test rax, rax
je 0x10007358d
mov edx, 0x2710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100073638
cmp eax, 0x80
je 0x100073631
cmp eax, 0x102
jne 0x10007363b
mov edi, 0x800705b4
jmp 0x100073658
mov edi, 0x8000ffff
jmp 0x100073658
mov dword [rsi + 8], ebp
mov rcx, qword [rsi]
mov rbp, rbx
xor ebx, ebx
test rcx, rcx
je 0x100073651
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi], rbx
mov qword [rsi], rbp
test edi, edi
jns 0x100073697
mov rcx, qword [0x1003fe1f0]
lea rax, [0x1003fe1f0]
cmp rcx, rax
je 0x100073689
test byte [rcx + 0x3c], 2
je 0x100073689
mov rcx, qword [rcx + 0x30]
lea r8, [0x10004e618]
mov edx, 0xb
mov r9d, edi
call fcn.10006e130
test rbx, rbx
je 0x100073697
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000736a7
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
ret