joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
push edi
mov ebx, eax
jb 0x4057e7
mov eax, dword [esi]
jmp 0x4057e9
mov eax, esi
push 0x506840
push eax
call fcn.004b2a7f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40583f
mov ecx, dword [ebp + 0xc]
push 8
push 0x50686c
call fcn.00404960
cmp dword [esi + 0x14], 8
jb 0x405814
mov esi, dword [esi]
push esi
push str.UncmpZipFile
push str.PublicCommonCommonFun.cpp
mov edx, 0xed
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.004b2e67
push edi
call fcn.004b2ef1
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ecx], 0
jne 0x405954
mov ax, word [ebp - 4]
cmp al, 0x37
jne 0x40587d
cmp ah, 0x7a
jne 0x40588a
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x4058a2
mov eax, dword [ebx]
jmp 0x4058a4
cmp al, 0x50
jne 0x40588a
cmp ah, 0x4b
je 0x405913
mov ecx, dword [ebp + 0xc]
push 8
push str._rN_e
call fcn.00404960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cmp dword [esi + 0x14], ecx
jb 0x4058ad
mov edx, dword [esi]
jmp 0x4058af
mov edx, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00462390
add esp, 8
test al, al
jne 0x405954
push edi
mov edx, 0x506904
call fcn.00404090
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x4058e0
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x4058e7
mov esi, dword [esi]
push ebx
push esi
push 0x50691c
push str.PublicCommonCommonFun.cpp
mov edx, 0x100
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x40591f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x405926
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push ebx
push esi
call fcn.00449bd0
add esp, 0xc
test al, al
jne 0x405954
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x50695c
call fcn.00404090
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407ff8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40802a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408026
cmp esi, eax
jae 0x40802a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408018
cmp esi, eax
jb 0x408030
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6798
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x506ae4
lea edi, [ebp - 0x10]
call fcn.00408a70
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7390
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x408f79
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408fd6
push str.RegWriteUpdateexeVersion
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x408fb4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x408fd2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40902c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x408ffb
cmp dword [edi + 0x14], esi
jb 0x408fe4
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.UpdateExeVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x40900c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x40902a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x409bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e72d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
push 0x2a
xor eax, eax
push str.SoftwareMicrosoftWindowsCurrentVersion_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x409c49
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x34]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409ca6
push str.RegWriteChannelInfo
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409c84
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409ca2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409cff
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x409cb0
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x34]
push edx
push edi
push 1
push ebx
push str.WEMediaChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete byte [ebp - 0x2d]
cmp dword [ebp - 0x18], esi
jb 0x409cde
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x409cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x409d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e84d0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
movzx eax, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x409dac
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x34]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409e09
push str.RegWriteUninstInfo
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409de7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409e05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409e74
mov ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x409e15
mov eax, dword [edi]
jmp 0x409e17
mov eax, edi
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x34]
push 1
push ebx
push str.ChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x38]
mov edx, edi
call fcn.00409bc0
add esp, 4
mov byte [ebp - 0x2d], al
cmp dword [ebp - 0x18], esi
jb 0x409e53
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x409e71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x409e90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7298
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x10]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409f1d
push str.RegDelChannelInfo
call fcn.00408b10
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x409f0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409f27
mov eax, dword [esi]
jmp 0x409f29
mov eax, esi
mov edx, dword [ebp - 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
test eax, eax
je 0x409f47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409f60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409fad
mov eax, dword [ebp - 4]
test eax, eax
je 0x409fa7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409fb7
mov eax, dword [esi]
jmp 0x409fb9
mov eax, esi
mov edx, dword [ebp - 4]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 4]
sete bl
test eax, eax
je 0x409fd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e66d8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
mov dword [ebp - 4], eax
call fcn.0040add0
add esp, 8
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
mov ebx, 8
add eax, 0x20019
cmp dword [ebp - 0x220], ebx
jae 0x40abbd
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push eax
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ac62
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004b96b0
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.ChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ac62
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40ac40
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ac40
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40ac62
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00404960
cmp dword [ebp - 0x220], ebx
jb 0x40ac79
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x40aca3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x40acc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e718b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ad41
push str.RegWritePca
call fcn.00408b10
mov eax, dword [ebp - 0x21c]
add esp, 4
test eax, eax
je 0x40ad3d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40ad98
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x21c]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
test eax, eax
je 0x40ad96
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x40d850
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004b96b0
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d8b1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
push esi
cmp eax, 6
ja case.0x40d8c4.7
jmp dword [eax*4 + 0x40daa0]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40d903
cmp eax, 0xa
je 0x40d8f3
cmp eax, 0x5a
jne 0x40da3a
push edi
mov edx, str.Windows_Me
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_98
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x40d91e
push edi
mov edx, str.Windows_NT_4.0
call fcn.00404090
jmp 0x40da3a
cmp eax, 1
jne 0x40da3a
push edi
mov edx, str.Windows_95
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40d9b6
dec eax
je 0x40d9a6
dec eax
jne 0x40da3a
cmp byte [ebp - 6], 1
jne 0x40d96c
cmp word [ebp - 0x144], 9
jne 0x40d96c
push edi
mov edx, str.Windows_XP_Professional_x64_Edition
call fcn.00404090
jmp 0x40da3a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x40d98a
push edi
mov edx, str.Windows_Server_2003
call fcn.00404090
jmp 0x40da3a
push 0x59
call esi
test eax, eax
je 0x40da3a
push edi
mov edx, str.Windows_Server_2003_R2
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_XP
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_2000
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40da00
dec eax
je 0x40d9e1
dec eax
jne 0x40da3a
push edi
mov edx, str.Win_8
call fcn.00404090
jmp 0x40da3a
cmp byte [ebp - 6], 1
push edi
jne 0x40d9f4
mov edx, str.Win_7
call fcn.00404090
jmp 0x40da3a
mov edx, str.Windows_Server_2008_R2
call fcn.00404090
jmp 0x40da3a
cmp byte [ebp - 6], 1
push edi
jne 0x40da13
mov edx, str.Windows_Vista
call fcn.00404090
jmp 0x40da3a
mov edx, str.Windows_Server_2008
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Win_10
call fcn.00404090
jmp 0x40da3a
push 6
push 0x5072bc
mov ecx, edi
call fcn.00404960
lea eax, [ebp - 0x10c]
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da44
sub eax, edx
sar eax, 1
je 0x40da8d
push 1
mov eax, 0x5072cc
mov ecx, edi
call fcn.00403f00
lea eax, [ebp - 0x10c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x10c]
mov ecx, edi
call fcn.00403f00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x40dac0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004b96b0
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40db21
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x40dc30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e647b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, 7
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004b96b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40dd01
xor ecx, ecx
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dcd0
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.00404960
cmp dword [ebp - 0x220], 8
jb 0x40ddd0
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40ddc8
push 0x5072d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40dd42
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dd20
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00404960
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dd57
lea eax, [ebp - 0x234]
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push eax
push ebx
call edi
push 0xe
mov eax, str.ApplicationId
lea ecx, [ebp - 0x234]
call fcn.00403f00
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dd88
lea eax, [ebp - 0x234]
push eax
push ebx
call edi
push 3
mov eax, 0x507300
lea ecx, [ebp - 0x234]
call fcn.00403f00
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], dx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40ddd0
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b1676
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret