joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100216d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0x104
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1002172f
mov edi, dword [edi]
push edi
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.1001a3f0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1002179a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x100b2814
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x100217ba
xor ecx, ecx
jmp 0x100217d2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100217c3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.100089b0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10021800
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099a18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
push 0x26
xor eax, eax
push str.D27CDB6E_AE6D_11cf_96B8_444553540000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.100089b0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x60], 0
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::func::GetComPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov byte [esp + 0x58], 2
cmp dword [esp + 0x28], 8
jb 0x10021891
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
push str.Kernel32.dll
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x30], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
test edi, edi
je 0x100218df
push str.Wow64DisableWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100218dc
lea ecx, [esp + 0x2c]
push ecx
call eax
push edi
call esi
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0x58], 2
push str.Kernel32.dll
test eax, eax
je 0x10021928
call ebx
mov edi, eax
test edi, edi
je 0x10021924
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push edi
call eax
test eax, eax
je 0x10021921
push dword [esp + 0x2c]
call eax
push edi
call esi
mov bl, 1
jmp 0x1002194c
call ebx
mov edi, eax
test edi, edi
je 0x1002194a
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push edi
call eax
test eax, eax
je 0x10021947
push dword [esp + 0x2c]
call eax
push edi
call esi
xor bl, bl
cmp dword [esp + 0x44], 8
jb 0x10021960
push dword [esp + 0x30]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10021d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099c93
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x130], 0
jb 0x10021d99
mov eax, dword [eax]
push 0x100b2830
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.MSVCR110.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x130], 0
je 0x10021e82
push 0xfde9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x12c]
push eax
call sym.iImportLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_elex::strings::ws2s_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_
push 0x103
lea eax, [ebp - 0x113]
push 0
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x114], 0
call sub.MSVCR110.dll_memset
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
lea eax, [ebp - 0x114]
push str._______UDPARC4KEYFORHARDKORE1.0.0PACKET1234567890Talkwithfriends_family_orteammatesoverafastandclearconnectionAbilitytousetextchatforanyonewithoutamicrophoneNativeclientandserversupportforall3majorplatformsAutomaticmicrophonevolumenormalizationAd
push eax
call sym.iImportLib.dll_char____cdecl_elex::safe::Encrypt_char_const___char_const__
mov ebx, eax
mov edx, ebx
add esp, 0x2c
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10021e31
push dword [ebp - 0x130]
sub edx, eax
push 1
push edx
push ebx
call dword [sym.imp.MSVCR110.dll_fwrite]
push dword [ebp - 0x130]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0x18
cmp esi, 1
setae bl
cmp dword [ebp - 0x118], 0x10
jb 0x10021e84
push dword [ebp - 0x12c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x10021e84
xor bl, bl
cmp dword [ebp + 0x20], 8
jb 0x10021e96
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10021ec0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
mov bl, 1
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x1c]
push eax
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::filepath::getProgramRunDir_void_
add esp, 0x10
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push str.cfgisafe.dat
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x28]
push eax
push 1
push str.UseDefaultEngine
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test edi, edi
je 0x10021f44
mov dword [edi], esi
xor ecx, ecx
call fcn.1001ee60
cmp eax, 2
jne 0x10021f54
test esi, esi
jne 0x10021f56
xor bl, bl
cmp dword [esp + 0x24], 8
jb 0x10021f6a
push dword [esp + 0x10]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10022070
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x4e20
push 0
push 0
push 0xff
push 6
push 1
push esi
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
test esi, esi
jne 0x100220eb
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push 8
mov dword [edi], 0xffffffff
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1002210b
xorps xmm0, xmm0
movq qword [ecx], xmm0
jmp 0x1002210d
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push edi
push 0
push ecx
push 0x10021f90
push 0
push 0
mov dword [ecx], esi
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x100225b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov bl, 1
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
push eax
call sym.iImportLib.dll_int___cdecl_elex::func::GetConfigFilePath_wchar_t__
add esp, 0x10
test eax, eax
jne 0x10022605
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 1
push str.rightclick
push str.virusconfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
and al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x100226e0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100998ab
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002284a
push 0x100b2828
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
je 0x1002284a
push 0x103
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0
call sub.MSVCR110.dll_memset
push esi
push 0x104
lea eax, [esp + 0x58]
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [esp + 0x44]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x20
test esi, esi
je 0x1002284a
lea eax, [esp + 0x44]
push str._______UDPARC4KEYFORHARDKORE1.0.0PACKET1234567890Talkwithfriends_family_orteammatesoverafastandclearconnectionAbilitytousetextchatforanyonewithoutamicrophoneNativeclientandserversupportforall3majorplatformsAutomaticmicrophonevolumenormalizationAd
push eax
call sym.iImportLib.dll_char____cdecl_elex::safe::Decrypt_char_const___char_const__
mov esi, eax
add esp, 8
test esi, esi
je 0x1002284a
push esi
lea ecx, [esp + 0x14]
call fcn.100084a0
push 0xfde9
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x16c], 0
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::strings::s2ws_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_
add esp, 0xc
lea ecx, [esp + 0x10]
call sym.iImportLib.dll_public:_void___thiscall_Json::PathArgument::destructor_void_
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call sym.iImportLib.dll_public:_bool___thiscall_elex::ver::_ELEX_VERSION::DeSerialize_wchar_t_const__
test al, al
je 0x10022841
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
mov edx, 0x208
mov ecx, edi
call fcn.1001a4b0
lea ecx, [esp + 0x2c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov al, 1
jmp 0x1002285f
lea ecx, [esp + 0x2c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
push ecx
push str.0.0.0
push ecx
mov edx, 0x104
mov ecx, edi
call fcn.1001a460
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x100244c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x414], eax
xor eax, eax
push 0x40e
push eax
mov word [esp + 8], ax
lea eax, [esp + 0xa]
push eax
call sub.MSVCR110.dll_memset
lea eax, [esp + 0xc]
push 0x208
push eax
call sym.iImportLib.dll_int___cdecl_elex::func::GetSelfBasePath_wchar_t___unsigned_long_int_
add esp, 0x14
lea eax, [esp]
push str.inst_cfg.ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024534
xor edx, edx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [esp]
push eax
call sym.iImportLib.dll_unsigned_long_long_unsigned___int64____cdecl_elex::func::GetHasInstalledProductIDs2_wchar_t_const__
mov ecx, dword [esp + 0x418]
add esp, 4
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10024560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009972b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x24], ebx
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
xor eax, eax
push 0x206
mov dword [esp + 0x254], 0
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x34]
push eax
push ebx
call sym.iImportLib.dll_bool___cdecl_elex::func::GetAllSectionsName_wchar_t_const___class_std::vector_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::allocator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
add esp, 0x14
test al, al
jne 0x1002461e
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x100246ee
mov ebx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0x14]
sar edx, 2
mov edi, edx
shr edi, 0x1f
mov dword [esp + 0x10], eax
add edi, edx
je 0x100246ea
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10024661
mov eax, dword [esi]
jmp 0x10024663
mov eax, esi
push dword [esp + 0x24]
lea ecx, [esp + 0x38]
push 0x208
push ecx
push 0
push 0x100b47e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100246d8
lea eax, [esp + 0x34]
push 0x100b2814
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100246d8
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi64]
mov dword [esp + 0x18], eax
mov ecx, edx
mov edx, dword [esp + 0x18]
add esp, 4
add eax, 0xffffffff
mov dword [esp + 0x20], ecx
adc ecx, 0xffffffff
and ecx, dword [esp + 0x20]
and eax, edx
mov eax, dword [esp + 0x10]
jne 0x100246dc
test ecx, ecx
jne 0x100246dc
or eax, edx
or ebx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x100246dc
mov eax, dword [esp + 0x10]
add esi, 0x18
dec edi
jne 0x10024643
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test esi, esi
je 0x10024707
push ecx
push esi
call fcn.1001a1d0
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, ebx
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10024730
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099598
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002483d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002483d
mov ebx, dword [ebp + 0xc]
push dword [ebx + 4]
push dword [ebx]
call fcn.1001a1d0
mov eax, dword [ebx]
push 0x5000
mov dword [ebx + 4], eax
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1002483d
push 0x5000
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
push esi
push 0x2800
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [edi], 0
mov esi, edi
je 0x1002481e
push esi
lea ecx, [esp + 0x18]
call fcn.10008550
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.10026fa0
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x100247ff
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10024804
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x100247c5
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x100251e7
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
push str.cfgisafe.dat
push esi
push 0x100b2f7c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
push str.inst_type
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x100251cd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push 0xa
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.MSVCR110.dll_wcstol]
dec eax
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10025200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099b48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 0x100b2814
lea ecx, [esp + 0x38]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.100089b0
mov dword [esp + 0x58], 0
push 0x1c
xor eax, eax
push str.SoftwareNAMSystemNAMClient
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100089b0
cmp dword [esp + 0x2c], 8
lea ecx, [esp + 0xc]
push ecx
push 0x20219
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [esp + 0x58], 2
cmp dword [esp + 0xc], 0
je 0x10025320
lea eax, [esp + 0x30]
push eax
push str.pids
lea ecx, [esp + 0x14]
call sym.iImportLib.dll_public:_long_int___thiscall_elex::reg::RegKey::ReadValue_wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____const
test eax, eax
jne 0x10025320
cmp dword [esp + 0x40], eax
je 0x10025320
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi64]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
mov bl, 1
jmp 0x10025322
xor bl, bl
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002533e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10025355
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
cmp dword [esp + 0x2c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1002536b
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x44], 8
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jb 0x10025392
push dword [esp + 0x30]
call esi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret