joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48293c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48cae8
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045e3cf
mov dword [edi], vtable.boost::io::too_few_args.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4549ed
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b790
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4564c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4829cc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48cae8
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045e3cf
mov dword [edi], vtable.boost::io::too_many_args.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x45654d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b790
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4829cc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48cae8
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045e3cf
mov dword [edi], vtable.boost::io::too_many_args.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4570cd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b790
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4828ec
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48cae8
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045e3cf
mov dword [edi], vtable.boost::io::bad_format_string.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4577cd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.2.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b790
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4828ec
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48cae8
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045e3cf
mov dword [edi], vtable.boost::io::bad_format_string.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4579fd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.2.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b790
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45c3c0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
je 0x45c434
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x45c433
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c3e7
xor ecx, ecx
jmp 0x45c3f1
push eax
call esi
mov ecx, eax
mov eax, dword [0x49a298]
cmp byte [ecx + 0x38], 0
je 0x45c433
cmp eax, 0xffffffff
je 0x45c433
push eax
call esi
test eax, eax
je 0x45c433
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c411
xor eax, eax
jmp 0x45c414
push eax
call esi
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x45c433
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c436
xor eax, eax
jmp 0x45c439
pop esi
pop ecx
ret
push eax
call esi
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x491104
lea eax, [esp + 0xb]
push eax
mov byte [esp + 0xf], 0
call fcn.0046092b
int3

Function at 0x45c980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47cc18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a690]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c9b5
xor ebx, ebx
jmp 0x45c9be
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x45ca05
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x45ca47
test esi, esi
jne 0x45ca50
push 0x45b9b0
push 0x49f7d8
call fcn.0045b740
mov eax, dword [0x49a298]
add esp, 8
cmp eax, 0xffffffff
je 0x45ca05
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x45ca33
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45ca33
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x45ca8a
jmp 0x45ca50
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x45ca77
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
push 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x45ca50
cmp dword [ebx + 0x18], 0
je 0x45c9d4
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x45caad
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x45caad
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x14]
call fcn.0042bee0
cmp dword [ebx + 0x18], 0
jne 0x45ca94
jmp 0x45c9d4
Function at 0x45cad0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x45cb30
push 0
push 0
call fcn.0045f38d
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x45caf9
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x45cb1b
cmp eax, 0xffffffff
je 0x45cb1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x46f96a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49a690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00463a2f
mov dword [ebp - 0x14], eax
cmp dword [0x4a07d4], edi
jne 0x46fa5b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x46f9e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46fb3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x46fb3b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46fb3b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a07d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a07d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a07dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a07e4], eax
test eax, eax
je 0x46fa58
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a07e0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46fa80
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46fa73
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x46fa95
push 4
pop eax
jmp 0x46fb3d
cmp dword [ebp - 0x14], edi
je 0x46fa95
push dword [0x4a07d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46fa7a
mov eax, dword [0x4a07e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x46faf3
cmp dword [0x4a07e4], esi
je 0x46faf3
push eax
call ebx
push dword [0x4a07e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46faf3
test eax, eax
je 0x46faf3
call ecx
test eax, eax
je 0x46fae8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x46fae8
test byte [ebp - 8], 1
jne 0x46faf3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x46fb23
mov eax, dword [0x4a07d8]
cmp eax, esi
je 0x46fb20
push eax
call ebx
test eax, eax
je 0x46fb20
call eax
mov edi, eax
test edi, edi
je 0x46fb20
mov eax, dword [0x4a07dc]
cmp eax, esi
je 0x46fb20
push eax
call ebx
test eax, eax
je 0x46fb20
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a07d4]
call ebx
test eax, eax
je 0x46fb3b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x46fb3d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045db95
leave
ret
Function at 0x47853a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00467fc9
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x478572
xor eax, eax
jmp 0x47859e
cmp esi, dword [ebp - 4]
je 0x47859b
cmp dword [ebp + 0xc], 0
je 0x47859b
push dword [edi + 0x9c]
call fcn.00478148
push dword [edi + 0x9c]
mov esi, eax
call fcn.00463ce5
pop ecx
pop ecx
cmp esi, eax
je 0x47856e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401150
lea ebx, [ebx]
cmp esi, eax
jae 0x401154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x40115a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4018e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x40199c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea edi, [ebp + 0xc]
push edi
call ebx
push edi
mov byte [ebp + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x1c]
call fcn.00424a00
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x3a0], 1
mov ecx, dword [esi + 0x1c]
push 0
call fcn.004248f0
mov ecx, dword [esi + 0x1c]
call fcn.00424a10
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x1c]
cmp byte [ecx + 0x2c], 0
mov ebp, eax
je 0x40195c
nop
mov ecx, dword [esi + 0x1c]
call fcn.00424a10
call edi
sub eax, ebp
cmp eax, 0x1388
ja 0x40199f
mov edx, dword [esi + 0x1c]
cmp byte [edx + 0x2c], 0
jne 0x401940
mov edi, dword [esi + 0x1c]
lea ebp, [edi + 0xc]
push ebp
call ebx
push ebp
mov byte [edi + 0x31c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x2d], 1
mov ecx, dword [esi + 0x1c]
push 1
call fcn.004259c0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
mov dword [esi + 0x1c], 0
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x24]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401993
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
pop edi
pop ebx
mov dword [esi + 0x1c], 0
pop esi
pop ebp
ret
Function at 0x4018e1
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x40199c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea edi, [ebp + 0xc]
push edi
call ebx
push edi
mov byte [ebp + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x1c]
call fcn.00424a00
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x3a0], 1
mov ecx, dword [esi + 0x1c]
push 0
call fcn.004248f0
mov ecx, dword [esi + 0x1c]
call fcn.00424a10
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x1c]
cmp byte [ecx + 0x2c], 0
mov ebp, eax
je 0x40195c
nop
mov ecx, dword [esi + 0x1c]
call fcn.00424a10
call edi
sub eax, ebp
cmp eax, 0x1388
ja 0x40199f
mov edx, dword [esi + 0x1c]
cmp byte [edx + 0x2c], 0
jne 0x401940
mov edi, dword [esi + 0x1c]
lea ebp, [edi + 0xc]
push ebp
call ebx
push ebp
mov byte [edi + 0x31c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x2d], 1
mov ecx, dword [esi + 0x1c]
push 1
call fcn.004259c0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
mov dword [esi + 0x1c], 0
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x24]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401993
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
pop edi
pop ebx
mov dword [esi + 0x1c], 0
pop esi
pop ebp
ret
Function at 0x401a60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x401be9
mov eax, dword [eax + 0x24]
push ebx
push ebp
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401bd0
mov edi, dword [esi + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [edi + 0xc]
push ebp
call ebx
push ebp
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x20]
cmp byte [ecx + 0x2c], 0
jne 0x401ab0
call fcn.00424a00
mov ecx, dword [esi + 0x20]
push 0
call fcn.004248f0
mov edi, dword [esi + 0x20]
lea ebp, [edi + 0xc]
push ebp
call ebx
push ebp
mov byte [edi + 0x31c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x20]
mov byte [ecx + 0x2d], 1
mov edx, dword [esi + 0x20]
mov byte [edx + 0x33d], 1
mov ecx, dword [esi + 0x20]
call fcn.00434000
mov ecx, dword [esi + 0x20]
call fcn.00424a10
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov edi, eax
mov eax, dword [esi + 0x20]
cmp byte [eax + 0x2c], 0
mov dword [esp + 0x10], edi
je 0x401b4e
lea esp, [esp]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push ecx
call ebx
test eax, eax
je 0x401b54
mov ecx, dword [esi + 0x20]
call fcn.00424a10
call ebp
sub eax, edi
cmp eax, 0x4e20
ja 0x401b43
mov edx, dword [esi + 0x20]
cmp byte [edx + 0x2c], 0
jne 0x401b10
jmp 0x401b54
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x24]
push 0
push ecx
jmp 0x401bca
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x8023
push 0x8014
push 0
lea ecx, [esp + 0x24]
push ecx
call edi
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x24]
push 0
push edx
call ebx
test eax, eax
je 0x401bd0
mov edi, edi
mov ecx, dword [esi + 0x20]
cmp byte [ecx + 0x2c], 0
je 0x401b8e
call fcn.00424a10
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0x4e20
ja 0x401bc1
push 1
push 0x8023
push 0x8014
push 0
lea eax, [esp + 0x24]
push eax
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x24]
push 0
push ecx
call ebx
test eax, eax
jne 0x401b80
jmp 0x401bd0
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x401bdf
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
pop edi
pop ebp
mov dword [esi + 0x20], 0
pop ebx
pop esi
add esp, 0x20
ret