joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1005d200
mov dword [ebp - 0xc], 0
call fcn.10012d10
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.10014b90
push dword [ebp - 4]
call fcn.1002ea70
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.10012540
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.10012b40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10013b44
call ebx
cmp eax, 0x20
jne 0x10013b40
push 0xa
call fcn.10025a90
inc esi
add esp, 4
cmp esi, 0xa
jl 0x10013ae5
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x8b0
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10013b40
int3
xor bl, bl
jmp 0x10013b7d
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x10]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x10013b6d
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 8]
sete bl
call fcn.10023bc0
push 0
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10013b9e
push eax
call fcn.100324a7
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10013bae
push eax
call fcn.100324a7
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10013f00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1005d200
mov dword [ebp - 4], 0
call fcn.10012d10
lea ecx, [ebp - 0xc]
call fcn.10012b40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10013f46
push eax
call fcn.100324a7
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10013f56
push ecx
call fcn.100324a7
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001cee0
Capabilities:
Create raw socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
mov esi, ecx
push 0x104
push eax
mov dword [esi], vtable.steam2::CBlockingUDPSocket.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 3
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
call fcn.10034990
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, eax
mov dword [esi + 0x1c], edx
cmp edx, 0xffffffff
je 0x1001cf7c
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x24]
push eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
push edx
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1001cf7c
cmp dword [esi + 0x24], 0
mov eax, esi
jne 0x1001cf7e
mov dword [esi + 0x24], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001d020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], 0x10
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push edi
push dword [ecx + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1001d06a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
mov byte [ecx + edi], 0
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001d0c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cvttss2si eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x30]
fld dword [ebp + 8]
mov esi, dword [edi + 0x1c]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
mov dword [edi + 0x34], esi
mov dword [ebp - 0xc], eax
mov dword [ebx], 1
fstp dword [ebp + 8]
fsub dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fmul qword [0x1005ef28]
fadd qword [0x1005ef20]
call fcn.10032f70
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push ebx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1001d13b
push ebx
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001d13b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001d300
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 4]
xor eax, 0x811c9dc5
imul edx, ecx, 0x1000193
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 5]
xor ecx, eax
movzx eax, byte [esi + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 7]
imul ecx, ecx, 0x1000193
pop esi
xor ecx, eax
imul eax, ecx, 0x1000193
add eax, eax
xor eax, edx
pop ebp
ret 4
Function at 0x1001e2a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053ced
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.1001d750
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1001e328
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 0x1001e456
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.10032460
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 0x1001e39d
fadd dword [0x1005b000]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov eax, dword [edi + 0x1c]
fild dword [edi + 0x1c]
test eax, eax
jns 0x1001e3b3
fadd dword [0x1005b000]
fstp dword [ebp - 0x10]
fdiv dword [ebp - 0x10]
fcompi st(1)
fstp st(0)
ja 0x1001e3c4
mov edx, dword [ebp - 0x28]
jmp 0x1001e3eb
push edx
mov ecx, edi
call fcn.10023120
push eax
mov ecx, edi
call fcn.100231b0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001d750
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 0x1001e420
mov dword [ecx + eax*8], esi
jmp 0x1001e42f
cmp edi, edx
jne 0x1001e429
mov dword [ecx + eax*8], esi
jmp 0x1001e433
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1001e433
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.1003381f
int3
Function at 0x10021fe0
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, 0x10077fe0
cmp edx, dword [0x10077fe0]
je 0x10022014
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x10022014
pause
push edx
mov ecx, edi
call fcn.10025000
jmp 0x1002201b
lock inc dword [0x10077fe4]
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, 0x10077fc0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1001d750
mov eax, dword [eax + 4]
test eax, eax
je 0x10022102
push esi
mov esi, dword [0x10077fc4]
cmp eax, esi
je 0x10022101
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 [0x10077fd8]
and edx, ecx
mov ecx, dword [0x10077fcc]
lea edx, [ecx + edx*8]
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x100220db
cmp ecx, eax
jne 0x100220d3
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x100220e3
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
jmp 0x100220e3
cmp ecx, eax
jne 0x100220e3
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
dec dword [0x10077fc8]
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.10032490
add esp, 8
pop esi
lock dec dword [0x10077fe4]
cmp dword [0x10077fe4], 0
jne 0x10022116
xor eax, eax
xchg dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10022700
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.100247e0
test al, al
je 0x1002271d
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.1000ae80
add esp, 0x14
mov byte [ebp - 1], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.100247e0
pop esi
test al, al
jne 0x10022781
lea eax, [ebp - 0x100]
push eax
push 0x80000bd2
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0memstd.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10022772
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 0x100231b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100541dd
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 0x1002333f
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.10022fa0
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 0x100232fc
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 0x10023281
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x100232ef
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x100232b8
mov eax, dword [eax]
cmp eax, ecx
je 0x100232b0
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 0x100232ef
cmp ebx, eax
je 0x100232cc
lea esp, [esp]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1002331d
cmp ebx, eax
jne 0x100232c0
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 0x10023230
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 0x100232ef
push str.invalid_hash_bucket_count
call fcn.1003381f
int3
Function at 0x100237e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005422d
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 0x1002398d
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.10032490
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x100238ce
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x10023890
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x1002397d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x1002397d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x100238e0
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x100238e3
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x1002397d
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.10032490
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x10023961
cmp edi, esi
je 0x10023978
mov eax, dword [ebp + 0xc]
jmp 0x10023937
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x1002397d
mov edx, dword [ebp - 0x10]
jmp 0x100238f0
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 0x10023bc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100542aa
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f1e18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1007d988]
cmp eax, dword [ecx + 4]
jg 0x10023c0d
mov ecx, dword [ebp - 0xc]
mov eax, 0x10078000
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x1007d988
call fcn.100328f9
add esp, 4
cmp dword [0x1007d988], 0xffffffff
jne 0x10023bfa
mov dword [ebp - 4], 0
push 0x1001e8b0
push 0x1001e670
push 0x26
push 0x38
mov dword [0x10078000], 0x1005ef48
push 0x10078408
mov dword [0x10078000], 0x1005f048
mov dword [ebp - 0x10], 0x10078008
call fcn.100322d7
mov byte [ebp - 4], 1
mov dword [0x10078c58], 0x100bd9f0
mov byte [ebp - 4], 2
push 0x1001e8b0
push 0x1001e670
push 0x3a
push 0x38
push 0x1007cc60
mov dword [ebp - 0x14], 0x10078c60
call fcn.100322d7
mov byte [ebp - 4], 3
mov dword [0x1007d910], 0x1007d9e0
mov byte [ebp - 4], 4
mov ecx, 0x1007d938
mov dword [0x1007d918], 4
mov dword [0x1007d91c], 0
mov dword [0x1007d920], 0
mov dword [0x1007d928], 0x10007780
mov dword [0x1007d92c], 0
mov dword [0x1007d930], 0
mov dword [ebp - 0x18], 0x1007d930
mov dword [0x1007d934], 0
call fcn.10024c40
mov byte [ebp - 4], 6
mov byte [0x1007d950], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x10023d54
push 0x200
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10029240
lea eax, [ebp - 0x218]
push eax
call fcn.1004420c
lea eax, [ebp - 0x218]
push str._RESERVELOWMEM
push eax
call fcn.10033de0
add esp, 0x18
push 1
push 0x2000
push 1
push 0xffeeffee
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x10023d54
push 8
push 8
mov dword [0x1007d954], 0
mov dword [0x1007d958], 0
mov dword [0x1007d95c], 0
mov dword [0x1007d960], 0
mov dword [0x1007d964], 0
mov dword [0x1007d968], 0
mov dword [0x1007d96c], 0
mov dword [0x1007d970], 0
mov dword [0x1007d974], 0
mov dword [0x1007d97c], 0
mov dword [0x1007d980], 0
call fcn.1004401b
add esp, 8
mov dword [0x1007d924], eax
test al, 7
je 0x10023df5
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.10024040
add esp, 0xc
test al, al
jne 0x10023df5
int3
mov eax, dword [0x1007d924]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
push 0x10054fc0
call fcn.100327b1
mov dword [ebp - 4], 0xffffffff
push 0x1007d988
call fcn.100328af
add esp, 8
jmp 0x10023bfa

Function at 0x10024040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100241f0
Function at 0x10024c10
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 0x10024c3c
push str.Out_of_thread_local_storage__n
push 0xa8c
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10024c3c
int3
mov eax, esi
pop esi
ret

Function at 0x10024c80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10053cc0
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 0x10024e15
cmp dword [esi + 0xc], 0xffffffff
mov edi, 0x32
sete bl
lea esp, [esp]
test bl, bl
je 0x10024d1d
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xc], 0xffffffff
sete bl
sub edi, 1
jne 0x10024cc0
test bl, bl
je 0x10024d1d
cmp byte [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x10024d00
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.1000ae80
add esp, 0x18
mov byte [esi + 0x2f], 0
push edi
push str.Illegal_termination_of_worker_thread__s
push 0xd89
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10024050
add esp, 0x10
test al, al
jne 0x10024d1d
int3
mov eax, dword [0x100bee70]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x10024d55
push eax
call edi
cmp eax, esi
jne 0x10024d50
push str.Deleting_thread_object_from_the_thread__this_is_bad
push 0xd8a
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10024d50
int3
mov eax, dword [0x100bee70]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10024dfd
cmp eax, 0xffffffff
je 0x10024d78
push eax
call edi
cmp eax, esi
je 0x10024dfd
mov eax, dword [0x100bee70]
cmp dword [esi + 4], 0
je 0x10024dfd
cmp eax, 0xffffffff
je 0x10024da6
push eax
call edi
cmp eax, esi
jne 0x10024da6
push str.Thread_cannot_be_joined_with_self
push 0xe79
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10024da6
int3
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10024dfd
test eax, eax
je 0x10024de9
cmp eax, 0xffffffff
je 0x10024de9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10024de9
push 0x1005646c
push 0xe82
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10024dfd
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 0x10024e0e
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 0x10024f70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10024f7f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
cmp byte [0x100bee74], 0
jne 0x10024fab
push str.Bad_thread_local:_Get_n
push 0xac1
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x100bee74], 1
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10024fab
int3
xor eax, eax
ret

Function at 0x10025160
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10025178
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 4
cmp byte [0x100bee75], 0
jne 0x100251a4
push str.Bad_thread_local:_Set_n
push 0xad8
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x100bee75], 1
call fcn.10024040
add esp, 0xc
test al, al
jne 0x100251a4
int3
pop ebp
ret 4