joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180051360
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18006c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18006e5f0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800513d3
mov eax, 0xa
jmp 0x180051466
test esi, esi
je 0x1800513f5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180051418
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180051418
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180051411
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180051418
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180057d40
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180051490
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18006e5fc]
mov ebx, edi
test ecx, ecx
je 0x1800515cb
mov rax, qword [0x18006e5f0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800514e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800514c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800515cb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800511b0
mov r8d, dword [0x18006e5fc]
cmp ebx, r8d
jae 0x180051558
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18006e5f0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180051551
mov edx, esi
mov ecx, ebx
call fcn.180051360
mov edi, eax
test eax, eax
jne 0x180051558
mov r8d, dword [0x18006e5fc]
inc ebx
cmp ebx, r8d
jb 0x180051520
cmp qword [rsp + 0x20], 0
je 0x1800515cb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800515b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800515a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180051580
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18006cdb0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180051940
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18006cda8], ebp
je 0x180051997
cmp rbx, 0x20
jae 0x180051980
xor ecx, ecx
jmp 0x180051982
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18006cda8], ebp
jne 0x180051976
cmp qword [0x18006cdb0], r15
je 0x180051a91
test rdi, rdi
jne 0x1800519b7
mov ecx, esi
call fcn.180051490
mov ebp, eax
jmp 0x180051a96
mov ecx, dword [0x18006e5fc]
mov ebx, r15d
test ecx, ecx
je 0x1800519df
mov r8, qword [0x18006e5f0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800519e9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800519d0
mov ebp, 4
jmp 0x180051a96
cmp ebx, 0xffffffff
je 0x1800519df
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180051a88
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800511b0
mov edx, esi
mov ecx, ebx
call fcn.180051360
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180051a96
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180051a72
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180051a68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180051a40
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18006cdb0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180051a96
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180051a96
mov ebp, 2
xchg dword [0x18006cda8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800522d0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [0x18006e310]
mov qword [rsp + 0x80], rdi
xor ebx, ebx
mov qword [0x18006e310], rbx
mov qword [0x18006e318], rbx
lea ecx, [rbx + 0x60]
call fcn.1800581e0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x18006e310], rax
xorps xmm0, xmm0
movups xmmword [0x18006e320], xmm0
mov qword [0x18006e330], rbx
mov qword [0x18006e338], rbx
lea r8d, [rbx + 0x4d]
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
lea rcx, [0x18006e320]
call fcn.1800079e0
nop
xorps xmm0, xmm0
movups xmmword [0x18006e340], xmm0
mov qword [0x18006e350], rbx
mov qword [0x18006e358], 0xf
mov byte [0x18006e340], bl
movups xmmword [0x18006e360], xmm0
mov qword [0x18006e370], rbx
mov qword [0x18006e378], 0xf
mov byte [0x18006e360], bl
movups xmmword [0x18006e380], xmm0
mov qword [0x18006e390], rbx
mov qword [0x18006e398], 0xf
mov byte [0x18006e380], bl
movups xmmword [0x18006e3a0], xmm0
mov qword [0x18006e3b0], rbx
mov qword [0x18006e3b8], 0xf
mov byte [0x18006e3a0], bl
movups xmmword [0x18006e3c0], xmm0
mov qword [0x18006e3d0], rbx
mov qword [0x18006e3d8], 0xf
mov byte [0x18006e3c0], bl
movups xmmword [0x18006e3e0], xmm0
mov qword [0x18006e3f0], rbx
mov qword [0x18006e3f8], rbx
lea r8d, [rbx + 3]
lea rdx, [0x180061b10]
lea rcx, [0x18006e3e0]
call fcn.1800079e0
nop
xorps xmm0, xmm0
movups xmmword [0x18006e400], xmm0
mov qword [0x18006e410], rbx
mov qword [0x18006e418], 0xf
mov byte [0x18006e400], bl
movups xmmword [0x18006e420], xmm0
mov qword [0x18006e430], rbx
mov qword [0x18006e438], rbx
lea r8d, [rbx + 0xf]
lea rdx, str.www.example.com
lea rcx, [0x18006e420]
call fcn.1800079e0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x18005fa43]
lea rcx, [rsp + 0x30]
call fcn.1800079e0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18005fa43]
lea rcx, [rsp + 0x50]
call fcn.1800079e0
nop
lea rcx, [0x18006e440]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call fcn.1800063e0
nop
lea r9, [fcn.180004090]
lea edx, [rbx + 0x40]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.18005821c
mov qword [0x18006e450], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140001000
Capabilities:
Delete file
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x4d0
mov rax, qword [0x1400120e0]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov qword [0x140015270], rcx
mov ecx, 1
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
xor edi, edi
test eax, eax
js 0x1400010b3
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.1400014e0
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140001730
test ebx, ebx
js 0x1400010ad
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400010ad
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001080
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
lea rcx, [rsp + 0x2b2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2b0], di
call fcn.140006c60
lea rdx, [rsp + 0x2b0]
lea rcx, str.APPDATA
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, 0x80070057
test eax, eax
cmovne esi, edi
test esi, esi
js 0x140001198
lea r8, str.MicrosoftWindowsStart_MenuProgramsWi_FiHotspotChgToast.lnk
lea rcx, [rsp + 0x2b0]
mov edx, 0x104
call fcn.140002d40
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, edi
cmp word [rsp + 0x2b0], di
je 0x140001196
lea rcx, [rsp + 0x64]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x60], edi
call fcn.140006c60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140001196
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x60], 0x10
jne 0x140001196
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, 5
jle 0x140001126
mov eax, 1
jmp 0x14000119e
test esi, esi
setns dil
mov eax, edi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140002d20
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400011d0
Capabilities:
Delete file
Get file attributes
Query environment variable

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400120e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [rsp + 0x20]
lea rcx, str.APPDATA
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r8d, r8d
mov ecx, 0x80070057
test eax, eax
cmovne ecx, r8d
test ecx, ecx
js 0x1400012a6
lea r8, str.MicrosoftWindowsStart_MenuProgramsWi_FiHotspotChgToast.lnk
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [rsp + 0x240], rbx
call fcn.140002d40
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
neg ebx
mov rbx, qword [rsp + 0x240]
sbb eax, eax
and eax, 0x80070057
jl 0x1400012a8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x140001289
lea rdx, [rsp + 0x20]
call fcn.1400012c0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002d20
add rsp, 0x248
ret
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002d20
add rsp, 0x248
ret
mov eax, ecx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002d20
add rsp, 0x248
ret
Function at 0x1400012c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400120e0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x104
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov ecx, 0x80004005
xor esi, esi
test eax, eax
cmovne ecx, esi
test ecx, ecx
js 0x1400014ac
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14000eb78]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x14000c428]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140001493
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0xa0]
mov ebx, eax
test eax, eax
js 0x140001493
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [0x14000eb74]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x140001493
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x14000ea48]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x14000147d
mov eax, 0x1f
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x50]
lea rcx, str.Microsoft.Samples.LenovoSettings
call qword [sym.imp.SHLWAPI.dll_SHStrDupW]
mov ebx, eax
test eax, eax
jns 0x1400013ef
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
test ebx, ebx
js 0x14000147d
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x14000c438]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
js 0x140001471
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x140001471
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x14000ea38]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x14000145c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x30]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001471
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001493
mov qword [rsp + 0x38], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400014a8
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
jmp 0x1400014ae
mov eax, ecx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002d20
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002090
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rcx, str.Kernel32.DLL
xor edi, edi
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000211e
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400020e2
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, 0xffffffffffffffff
je 0x140002115
lea rdx, [rsp + 0x30]
mov rcx, rax
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.C:Program_Files__x86_
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140002150
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x1400120e0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rcx, str.DeviceControl_Windows
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400021a6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x464
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x1400022fa
lea rcx, [rsp + 0xe2]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], di
call fcn.140006c60
call fcn.140002090
lea rcx, [rsp + 0xe0]
lea rdx, str.C:Program_Files__x86_LenovoLenovo_SettingsLenovo_Settings.exe
test eax, eax
jne 0x1400021e4
lea rdx, str.C:Program_FilesLenovoLenovo_SettingsLenovo_Settings.exe
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 1
lea esi, [rbx + 4]
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140006c60
xor eax, eax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0x68
mov word [rsp + 0xb0], si
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400022ed
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x258
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.DeviceControl_Windows
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400022d1
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.DeviceControl_Windows
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14000219c
xor r9d, r9d
xor r8d, r8d
mov edx, 0x464
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x14000219c
inc ebx
cmp ebx, 2
jb 0x140002200
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140002d20
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003828
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003690
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x402734
mov r12, qword [fcn.0041be40]
lea r14, [rcx + rdx*8]
mov rdi, rcx
lea r13, [0x0041e138]
lea rbp, [0x0041e139]
mov rbx, qword [rdi]
mov ecx, 1
call r12
mov rsi, rax
test rbx, rbx
je 0x4026d0
cmp qword [rbx], 0
lea r8, [rbx + 0x10]
mov rdx, rbp
mov rcx, rax
cmove r8, r13
call sub.msvcrt.dll_fprintf
mov r15d, eax
movsxd rax, r15d
cmp rax, qword [rbx]
jge 0x40265f
cmp byte [rbx + rax + 0x10], 0
jne 0x4026b0
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40265f
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rbx]
jl 0x40263e
add rdi, 8
cmp rdi, r14
jne 0x402605
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x0041e13c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fflush
lea r8, [rbx + rax + 0x10]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40265f
add r15d, eax
jmp 0x402636
mov r8, r13
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ebx, eax
test ebx, ebx
jns 0x40265f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x402719
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40265f
add ebx, 1
test ebx, ebx
jns 0x40265f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x4026f2
add r8, 0x10
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40265f
add ebx, eax
jmp 0x4026e0
mov r12, qword [fcn.0041be40]
jmp 0x402668

