joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_servicesUSBSTOR
push 0x80000002
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403840
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.Start
push eax
mov dword [ebp - 8], 3
call ebx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.SOFTWAREPoliciesMicrosoftWindowsDeviceInstall
mov ecx, 0x80000002
call fcn.0040a170
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000002
call edi
test eax, eax
jne 0x403895
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push str.NoCDBurning
push edx
mov dword [ebp - 8], eax
call ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 with custom key via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp esi, 0x10
jle 0x403b15
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x403b58
push 8
push 1
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call edi
test eax, eax
jne 0x403b58
push 0xf0000000
push 1
push ebx
push ebx
lea edx, [ebp - 4]
push edx
call edi
test eax, eax
je 0x403bf6
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x134
push 0x427110
push ecx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x403bf6
xor eax, eax
cmp esi, ebx
jle 0x403b95
lea ecx, [esi + 0x427293]
mov dl, byte [ecx]
mov byte [eax + 0x427254], dl
inc eax
dec ecx
cmp eax, esi
jl 0x403b87
lea eax, [esi + 1]
mov byte [esi + 0x427254], bl
cmp eax, 0x3e
jge 0x403bbc
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0x427254]
push 1
push ecx
call fcn.00414930
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push 0x4c
push 0x427248
push edx
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x403bf6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 8]
push edx
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403bff
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x30e]
push ecx
mov dword [ebp - 0x320], 0xfa
mov dword [ebp - 0x31c], 1
mov word [ebp - 0x310], ax
call fcn.00414930
add esp, 0xc
push 0xfa
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.00414930
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404817
lea ecx, [ebp - 0x344]
push ecx
call eax
movzx eax, word [ebp - 0x344]
test eax, eax
je 0x404830
cmp eax, 9
je 0x40483b
cmp byte [ebp - 0x315], 0
jne 0x40483b
lea edx, [ebp - 0x314]
push edx
push 1
jmp 0x404847
lea eax, [ebp - 0x314]
push eax
push 0x101
push 0
push str.SYSTEMCurrentControlSet_servicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404897
push str.Host_Name
lea ecx, [ebp - 0x310]
push str.__s__RegQuery_OpenKey_Failed__Maybe_Subkey_is_not_Exist.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x310]
add esp, 0xc
push edx
call fcn.004033d0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x314]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x31c]
push edx
push 0
push str.Hostname
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40490d
push str.Host_Name
lea edx, [ebp - 0x310]
push str.__s__RegQuery_QueryValue_Failed__Maybe_Hostname_key_is_not_Exist.
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x310]
add esp, 0xc
push eax
call fcn.004033d0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404920
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x404a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b0
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x112]
push ecx
mov word [ebp - 0x114], ax
call fcn.00414930
xor eax, eax
xor edx, edx
lea ecx, [edx + 0x40]
mov word [ebp - 0x14], dx
movzx edx, ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, edx
shl edx, 0x10
or eax, edx
lea edi, [ebp - 0x3a4]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
add esp, 0xc
mov ecx, 0x40
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
xor eax, eax
pop edi
jmp 0x404ac0
movzx ecx, word [eax + str.tztufn_dvssfoudpouspmtfu_tfswjdft_Xjo.Xjo8]
mov word [ebp + eax - 0x3a4], cx
add eax, 2
test cx, cx
jne 0x404ac0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x3a4]
push ecx
call fcn.00406f60
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x4a2]
push eax
mov word [ebp - 0x4a4], dx
call fcn.00414930
add esp, 0x14
mov dword [ebp - 0x6a8], 0
xor eax, eax
jmp 0x404b20
movzx ecx, word [ebp + eax - 0x214]
mov word [ebp + eax - 0x4a4], cx
add eax, 2
test cx, cx
jne 0x404b20
lea ecx, [ebp - 0x6a8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x4a4]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404b79
mov eax, dword [ebp - 0x6a8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x18e
push ecx
lea edx, [ebp - 0x2a2]
push edx
mov word [ebp - 0x2a4], cx
call fcn.00414930
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x6a2]
push ecx
mov dword [ebp - 0x6b0], 1
mov word [ebp - 0x6a4], ax
call fcn.00414930
add esp, 0x18
mov dword [ebp - 0x6ac], 0x200
xor eax, eax
jmp 0x404bd0
movzx ecx, word [eax + str.SerialNumber]
mov word [ebp + eax - 0x2a4], cx
add eax, 2
test cx, cx
jne 0x404bd0
lea edx, [ebp - 0x6ac]
push edx
lea eax, [ebp - 0x6a4]
push eax
mov eax, dword [ebp - 0x6a8]
lea ecx, [ebp - 0x6b0]
push ecx
push 0
lea edx, [ebp - 0x2a4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404c22
mov ecx, dword [ebp - 0x6a8]
push ecx
jmp 0x404b63
mov edx, dword [ebp - 0x6a8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404c40
movzx ecx, word [ebp + eax - 0x6a4]
mov word [ebp + eax - 0x114], cx
add eax, 2
test cx, cx
jne 0x404c40
lea eax, [ebp - 0x114]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c61
sub eax, edx
sar eax, 1
cmp eax, 0x12
je 0x404b69
cmp eax, 0xe
jne 0x404b69
mov eax, 0x2d
cmp word [ebp - 0x10c], ax
jne 0x404b69
cmp word [ebp - 0x102], ax
jne 0x404b69
lea eax, [ebp - 0x114]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404cb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x4056c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
lea ecx, [ebp - 0x23b]
push 0
push ecx
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0
call fcn.00414930
push 0x103
lea edx, [ebp - 0x137]
push 0
push edx
mov byte [ebp - 0x138], 0
call fcn.00414930
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x104
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
jmp 0x405770
push 0x104
lea ecx, [ebp - 0x138]
push 0
push ecx
call fcn.00414930
push edi
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x138]
push str._sinfoem_i.inf
push eax
call ebx
add esp, 0x1c
lea ecx, [ebp - 0x138]
push ecx
push 0x20
xor eax, eax
lea edx, [ebp - 0x34]
push edx
push 0x41aba0
push 0x41d36c
push str.Strings
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call esi
test eax, eax
je 0x405845
lea eax, [ebp - 0x34]
push str.SunMoon_Rise
push eax
call fcn.0040d9ac
add esp, 8
test eax, eax
jne 0x405845
lea ecx, [ebp - 0x138]
push ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0x41aba0
push str.DriverName
push str.Strings
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x405845
lea eax, [ebp - 0x14]
push str.WM7F
push eax
call fcn.0040d9ac
add esp, 8
test eax, eax
jne 0x405845
lea ecx, [ebp - 0x138]
push 0x5c
push ecx
call fcn.0040eb20
add esp, 8
test eax, eax
jne 0x405865
inc edi
cmp edi, 0x3e7
jl 0x405770
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x240]
push 0xc
inc eax
push eax
push edx
call fcn.0040e4b0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x406300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x22a]
push ecx
mov word [ebp - 0x22c], ax
call fcn.00414930
add esp, 0xc
xor eax, eax
jmp 0x406340
movzx ecx, word [eax + str.C:Users]
mov word [ebp + eax - 0x22c], cx
add eax, 2
test cx, cx
jne 0x406340
lea edx, [ebp - 0x22c]
push edx
call fcn.0040e602
add esp, 4
cmp eax, 0xffffffff
jne 0x40637a
lea eax, [ebp - 0x22c]
push eax
call fcn.0040de8b
add esp, 4
lea eax, [ebp - 0x22c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406383
mov ecx, dword [str.Public]
mov edx, dword [0x41e64c]
mov dword [eax], ecx
mov ecx, dword [0x41e650]
mov dword [eax + 4], edx
mov edx, dword [0x41e654]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x22c]
push eax
call fcn.0040e602
add esp, 4
cmp eax, 0xffffffff
jne 0x4063d5
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0040de8b
add esp, 4
push esi
push edi
lea edi, [ebp - 0x22c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4063e0
mov ecx, 6
mov esi, str.wmcRMS7.tmp
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x22c]
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x4288f0]
pop edi
pop esi
test ecx, ecx
je 0x40644e
xor eax, eax
push 0xa
lea edx, [ebp - 0x24]
push edx
push ecx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.0040e924
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x24]
push ecx
jmp 0x40645a
lea edx, [ebp - 0x22c]
push edx
push 0x41e690
push str.UninstallFail
push 0x41b2ec
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x4067c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x13
mov esi, str.C:Program_Filesww2010cfPresto_7.ini
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x16
mov esi, str.C:Program_Files__x86_ww2010cfPresto_7.ini
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x54]
push eax
push 0
push 0x41e9d4
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MultiIni
call esi
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0x41e9d4
push str.MultiIni
mov edi, eax
call esi
cmp edi, 1
pop edi
pop esi
je 0x406845
cmp eax, 1
je 0x406845
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret

Function at 0x406860
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4068b6
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4068bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4068ca
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x4068e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.00414930
add esp, 0xc
mov dword [ebp - 0x608], 0
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x204], cx
add eax, 2
test cx, cx
jne 0x406920
lea edx, [ebp - 0x608]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406978
mov ecx, dword [ebp - 0x608]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.00414930
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov dword [ebp - 0x60c], 1
mov word [ebp - 0x604], cx
call fcn.00414930
add esp, 0x18
mov dword [ebp - 0x610], 0x200
xor eax, eax
jmp 0x4069d0
movzx ecx, word [eax + str.RegNumber]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x4069d0
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
mov ecx, dword [ebp - 0x608]
lea edx, [ebp - 0x60c]
push edx
push 0
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406a59
mov edx, dword [ebp - 0x608]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.0040e7ad
add esp, 8
test eax, eax
je 0x406a66
push 0
push str.C:Program_Filesww2017cfWinMaster7.exe
call fcn.0040e7ad
add esp, 8
test eax, eax
je 0x406a66
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x608]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret

Function at 0x406ac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00414930
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x406ee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00414930
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x406f42
cmp dword [ebp - 0x118], 0
jne 0x406f42
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret

Function at 0x406fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00414930
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40703c
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40703c
cmp word [ebp - 0xc], ax
je 0x40703e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret

Function at 0x407050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00414930
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x4070ad
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x4070ad
cmp word [ebp - 0xc], 0
je 0x4070af
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x4070c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.00414930
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x407110
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x407110
lea edx, [ebp - 0x198]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40715b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x41d344
push ecx
call esi
test eax, eax
je 0x40719c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.RegNumber
push edx
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4071f9
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.0040e7ad
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x407210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.00414930
add esp, 0xc
mov dword [ebp - 0x608], 0
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x204], cx
add eax, 2
test cx, cx
jne 0x407250
lea edx, [ebp - 0x608]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4072a8
mov ecx, dword [ebp - 0x608]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.00414930
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov dword [ebp - 0x60c], 1
mov word [ebp - 0x604], cx
call fcn.00414930
add esp, 0x18
mov dword [ebp - 0x610], 0x200
xor eax, eax
jmp 0x407300
movzx ecx, word [eax + str.WinMasterServer7]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x407300
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
mov ecx, dword [ebp - 0x608]
lea edx, [ebp - 0x60c]
push edx
push 0
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x407363
mov edx, dword [ebp - 0x608]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x608]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret