joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3f00ec00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
call sym.tier0_s.dll_Plat_IsInDebugSession
test al, al
jne 0x3f00ede9
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ebx, byte [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, 1
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x68], 0x44
jmp 0x3f00ecb0
push eax
lea eax, [ebp - 0xe8]
cmp esi, ebx
jne 0x3f00ed35
push str.visualstudioautomation.exe__attachtoprocessid__u
push 0x80
push eax
call fcn.3f001b50
add esp, 0x10
mov byte [ebp - 0x69], 0
xor eax, eax
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xe8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x3f00ed8c
push 0x7530
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call edi
call sym.tier0_s.dll_Plat_IsInDebugSession
test al, al
jne 0x3f00edb0
jmp 0x3f00ed8c
push str.vsjitdebugger.exe__p__u
push 0x80
push eax
call fcn.3f001b50
add esp, 0x10
mov byte [ebp - 0x69], 0
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 8
push 1
push 0
push 0
lea eax, [ebp - 0xe8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x3f00ed9b
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x3f00ecb0
jmp 0x3f00edb0
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x24]
call edi
cmp byte [ebp + 8], 0
je 0x3f00ede6
mov esi, 0x12c
call sym.tier0_s.dll_Plat_IsInDebugSession
test al, al
jne 0x3f00ede5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0xc8
call edi
sub esi, 1
js 0x3f00ede6
call sym.tier0_s.dll_Plat_IsInDebugSession
test al, al
je 0x3f00edd0
int3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3f00f120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x3f090058], 0
jne 0x3f00f24c
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x3f00f24b
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
push edi
lea edi, [ecx*4 + 8]
test ecx, ecx
jle 0x3f00f19c
jmp 0x3f00f170
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + esi*4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov ecx, 1
cmovg ecx, eax
inc esi
add edi, ecx
cmp esi, dword [ebp - 4]
jl 0x3f00f170
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
mov dword [eax], ecx
add eax, 4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea esi, [ecx + 1]
lea esi, [eax + esi*4]
test ecx, ecx
jle 0x3f00f229
mov edx, ebx
mov dword [ebp - 0xc], eax
sub edx, eax
lea ecx, [eax + edi]
mov dword [ebp - 0x14], edx
mov ebx, eax
lea esp, [esp]
cmp esi, ecx
jae 0x3f00f226
push 0
push 0
sub eax, esi
add eax, edi
push eax
push esi
push 0xffffffffffffffff
push dword [edx + ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 8]
test eax, eax
mov ecx, 1
mov dword [ebx], esi
cmovg ecx, eax
mov eax, dword [ebp - 0x10]
inc edx
add esi, ecx
add ebx, 4
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edi]
jl 0x3f00f1e0
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
mov edx, dword [ebp - 0x1c]
mov edi, 0x3f090058
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x3f00f249
push edx
call esi
pop edi
pop esi
pop ebx
mov eax, dword [0x3f090058]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [0x3f090058]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x3f00f450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.3f01aa60
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0x1000
push eax
call fcn.3f001b40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.3f01ffb4
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jg 0x3f00f4b0
push str.len___0
push 0x2be
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0platform.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f00f4b0
int3
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x3f00f610
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov ecx, dword [0x3f0924ac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x3f0902b8]
cmp eax, dword [ecx + 0x408]
jg 0x3f00f662
mov eax, dword [0x3f0902b4]
test eax, eax
je 0x3f00f644
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
cmp al, 1
je 0x3f00f660
push str.bRtlGenRandomOK
push 0x8000035b
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0platform.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f00f660
int3
pop ebp
ret
push 0x3f0902b8
call fcn.3f01a5dc
add esp, 4
cmp dword [0x3f0902b8], 0xffffffff
jne 0x3f00f62f
push str.SystemFunction036
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3f0902b8
mov dword [0x3f0902b4], eax
call fcn.3f01a592
add esp, 4
jmp 0x3f00f62f
Function at 0x3f010810
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi], 0
mov byte [esi + 4], 1
test edi, edi
je 0x3f01086a
mov al, byte [edi]
cmp al, 0x2f
je 0x3f01086a
movzx eax, al
push eax
call fcn.3f02770b
add esp, 4
test eax, eax
je 0x3f01084e
cmp byte [edi + 1], 0x3a
jne 0x3f01084e
cmp byte [edi + 2], 0x2f
je 0x3f01086a
push str.pszName__NULL__pszName______isalpha__unsigned_char__pszName___pszName_1___:__pszName_2_____
push 0xada
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f01086a
int3
cmp byte [ebp + 0x10], 0
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
je 0x3f0108a3
lea eax, [ebp - 0x20]
push 1
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov byte [esi + 8], 0
test edi, edi
je 0x3f0108b1
cmp byte [edi], 0x2f
jne 0x3f0108b1
inc edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, byte [ebp + 8]
push edi
movzx eax, bl
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x3f0108f6
call edi
push eax
push str.Failed_to_create_mutex__error_0x_x_
push 0xaf4
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_0_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0x10
test al, al
jne 0x3f0108f6
int3
cmp dword [esi], 0
je 0x3f01094f
call edi
cmp eax, 0xb7
je 0x3f010913
pop edi
mov byte [esi + 8], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test bl, bl
je 0x3f01094f
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x3f01094f
push str.Failed_to_acquire_mutex_ownership
push 0xb02
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f010941
int3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x3f010960
Capabilities:
Allocate thread local storage

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x3f01098c
push str.Out_of_thread_local_storage__n
push 0xb81
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f01098c
int3
mov eax, esi
pop esi
ret
Function at 0x3f010b40
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], vtable.CThread.0
je 0x3f010c2d
cmp dword [esi + 0xc], 0xffffffff
push ebx
push edi
mov edi, 0x32
sete bl
test bl, bl
je 0x3f010bbe
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xc], 0xffffffff
sete bl
sub edi, 1
jne 0x3f010b61
test bl, bl
je 0x3f010bbe
cmp byte [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x3f010ba1
push dword [esi + 8]
push dword [esi + 4]
push esi
push str.Thread_0x_p_0x_p_0x_x_
push 0x1f
push edi
call fcn.3f001b50
add esp, 0x18
mov byte [esi + 0x2f], 0
push edi
push str.Illegal_termination_of_worker_thread__s
push 0xe7e
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_0_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0x10
test al, al
jne 0x3f010bbe
int3
mov eax, dword [0x3f090308]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x3f010bf6
push eax
call edi
cmp eax, esi
jne 0x3f010bf1
push str.Deleting_thread_object_from_the_thread__this_is_bad
push 0xe7f
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f010bf1
int3
mov eax, dword [0x3f090308]
test bl, bl
je 0x3f010c0f
cmp eax, 0xffffffff
je 0x3f010c06
push eax
call edi
cmp eax, esi
je 0x3f010c0f
push 0xffffffffffffffff
mov ecx, esi
call sym.tier0_s.dll_public:_bool___thiscall_CThread::Join_unsigned_int_
mov eax, dword [esi + 4]
pop edi
pop ebx
test eax, eax
je 0x3f010c26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret

Function at 0x3f010ca0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x3f010cc8
push str.Only_NULL_allowed_on_integer_assign
push 0x25c
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier0_threadtools.h
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f010cc8
int3
mov eax, dword [esi]
pop esi
cmp eax, 0xffffffff
je 0x3f010cdf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop ebp
ret 4
cmp byte [0x3f09030d], 0
jne 0x3f010d0b
push str.Bad_thread_local:_Set_n
push 0xbcd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x3f09030d], 1
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f010d0b
int3
xor eax, eax
pop ebp
ret 4
Function at 0x3f010ed0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [esi], 0
mov byte [esi + 4], 1
mov byte [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0x3f010f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_mutex__error_0x_x_
push 0xaf4
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_0_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0x10
test al, al
jne 0x3f010f3b
int3
cmp dword [esi], 0
je 0x3f010f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x3f010f51
mov byte [esi + 8], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x3f011220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
lea esi, [ebp - 4]
push 0xc
cmovne esi, eax
call fcn.3f01a46b
add esp, 4
test eax, eax
je 0x3f01124e
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
jmp 0x3f011250
xor eax, eax
push esi
push 0
push eax
push 0x3f011e60
push dword [ebp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x3f011280
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x3f01128f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
cmp byte [0x3f09030c], 0
jne 0x3f0112bb
push str.Bad_thread_local:_Get_n
push 0xbb6
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x3f09030c], 1
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f0112bb
int3
xor eax, eax
ret
Function at 0x3f011370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x3f011416
mov eax, dword [0x3f090308]
cmp eax, 0xffffffff
je 0x3f011393
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x3f011395
xor eax, eax
cmp eax, esi
jne 0x3f0113b5
push str.Thread_cannot_be_joined_with_self
push 0xf6e
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f0113b5
int3
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x3f0113f7
test eax, eax
je 0x3f0113fe
cmp eax, 0xffffffff
je 0x3f0113fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x3f0113fe
push 0x3f0367d4
push 0xf77
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f0113f7
int3
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
push eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x3f011680
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x3f0116d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x3f0116e8
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 4
cmp byte [0x3f09030d], 0
jne 0x3f011714
push str.Bad_thread_local:_Set_n
push 0xbcd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x3f09030d], 1
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011714
int3
pop ebp
ret 4
Function at 0x3f011a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x3f011aec
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x3f011aec
cmp dword [ebp - 4], 0x103
jne 0x3f011aec
mov eax, dword [0x3f090308]
cmp eax, 0xffffffff
je 0x3f011aca
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x3f011acc
xor eax, eax
cmp eax, edi
je 0x3f011af4
push str.Only_thread_can_stop_self:_Use_a_higher_level_protocol
push 0xfc2
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011aec
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call dword [eax + 0xc]
push 0
mov ecx, 0x3f090308
call fcn.3f010ca0
push 0x3f04092c
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
call fcn.3f01c3d7
int3

Function at 0x3f011b20
Capabilities:
Suspend thread

Disassembly:
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x3f011b30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
jne 0x3f011b5b
push dword [esi + 8]
push dword [esi + 4]
push esi
push str.Thread_0x_p_0x_p_0x_x_
push 0x1f
push edi
call fcn.3f001b50
add esp, 0x18
mov byte [esi + 0x2f], 0
push edi
push str.WARNING__CThread::Terminate:__s_n
call sym.tier0_s.dll_Msg
add esp, 8
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x3f011b81
pop edi
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
push eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 8], 0
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x3f011ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test edi, edi
je 0x3f011f62
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x3f011f36
sub esi, ecx
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
inc esi
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
lea eax, [esi + esi]
push eax
call edx
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov dword [ebp - 0x30], eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x3f011f9c
mov esi, edi
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x3f011f70
sub esi, ecx
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
inc esi
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
lea eax, [esi + esi]
push eax
call edx
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov dword [ebp - 0x2c], eax
call ebx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x3f011fd4
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x3f011fa8
sub esi, ecx
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
inc esi
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
lea eax, [esi + esi]
push eax
call edx
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov dword [ebp - 0x28], eax
call ebx
xor eax, eax
mov dword [ebp - 0x20], 0
cmp byte [ebp + 0x18], al
mov ecx, 0xa
mov dword [ebp - 8], 0
cmovne eax, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x3f01201d
mov eax, dword [ebp - 8]
test eax, eax
je 0x3f01201d
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x30]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [sym.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x3f012730
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x3f012751
or eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
or esi, 0xffffffff
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x3f0127a1
push ebx
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp esi, dword [ebp + 8]
jge 0x3f01278e
mov eax, dword [ebp - 0x120]
mov dword [ebx + esi*8], eax
mov eax, dword [ebp - 0x110]
mov dword [ebx + esi*8 + 4], eax
lea eax, [ebp - 0x128]
inc esi
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x3f012776
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x3f012c60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne al
pop ebp
ret

Function at 0x3f012c80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor bl, bl
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x3f012cb0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x3f013530
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x418]
call fcn.3f013480
push dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov esi, dword [eax]
call fcn.3f013480
push dword [ebp + 0x10]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea ecx, [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
cmp eax, ecx
je 0x3f01357f
push eax
call fcn.3f01aa94
add esp, 4
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
cmp eax, ecx
je 0x3f013598
push eax
call fcn.3f01aa94
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x3f0135a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x20c]
call fcn.3f013480
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea ecx, [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
cmp eax, ecx
je 0x3f0135de
push eax
call fcn.3f01aa94
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret