joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405840
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 8]
neg eax
sbb eax, eax
push ecx
and eax, 0xa
mov ecx, dword [esp + 0x68]
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push eax
push 0
push 0x20
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4058c4
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x34f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 4]
test eax, eax
je 0x4058d2
mov dword [eax], ecx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x405918
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [esp], eax
jne 0x405918
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x405918
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x35d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
xor eax, eax
add esp, 0x58
ret

Function at 0x405920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
test ecx, ecx
mov eax, 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x4059b2
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4059b2
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4059b2
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x405960
mov eax, 0x101
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4059c8
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4059c8
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4059c8
cmp eax, 7
je 0x4059c8
cmp eax, 2
je 0x4059c8
mov esi, 0x3f2
jmp 0x4059c8
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x399
push 0x57
call fcn.004048b0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4059d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x401a60
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x800
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x814]
or ecx, 0xffffffff
mov dword [ebp], 0x41466c
mov dword [ebp + 4], 1
lea edx, [ebp + 8]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp + 7], 0x5c
je 0x401ade
mov edi, 0x41c048
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x820]
test eax, eax
je 0x401be0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
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]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x401b51
mov edi, 0x41c048
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
lea eax, [esp + 0x10]
push 0x5c
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x401bd9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
push 0x5c
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x401bd9
mov ecx, esi
lea edx, [esp + 0x10]
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x414]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea edx, [esp + 0x410]
push 0
push edx
call ebx
test eax, eax
jne 0x401b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401b8a
xor eax, eax
jmp 0x401be7
mov eax, 1
jmp 0x401be7
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp + 0x10c], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 0x10
Function at 0x401da0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ecx, eax
push esi
and ecx, 1
xor esi, esi
cmp cl, 1
push edi
mov ebx, SysReAllocStringLen
jne 0x401dbf
mov ebx, 0x40000000
jmp 0x401dce
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x401dce
mov ebx, 0xc0000000
test ah, 0x10
je 0x401dd8
mov esi, 1
mov ecx, eax
push ebp
and ecx, 0x40
xor ebp, ebp
cmp cl, 0x40
jne 0x401dea
mov ebp, 3
mov edx, eax
and edx, 0x30
cmp dl, 0x30
jne 0x401df9
mov ebp, 2
mov ecx, eax
and ecx, 0x20
cmp cl, 0x20
jne 0x401e08
mov ebp, 1
and eax, 0x10
cmp al, 0x10
jne 0x401e11
xor ebp, ebp
mov edi, dword [esp + 0x14]
test esi, esi
je 0x401e26
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401e26
xor esi, esi
neg esi
sbb esi, esi
push 0
add esi, 3
push 0x80
push esi
push 0
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebp
cmp esi, 0xffffffff
jne 0x401e51
pop edi
pop esi
mov eax, 0x80004005
pop ebx
ret
push 0x410
call sub.MFC42.DLL_operatornew
xor edx, edx
add esp, 4
cmp eax, edx
je 0x401e79
mov dword [eax + 8], edx
mov byte [eax + 0x10], dl
mov dword [eax], 0x4146b8
mov dword [eax + 4], 1
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 8], esi
lea ebx, [edx + 0x10]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], edx
ret

Function at 0x403b20
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x403b41
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
pop esi
ret
Function at 0x409b60
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412cd2
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.00411d80
push ebx
push esi
mov esi, dword [esp + 0x1044]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x409bba
mov eax, dword [esp + 0x104c]
test eax, eax
jne 0x409bba
mov ecx, dword [esp + 0x1040]
mov edx, dword [esp + 0x1044]
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
jmp 0x409d17
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov dword [esp + 0x1038], 0
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1038], 1
call sub.MFC42.DLL_CString::CString_3
mov ebx, 0x414650
or edi, 0xffffffff
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x103c], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
push 0x1001
push esi
mov byte [esp + 0x1044], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x409c72
push eax
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CException::ReportError
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1038], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], 0x4145f0
mov dword [esp + 0x1038], edi
call fcn.004118a6
xor eax, eax
jmp 0x409d1c
mov ecx, dword [esp + 0x1044]
mov esi, dword [esp + 0x1040]
mov eax, ecx
and ecx, 0xfff
shr eax, 0xc
test eax, eax
mov ebx, ecx
jle 0x409cbd
mov edi, eax
mov edx, dword [esi]
lea eax, [esp + 0x30]
push 0x1000
push eax
mov ecx, esi
call dword [edx + 0x3c]
lea ecx, [esp + 0x30]
push 0x1000
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
dec edi
jne 0x409c93
or edi, 0xffffffff
test ebx, ebx
jle 0x409cdd
mov edx, dword [esi]
lea eax, [esp + 0x30]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x3c]
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
mov dword [esp + 0xc], 0x414650
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1038], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], 0x4145f0
mov dword [esp + 0x1038], edi
call fcn.004118a6
mov eax, 1
mov ecx, dword [esp + 0x1030]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1030
ret
Function at 0x40ac50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40acb3
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aca8
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40acc0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x412f61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [0x41cc09]
push ebx
push esi
mov ebx, 1
xor esi, esi
test bl, al
mov dword [esp + 8], esi
jne 0x40ad12
mov dl, al
mov ecx, 0x41cc04
or dl, bl
mov byte [0x41cc09], dl
call sub.MFC42.DLL_CString::CString_3
push 0x40ae50
call fcn.00411d4c
add esp, 4
mov eax, dword [0x41cc04]
cmp dword [eax - 8], esi
jne 0x40ae19
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push 5
push ecx
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
pop edi
jl 0x40adae
lea edx, [esp + 0x14]
mov ecx, 0x41cc04
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [0x41cc04]
mov ecx, dword [eax - 8]
cmp byte [eax + ecx - 1], 0x5c
je 0x40ad77
push 0x41c048
mov ecx, 0x41cc04
call fcn.004118e8
push str.My_Books_
lea eax, [esp + 0x14]
push 0x41cc04
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, 0x41cc04
mov dword [esp + 0x124], esi
call sub.MFC42.DLL_CString::operator_1
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x40ae04
lea edx, [esp + 8]
push edx
call fcn.0040ab90
add esp, 4
push str.Books_
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x128], ebx
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, 0x41cc04
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x41cc04]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
mov esi, dword [esp + 0x128]
push 0x41cc04
mov ecx, esi
call fcn.004118b8
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40ae60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret
Function at 0x40ae80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x40aea0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
push esi
push edi
xor edx, edx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
mov dword [esp + 8], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x414]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
push edx
mov edx, dword [esp + 0x42c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
add esp, 0x404
ret
Function at 0x40af70
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x412fbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
push eax
call fcn.0040acc0
add esp, 4
push str.CyberArticleSample.book
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
push str.SoftwareWizissoftCyberArticleCurrentFileName
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push str.FileName
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString_3
push 0x400
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0xc]
push 0x400
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push SysReAllocStringLen
call fcn.0040ac50
add esp, 0x14
lea ecx, [esp]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b046
lea edx, [esp + 4]
lea ecx, [esp]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40b0bc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b0bc
lea eax, [esp + 0x18]
push eax
call fcn.0040ab90
add esp, 4
push str.CyberArticleSample.book
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp]
mov eax, dword [esp + 8]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 8]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
push esi
mov esi, dword [esp + 0x34]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004118b8
mov dword [esp + 0x20], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40b120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
push esi
push edi
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xd]
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
add esp, 0x404
ret
Function at 0x40b170
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
push esi
push edi
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xd]
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
add esp, 0x404
ret

Function at 0x40b1c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x412ff5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push edi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x10]
push 0x26
push eax
push 0
mov dword [esp + 0x128], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
pop edi
jl 0x40b24d
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40b24d
push 0x41c048
lea ecx, [esp + 4]
call fcn.004118e8
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004118b8
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x40b620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4130a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call fcn.0040b5f0
mov ebx, eax
push 0x41c568
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x40b7ec
lea edi, [ebx + 2]
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x18], esi
je 0x40b7cd
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, 1
push eax
push edi
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov edx, esi
mov ecx, esi
mov al, byte [ecx]
test al, al
je 0x40b6cd
cmp al, 0xd
jne 0x40b6c7
inc ecx
jmp 0x40b6ba
mov byte [edx], al
inc edx
inc ecx
jmp 0x40b6ba
mov byte [edx], 0
mov al, byte [esi]
cmp al, 0xef
jne 0x40b783
cmp byte [esi + 1], 0xbb
jne 0x40b783
cmp byte [esi + 2], 0xbf
jne 0x40b783
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 3]
test ecx, ecx
je 0x40b780
lea edi, [ebx + ebx + 2]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b7cd
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
push eax
push ebx
lea eax, [esi + 3]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x14], 1
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40b7ec
push eax
jmp 0x40b7c2
movsx ecx, al
cmp ecx, 0xff
jne 0x40b7c1
movsx edx, byte [esi + 1]
cmp edx, 0xfe
jne 0x40b7c1
lea eax, [esi + 2]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
jmp 0x40b7ca
push esi
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40b7ec
push esi
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x401120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xe0]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x401169
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xe0]
call sub.MFC42.DLL_CString::operator_1
mov eax, esi
pop esi
add esp, 0xd0
ret 8

Function at 0x401f80
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x414
mov eax, 0x100
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402089
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push eax
push 0x4041c4
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402089
push ebx
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x330]
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esi + 0x274]
lea ecx, [esp + 0x220]
push eax
push 0x404030
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x224]
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 + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
jmp 0x40209c
push 0
push 0x4041bc
push 0x4041a8
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
pop esi
add esp, 0x414
ret