joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e78
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453023
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453004
mov dl, 1
mov eax, dword [0x4153b4]
call fcn.0040311c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f7c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452ff3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440ddc
test al, al
je 0x452fe6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453034
lea eax, [ebp - 0x254]
call fcn.00408d38
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452fe6
xor eax, eax
push ebp
push 0x452fdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45306c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452fc8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452fc8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452fe6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452ee9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418e90
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45302a
lea eax, [ebp - 0x260]
call fcn.00403f7c
ret

Function at 0x453958
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x469bb4]
cmp byte [eax + 0xa5], 0
jne 0x4539c9
cmp dword [0x469bcc], 0
jne 0x45398a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453914
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bcc], eax
cmp dword [0x469bc8], 0
jne 0x4539a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bc8], eax
cmp dword [0x469bd0], 0
jne 0x4539c9
push esp
push 0
push 0
push 0x4538b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469bd0], eax
pop edx
ret
Function at 0x453ac0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453ad7
add esp, 0xfffffff0
call fcn.00403470
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cca0
mov eax, dword [0x468288]
cmp word [eax + 2], 0
jne 0x453aff
mov eax, dword [0x468288]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455198
mov eax, dword [0x468340]
cmp word [eax + 2], 0
jne 0x453b19
mov eax, dword [0x468340]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455390
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414f98]
call fcn.0040311c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414f98]
call fcn.0040311c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f19c]
call fcn.00426ae8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453ca0
mov eax, dword [0x4681a0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426eb8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455930
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4681a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c488
test eax, eax
je 0x453c0e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040872c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4b0
test eax, eax
je 0x453c22
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
mov eax, dword [0x468074]
cmp byte [eax], 0
jne 0x453c56
mov eax, ebx
call fcn.00453dc8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455b0c
mov eax, ebx
call fcn.004564d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453c96
call fcn.004034c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454048
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bb4]
cmp dword [eax + 0x30], 0
je 0x4540f2
cmp dword [ebx + 0x94], 0
jne 0x4540ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453fd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4540ec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4540b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4540ec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417300
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4540c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454c54
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454c89
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040406c
jmp 0x454c96
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fd0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455ce8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455d29
mov eax, esi
call fcn.0043c408
test al, al
je 0x455d29
mov eax, dword [ebx + 0x84]
call fcn.0043c104
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455d29
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c104
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x456b88
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414538]
call fcn.00404908
xor eax, eax
push ebp
push 0x456ccc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467d90], 0
jne 0x456bdb
mov ecx, dword [0x468084]
mov dl, 1
mov eax, dword [0x407124]
call fcn.0040b734
call fcn.0040399c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b60
mov eax, ebx
call fcn.004047b8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x456cdc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040588c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004047c8
test eax, eax
jle 0x456c73
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x456c6c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404204
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004041ec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407f30
test eax, eax
jne 0x456c6c
mov ebx, 0x15
jmp 0x456c78
mov ebx, 0x10
jmp 0x456c78
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x467d90]
call fcn.00456ae0
mov eax, dword [ebp - 8]
call fcn.00456ae0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004058a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456cd3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403fa0
lea eax, [ebp - 0x10]
mov edx, dword [0x414538]
call fcn.004049d8
ret

Function at 0x460d7c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00406b68
ret
Function at 0x401450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5671eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMemDC.0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4014e0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4014a7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4014d1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014e6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014e6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], vtable.CObject.0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401aa0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5672fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.00564700
mov al, byte [esp + 0xc]
lea esi, [edi + 0x18]
xor ebx, ebx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x10]
push ebx
mov dword [esp + 0x24], ebx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xc]
lea ecx, [esi + 0x20]
push ebx
mov byte [esp + 0x24], 1
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0xc]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x24], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea ecx, [esp + 0xd]
mov byte [esp + 0x20], 3
push ecx
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea edx, [esp + 0xe]
lea ecx, [esi + 0x58]
push edx
mov byte [esp + 0x24], 4
call fcn.00402490
lea eax, [esp + 0xf]
lea ecx, [esi + 0x64]
push eax
mov byte [esp + 0x24], 5
call fcn.00402490
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], vtable.AsyncW3Client.0
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], ebx
lea ecx, [edi + 0x94]
mov dword [edi + 0x90], vtable.CKRCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dl, byte [esp + 0xf]
push 0x18
mov byte [esp + 0x24], 7
mov byte [edi + 0xac], dl
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], ebx
mov dword [edi], vtable.CLogUpdate.0
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x403920
Capabilities:
Get file size

Disassembly:
mov al, byte [ecx + 0x20]
test al, al
je 0x40396d
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403933
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
mov eax, 0x2000
ret
Function at 0x405520
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.005655c0
mov al, byte [0x5e5830]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x405553
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x405603
cmp eax, 0x1fff
ja 0x405603
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405603
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5ce884
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405603
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x4058c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push esi
push esi
push 0x23
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x18]
push ecx
call edi
mov edx, dword [esp + 0x124]
push 0x104
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x120]
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
mov dword [ebp + 4], esi
not ecx
dec ecx
mov byte [ebp], dl
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x405956
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x405987
mov al, byte [ecx - 1]
test al, al
je 0x405987
cmp al, 0xff
je 0x405987
cmp ebx, esi
jne 0x4059b8
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
cmp ebx, esi
jne 0x4059a2
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4059ae
cmp eax, ebx
jae 0x4059c1
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
pop edi
mov dword [ebp + 8], ebx
pop esi
mov byte [ecx + ebx], 0
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40a840
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x40a867
mov eax, 0x80070057
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
je 0x40a968
mov eax, dword [esi + 0x4c]
mov dword [ebx], eax
mov edi, dword [esi + 0x38]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x40a96d
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40a96d
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40a96d
test edi, edi
je 0x40a96d
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40a96d
push 0
push 0
call fcn.00413420
mov ecx, eax
call fcn.0047a8e0
push str.91329848_AC93_4c63_98CE_7EFFF606B6E6
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
push edi
je 0x40a959
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x4c], 0x9d6c
call fcn.00413420
mov ecx, eax
call fcn.0047ef90
test al, al
je 0x40a941
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x364]
mov dword [ebp + 0xc], ecx
lea ecx, [esi + 0x360]
test eax, eax
je 0x40a928
mov edx, dword [ecx + 8]
sub edx, eax
test edx, 0xfffffffc
jne 0x40a941
mov edx, dword [ecx + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push edx
call fcn.00414810
mov dword [esi + 0x370], 0
mov eax, dword [esi + 0x4c]
mov dword [ebx], eax
mov dword [esi + 0x2c8], 4
mov dword [esi + 0x44], 1
jmp 0x40a96d
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x4c], 0x9d6d
jmp 0x40a8f5
mov ecx, dword [esi + 0x4c]
mov dword [ebx], ecx
mov eax, dword [esi + 0x4c]
test eax, eax
jle 0x40aa03
mov dx, word [0x5e5cb0]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x102]
mov word [ebp - 0x104], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x40a9a5
xor edi, edi
jmp 0x40a9d7
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.005655c0
mov eax, dword [ebp + 0xc]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ecx, dword [esi + 0x4c]
lea edx, [ebp - 0x104]
push ecx
push edi
push str._STORMP2P_ERROR__GetErrorCode:__s___d_
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea esp, [ebp - 0x110]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ce40
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x567de4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor edi, edi
push str.91329848_AC93_4c63_98CE_7EFFF606B6E6
mov esi, ecx
push edi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebp, 0xb7
je 0x40ceb2
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x40cea1
mov dword [esi + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00453d40
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x40d094
cmp dword [esi + 0xc], edi
jne 0x40d094
mov ecx, esi
call fcn.0040c540
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
jl 0x40cf25
lea ecx, [esp + 0x24]
call fcn.0044d030
push edi
push edi
push str.Config.ini
mov dword [esp + 0x14c], edi
call fcn.004535b0
add esp, 4
lea ecx, [esp + 0x2c]
push eax
call fcn.0044d100
push 1
push str.bStartVod
push str.CONFIG
lea ecx, [esp + 0x30]
call fcn.0044d1e0
lea ecx, [esp + 0x24]
mov dword [esp + 0x140], 0xffffffff
call fcn.0044d0b0
mov eax, ebx
jmp 0x40d098
mov eax, dword [esi + 0x368]
lea ecx, [esi + 0x364]
cmp eax, edi
mov dword [esp + 0x14], 0x7531
je 0x40cf4a
mov edx, dword [ecx + 8]
sub edx, eax
test edx, 0xfffffffc
jne 0x40cf60
mov eax, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
call fcn.00414810
mov dword [esi + 0x374], edi
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x14], ecx
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov dword [esp + 0x140], 1
cmp eax, edi
jne 0x40d05b
cmp dword [0x5e5cb4], edi
jne 0x40d05b
push 0x380
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
cmp ebx, edi
mov byte [esp + 0x140], 2
je 0x40cfc5
mov ecx, ebx
call fcn.00478dc0
mov dword [ebx], vtable.CComObjectNoRef_class_CKMPPlayer_.0
mov eax, ebx
jmp 0x40cfc7
xor eax, eax
mov ecx, dword [0x5eafa8]
mov ebp, dword [0x5cebb0]
mov dword [0x5e5cb4], eax
mov byte [esp + 0x140], 1
lea eax, [ecx - 1]
mov ebx, 0x406a50
test eax, eax
jl 0x40d00b
mov ecx, dword [0x5eafa4]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 4]
cmp ebp, edx
jge 0x40d007
inc edi
add ecx, 8
cmp edi, eax
jle 0x40cff2
test eax, eax
jge 0x40d01c
push 1
push ebp
push ebx
push edi
mov ecx, 0x5eafa0
call fcn.00417f10
jmp 0x40d04f
xor esi, esi
test eax, eax
jle 0x40d04b
mov eax, dword [0x5eafa4]
cmp dword [eax + esi*8], 0x406a50
je 0x40d04b
push 1
push ebp
push ebx
push edi
mov ecx, 0x5eafa0
call fcn.00417f10
mov ecx, dword [0x5eafa8]
inc esi
dec ecx
cmp esi, ecx
jl 0x40d022
mov esi, dword [esp + 0x18]
mov dword [0x5e5cb8], 1
xor edi, edi
mov edx, dword [0x5ed920]
mov ebx, dword [0x5e5cb4]
mov ecx, 0x5ed920
mov dword [esp + 0x140], 0xffffffff
call dword [edx + 8]
push edi
push edi
mov ecx, ebx
call fcn.0047a8e0
mov dword [esi + 0x2cc], 4
mov dword [esi + 0x50], 0x7531
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret