joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056c10
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400095e0
sub rsp, rax
mov rax, qword [0x140386380]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140388ec0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140056e1d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140056d69
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140056d69
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140056d49
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140056cd8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140056ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140056e3c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140056e18
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140056e3c
jmp 0x140056cae
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009640
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14005cd40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14005d2c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14005cd7f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140390008]
jmp 0x14005cd89
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1800115a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800115c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800115c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001a50
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rbx, [main]
mov dword [rsp + 0x48], 0xefbeadde
mov ecx, dword [rsp + 0x48]
mov word [rsp + 0x4c], 0x9090
movzx eax, word [rsp + 0x4c]
cmp dword [rbx], ecx
jne 0x140001a90
cmp word [rbx + 4], ax
je 0x140001a9d
nop
inc rbx
cmp dword [rbx], ecx
jne 0x140001a90
cmp word [rbx + 4], ax
jne 0x140001a90
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add rbx, 6
lea rcx, str.__lu__Main_thread_running.._n
mov edx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rbx
call fcn.140001060
mov edx, dword [rsp + 0x38]
lea rcx, str.__lu__Spawning_new_thread.._n
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call fcn.140001060
lea rax, [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x1400010c0]
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001b14
call fcn.140001b60
call fcn.140001b63
jmp 0x140001b12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.____CreateThread_failed_with_error_code__lu_n
mov rcx, rax
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001b80
add rsp, 0x60
pop rbx
ret

Function at 0x140002440
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d78
xor al, al
add rsp, 0x28
ret
Function at 0x14004f71c
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400a0870
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140131038]
call fcn.140051ab2
nop
mov qword [rbp + 8], 0
jmp 0x1400a08af
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1400a0905
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1400a08a4
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140050793
Capabilities:
Terminate process

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

Function at 0x140050d0b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
jmp 0x140095db0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4c8]
mov rax, qword [0x14011f040]
xor rax, rbp
mov qword [rbp + 0x468], rax
mov dword [rbp + 0x434], 0
lea rcx, [0x14013114b]
call fcn.140051ab2
nop
lea rdx, [0x140103f35]
mov rcx, qword [rbp + 0x490]
call fcn.1400502f7
mov qword [rbp + 0x448], rax
mov eax, dword [rbp + 0x434]
or eax, 1
mov dword [rbp + 0x434], eax
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov edx, dword [rbp + 0x6c]
lea rcx, [rbp + 0x378]
call fcn.14004ff14
mov qword [rbp + 0x448], rax
mov rax, qword [rbp + 0x448]
mov qword [rbp + 0x450], rax
mov rdx, qword [rbp + 0x450]
mov rcx, qword [rbp + 0x490]
call fcn.14004f929
nop
lea rcx, [rbp + 0x378]
call fcn.14004f794
nop
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140095f85
mov dword [rbp + 0x1d4], 0xff
lea rax, [rbp + 0x1d4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BaseBoardSerialNumber
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140095f77
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x3b8]
call fcn.1400502f7
mov qword [rbp + 0x448], rax
mov rax, qword [rbp + 0x448]
mov qword [rbp + 0x450], rax
mov r8, qword [rbp + 0x450]
lea rdx, [0x140104448]
lea rcx, [rbp + 0x3f8]
call fcn.140051ba7
mov qword [rbp + 0x458], rax
mov rax, qword [rbp + 0x458]
mov qword [rbp + 0x460], rax
mov rdx, qword [rbp + 0x460]
mov rcx, qword [rbp + 0x490]
call fcn.14004f929
nop
lea rcx, [rbp + 0x3f8]
call fcn.14004f794
nop
lea rcx, [rbp + 0x3b8]
call fcn.14004f794
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp + 0x490]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400fc360]
call fcn.1400512f6
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.14005044b
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret
Function at 0x140050d24
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400ea260
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400ea280
xor al, al
jmp 0x1400ea301
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400ea293
xor al, al
jmp 0x1400ea301
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400ea2bd
xor al, al
jmp 0x1400ea301
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400ea2d1
xor al, al
jmp 0x1400ea301
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400ea2e3
xor al, al
jmp 0x1400ea301
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400ea2ff
xor al, al
jmp 0x1400ea301
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e9050
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140051c33
movzx eax, al
test eax, eax
jne 0x1400e9070
mov ecx, 7
call fcn.140051341
nop
mov byte [rsp + 0x20], 0
call fcn.14005140e
mov byte [rsp + 0x21], al
cmp dword [0x14011fe48], 1
jne 0x1400e9094
mov ecx, 7
call fcn.140051341
nop
jmp 0x1400e90ec
cmp dword [0x14011fe48], 0
jne 0x1400e90e7
mov dword [0x14011fe48], 1
lea rdx, [0x1400f9890]
lea rcx, [0x1400f9560]
call fcn.1400503e7
test eax, eax
je 0x1400e90c8
mov eax, 0xff
jmp 0x1400e91f1
lea rdx, [0x1400f9450]
lea rcx, [section..rdata]
call fcn.1400513dc
mov dword [0x14011fe48], 2
jmp 0x1400e90ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400512d3
call fcn.140050e55
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400e9149
mov rcx, qword [rsp + 0x30]
call fcn.140050027
movzx eax, al
test eax, eax
je 0x1400e9149
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140132020]
nop
call fcn.140051026
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400e917d
mov rcx, qword [rsp + 0x38]
call fcn.140050027
movzx eax, al
test eax, eax
je 0x1400e917d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140051954
nop
call fcn.1400e9260
mov dword [rsp + 0x28], eax
call fcn.140050d24
movzx eax, al
test eax, eax
jne 0x1400e919c
mov ecx, dword [rsp + 0x28]
call fcn.14004f2d5
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400e91ab
call fcn.1400519e0
nop
xor edx, edx
mov cl, 1
call fcn.14004ff6e
mov eax, dword [rsp + 0x28]
jmp 0x1400e91f1
add rsp, 0x68
ret
Function at 0x14000158c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001628
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallResult
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001617
cmp dword [rsp + 0x40], 0xd2af9
sete bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x140001638
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
and qword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
and dword [rbp + 0x18], 0
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
and dword [rbp + 0x20], 0
mov ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001717
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PlaylistImportComplete
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400016cc
cmp dword [rbp + 0x18], 4
jne 0x1400016cc
cmp dword [rbp + 0x20], ebx
setne bl
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp + 0x30], 0
test bl, bl
je 0x140001717
lea rax, str._SystemRoot__system32
mov dword [rsp + 0x28], 0xa
lea r9, str._AsyncFirstLogon
mov qword [rsp + 0x20], rax
lea r8, str.unregmp2.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140001728
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov bl, 1
mov qword [rbp + 0x38], rdi
mov dword [rbp + 0x20], edi
mov dword [rbp + 0x28], edi
mov dword [rbp + 0x30], edi
test rcx, rcx
je 0x140001761
lea rdx, str._SkipFUE
call fcn.140001be0
test rax, rax
je 0x140001761
xor al, al
jmp 0x140001889
lea rax, [rbp + 0x38]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001892
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AcceptedPrivacyStatement
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400017e0
cmp dword [rbp + 0x28], 4
jne 0x1400017e0
cmp dword [rbp + 0x30], 1
movzx ebx, bl
cmove ebx, edi
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rbp + 0x38], rdi
test bl, bl
je 0x140001887
lea rax, [rbp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsMediaPlayer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001887
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.GroupPrivacyAcceptance
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001877
cmp dword [rbp + 0x28], 4
jne 0x140001877
cmp dword [rbp + 0x30], 1
movzx ebx, bl
cmove ebx, edi
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400017fc
mov bl, dil
jmp 0x140001877
Function at 0x140002720
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x140002754
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x1400027b3
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x1400027b3
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x1400027a5
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x1400027cc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000284b
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x14000284b
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rbx + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x14000284b
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x14000283f
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140002867
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000282a
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, r8
add rdi, rbx
je 0x14000284b
cmp dword [0x140005618], 0
jne 0x14000289c
cmp dword [rcx + 0x24], 0
mov dword [0x140005618], 1
jl 0x14000288f
mov ecx, 0x19
int 0x29
mov rcx, rdi
mov rbx, rdx
call fcn.140002720
jmp 0x14000289f
mov rbx, rdx
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x140002851
lea ecx, [rax + 0x19]
int 0x29
jmp 0x140002851
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14005a780]
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 [0x14005a790]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140061008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14005a6f0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14004b3a0
mov rcx, qword [0x14005a810]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14005a770]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14004b1b0
mov ebx, dword [0x140061028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140061020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140061020], rbp
call fcn.14004afb0
mov rax, qword [0x14005a700]
mov r8, qword [0x140061018]
mov ecx, dword [0x140061028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140061020]
call fcn.140004b50
mov ecx, dword [0x14006100c]
mov dword [0x140061010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140061008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14005a790]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.14004aca0
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x14005a7b0]
mov rcx, qword [0x14005a7a0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140061010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14005a7d0]
mov rcx, qword [0x14005a7c0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x14005a720]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret