joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476a10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x590b41
push eax
mov dword fs:[0], esp
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6abc38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x65faa4]
cmp eax, dword [ecx + 4]
jg 0x476a83
mov eax, dword [0x65faa0]
test eax, eax
je 0x476a59
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
cmp al, 1
je 0x476a75
push str.bRtlGenRandomOK
push 0x8000035b
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0platform.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x476a75
int3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x65faa4
call fcn.0056b7dd
add esp, 4
cmp dword [0x65faa4], 0xffffffff
jne 0x476a44
mov dword [ebp - 4], 0
push str.SystemFunction036
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x65faa0], eax
mov dword [ebp - 4], 0xffffffff
push 0x65faa4
call fcn.0056b793
add esp, 4
jmp 0x476a44

Function at 0x476df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004771c0
Function at 0x47a440
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590fad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004798f0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x47a4c8
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x9249249
je 0x47a5f6
lea eax, [edi + 4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x1c
mov dword [ebp - 0x1c], 0
call fcn.0056b385
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
fld dword [edi]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
lea edx, [ecx + 1]
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
test edx, edx
jns 0x47a53d
fadd dword [0x5b32f8]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov eax, dword [edi + 0x1c]
fild dword [edi + 0x1c]
test eax, eax
jns 0x47a553
fadd dword [0x5b32f8]
fstp dword [ebp - 0x10]
fdiv dword [ebp - 0x10]
fcompi st(1)
fstp st(0)
ja 0x47a564
mov edx, dword [ebp - 0x28]
jmp 0x47a58b
push edx
mov ecx, edi
call fcn.0047f1e0
push eax
mov ecx, edi
call fcn.0047f270
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004798f0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x18]
jne 0x47a5c0
mov dword [ecx + eax*8], esi
jmp 0x47a5cf
cmp edi, edx
jne 0x47a5c9
mov dword [ecx + eax*8], esi
jmp 0x47a5d3
cmp dword [ecx + eax*8 + 4], ebx
jne 0x47a5d3
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0056b2e8
int3
Function at 0x47e0a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov edi, 0x661f90
cmp edx, dword [0x661f90]
je 0x47e0d4
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x47e0d4
pause
push edx
mov ecx, edi
call fcn.004813c0
jmp 0x47e0db
lock inc dword [0x661f94]
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x661f70
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004798f0
mov eax, dword [eax + 4]
test eax, eax
je 0x47e1c2
push esi
mov esi, dword [0x661f74]
cmp eax, esi
je 0x47e1c1
movzx ecx, byte [eax + 8]
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
movzx ecx, byte [eax + 9]
xor edx, ecx
movzx ecx, byte [eax + 0xa]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [0x661f88]
and edx, ecx
mov ecx, dword [0x661f7c]
lea edx, [ecx + edx*8]
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x47e19b
cmp ecx, eax
jne 0x47e193
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x47e1a3
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
jmp 0x47e1a3
cmp ecx, eax
jne 0x47e1a3
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
dec dword [0x661f78]
mov ecx, dword [eax + 4]
push 0x1c
push eax
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.0056b3b5
add esp, 8
pop esi
lock dec dword [0x661f94]
cmp dword [0x661f94], 0
jne 0x47e1d6
xor eax, eax
xchg dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x47e7c0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x592c], esi
call fcn.004777a0
test al, al
je 0x47e7dd
int3
push 0
push esi
push str._OUT_OF_MEMORY__attempted_allocation_size:__llu__n
lea eax, [ebp - 0x100]
push 0x100
push eax
call fcn.00463fa0
add esp, 0x14
mov byte [ebp - 1], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004777a0
pop esi
test al, al
jne 0x47e841
lea eax, [ebp - 0x100]
push eax
push 0x80000bd2
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0memstd.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x47e832
int3
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esp, ebp
pop ebp
ret 4
Function at 0x47f270
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59145d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x14], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x47f3ff
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0047f060
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x47f3bc
mov edi, edi
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x47f341
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x47f3af
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x47f378
mov eax, dword [eax]
cmp eax, ecx
je 0x47f370
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x47f3af
cmp ebx, eax
je 0x47f38c
lea esp, [esp]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x47f3dd
cmp ebx, eax
jne 0x47f380
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0x14]
mov ecx, edx
cmp edx, esi
jne 0x47f2f0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x47f3af
push str.invalid_hash_bucket_count
call fcn.0056b2e8
int3
Function at 0x47f670
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5914ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp edx, esi
je 0x47f81d
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 4]
push edi
mov edi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
lea ebx, [ebx]
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x1c
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.0056b3b5
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x47f75e
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x47f720
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x47f80d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x47f80d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x47f770
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x47f773
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x47f80d
mov edi, edi
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x1c
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.0056b3b5
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x47f7f1
cmp edi, esi
je 0x47f808
mov eax, dword [ebp + 0xc]
jmp 0x47f7c7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x47f80d
mov edx, dword [ebp - 0x10]
jmp 0x47f780
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47fa50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59152a
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6abc38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x667938]
cmp eax, dword [ecx + 4]
jg 0x47fa9d
mov ecx, dword [ebp - 0xc]
mov eax, 0x661fb0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x667938
call fcn.0056b7dd
add esp, 4
cmp dword [0x667938], 0xffffffff
jne 0x47fa8a
mov dword [ebp - 4], 0
push 0x47aa30
push 0x47a810
push 0x26
push 0x38
mov dword [0x661fb0], 0x5b8dac
push 0x6623b8
mov dword [0x661fb0], 0x5b8ea8
mov dword [ebp - 0x10], 0x661fb8
call fcn.0056be92
mov byte [ebp - 4], 1
mov dword [0x662c08], 0x6a79a0
mov byte [ebp - 4], 2
push 0x47aa30
push 0x47a810
push 0x3a
push 0x38
push 0x666c10
mov dword [ebp - 0x14], 0x662c10
call fcn.0056be92
mov byte [ebp - 4], 3
mov dword [0x6678c0], 0x667990
mov byte [ebp - 4], 4
mov ecx, 0x6678e8
mov dword [0x6678c8], 4
mov dword [0x6678cc], 0
mov dword [0x6678d0], 0
mov dword [0x6678d8], 0x47bcc0
mov dword [0x6678dc], 0
mov dword [0x6678e0], 0
mov dword [ebp - 0x18], 0x6678e0
mov dword [0x6678e4], 0
call fcn.00480fa0
mov byte [ebp - 4], 6
mov byte [0x667900], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x47fbe4
push 0x200
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00482a60
lea eax, [ebp - 0x218]
push eax
call fcn.0057ce2b
lea eax, [ebp - 0x218]
push str._RESERVELOWMEM
push eax
call fcn.0056d900
add esp, 0x18
push 1
push 0x2000
push 1
push 0xffeeffee
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x47fbe4
push 8
push 8
mov dword [0x667904], 0
mov dword [0x667908], 0
mov dword [0x66790c], 0
mov dword [0x667910], 0
mov dword [0x667914], 0
mov dword [0x667918], 0
mov dword [0x66791c], 0
mov dword [0x667920], 0
mov dword [0x667924], 0
mov dword [0x66792c], 0
mov dword [0x667930], 0
call fcn.0057cc3a
add esp, 8
mov dword [0x6678d4], eax
test al, 7
je 0x47fc85
push str.__size_t__m_nLogicalBytesAllocated____8___0
push 0x7e3
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0memstd.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x47fc85
int3
mov eax, dword [0x6678d4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
push 0x591e80
call fcn.0056b695
mov dword [ebp - 4], 0xffffffff
push 0x667938
call fcn.0056b793
add esp, 8
jmp 0x47fa8a
Function at 0x480f70
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 0x480f9c
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 fcn.00476df0
add esp, 0xc
test al, al
jne 0x480f9c
int3
mov eax, esi
pop esi
ret

Function at 0x480fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x590b00
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
mov dword [esi], vtable.CThread.0
je 0x481175
cmp dword [esi + 0xc], 0xffffffff
mov edi, 0x32
sete bl
lea esp, [esp]
test bl, bl
je 0x48107d
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xc], 0xffffffff
sete bl
sub edi, 1
jne 0x481020
test bl, bl
je 0x48107d
cmp byte [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x481060
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.00463fa0
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 fcn.00476e00
add esp, 0x10
test al, al
jne 0x48107d
int3
mov eax, dword [0x6a8bb0]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4810b5
push eax
call edi
cmp eax, esi
jne 0x4810b0
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 fcn.00476df0
add esp, 0xc
test al, al
jne 0x4810b0
int3
mov eax, dword [0x6a8bb0]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48115d
cmp eax, 0xffffffff
je 0x4810d8
push eax
call edi
cmp eax, esi
je 0x48115d
mov eax, dword [0x6a8bb0]
cmp dword [esi + 4], 0
je 0x48115d
cmp eax, 0xffffffff
je 0x481106
push eax
call edi
cmp eax, esi
jne 0x481106
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 fcn.00476df0
add esp, 0xc
test al, al
jne 0x481106
int3
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x48115d
test eax, eax
je 0x481149
cmp eax, 0xffffffff
je 0x481149
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x481149
push 0x5b3f68
push 0xf77
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x48115d
int3
mov eax, dword [esi + 4]
push eax
mov dword [esi + 4], 0
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x48116e
push eax
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481340
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x48134f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
cmp byte [0x6a8bb4], 0
jne 0x48137b
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 [0x6a8bb4], 1
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x48137b
int3
xor eax, eax
ret

Function at 0x481520
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x481538
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 4
cmp byte [0x6a8bb5], 0
jne 0x481564
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 [0x6a8bb5], 1
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x481564
int3
pop ebp
ret 4
Function at 0x481830
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 0x48185b
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.00463fa0
add esp, 0x18
mov byte [esi + 0x2f], 0
push edi
push str.WARNING__CThread::Terminate:__s_n
call fcn.00477780
add esp, 8
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x481881
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 0x482070
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x218]
call fcn.00481ed0
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x4820ce
push eax
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4822b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x218]
call fcn.00481ed0
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x48230e
push eax
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x482e60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
push str._noassert
call fcn.00476650
add esp, 4
test al, al
jne 0x48304b
push str._nocrashdialog
call fcn.00476650
add esp, 4
test al, al
jne 0x48304b
call fcn.00481d50
test al, al
jne 0x482eab
call fcn.004777a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._debugbreak
call fcn.00476650
add esp, 4
test al, al
je 0x482ec5
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x62853c], 0
je 0x48304b
mov esi, dword [0x6a8be8]
mov dword [ebp - 4], 0x6a8be8
test esi, esi
je 0x482f79
jmp 0x482ef0
mov edi, dword [esi + 0x20c]
lea ebx, [esi + 0x20c]
push esi
push dword [ebp + 8]
call fcn.0057d487
add esp, 8
test eax, eax
jne 0x482f6c
mov ecx, dword [esi + 0x200]
mov al, 1
cmp ecx, 0xffffffff
jne 0x482f27
xor edx, edx
movzx eax, al
cmp dword [esi + 0x204], ecx
cmove eax, edx
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jl 0x482f36
cmp edx, dword [esi + 0x204]
jle 0x482f3a
test al, al
jne 0x482f6c
mov eax, dword [esi + 0x208]
test eax, eax
jle 0x48304b
add eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x48304b
mov eax, dword [ebp - 4]
push 0x210
push esi
mov dword [eax], edi
call fcn.0056b3b5
add esp, 8
jmp 0x482f6f
mov dword [ebp - 4], ebx
mov esi, edi
test edi, edi
jne 0x482ef0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [0x6a8bec], ebx
mov dword [0x6a8bf0], esi
mov dword [0x6a8bf4], edi
mov byte [0x6a8be2], 0
mov dword [0x6a8bf8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x482e20
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x6a8bf8]
test eax, eax
jne 0x483029
push edi
push esi
push ebx
push str.File:__s_nLine:__d_n_Ts_n_nClick_Abort_to_break_in_the_debugger__Retry_to_continue_or_Ignore_to_disable_assert_dialogs_for_this_process.
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00463fa0
add esp, 0x18
mov byte [ebp - 5], 0
lea eax, [ebp - 0x804]
push 0x12002
push str.Assert_Dialog
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
jne 0x483011
pop edi
pop esi
mov byte [0x6a8be2], 1
mov al, byte [0x6a8be2]
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x48303f
mov al, byte [0x6a8be2]
pop edi
pop esi
mov byte [0x62853c], 0
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x482a90
push eax
push 0x65
push dword [0x6a8be4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov al, byte [0x6a8be2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret