joyce8/EMBER2024-capa huggingface dataset:
Function at 0x667c2fc0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], esi
mov esi, dword [ecx]
mov dword [ebp - 0xc], ebx
mov ebx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
lock xadd dword [esi + 4], ebx
dec ebx
test byte [0x667cc034], 8
jne 0x667c3010
test ebx, ebx
je 0x667c3043
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov ecx, str._p__refcount__lu._n
mov eax, 0x667cc034
mov dword [esp + 0x14], ebx
mov edi, str.filestream_Release
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x667c2ff6
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1c], edx
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
jmp 0x667c2ff6
Function at 0x667c30a0
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
test byte [0x667cc034], 8
mov dword [ebp - 0xc], ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 8], esi
mov ebx, dword [ecx + 8]
mov dword [ebp - 4], edi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx]
mov dword [ebp - 0x1c], 0
jne 0x667c3178
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x667c3130
test esi, esi
mov eax, dword [ebp - 0x1c]
je 0x667c310c
mov dword [esi], eax
cmp ebx, eax
setne bl
movzx ebx, bl
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
test byte [0x667cc034], 4
mov ebx, 1
je 0x667c3114
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.filestream_Read
mov ecx, 0x667cc034
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.error__ld_reading_file_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x667c3114
mov dword [esp + 0x14], edx
mov eax, str._p___p___lu___p._n
mov dword [esp + 0xc], eax
mov eax, str.filestream_Read
mov dword [esp + 8], eax
mov eax, 0x667cc034
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x667c30db
Function at 0x667c31c0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
test byte [0x667cc034], 8
mov dword [ebp - 0xc], ebx
mov edx, dword [ecx + 8]
mov dword [ebp - 8], esi
mov ebx, dword [ecx]
mov dword [ebp - 4], edi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], 0
jne 0x667c3250
mov eax, dword [ebx + 0xc]
and eax, 0xf
dec eax
cmp eax, 1
ja 0x667c32b8
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x667c3298
test esi, esi
je 0x667c32b0
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x18], edx
mov ecx, str.filestream_Write
mov eax, 0x667cc034
mov dword [ebp - 0x2c], edx
mov edx, str._p___p___lu___p._n
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x667c31f7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
test eax, eax
jle 0x667c323a
movzx eax, ax
or eax, 0x80070000
jmp 0x667c323a
xor eax, eax
jmp 0x667c323a
mov eax, 0x80030005
jmp 0x667c323a

