joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40325b
pop dword [ebp - 0x48]
mov eax, 0xefddbc3a
add eax, 0x10627621
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb6a6367f
sub dword [ebp - 0x58], 0x6853f134
mov dword [ebp - 0x54], 0x8295b59b
add dword [ebp - 0x54], 0xaf9d96aa
mov dword [ebp - 0x50], 0xf13e2559
sub dword [ebp - 0x50], 0xa4f1e12b
mov dword [ebp - 0x4c], 0x633aba65
add dword [ebp - 0x4c], 0x9cc5459b
lea eax, [ebp - 0x58]
push eax
mov eax, 0x2c8cf74d
add eax, 0xd3b3892b
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc159a42f
add dword [ebp - 0x58], 0xb318c527
mov dword [ebp - 0x54], 0xe8bcbb07
add dword [ebp - 0x54], 0x58afa66e
mov dword [ebp - 0x50], 0x21d99254
add dword [ebp - 0x50], 0x4195da18
mov dword [ebp - 0x4c], 0x233fe28c
sub dword [ebp - 0x4c], 0x233fe28c
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4bfee35
add eax, 0xfb809247
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x379e4
push 0
call eax
mov ecx, 0xd01fa61a
sub ecx, 0xd01f5bc1
mov edx, eax
mov ebx, 0x1783b4a0
add ebx, 0xe8c1dd60
add ebx, dword [ebp - 0x48]
mov esi, 0x85c92582
sub esi, 0x402c7f28
xor dword [ebp - 0x44], eax
mov edi, dword [ebx]
xor edi, esi
mov dword [edx], edi
xor dword [ebp - 0x18], 0x5bd8424e
add edx, 4
add ebx, 4
loop 0x40337d
add eax, 0xaaae73d6
add eax, 0x5552a861
mov ebx, eax
add eax, 0xae97152e
add eax, 0x5168ead7
mov ecx, 0x75f351c
sub ecx, 0x71f351c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0xf64880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70d000]
push edi
or ebp, 0xffffffff
jmp 0xf648a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf648a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf64898
mov eax, 1
add ebx, ebx
jne 0xf648bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf648cc
jne 0xf648eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf648eb
dec eax
add ebx, ebx
jne 0xf648d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf648b0
add ebx, ebx
jne 0xf648e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf6493d
xor ecx, ecx
sub eax, 3
jb 0xf64903
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf64972
sar eax, 1
mov ebp, eax
jmp 0xf6490e
add ebx, ebx
jne 0xf6490e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf648dc
inc ecx
add ebx, ebx
jne 0xf6491c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf648dc
add ebx, ebx
jne 0xf64929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf6491e
jne 0xf6493a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf6491e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf6495c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf6494e
jmp 0xf6489e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf6495c
add edi, ecx
jmp 0xf6489e
pop esi
mov edi, esi
mov ecx, 0xb7ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf6497a
cmp byte [edi], 0x28
jne 0xf6497a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xf6497f
lea edi, [esi + 0xb60000]
mov eax, dword [edi]
or eax, eax
je 0xf649f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb91d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb9364]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf649ac
mov ecx, edi
jns 0xf649db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb936c]
or eax, eax
je 0xf649f1
mov dword [ebx], eax
add ebx, 4
jmp 0xf649c9
call dword [esi + 0xbb9368]
mov ebp, dword [esi + 0xbb9370]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf64a2b
sub esp, 0xffffff80
jmp 0x57e0de
Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
xor byte [eax], dh
xor dl, ch
movsb byte es:[edi], byte [esi]
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
shl byte [ecx + esi + 0x30303030], 1
xor byte [eax + 0x303031a4], bh
xor byte [eax], dh
xor byte [esp + 0x30303031], bl
xor byte [eax], dh
xchg byte [ecx + esi + 0x30303030], ah
xor byte [eax], dh
xor byte [esi - 0x5c], dh
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
push esi
movsb byte es:[edi], byte [esi]
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
movsb byte es:[edi], byte ds:[esi]
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
mov dword cs:[0x30303031], eax
xor byte [eax], dh
sbb ah, byte [ebx + 0x30303031]
xor byte [eax], dh
clc
mov dword [0x30303031], eax
xor byte [eax], dh
loopne 0x427de1
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
shl byte [ebx + 0x30303031], 1
xor byte [eax], dh
mov dl, 0xa3
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
mov al, byte [0x303031a3]
xor byte [eax], dh
xor byte [eax + 0x303031a3], dl
xor byte [eax], dh
xor byte [eax - 0x5d], bh
xor byte [eax], dh
xor byte [eax], dh
nop
mov dword [0x30303031], eax
xor byte [eax], dh
js 0x427e09
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
pushal
mov dword [0x30303031], eax
xor byte [eax], dh
dec esp
mov dword [0x30303031], eax
xor byte [eax], dh
xor ah, byte [ebx + 0x30303031]
xor byte [eax], dh
and ah, byte [edx + 0x30303031]
xor byte [eax], dh
push es
mov byte [0x30303031], al
xor byte [eax], dh
call 0x3072b03b
xor byte [eax], dh
xor al, dl
mov byte [0x30303031], al
xor byte [eax], dh
scasb al, byte es:[edi]
mov byte [0x30303031], al
xor byte [eax], dh
xchg esi, eax
mov byte [0x30303031], al
xor byte [eax], dh
jle 0x427e58
xor dword [eax], esi
xor byte [eax], dh
xor byte [eax], dh
pop esi
mov byte [0x30303031], al
xor byte [eax], dh
inc eax
mov byte [0x30303031], al
xor byte [eax], dh
sub byte [ecx + 0x30303031], ah
xor byte [eax], dh
adc ah, byte [ecx + 0x30303031]
xor byte [eax], dh
invalid
Function at 0x100310a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100310b5
pop dword [ebp - 0x28]
mov eax, 0xbd83a0bd
sub eax, 0xad809008
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x7b068aea
sub dword [ebp - 0x38], 0x2cb4459f
mov dword [ebp - 0x34], 0x3ea5d8fd
sub dword [ebp - 0x34], 0xc728cb8
mov dword [ebp - 0x30], 0xc84cc5cc
add dword [ebp - 0x30], 0x83ff7e62
mov dword [ebp - 0x2c], 0x25150174
add dword [ebp - 0x2c], 0xdaeafe8c
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xf2d6a331
sub dword [ebp - 0x38], 0x7e6439db
mov dword [ebp - 0x34], 0x8968928d
sub dword [ebp - 0x34], 0x47fc3118
mov dword [ebp - 0x30], 0x7f86a76
sub dword [ebp - 0x30], 0xa488fe0a
mov dword [ebp - 0x2c], 0xb210afd7
add dword [ebp - 0x2c], 0x4def5029
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x31cb8984
sub eax, 0x21c5f944
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5e9c8
push 0
call eax
mov ecx, 0x9d1a6219
add ecx, 0x62e5ea70
mov esi, eax
mov edi, 0xf73cd062
sub edi, 0xe7363c62
add edi, dword [ebp - 0x28]
mov edx, 0xed42e520
sub edx, 0x5428c987
xor dword [ebp - 0x24], esi
mov ebx, dword [edi]
add dword [ebp - 0xc], ecx
xor ebx, edx
mov dword [esi], ebx
mov dword [ebp - 0xc], 0x8f4ae0ab
add esi, 0x6b4380ca
sub esi, 0x6b4380c6
add edi, 0x31a40a60
sub edi, 0x31a40a5c
loop 0x100311d2
add eax, 0x124f7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x179f5e79
sub ecx, 0x79f5e79
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401030
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004069c0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004069c0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40109e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40108d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404aff
mov esp, ebp
pop ebp
ret

Function at 0x401220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov edi, edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401263
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401263
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401278
cmp dword [ebp - 8], 0
je 0x401278
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20206
jmp 0x401285
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4012be
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4012d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.kernel32
mov ebx, edx
mov dword [ebp - 4], 0
mov esi, 0x20019
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401319
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401319
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x401325
cmp dword [ebp - 4], 0
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401369
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f740
push 0x400
lea eax, [ebp - 0x804]
mov esi, edx
push eax
push 0x41baec
push ecx
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov cx, word [ebp - 0x804]
lea edx, [ebp - 0x804]
movzx eax, cx
test cx, cx
je 0x4015c6
nop dword [eax]
add edx, 2
cmp ax, 0x5c
jne 0x4015b8
movzx eax, word [edx]
add edx, 2
lea ecx, [eax - 0x4e]
cmp ecx, 0x24
ja case.0x40159e.79
movzx ecx, byte [ecx + 0x4015e8]
jmp dword [ecx*4 + 0x4015dc]
mov eax, 0xa
jmp 0x4015b8
mov eax, 0xd
jmp 0x4015b8
test ax, ax
je 0x4015c6
mov word [esi], ax
add esi, 2
movzx eax, word [edx]
test ax, ax
jne 0x401580
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi], ax
xor ecx, ebp
pop esi
call fcn.00404aff
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], ecx
push str.kernel32
mov dword [ebp - 4], edi
mov esi, 0x20019
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40165b
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40165b
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x401666
cmp dword [ebp - 0x10], edi
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jne 0x4016ef
push dword [ebp - 0xc]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 4], ecx
test edi, edi
je 0x4016ef
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 8]
call esi
test eax, eax
je 0x4016ef
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4017d8
mov esi, dword [ebp - 4]
mov ebx, edi
shr esi, 1
cmp word [edi], 0
je 0x4017c8
test esi, esi
je 0x4017c8
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x10], eax
sub esi, eax
lea ebx, [ebx + eax*2]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x1c]
inc eax
add dword [ebp - 0x10], eax
sub esi, eax
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40175c
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
je 0x401764
cmp word [ebx], 0
jne 0x401711
jmp 0x4017c8
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x14]
call fcn.00414850
imul eax, dword [ebp - 0x10], 0xfffffffe
add esp, 0xc
mov esi, 0x20006
add dword [ebp - 4], eax
call fcn.004011c0
test eax, eax
mov ecx, 0x20206
lea eax, [ebp - 8]
push eax
cmovne esi, ecx
push esi
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017c8
push dword [ebp - 4]
push edi
push 7
push eax
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
mov esi, ecx
push 0
push eax
call fcn.004069c0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov eax, 5
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4019e7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 1
push 0x41baec
push 0
push str.SYSTEMMsetupInstCheck
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401a44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SYSTEMMsetupInstCheck
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push str.kernel32
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a96
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401a96
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401af2
cmp dword [ebp - 8], 0
je 0x401af2
lea eax, [ebp - 4]
push eax
push 0x20106
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401af2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push 0
push str.UnsupportMajor
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.UnsupportMinor
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0x20019
xor esi, esi
mov ebx, edx
push esi
push str.SoftwareCanonIJPLM
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401b7e
lea eax, [ebp - 8]
mov dword [edi], esi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push esi
push str.UnsupportMajor
push dword [ebp - 4]
mov dword [ebx], esi
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
call edi
test eax, eax
jne 0x401b75
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push esi
push str.UnsupportMinor
push dword [ebp - 4]
call edi
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call esi
test eax, eax
jne 0x401beb
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.kernel32
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c2a
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401c24
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401c74
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 8], 0
je 0x401c74
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call esi
test eax, eax
jne 0x401c74
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x401d7f
push 0x200
push 0
push esi
call fcn.004069c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d11
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.guid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401d05
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x208], 0
je 0x401d4e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x200
jae 0x401d8e
xor ecx, ecx
mov word [ebp + eax - 0x208], cx
cmp word [esi], 0
je 0x401d6f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x206]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
cmp eax, 0x6a9
jne 0x401d7f
push 0x200
push 0
push esi
call fcn.004069c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404aff
mov esp, ebp
pop ebp
ret
call fcn.00404c33
int3