joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x408f41
push edi
push dword [ebp - 4]
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x408ec5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x408f40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408f2f
test ebx, ebx
je 0x408f2f
push dword [ebp - 4]
push eax
push ebx
call fcn.00417900
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x408f17
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x408f3d
push dword [ebp - 8]
mov esi, dword [ebp + 8]
call fcn.00408f46
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x408f3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x40910c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x67
call fcn.0040442f
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40915b
xor al, al
jmp 0x409190
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x40917d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409157
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409c82
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x409cdc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409cdc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409cb0
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
jmp 0x409cde
push edi
call fcn.00418067
mov esi, eax
push 0x5c
push esi
call fcn.004180c0
add esp, 0xc
test eax, eax
je 0x409cf4
push esi
mov byte [eax], 0
call fcn.00409c82
pop ecx
push esi
test al, al
jne 0x409ce1
call fcn.00417fb9
pop ecx
xor al, al
pop edi
pop esi
ret
call fcn.00417fb9
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409cdc
mov al, 1
jmp 0x409cde

Function at 0x409cf8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x409d25
xor al, al
jmp 0x409d9f
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x409d94
lea eax, [ebp - 0x18]
push eax
push edi
shr edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x409d94
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x409d94
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop ebx
leave
ret

Function at 0x409e1d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x409e54
cmp dword [ebp - 0x90], 6
jne 0x409e54
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x409e58
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x409ea7
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x40a4bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x314
push ebx
push esi
push edi
mov dword [ebp + 0x58], 1
mov dword [ebp + 0x60], 0x12c
call fcn.00409e1d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
mov edi, 0x20019
test eax, eax
je 0x40a59b
lea eax, [ebp + 0x6c]
push eax
push edi
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push 0x80000001
call esi
test eax, eax
jne 0x40a59b
push 0x31
lea eax, [ebp + 0x25]
push ebx
push eax
mov dword [ebp + 0x5c], 1
mov byte [ebp + 0x24], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x5c]
push eax
push ebx
push str.ProgId
push dword [ebp + 0x6c]
mov dword [ebp + 0x68], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x6c]
mov dword [ebp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x64], ebx
jne 0x40a59b
push 0x95
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00416e30
lea eax, [ebp + 0x24]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x74]
push 0x96
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x1c
lea eax, [ebp + 0x6c]
push eax
push edi
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x80000000
call esi
test eax, eax
je 0x40a5ad
lea eax, [ebp + 0x6c]
push eax
push edi
push ebx
push str.http_shellopencommand
push 0x80000000
call esi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp + 0x58]
push eax
push ebx
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x6c]
mov dword [ebp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea eax, [ebp - 0x177]
push ebx
push eax
mov byte [ebp - 0x178], bl
call fcn.00416e30
add esp, 0xc
cmp byte [ebp - 0x2a4], 0x20
lea eax, [ebp - 0x2a4]
mov dword [ebp + 0x68], eax
jne 0x40a606
inc eax
cmp byte [eax], 0x20
je 0x40a600
cmp byte [eax], 0x22
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x104
jne 0x40a67e
inc eax
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x42faa0
lea eax, [ebp - 0x178]
push eax
call esi
cmp eax, ebx
je 0x40a639
mov byte [eax], bl
lea eax, [ebp - 0x178]
mov dword [ebp + 0x68], eax
mov edi, str..exe
push edi
push dword [ebp + 0x68]
call esi
mov esi, eax
cmp esi, ebx
je 0x40a65d
push edi
call fcn.00416f90
pop ecx
mov byte [eax + esi], bl
push dword [ebp + 0x7c]
push dword [ebp + 0x68]
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
cmp dword [ebp + 0x64], ebx
pop edi
pop esi
sete al
pop ebx
add ebp, 0x70
leave
ret 8
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x40a642
Function at 0x40a6f2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a712
xor eax, eax
jmp 0x40a776
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40a761
lea eax, [ebp - 0x104]
push eax
push 0x43c300
call fcn.00417240
pop ecx
pop ecx
test eax, eax
jne 0x40a74a
cmp dword [ebp - 0x120], ebx
jne 0x40a767
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a72b
jmp 0x40a76d
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x40a7af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov esi, str.NoNoItsNotHere
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsw word es:[edi], word [esi]
push 0xf5
lea eax, [ebp - 0x105]
push ebx
push eax
mov dword [ebp - 0x10], ebx
movsb byte es:[edi], byte [esi]
call fcn.00416e30
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov dword [ebp - 4], ebx
push edi
inc ebx
push 0x80000001
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x40a82e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 0
je 0x40a83d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea eax, [ebp - 0x114]
push str.NoNoItsNotHere
push eax
call fcn.00417240
pop ecx
pop ecx
test eax, eax
jne 0x40a8a0
lea eax, [ebp - 4]
push eax
push edi
push 0x80000002
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x40a891
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 0
je 0x40a8a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push str.NoNoItsNotHere
push eax
call fcn.00417240
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
je 0x40a8ca
lea eax, [ebp - 0x114]
push eax
call fcn.00416e24
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x40e89d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jbe 0x40e914
mov bl, 1
push 0x103
lea eax, [ebp - 0x197]
push 0
push eax
mov byte [ebp - 0x198], 0
call fcn.00416e30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x198]
push eax
call fcn.0040a4bd
push 0x43c300
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jbe 0x40e90f
xor bl, bl
mov al, bl
pop ebx
leave
ret
jne 0x40e921
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x8c], ebx
jae 0x40e8c9
xor al, al
jmp 0x40e911

Function at 0x40e987
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push eax
push 0x43db0c
mov esi, 0x80000001
push esi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ea20
push 0x31
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x43db28
push dword [ebp - 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x32
call ebx
test eax, eax
jne 0x40ea17
push 0x43cc68
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0x43db2c
push esi
call edi
test eax, eax
jne 0x40ea8d
push 0x31
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x43db28
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x32
call ebx
test eax, eax
jne 0x40ea84
push 0x43cc68
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
inc al
mov byte [ebp - 2], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0x43da7c
push 0x80000000
call edi
test eax, eax
jne 0x40eaae
push dword [ebp - 8]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40eab1
mov bl, byte [ebp - 3]
cmp byte [ebp - 1], 0
jne 0x40eac1
cmp byte [ebp - 2], 0
jne 0x40eac1
xor eax, eax
jmp 0x40eac4
xor eax, eax
inc eax
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
jne 0x40eada
cmp byte [ebp - 2], 0
je 0x40eae3
test bl, bl
je 0x40eae3
xor eax, eax
inc eax
jmp 0x40eae5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eaea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x43db0c
mov edi, 0x80000001
push edi
mov byte [ebp - 3], bl
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
call esi
cmp eax, ebx
je 0x40eb2c
lea eax, [ebp - 8]
push eax
push 0x43db2c
push edi
call esi
cmp eax, ebx
jne 0x40eba5
push 0x31
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x43db28
push dword [ebp - 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40eb9c
xor edi, edi
cmp dword [str.GAM4], ebx
je 0x40eb9c
mov eax, 0x43685c
lea ecx, [ebp - 0x48]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb98
inc edi
lea eax, [edi*4 + 0x43685c]
cmp dword [eax], ebx
jne 0x40eb7a
jmp 0x40eb9c
mov byte [ebp - 3], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0x43da7c
push 0x80000000
call esi
test eax, eax
jne 0x40ec44
lea eax, [ebp - 0xc]
push eax
push 0x43db5c
push dword [ebp - 8]
mov byte [ebp - 1], 1
call esi
test eax, eax
jne 0x40ec3b
push 0x103
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ec32
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.0041ac55
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40ec32
mov byte [ebp - 2], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 3], bl
je 0x40ec59
cmp byte [ebp - 1], bl
je 0x40ec59
xor eax, eax
cmp byte [ebp - 2], bl
setne al
inc eax
jmp 0x40ec5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ec60
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareAppDataLowgvtl
push 0x80000001
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ecf1
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
jne 0x40ec99
push 0x43db6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40ece8
push 0x63
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00416e30
push dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push dword [ebp + 8]
push section..cdata
push 0x64
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
push 0x43db6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ece8
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40ecf6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
lea eax, [ebp - 0x94]
push eax
mov bl, 1
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40ed32
cmp dword [ebp - 0x8c], 0
je 0x40ed34
cmp dword [ebp - 0x90], 5
jae 0x40ed36
xor bl, bl
mov al, bl
pop ebx
leave
ret

Function at 0x40f300
Capabilities:
Hide graphical window

Disassembly:
push 0xfffffffffffffffa
push dword [esp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4395be], 1
mov ecx, dword [0x439544]
sete al
movzx eax, al
push eax
push 0x89
call fcn.00401121
ret

Function at 0x40f918
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
mov ecx, dword [0x439544]
setne al
dec al
and al, byte [0x4395da]
movzx eax, al
push eax
push 0x8e
call fcn.00401121
ret
Function at 0x40f949
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00416e30
add esp, 0xc
push 0x64
lea eax, [ebp - 0x64]
push eax
call fcn.0040a4bd
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.iexplore.exe
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jbe 0x40f9db
push 0x103
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.00416e30
lea eax, [ebp - 0x168]
push eax
call fcn.004046b5
push str.Shop_to_Win_8
lea eax, [ebp - 0x168]
push 0x104
push eax
call fcn.004172c8
add esp, 0x1c
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fa43
mov al, 1
jmp 0x40fa45
push str.firefox.exe
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jbe 0x40fa43
push 0x103
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.00416e30
lea eax, [ebp - 0x168]
push eax
call fcn.00404731
add esp, 0x10
test al, al
je 0x40fa43
push str.extensions_
mov esi, 0x104
lea eax, [ebp - 0x168]
push esi
push eax
call fcn.004172c8
push str.fa3d1246_250b_4212_a2be_f1387ccca2e7
lea eax, [ebp - 0x168]
push esi
push eax
call fcn.004172c8
add esp, 0x18
jmp 0x40f9c5
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40fa49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
mov byte [ebp - 0x110], 0
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMozillaMozilla_Firefox
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40fa99
xor al, al
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40fac7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fa95
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00416e24
mov esi, eax
lea eax, [ebp - 0x10e]
push eax
call fcn.00416e24
pop ecx
cmp esi, 2
pop ecx
setge al
pop esi
leave
ret

Function at 0x40fb4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00416e30
lea eax, [ebp - 0x104]
push eax
call fcn.004046b5
push str.Xobni
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.004172c8
add esp, 0x1c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
leave
ret
Function at 0x40fba7
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.00416e30
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
jge 0x40fc23
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0x1c
push ebx
call esi
lea eax, [ebp - 0x218]
push eax
push str._sMicrosoftOutlook
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00416f6e
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fce1
lea eax, [ebp - 0x110]
push eax
push 0x42ff40
lea eax, [ebp - 0x320]
push esi
push eax
call fcn.00416f6e
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fce1
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str..PST
lea eax, [ebp - 0x434]
push eax
call edi
test eax, eax
jne 0x40fcbb
push str..OST
lea eax, [ebp - 0x434]
push eax
call edi
test eax, eax
je 0x40fcbe
inc dword [ebp - 4]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fc97
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 4], ebx
setg al
jmp 0x40fce3
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fce8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push 0x90
lea eax, [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x1c], 0x94
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40fd2f
cmp dword [ebp - 0x18], 5
jbe 0x40fd25
mov al, 1
jmp 0x40fd31
jne 0x40fd2f
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
jae 0x40fd31
xor al, al
add ebp, 0x78
leave
ret