Function at 0x667c34d0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], esi
mov esi, dword [ecx]
mov dword [ebp - 8], ebx
mov ebx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 4]
lock xadd dword [eax], ebx
dec ebx
test byte [0x667cc034], 8
jne 0x667c3520
test ebx, ebx
je 0x667c3553
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x14], ebx
mov eax, str.threadref_Release
mov ecx, str._p__refcount__ld._n
mov dword [esp + 8], eax
mov eax, 0x667cc034
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x667c3505
mov dword [esp + 8], esi
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x667c3505
Function at 0x667c3580
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], esi
mov esi, dword [ecx]
mov dword [ebp - 0xc], ebx
mov ebx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
lock xadd dword [esi + 4], ebx
dec ebx
test byte [0x667cc034], 8
jne 0x667c35d0
test ebx, ebx
je 0x667c3603
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov ecx, str._p__refcount__lu._n
mov eax, 0x667cc034
mov dword [esp + 0x14], ebx
mov edi, str.memstream_Release
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x667c35b6
mov eax, dword [esi + 8]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1c], edx
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
jmp 0x667c35b6
Function at 0x667c3760
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ebx + 0x10]
test byte [0x667cc034], 8
mov dword [ebp - 0x1c], eax
lea edx, [ecx + edi]
jne 0x667c3838
cmp edx, ecx
jb 0x667c3890
cmp dword [ebx + 0xc], edx
mov eax, dword [ebx + 8]
jb 0x667c37f0
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x1c]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll_memmove]
add dword [ebx + 0x10], edi
test esi, esi
je 0x667c3880
mov dword [esi], edi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], eax
mov eax, 8
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x667c3890
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xc], edx
jmp 0x667c37ad
mov dword [ebp - 0x20], edx
mov ecx, str.memstream_Write
mov edx, str._p___p___lu___p._n
mov dword [esp + 0x14], eax
mov eax, 0x667cc034
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x20]
jmp 0x667c379d
xor eax, eax
jmp 0x667c37d2
mov eax, 0x80030008
jmp 0x667c37d2
Function at 0x667c4070
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x667cc034], 8
mov dword [ebp - 8], ebx
mov eax, dword [ecx + 8]
mov dword [ebp - 4], esi
mov ebx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov esi, dword [ecx + 4]
jne 0x667c40e8
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 8]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov edx, 8
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x667c4146
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], esi
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
test eax, eax
jne 0x667c4130
mov dword [esp + 4], esi
mov dword [esp], 0x667ce085
call sym._wine_dbg_sprintf
mov dword [esp + 0x14], eax
mov eax, str.memstream_SetSize
mov ecx, str.__p___s__n
mov dword [esp + 8], eax
mov eax, 0x667cc034
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c409a
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._lx_08lx
call sym._wine_dbg_sprintf
jmp 0x667c40fc
mov eax, 0x80030008
jmp 0x667c40d2
Function at 0x667c43f0
Capabilities:
Clear file content

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], ebx
mov eax, dword [ecx + 4]
test byte [0x667cc034], 8
mov dword [ebp - 4], edi
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx]
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], eax
jne 0x667c44f0
mov eax, 1
mov esi, dword [sym.imp.kernel32.dll_SetFilePointerEx]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x667c44e0
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x667c44e0
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x667c44a0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x667c44e0
mov ecx, dword [ebp - 0x20]
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov eax, dword [edi + 8]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x667c4486
lea esi, [esi]
mov eax, 0x80004005
jmp 0x667c4488
test ebx, ebx
jne 0x667c4540
mov dword [esp + 4], eax
mov dword [esp], 0x667ce085
call sym._wine_dbg_sprintf
mov edx, str.__p___s__n
mov ecx, str.filestream_SetSize
mov dword [esp + 0x14], eax
mov esi, 0x667cc034
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c4424
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str._lx_08lx
call sym._wine_dbg_sprintf
jmp 0x667c4504
Function at 0x667c4d00
Capabilities:
Allocate thread local storage

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x667cc034], 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 8]
mov dword [ebp - 4], edi
mov edi, dword [ecx]
mov dword [ebp - 0x10], ecx
jne 0x667c4d88
test ebx, ebx
je 0x667c4d68
dec ebx
jne 0x667c4d4b
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DisableThreadLibraryCalls]
sub esp, 4
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x667d2004], eax
mov ecx, dword [ebp - 0x10]
mov eax, 1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
test esi, esi
jne 0x667c4d4b
mov eax, dword [0x667d2004]
cmp eax, 0xffffffff
je 0x667c4d4b
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsFree]
sub esp, 4
jmp 0x667c4d4b
mov edx, str.DllMain
mov ecx, 0x667cc034
mov dword [esp + 0x18], esi
mov eax, str._p___lu___p._n
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c4d2d
Function at 0x667c6370
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 4]
test byte [0x667cc034], 8
mov edi, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
jne 0x667c6488
test edi, edi
je 0x667c64cd
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0xc], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x28], ecx
call ecx
mov edx, dword fs:[0x18]
mov dword [ebp - 0x24], edx
sub esp, 0x18
mov esi, eax
lea eax, [eax + eax]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x667c64d4
mov dword [esp + 0x10], eax
xor edx, edx
mov eax, 0xffffffff
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.shcore.dll_SHCreateStreamOnFileW
mov edx, dword [ebp - 0x24]
xor ecx, ecx
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, edi
call sym._wine_dbgstr_an.constprop.0
mov edx, dword [ebp - 0x20]
mov dword [esp], 3
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 0x18], edx
mov edx, 0x667cc034
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, str._s___lx___p._n
mov dword [esp + 0xc], eax
mov eax, 0x667cea8c
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sym._wine_dbg_log.constprop.0
jmp 0x667c639f
mov esi, 0x80070003
jmp 0x667c6474
mov esi, 0x8007000e
jmp 0x667c6474
Function at 0x667c64e0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x667cc034], 8
mov dword [ebp - 8], ebx
mov ebx, dword [ecx]
mov dword [ebp - 4], esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0xc], ecx
jne 0x667c6580
test ebx, ebx
je 0x667c65f0
test esi, esi
je 0x667c65f0
mov dword [esi], 0
xor ecx, ecx
mov edx, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x667c65fa
mov dword [ebx], 1
mov dword [esi], eax
mov dword [eax + 4], ebx
xor ebx, ebx
test byte [0x667cc034], 8
mov dword [eax], sym._threadref_QueryInterface_12
jne 0x667c65b8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov eax, str.__p___p__n
mov dword [esp + 0xc], eax
mov eax, str.SHCreateThreadRef
mov dword [esp + 8], eax
mov eax, 0x667cc034
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c6507
mov dword [esp + 0x10], eax
mov edx, str.SHCreateThreadRef
mov ecx, 0x667cc034
mov dword [esp + 8], edx
mov eax, str.Created__p._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c6568
mov ebx, 0x80070057
jmp 0x667c6568
mov ebx, 0x8007000e
jmp 0x667c6568

Function at 0x667c6610
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
test byte [0x667cc034], 8
mov ebx, dword [ecx]
jne 0x667c6668
mov eax, dword [0x667d2004]
cmp eax, 0xffffffff
je 0x667c6698
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebx], eax
sub esp, 4
test eax, eax
je 0x667c6698
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, str.SHGetThreadRef
mov ecx, 0x667cc034
mov dword [esp + 0x10], ebx
mov eax, str.__p__n
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c662d
mov eax, 0x80004002
jmp 0x667c6656
Function at 0x667c66a0
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x28
test byte [0x667cc034], 8
mov dword [ebp - 4], ebx
mov ebx, dword [ecx]
mov dword [ebp - 8], ecx
jne 0x667c66f0
mov eax, dword [0x667d2004]
cmp eax, 0xffffffff
je 0x667c6720
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
sub esp, 8
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, str.SHSetThreadRef
mov ecx, 0x667cc034
mov dword [esp + 0x10], ebx
mov eax, str.__p__n
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c66c1
mov eax, 0x80004002
jmp 0x667c66dd
Function at 0x667c6870
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
test byte [0x667cc034], 8
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
jne 0x667c69d0
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebp - 0x24], eax
sub esp, 0x10
test bl, 2
jne 0x667c6a30
mov dword [ebp - 0x20], 0
test bl, 4
jne 0x667c6a18
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x667c6987
lea eax, [ebp - 0x38]
xor ecx, ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x34]
mov edi, sym._shcore_thread_wrapper_4
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov edi, eax
je 0x667c6978
mov eax, dword [ebp - 0x24]
mov edx, 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 8
mov dword [esp], edi
call ebx
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, 1
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x667c6a48
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x667c69a4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x667c6a70
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x10], edx
mov ecx, str.SHCreateThread
mov eax, 0x667cc034
mov dword [ebp - 0x3c], edx
mov edx, str._p___p___lx___p._n
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x3c]
jmp 0x667c689c
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym.shcore.dll_GetProcessReference
sub esp, 4
jmp 0x667c68ed
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym.shcore.dll_SHGetThreadRef
sub esp, 4
jmp 0x667c68dd
test bl, 1
je 0x667c6992
mov dword [esp], esi
call dword [ebp - 0x34]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10