joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fe0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
sbb eax, eax
neg eax
add esp, 0x94
ret

Function at 0x4056d0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str.SeDebugPrivilege
xor ebx, ebx
xor ebp, ebp
call fcn.00405630
mov esi, dword [esp + 0x70]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4057b8
mov edx, dword [esp + 0x70]
mov ecx, 0x11
lea edi, [esp + 0x20]
mov ebp, 1
rep stosd dword es:[edi], eax
cmp edx, ebx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x52], bx
mov dword [esp + 0x54], ebx
mov word [esp + 0x50], bp
je 0x405779
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405779
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push 0x20
push ebp
push ebx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057aa
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push ebp
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057aa
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x407870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push edi
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x407897
lea edx, [esp + 8]
mov edi, str.C:Program_FilesInternet_Exploreriexplore.exe
jmp 0x4078a0
lea edx, [esp + 0xa]
mov edi, 0x413404
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10c]
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x407908
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
or ecx, 0xffffffff
add edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x407925
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 1
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x100
ret 8

Function at 0x407950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x103
mov cl, 0x5c
cmp byte [esp + eax + 4], cl
je 0x407990
dec eax
jns 0x40797d
xor eax, eax
pop edi
add esp, 0x104
ret
test eax, eax
mov byte [esp + eax + 5], 0
jge 0x4079a3
xor eax, eax
pop edi
add esp, 0x104
ret
mov edi, str.ProviderName.ini
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x11c]
mov edi, dword [esp + 0x118]
mov ecx, dword [esi]
push ecx
push edi
push 0x41563c
push str.ProviderName
push str.WatchSAFE3.2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi], eax
mov esi, 0x41563c
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407a41
test cl, cl
je 0x407a2c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407a41
add eax, 2
add esi, 2
test cl, cl
jne 0x407a08
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
pop esi
pop ebx
mov eax, ecx
pop edi
add esp, 0x104
ret
sbb eax, eax
pop esi
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
pop ebx
mov eax, ecx
pop edi
add esp, 0x104
ret
Function at 0x407a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push ebx
push esi
push edi
mov edi, 0x41563c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x1a0]
lea edx, [esp + 0x1c]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0x80
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00407950
add esp, 8
cmp eax, 1
jne 0x407bfc
mov edi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0xa8]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop ebp
jne 0x407c1e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
push 0
push str.Image_Path
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407be2
mov eax, dword [esp + 0xc]
mov cl, byte [eax + ebx - 1]
test cl, cl
je 0x407b85
mov byte [eax + ebx], 0
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x407bc0
mov byte [eax + 1], 0
mov edi, 0x41394c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x407bdd
mov edi, 0x41394c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x190
ret
mov edi, 0x41394c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x190
ret
Function at 0x407c30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
call fcn.00407a60
mov edx, dword [esp + 0x10c]
add esp, 4
lea ecx, [esp]
push ecx
push 0xffff
push edx
push str.WatchSAFE3.2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x10c]
xor edx, edx
cmp eax, 0xffff
setne dl
mov dword [ecx], eax
mov eax, edx
add esp, 0x104
ret

Function at 0x407ce0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push eax
call fcn.00407a60
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add esp, 4
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
push 0x41563c
push eax
push str.WatchSAFE3.2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi], eax
mov esi, 0x41563c
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407d67
test cl, cl
je 0x407d52
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407d67
add eax, 2
add esi, 2
test cl, cl
jne 0x407d2e
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x104
ret
sbb eax, eax
pop edi
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
pop esi
mov eax, ecx
pop ebx
add esp, 0x104
ret

Function at 0x407dc0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [esp + 0x414]
push str.__d_:__d_:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x820]
lea ecx, [esp + 0x824]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov edi, 0x4139a0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x40c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x40c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
add esp, 0x800
ret
Function at 0x407ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0x4139b0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40801e
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
add esp, 0x1c
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
test edi, edi
jne 0x408060
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x408096
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x410e4c
push 1
push 0
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jge 0x4080cf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov edx, dword [esp + 0x18]
push 4
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40a960
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ed78
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a9c9
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 8]
mov dword [esp + 0xc], 1
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40aa25
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x24]
mov dword [esi], eax
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x40bd30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40ee90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x30], 2
call fcn.0040ba80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0xe00d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push edi
lea edx, [esp + 0xc]
push 0x41399c
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea edx, [esp + 0x14]
lea ecx, [esi + 0x64]
push edx
call fcn.004071b0
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040e12e
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40bfa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40eeb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x30]
push 0x20
push esi
mov byte [esp + 0x30], 1
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0x40
push esi
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0x60
push esi
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0x80
push esi
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0xa0
push esi
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0xc0
push esi
call dword [0x4155b0]
test eax, eax
je 0x40c04a
push 0xe0
push esi
call dword [0x4155b0]
test eax, eax
jne 0x40c0da
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetSize
push 0x8c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0x8e
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea ecx, [esp + 0xc]
push ecx
lea ecx, [edi + 0x64]
call fcn.004071b0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040e12e
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetSize
push 0x8c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0x8d
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea eax, [esp + 0xc]
lea ecx, [edi + 0x64]
push eax
call fcn.004071b0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040e12e
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x40d0b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40d0fa
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40d0fa
pop edi
pop esi
add esp, 0x9c
ret
mov edx, dword [esp + 0xc]
pop edi
cmp edx, 6
pop esi
sbb eax, eax
inc eax
add esp, 0x9c
ret
Function at 0x40d110
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0x18], esi
push eax
push 8
push ebx
push ecx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d22b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0x104
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40d21e
mov ebp, dword [esp + 0x130]
mov ebx, dword [esp + 0x12c]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jbe 0x40d1a6
mov ecx, ebp
jmp 0x40d1b4
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__memicmp]
add esp, 0xc
test eax, eax
push ebp
push ebx
jne 0x40d1e2
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040d260
mov esi, eax
test esi, esi
jne 0x40d238
mov esi, dword [esp + 0x18]
jmp 0x40d1f3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0040d110
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
push 0x104
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40d190
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0x10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0x10
Function at 0x40d260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x120]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d35d
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push ecx
call ebp
test eax, eax
jne 0x40d31a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0040d260
mov esi, eax
test esi, esi
jne 0x40d336
push 0xa
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x40d2d8
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x40d350
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x40d690
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
xor edx, edx
push ebx
mov ebx, dword [esp + 0x134]
push ebp
cmp ebx, edx
push edi
jne 0x40d6b2
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], edx
push edx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40d6e2
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push esi
push eax
push ebp
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d753
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
push ebx
call esi
add esp, 4
lea ecx, [esp + 0x38]
push eax
push ecx
call esi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
jne 0x40d74b
lea edx, [esp + 0x14]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40d753
push ebx
call esi
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40d721
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x12c
ret