Function at 0x402840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x40285f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x402a70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.0041be40]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x40a470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x150
cmp qword [0x0049ce20], 0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp - 0x111], 1
je 0x40a56f
mov rax, qword [0x004930c0]
lea rcx, [rbp - 0x110]
mov rdx, rbp
mov qword [0x004930c0], rcx
add rcx, 0x10
mov qword [rbp - 0x110], rax
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rbp - 0x108], rax
jne 0x40a590
xor ebx, ebx
cmp qword [rbp + 0x20], 0
je 0x40a540
mov rcx, qword [rbp + 0x20]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rbp - 0x128], 7
cmp rax, 6
mov rsi, rax
jbe 0x40a50a
lea rdx, [rax + 0x11]
mov qword [rbp - 0x128], rax
lea r8, [0x00499f40]
lea rcx, [0x0041d020]
call fcn.004093f0
mov rdx, qword [rbp + 0x20]
movq xmm0, rsi
lea rcx, [rax + 0x10]
movhps xmm0, qword [rbp - 0x128]
mov rbx, rax
movups xmmword [rax], xmm0
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x0049ce20]
mov rax, qword [0x004930c0]
mov byte [rbp - 0x111], 0
cmp qword [rbp - 0x108], 0
mov rax, qword [rax]
mov qword [0x004930c0], rax
jne 0x40a604
movzx eax, byte [rbp - 0x111]
test al, al
jne 0x40a610
add rsp, 0x150
pop rbx
pop rsi
pop rbp
ret
mov rax, qword [0x004930c0]
mov rax, qword [rax]
mov qword [rbp - 0x108], 0
mov qword [0x004930c0], rax
mov rax, qword [0x0049cd88]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x40a5cd
add qword [rbx - 0x10], 8
mov rax, qword [0x0049cd88]
test rax, rax
je 0x40a5ef
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x40a5ef
lea rcx, [0x00499f58]
call fcn.00405ce0
cmp qword [rbp - 0x108], 0
mov qword [0x0049cd88], rbx
je 0x40a56f
call fcn.0040ad90
jmp 0x40a56f
mov ecx, 2
call qword [fcn.0041be40]
mov rcx, qword [rbp + 0x20]
mov edx, 1
mov r8, qword [rbp + 0x28]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x40a57e