joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447990
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x22c
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0xffffffff
jne 0x4479c7
mov eax, dword [esi]
mov esi, dword [esi + 4]
push 0
push 0
push eax
push 0
push 0
push 0x12d
push esi
mov ecx, 0x4d8c88
call fcn.0045a8a0
pop esi
add esp, 0x22c
ret 4
push ebx
push ebp
push edi
mov edi, dword [esp + 0x240]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push edi
call dword [sym.imp.MSVCRT.dll__wstat]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 8
test eax, eax
jne 0x447a3b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x447a3b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea ecx, [esp + 0x3c]
push str._s._u
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea edx, [esp + 0x34]
push edx
push edi
call ebp
test eax, eax
jne 0x447a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push str._CDiskFile::RenameFile__file__s__already_exist
push 0x4d8db8
mov dword [esi], eax
call fcn.0045c870
add esp, 0xc
jmp 0x447a84
mov ecx, esi
call fcn.004482d0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x447a4e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push edi
push eax
call ebp
test eax, eax
jne 0x447a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDiskFile::RenameFile__MoveFile_fail__error_code_is__d
push 0x4d8db8
mov dword [esi], eax
call fcn.0045c870
add esp, 0xc
jmp 0x447a84
push 1
push edi
mov ecx, esi
call fcn.004481b0
cmp eax, 1
jne 0x447a84
mov ebx, eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
push 0
push 0
push 0
push eax
push ebx
push pe_nt_image_headers32
push esi
mov ecx, 0x4d8c88
call fcn.0045a8a0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x22c
ret 4

Function at 0x448070
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4480b0
call edi
test eax, eax
je 0x4480b0
call edi
push eax
mov dword [esi], eax
push str._CDiskFile::__write_disk__SetFilePointer_fail__error_code_is__d
jmp 0x4480ec
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4480e2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4480e2
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
call edi
push eax
mov dword [esi], eax
push str._CDiskFile::__write_disk__WriteFile_fail__error_code_is__d
push 0x4d8db8
call fcn.0045c870
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ecx
ret 0x10
Function at 0x448110
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x448150
call edi
test eax, eax
je 0x448150
call edi
push eax
mov dword [esi], eax
push str._CDiskFile::__read_disk__SetFilePointer_fail__error_code_is__d
jmp 0x44818c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448182
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x448182
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
call edi
push eax
mov dword [esi], eax
push str._CDiskFile::__read_disk__ReadFile_fail__error_code_is__d
push 0x4d8db8
call fcn.0045c870
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ecx
ret 0x10
Function at 0x450f20
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push eax
push 0x451bd0
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x450f54
pop esi
ret
mov eax, dword [esi + 8]
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 8], 0
test edi, edi
pop edi
pop esi
sete al
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
call esi
sub eax, dword [edi + 0x14]
cmp eax, 0x1f4
jbe 0x4514ab
call esi
mov dword [edi + 0x14], eax
mov ebx, dword [edi + 0xe8]
xor ebp, ebp
mov esi, dword [ebx]
cmp esi, ebx
je 0x45146e
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x451468
inc ebp
mov esi, dword [esi]
cmp esi, ebx
jne 0x45145b
mov eax, dword [edi + 0x10]
cmp eax, ebp
ja 0x45147c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [edi + 0xe8]
sub eax, ebp
mov ebp, eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x4514ab
test ebp, ebp
je 0x4514ab
mov edi, dword [esi + 8]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 8]
test eax, eax
je 0x4514a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
dec ebp
mov esi, dword [esi]
cmp esi, ebx
jne 0x45148c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x455820
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2fdb
push eax
mov eax, 0x1810
mov dword fs:[0], esp
call fcn.004a7630
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
call ebp
sub eax, dword [esi + 0x109c]
cmp eax, 0xea60
jbe 0x4559d6
push ebx
push edi
lea ecx, [esp + 0x14]
call fcn.0046ab80
xor ebx, ebx
push str.SOFTWARELiveUpdate360_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1830], ebx
call fcn.0046abc0
test eax, eax
je 0x4558b9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.proxytype
call fcn.0046ac10
test eax, eax
jne 0x4558c1
push 1
push str.proxytype
lea ecx, [esp + 0x1c]
call fcn.0046ade0
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x4558c5
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4558c5
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esi + 0x10a0], eax
jne 0x4559af
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x822]
mov word [esp + 0x820], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x820]
lea edx, [esp + 0x20]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], ebx
call fcn.00453500
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x78]
add esp, 0xc
cmp ecx, eax
jne 0x455970
mov eax, dword [esi + 0x1080]
cmp eax, ebx
jne 0x45593a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea edx, [esp + 0x20]
push eax
push edx
call edi
add esp, 8
test eax, eax
jne 0x455970
mov eax, dword [esi + 0x1090]
cmp eax, ebx
jne 0x45595e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [esp + 0x824]
push eax
call edi
add esp, 8
test eax, eax
je 0x4559af
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1022]
mov word [esp + 0x1020], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1020]
push ecx
push str.ieproxy
lea ecx, [esp + 0x1c]
stosw word es:[edi], ax
call fcn.0046acd0
lea edx, [esp + 0x1020]
mov ecx, esi
push edx
call fcn.004559f0
lea ecx, [esp + 0x14]
call fcn.0046abf0
call ebp
lea ecx, [esp + 0x14]
mov dword [esi + 0x109c], eax
mov dword [esp + 0x1828], 0xffffffff
call fcn.0046abb0
pop edi
pop ebx
mov ecx, dword [esp + 0x1818]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x181c
ret
Function at 0x456790
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov ebp, ecx
push edi
push ebx
lea esi, [ebp + 0x44]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x4567ba
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esi + 4]
xor edx, edx
cmp ecx, edx
je 0x4567e2
mov al, byte [ecx - 1]
test al, al
je 0x4567e2
cmp al, 0xff
je 0x4567e2
cmp edi, edx
jne 0x456808
dec al
mov byte [ecx - 1], al
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
jmp 0x45683b
cmp edi, edx
jne 0x4567f2
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x45683b
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x4567fe
cmp eax, edi
jae 0x456811
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Copy_unsigned_int_]
mov eax, dword [esi + 4]
mov ecx, ebx
test edi, edi
jbe 0x45682f
mov edx, edi
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x45681c
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov word [eax + edi*2], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x456853
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp + 0x10], 0
push 0x4cd228
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, eax
test esi, esi
je 0x456900
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebx
call edi
push 0x4cd228
mov ebx, eax
call edi
add esp, 8
cmp ebx, eax
jbe 0x456900
push 0x4cd228
call edi
lea ecx, [esp + 0x14]
lea esi, [esi + eax*2]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0xc
test eax, eax
jne 0x456900
mov edx, dword [esp + 0x24]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
je 0x456900
push 0x4c8ccc
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x456900
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
push esi
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
push esi
mov byte [edx + eax], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4
Function at 0x456910
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x456920
xor eax, eax
pop ebx
ret 8
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
lea esi, [ebx + 0x44]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x456944
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45696a
mov al, byte [ecx - 1]
test al, al
je 0x45696a
cmp al, 0xff
je 0x45696a
test edi, edi
jne 0x456990
dec al
push edi
mov byte [ecx - 1], al
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x4569b3
test edi, edi
jne 0x45697a
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x4569b3
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x456986
cmp eax, edi
jae 0x456999
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Copy_unsigned_int_]
mov eax, dword [esi + 4]
push edi
push ebp
push eax
call fcn.00412590
mov ecx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [ecx + edi*2], 0
push 0x1008
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x456a07
lea edx, [esi + 4]
push ebp
mov dword [esi], 0
mov dword [esi + 0x1004], 0
push edx
mov dword [esi], ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x20]
push 0
push 0
push esi
push 0x4550c0
push 0
push 0
mov dword [esi + 0x1004], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x20
mov dword [ebx + 0x64], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4575c0
Capabilities:
Get networking parameters

Disassembly:
mov eax, 0x1000
call fcn.004a7630
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push ebp
push esi
push edi
push 0x248
call ebx
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x248
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
xor ecx, ecx
mov ebp, dword [sym.imp.MSVCRT.dll_free]
cmp eax, 0x6f
sete cl
mov edi, ecx
test edi, edi
je 0x45762b
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x457627
lea eax, [esp + 0x10]
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
mov edi, eax
test edi, edi
jne 0x45769c
mov al, byte [esi + 0x84]
lea edx, [esi + 0x84]
test al, al
je 0x45769c
mov ecx, 0x3fe
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x7fe
push ecx
push edx
stosw word es:[edi], ax
call fcn.0045c400
mov eax, dword [esp + 0x1024]
mov ecx, dword [esp + 0x1020]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push str.http:__wpad._s_wpad.dat
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
call ebp
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 8
test esi, esi
je 0x4576a6
push esi
call ebp
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1000
ret 8

Function at 0x4585c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x458603
mov eax, dword [esi]
jmp 0x458605
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x458626
push 0x4ccf08
push edi
push eax
call fcn.0043a758
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x458686
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x458686
mov eax, dword [esi]
test eax, eax
je 0x45866d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x45867d
push eax
call fcn.0043b3d0
add esp, 4
push esi
call fcn.0043b3d0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4592a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.004595f0
push 0
push 0
push 0
push 0
push 0x4000
lea ecx, [esi + 0x28]
call fcn.0045b5d0
cmp eax, 1
je 0x4592c6
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], 1
call edi
mov dword [esi + 0xc], eax
call edi
push 0
push 0
push esi
push 0x458cc0
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
cmp ecx, eax
mov dword [esi], eax
sbb eax, eax
pop edi
neg eax
pop esi
ret

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

Disassembly:
sub esp, 0x260
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4595c6
mov esi, dword [ebx + 0x8c]
mov eax, dword [esp + 0x26c]
inc esi
mov dword [ebx + 0x8c], esi
mov ecx, dword [eax]
cmp ecx, 0xd
jae 0x45949e
push eax
mov ecx, ebx
call fcn.0045ad30
jmp 0x4594c4
cmp ecx, 0x6b
jae 0x4594ad
push eax
mov ecx, ebx
call fcn.0045b020
jmp 0x4594c4
cmp ecx, 0xd9
push eax
mov ecx, ebx
jae 0x4594bf
call fcn.0045b1f0
jmp 0x4594c4
call fcn.0045b4d0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x10]
cmp eax, 0x64
jbe 0x4595c6
push ebp
push edi
call esi
mov dword [ebx + 0x10], eax
call esi
mov ecx, dword [ebx + 0xc]
add ecx, 0x3e8
cmp ecx, eax
sbb edi, edi
neg edi
mov dword [esp + 0x18], edi
je 0x4594fc
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 0x1c]
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov esi, dword [eax]
cmp esi, eax
je 0x4595a1
jmp 0x459515
mov edi, dword [esp + 0x18]
mov ebx, dword [esi + 0x10]
push edi
mov ecx, ebx
call fcn.00473f60
mov ecx, 0x95
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.004730c0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
lea edx, [eax + ecx]
mov ecx, dword [0x4d8d30]
shr eax, 0xa
shr edx, 0xa
add edi, eax
mov eax, dword [esi + 8]
add ebp, edx
cmp eax, ecx
mov dword [esp + 0x10], edi
je 0x459575
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x45958e
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x45956b
jmp 0x45958e
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x459587
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x45957d
cmp dword [esi + 8], eax
je 0x45958e
mov esi, eax
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x1c]
jne 0x459511
mov edi, dword [esp + 0x18]
mov ebx, eax
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call fcn.00461930
add esp, 8
test edi, edi
pop edi
pop ebp
je 0x4595c6
mov ecx, ebx
call fcn.00459ff0
mov ecx, 0x4d7bc8
call fcn.00455820
pop esi
pop ebx
add esp, 0x260
ret 4
Function at 0x45cf50
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [ebp + 4]
mov dword [esp + 0x20], edi
call fcn.0045f6c0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x45d0e1
mov eax, dword [eax + 0x10]
xor esi, esi
cmp eax, esi
je 0x45d0e1
cmp dword [eax + 0x44], esi
je 0x45d0e1
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x45d0e1
mov dl, byte [esp + 0x18]
push edi
mov ecx, ebp
mov byte [ebx], dl
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
call fcn.0045de50
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x45d001
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x45d05c
push 0
push 0
push 0
push 0
push 0x4000
lea ecx, [ebp + 0x14]
call fcn.0045f1f0
cmp eax, 1
jne 0x45d0e1
push 0
push 0
push 0
push 0
mov dword [ebp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push ebp
push 0x45d0f0
push 0
push 0
mov dword [ebp + 0x78], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp + 0x74], eax
test eax, eax
je 0x45d0e1
push 0xffffffffffffffff
lea edx, [ebp + 0x48]
push 1
push edx
push 3
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 3
jae 0x45d0e1
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x45d087
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push 1
call dword [eax]
mov eax, dword [ebp + 0x6c]
test eax, eax
jne 0x45d0b6
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 0x44]
mov edi, dword [ebp + 0x3c]
inc ecx
mov eax, ecx
sub eax, edi
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x45d0c9
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push 1
call dword [eax + 4]
mov eax, dword [ebp + 0x20]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4