joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451365
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45147d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45147d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00465c5c
mov esi, eax
test esi, esi
je 0x45147d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45147d
mov ecx, esi
call fcn.004512d0
cmp edi, eax
jge 0x45147d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x451403
mov dword [esp + 0x34], 1
jmp 0x45145e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45147d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004508d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4665ff
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466637
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004646b6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046468e
jmp 0x466643
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467cf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467d36
call fcn.0046d7a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467d36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467d2d
xor eax, eax
jmp 0x467d3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467d44
pop edi
pop esi
pop ebx
ret 4
Function at 0x46dcd9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dd07
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dd25
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046dc3f
jmp 0x46dd25
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dd25
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046dc3f
test edi, edi
mov eax, edi
jne 0x46dd0f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40108a
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x428474]
push ebx
push esi
xor ebx, ebx
push ebx
xor eax, ebp
push ebx
mov dword [ebp + 0x88], eax
mov eax, dword [ebp + 0x94]
push ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4010cc
xor eax, eax
jmp 0x401188
push edi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x4c], eax
je 0x401185
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
je 0x401158
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x401158
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x401158
xor eax, eax
inc eax
jmp 0x401187
mov eax, dword [esi + 0x3c]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40116b
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x401178
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x401185
push eax
call edi
mov dword [esi + 0x30], ebx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
add ebp, 0x8c
leave
ret 4
Function at 0x4011e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ecx + 0x40]
test ebx, ebx
mov dword [ebp - 8], ecx
je 0x4011fc
cmp word [ebx], 0x5a4d
je 0x401203
xor eax, eax
jmp 0x4012d5
push esi
push edi
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov dword [ecx + 0x48], edi
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
movzx eax, word [edi + 6]
push eax
push edx
push edi
mov dword [ebp - 4], eax
mov dword [ecx + 0x44], eax
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov esi, eax
add esi, ebx
push dword [esi + 0x20]
push edi
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [esi + 0x24]
add eax, ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [esi + 0x1c]
add eax, ebx
push edi
mov dword [ebp - 0x18], eax
call fcn.004011a1
and dword [ebp - 4], 0
add eax, ebx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x1c], eax
jbe 0x4012d0
mov ecx, dword [ebp - 8]
push dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push dword [eax + edx*4]
push edi
call fcn.004011a1
add eax, ebx
mov dword [ebp - 0x14], eax
je 0x4012a8
push eax
call sub.MSVCR71.dll_strlen
test eax, eax
pop ecx
je 0x4012a8
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x4012b5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x401270
jmp 0x4012d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ax, word [eax + ecx*2]
add ax, word [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40132a
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x41e4f0
call fcn.0041886c
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x34]
jge 0x401394
shl eax, 4
lea esi, [eax + edi]
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
lea edx, [esi + 4]
mov cl, byte [eax]
cmp cl, byte [edx]
je 0x401388
cmp cl, 0xe9
jne 0x401388
mov cl, byte [eax + 5]
cmp cl, byte [esi + 9]
jne 0x401388
push 5
push edx
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
inc dword [ebp - 0x1c]
jmp 0x401343
or dword [ebp - 4], 0xffffffff
call fcn.004188a7
ret
Function at 0x401540
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x41a927
call fcn.004188d0
sub esp, 0x40
mov eax, dword [0x428474]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor eax, ebp
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c6cd
mov byte [ebp - 4], 5
mov dword [esp], str.XLBugHandler.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004014e7
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x401632
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push ebx
call edi
push str._XL_InitBugHandler_20
push ebx
mov dword [esi], eax
call edi
push str._XL_SetPeerID_4
push ebx
mov dword [esi + 4], eax
call edi
push str._XL_SetReportShowMode_4
push ebx
mov dword [esi + 8], eax
call edi
push str._XL_SetAlwaysSendReport_4
push ebx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret
Function at 0x403c91
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x403cd1
mov esi, dword [esp + 0x10]
cmp dword [esi + 4], 0
je 0x403cd1
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
je 0x403cd1
push dword [esi + 4]
call ebx
test eax, eax
je 0x403cd1
push dword [esi + 4]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x403cd3
xor al, al
pop edi
pop esi
pop ebx
ret 4

Function at 0x403d60
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, 0x41ac9f
call fcn.004188d0
sub esp, 0x280
mov eax, dword [0x428474]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._net_monitor_i.exe
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403e88
push 0x41e9d0
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], esi
push ebx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403ba8
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], 0x3c
mov dword [ebp - 0x26c], 0x40
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], str.open
mov dword [ebp - 0x260], eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret
Function at 0x403ea1
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, 0x41ac9f
call fcn.004188d0
sub esp, 0x280
mov eax, dword [0x428474]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._net_monitor_i.exe
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403fc9
push str._i_net_monitor.dll
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], esi
push ebx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403ba8
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], 0x3c
mov dword [ebp - 0x26c], 0x40
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], str.open
mov dword [ebp - 0x260], eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret
Function at 0x403fe2
Capabilities:
Copy file

Disassembly:
mov eax, 0x41acbb
call fcn.004188d0
sub esp, 0x3c
mov eax, dword [0x428474]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov esi, str.stat.dat
push esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004014e7
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004014e7
add esp, 0x18
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.00418849
leave
ret 8
Function at 0x4096d9
Capabilities:
Print debug messages
Set current directory

Disassembly:
mov eax, 0x41b7cf
call fcn.004188d0
sub esp, 0x7c
mov eax, dword [0x428474]
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, str._StartTP
xor eax, ebp
push ebx
push edi
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x81], 0
call esi
test eax, eax
pop ecx
pop ecx
je 0x409732
push str._debug
push edi
call dword [sym.imp.MSVCR71.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x409732
push 0x41f05c
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x409739
mov byte [ebp - 0x81], 1
lea ecx, [ebp - 0x80]
call fcn.00408ffd
and dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push eax
call fcn.004094a8
cmp byte [ebp - 0x81], 0
pop ecx
je 0x409762
lea eax, [ebp - 0x80]
push eax
call fcn.00409088
pop ecx
lea eax, [ebp - 0x80]
push eax
call fcn.00409260
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c6cd
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str._RegServer
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x4097b4
call fcn.004095f8
mov ecx, dword [0x4285e0]
call fcn.00408b53
mov esi, eax
call fcn.00409677
jmp 0x40986c
push str._RegServerEx
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x4097d5
call fcn.004095f8
mov eax, dword [0x4285e0]
mov byte [eax + 0xf0], 0
jmp 0x40979d
push str._UnRegServer
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x4097f5
call fcn.004095f8
mov ecx, dword [0x4285e0]
call fcn.004087bc
jmp 0x4097a8
lea ecx, [ebp - 0x85]
call fcn.00403127
mov byte [ebp - 4], 2
push ebx
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x40983f
push str._debug
push edi
call dword [sym.imp.MSVCR71.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x409833
push 0x41f05c
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x409833
or esi, 0xffffffff
jmp 0x40985d
call fcn.004093e6
mov ecx, eax
call fcn.00409914
xor esi, esi
call fcn.004093e6
mov ecx, eax
call fcn.0040bbb0
push str.Calling_into_UnInitReplaceProgram_...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004181a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x85]
call fcn.004031a4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409041
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret 0x10
Function at 0x40a5a7
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x41b99b
call fcn.004188d0
sub esp, 0x3c
mov eax, dword [0x428474]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov edi, ecx
call fcn.0040c672
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040fa50
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, ebx
je 0x40a62e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a627
mov ecx, edi
call fcn.0040a520
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret
Function at 0x40c316
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x41bbb5
call fcn.004188d0
sub esp, 0x3c
mov eax, dword [0x428474]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
xor edi, edi
lea eax, [ebp - 0x48]
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0040c6cd
mov dword [ebp - 4], edi
mov dword [esp], str.dl_uac_tool.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004014e7
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x40c3c9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSingleProcessUseDir
push ebx
call edi
push str.GetProfileDir
push ebx
mov dword [esi], eax
call edi
push str.GetComponentsDir
push ebx
mov dword [esi + 4], eax
call edi
push str.GetSingleProcessUseDir
push ebx
mov dword [esi + 8], eax
call edi
push str.SetMultiProcessUseDir
push ebx
mov dword [esi + 0xc], eax
call edi
push str.GetMultiProcessUseDir
push ebx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418849
leave
ret