joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002102a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140021020
cmp r11, r10
ja 0x1400210a6
cmp r10, rdx
ja 0x1400210b8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140021022
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140021000
jmp 0x140021087
ja 0x14002102a
mov r11, r10
cmp rax, r8
jne 0x140020fc7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002108b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140021060
mov r8, r10
sub ecx, r9d
jns 0x14002107e
jmp 0x14002108d
cmp r10, rdx
je 0x14002109a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002108d
xor al, 1
cmp r8, rdx
jne 0x140021040
jmp 0x14002108d
xor eax, eax
jmp 0x14002108d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140023970
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140023ed0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140023e60
int3

Function at 0x1400226b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022702
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022702
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022702
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022702
cmp dword [rcx + 0x84], 0xe
jbe 0x140022702
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140022704
xor al, al
add rsp, 0x28
ret
Function at 0x140001c88
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea rcx, [rsp + 0x40]
call fcn.1400299c4
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400299e0
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
test eax, eax
je 0x140001cef
xor eax, eax
jmp 0x140001d74
mov rcx, rdi
call fcn.140029b5c
mov r9d, 2
lea rdx, str.EventMessageFile
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140001d33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001ce8
mov r9d, 4
mov dword [rsp + 0x38], 7
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TypesSupported
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140001d67
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140021c40
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x180
pop rdi
ret

Function at 0x140001df8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
mov qword [r11 - 0x18], rax
mov rdi, r9
lea rax, [r11 + 8]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140001e50
xor eax, eax
jmp 0x140001e97
mov rcx, rdi
call fcn.140029b5c
xor r8d, r8d
lea rdx, str.Splash_screen
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov edi, 1
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140001ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2060
call fcn.14003b170
sub rsp, rax
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, r9
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001efb
xor eax, eax
jmp 0x140001f52
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x2000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Splash_screen
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f45
lea rdx, [rsp + 0x50]
mov rcx, rdi
lea ebx, [rax + 1]
call fcn.140014f80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140021c40
mov rbx, qword [rsp + 0x2070]
add rsp, 0x2060
pop rdi
ret

Function at 0x1400024e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov dword [rbp - 0x10], 0x104
mov r9, r8
lea rcx, [rbp - 8]
lea r8, str.SoftwarePC_SOFTFramework29.0
xor ebx, ebx
lea rdx, [0x1400487c8]
call fcn.140003824
lea rcx, [rbp - 8]
mov qword [rbp + 0x28], rbx
call fcn.140014f14
lea rcx, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 1]
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002598
mov eax, dword [rbp - 0x10]
lea r9, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.CHEMIN
add eax, eax
mov dword [rbp + 0x18], ebx
mov dword [rbp - 0x10], eax
xor r8d, r8d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000258b
lea ebx, [rax + 1]
jmp 0x14000258e
mov word [rdi], bx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 8]
call fcn.140014e80
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140002884
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x130
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x140], rbx
mov rax, qword [0x140059010]
xor rax, rbp
mov qword [rbp + 0xf0], rax
mov rsi, rdx
mov r14, rcx
lea rdx, [rbp + 0x10]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor r15d, r15d
movsxd rdi, eax
test eax, eax
je 0x1400029ce
lea rax, [rdi + 0xf]
mov r8, rdi
cmp rax, rdi
ja 0x1400028e4
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14003b170
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400029ce
xor edx, edx
mov rcx, rbx
call fcn.140023c90
mov edx, dword [rbp + 0x10]
mov r9, rbx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400029ce
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x140059c90]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400029ce
mov rax, qword [rbp + 8]
lea rdi, str.VersionVI
lea rdx, [0x140059c50]
mov qword [rsp + 0x20], rdi
lea rcx, [rbp + 0x20]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.1400037d0
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [rbp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400029b0
mov r8, rdi
lea rdx, [0x140059c10]
lea rcx, [rbp + 0x20]
call fcn.1400037d0
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [rbp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400029ce
mov rdx, qword [rbp + 8]
mov r8d, 0x14
mov rcx, rsi
call fcn.140029e60
mov eax, 1
mov word [rsi + 0x26], r15w
jmp 0x1400029d0
xor eax, eax
mov rcx, qword [rbp + 0xf0]
xor rcx, rbp
call fcn.140021c40
mov rbx, qword [rbp + 0x140]
lea rsp, [rbp + 0x100]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003184
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000318c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov ebx, edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x1400032c8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.140023c90
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Program
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x1400032bd
mov qword [rsp + 0x38], rdi
lea r8, str.FrameworkWin64x86
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.140013f4c
cmp word [rsp + 0x50], di
je 0x1400032b1
lea rcx, [rsp + 0x50]
call fcn.140010c00
test eax, eax
je 0x1400032b1
lea r9, [0x1400486d0]
lea r8, [rsp + 0x50]
lea rdx, [0x1400487c8]
lea rcx, [rsp + 0x38]
call fcn.140015b30
lea rcx, [rsp + 0x38]
call fcn.140014f14
mov rcx, rax
call fcn.140010bcc
mov ebx, eax
test eax, eax
je 0x1400032b3
lea rdx, [rsp + 0x50]
lea rcx, [0x14005c4d8]
call fcn.140014f80
jmp 0x1400032b3
mov ebx, edi
lea rcx, [rsp + 0x38]
call fcn.140014e80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140021c40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000318c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000318c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov ebx, edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x1400032c8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.140023c90
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Program
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x1400032bd
mov qword [rsp + 0x38], rdi
lea r8, str.FrameworkWin64x86
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.140013f4c
cmp word [rsp + 0x50], di
je 0x1400032b1
lea rcx, [rsp + 0x50]
call fcn.140010c00
test eax, eax
je 0x1400032b1
lea r9, [0x1400486d0]
lea r8, [rsp + 0x50]
lea rdx, [0x1400487c8]
lea rcx, [rsp + 0x38]
call fcn.140015b30
lea rcx, [rsp + 0x38]
call fcn.140014f14
mov rcx, rax
call fcn.140010bcc
mov ebx, eax
test eax, eax
je 0x1400032b3
lea rdx, [rsp + 0x50]
lea rcx, [0x14005c4d8]
call fcn.140014f80
jmp 0x1400032b3
mov ebx, edi
lea rcx, [rsp + 0x38]
call fcn.140014e80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140021c40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003378
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x638]
sub rsp, 0x730
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rsi, rcx
mov rdx, qword [0x14005c4f0]
add rdx, 0x87c
lea rcx, [rsp + 0x60]
call fcn.1400299c4
lea rcx, [rsp + 0x60]
call fcn.140013e40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140014e10
nop
lea r8, [0x140048dc8]
lea rdx, [0x140048cf8]
lea rcx, [rsp + 0x48]
call fcn.14001595c
lea rcx, [rsp + 0x48]
call fcn.140014f14
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400299c4
mov edi, 1
mov r8d, edi
lea rdx, str.xxxxxxxxxx
lea rcx, [rsp + 0x60]
call fcn.14002a13c
xor ebx, ebx
test eax, eax
je 0x1400035e9
lea rcx, [0x14005c4d8]
call fcn.140014f14
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400299c4
lea rcx, [rbp - 0x10]
call fcn.1400108d4
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.1400299e0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.140002884
test eax, eax
je 0x1400035e9
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140014e10
nop
lea r8, [0x140048dc8]
lea rdx, [0x140048cf8]
lea rcx, [rsp + 0x40]
call fcn.14001595c
lea rcx, [rsp + 0x40]
call fcn.140014f14
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400299c4
mov r8d, edi
lea rdx, str.xxxxxxxxxx
lea rcx, [rbp - 0x40]
call fcn.14002a13c
test eax, eax
je 0x1400035db
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x66]
lea rcx, [rbp - 0x3a]
call fcn.14002a13c
test eax, eax
jns 0x1400035db
mov r8d, 0x104
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [0x14003d058]
xor r9d, r9d
lea r8, [rbp + 0x410]
xor edx, edx
lea rcx, [rbp + 0x200]
call fcn.140003c28
lea r9, [rbp + 0x410]
lea r8, str.SOFTWAREPC_SOFTWINDEV29.0APPLI
lea rdx, [0x1400487c8]
lea rcx, [rsp + 0x50]
call fcn.140003824
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x50]
call fcn.140014f14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400035cf
mov dword [rsp + 0x30], 0x2a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov word [rbp - 0x48], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.LAST_FRAMEWORK
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400035c4
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x66]
call fcn.140029ee8
test eax, eax
setne bl
mov edi, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140014e80
jmp 0x1400035dd
mov edi, ebx
lea rcx, [rsp + 0x40]
call fcn.140014e80
jmp 0x1400035eb
mov edi, ebx
lea rcx, [rsp + 0x48]
call fcn.140014e80
mov eax, edi
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140021c40
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003680
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor esi, esi
lea rcx, str.shell32.dll
call qword [0x14003d040]
mov rbx, rax
test rax, rax
je 0x1400036f1
lea rdx, str.SHGetSpecialFolderPathW
mov rcx, rax
call qword [0x14003d0a0]
test rax, rax
je 0x1400036d3
lea r9d, [rsi + 1]
mov rdx, rdi
lea r8d, [rsi + 0x2b]
xor ecx, ecx
call rax
mov esi, eax
lea rcx, str.user32.dll
call qword [0x14003d040]
mov rcx, rbx
call qword [0x14003d0a8]
test esi, esi
jne 0x140003786
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x14000375c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.CommonFilesDir
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x48], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jns 0x140003786
call qword [0x14003d0b0]
mov ecx, 0x3ff
lea rdx, str.C:Program_FilesFichiers_communs
and ax, cx
mov rcx, rdi
cmp ax, 0xc
je 0x140003781
lea rdx, str.C:Program_FilesCommon_Files
call fcn.1400299c4
mov rcx, rdi
call fcn.1400108d4
lea r8, str.PC_SOFT29.0Framework
mov edx, 0x104
mov rcx, rdi
call fcn.140013f4c
mov rcx, rdi
call fcn.1400108d4
lea rdx, str.64x86
mov rcx, rdi
call fcn.1400299e0
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp fcn.1400108d4
Function at 0x140006234
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x340
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x340], rbx
mov rax, qword [0x140059010]
xor rax, rbp
mov qword [rbp + 0x300], rax
xor r15d, r15d
movsxd r14, r8d
mov rsi, rdx
test r9, r9
jne 0x140006285
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [0x14003d058]
jmp 0x140006294
mov rdx, r9
lea rcx, [rbp + 0xf0]
call fcn.1400299c4
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
movsxd rdi, eax
test eax, eax
je 0x1400063b2
lea rax, [rdi + 0xf]
mov r8, rdi
cmp rax, rdi
ja 0x1400062c6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14003b170
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400063b2
xor edx, edx
mov rcx, rbx
call fcn.140023c90
mov edx, dword [rbp + 0x10]
lea rcx, [rbp + 0xf0]
mov r9, rbx
mov r8d, edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400063b2
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400063b2
mov rax, qword [rbp + 8]
lea rdi, [0x14004ace8]
lea rdx, str.StringFileInfo_04X_04X_s
mov qword [rsp + 0x20], rdi
lea rcx, [rbp + 0x20]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.1400037d0
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [rbp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140006396
mov r8, rdi
lea rdx, str.StringFileInfo040904E4_s
lea rcx, [rbp + 0x20]
call fcn.1400037d0
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [rbp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400063b2
mov rdx, qword [rbp + 8]
mov r8, r14
mov rcx, rsi
call fcn.140029e60
mov eax, 1
mov word [rsi + r14*2 - 2], r15w
jmp 0x1400063b4
xor eax, eax
mov rcx, qword [rbp + 0x300]
xor rcx, rbp
call fcn.140021c40
mov rbx, qword [rbp + 0x340]
lea rsp, [rbp + 0x310]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009260
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, qword [0x14005c330]
xor r14d, r14d
mov edx, 0x3e9
mov rcx, qword [rbp + 0x10]
mov dword [rbp + 0x18], r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
call fcn.140013f9c
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test rsi, rsi
je 0x1400092d4
cmp word [rsi], r14w
je 0x1400092d4
mov rcx, rsi
call fcn.140029b5c
jmp 0x1400092d7
mov eax, r14d
mov r8d, eax
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.140007d40
mov rcx, rsi
call fcn.14002a5b8
mov rcx, qword [rbp + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
call fcn.140013f9c
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test rsi, rsi
je 0x14000933b
cmp word [rsi], r14w
je 0x14000933b
mov rcx, rsi
call fcn.140029b5c
jmp 0x14000933e
mov eax, r14d
mov r8d, eax
lea rcx, [rbp + 0x28]
mov rdx, rsi
call fcn.140007d40
mov rcx, rsi
call fcn.14002a5b8
mov rcx, qword [rbp + 0x10]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.USER32.dll_SendMessageW]

Function at 0x1400199f8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xf]
sub rsp, 0x90
cmp dword [rbp + 0x6f], 0
mov rbx, rdx
mov rdi, rcx
mov dword [rbp - 0x61], 0x70
mov dword [rbp - 0x5d], 0x440
je 0x140019a30
and qword [rbp - 0x59], 0
jmp 0x140019a3a
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rbp - 0x59], rax
neg dword [rbp + 0x7f]
lea rcx, str.runas
xorps xmm0, xmm0
mov qword [rbp - 0x49], rdi
sbb rax, rax
mov qword [rbp - 0x41], rbx
and qword [rbp - 0x29], 0
and rax, rcx
and qword [rbp - 0x11], 0
and dword [rbp - 9], 0
mov qword [rbp - 0x51], rax
mov rax, qword [rbp + 0x57]
mov qword [rbp - 0x39], rax
mov rax, qword [rbp + 0x5f]
movdqa xmmword [rbp - 0x21], xmm0
movdqa xmmword [rbp - 1], xmm0
movzx ecx, word [rax + 0x40]
mov dword [rbp - 0x31], ecx
lea rcx, [rbp - 0x61]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140019a9d
mov rdx, qword [rbp + 0x67]
mov rcx, qword [rbp + 7]
mov qword [rdx], rcx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14001b5ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbx, rcx
cmp dword [rcx + 0x20], r15d
je 0x14001b64d
mov rax, qword [rcx + 0x18]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b64d
movsxd rcx, dword [rax + 0x3c]
mov edx, 0x4550
cmp word [rcx + rax], dx
jne 0x14001b64d
lea rbp, [rcx + rax]
mov esi, r15d
movzx eax, word [rbp + 0x14]
lea rdi, [rbp + 0x18]
add rdi, rax
mov r14d, r15d
cmp r15w, word [rbp + 6]
jae 0x14001b64d
test esi, esi
jne 0x14001b639
lea rdx, str..rsrc
mov rcx, rdi
call fcn.14002bb78
test eax, eax
jne 0x14001b625
lea esi, [rax + 1]
jmp 0x14001b629
add rdi, 0x28
movzx ecx, word [rbp + 6]
inc r14d
cmp r14d, ecx
jl 0x14001b609
test esi, esi
je 0x14001b64d
mov ecx, dword [rdi + 0x14]
mov eax, 1
mov qword [rbx + 0x48], rcx
mov ecx, dword [rdi + 0xc]
mov dword [rbx + 0x50], ecx
jmp 0x14001b64f
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret