joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477020
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x65fab8], 0
jne 0x47714c
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 0x47714b
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
push edi
lea edi, [ecx*4 + 8]
test ecx, ecx
jle 0x47709c
jmp 0x477070
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 0x477070
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 0x477129
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 0x477126
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 0x4770e0
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
mov edx, dword [ebp - 0x1c]
mov edi, 0x65fab8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x477149
push edx
call esi
pop edi
pop esi
pop ebx
mov eax, dword [0x65fab8]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [0x65fab8]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x4771b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0056be10
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0x1000
push eax
call fcn.0045a0a0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00579b4e
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jg 0x477210
push str.len___0
push 0x2be
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0platform.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x477210
int3
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x477240
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591661
push eax
mov dword fs:[0], esp
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6abc50]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x65fad4]
cmp eax, dword [ecx + 4]
jg 0x4772b3
mov eax, dword [0x65fad0]
test eax, eax
je 0x477289
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
cmp al, 1
je 0x4772a5
push str.bRtlGenRandomOK
push 0x8000035b
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0platform.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x4772a5
int3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x65fad4
call fcn.0056c116
add esp, 4
cmp dword [0x65fad4], 0xffffffff
jne 0x477274
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 [0x65fad0], eax
mov dword [ebp - 4], 0xffffffff
push 0x65fad4
call fcn.0056c0c5
add esp, 4
jmp 0x477274

Function at 0x477620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004779d0
Function at 0x479d20
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 0x47adc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591aed
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.0047a1d0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x47ae48
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 0x47af68
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.0056bd75
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]
add ecx, 1
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
jns 0x47aeb5
fadd dword [0x5b37d0]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov eax, dword [edi + 0x1c]
fild dword [edi + 0x1c]
test eax, eax
jns 0x47aecb
fadd dword [0x5b37d0]
fstp dword [ebp - 0x10]
fdiv dword [ebp - 0x10]
fcompi st(1)
fstp st(0)
jbe 0x47aefd
push ecx
mov ecx, edi
call fcn.0047fb20
push eax
mov ecx, edi
call fcn.0047fbb0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047a1d0
mov edx, dword [eax]
jmp 0x47af00
mov edx, dword [ebp - 0x28]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
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 0x47af32
mov dword [ecx + eax*8], esi
jmp 0x47af41
cmp edi, edx
jne 0x47af3b
mov dword [ecx + eax*8], esi
jmp 0x47af45
cmp dword [ecx + eax*8 + 4], ebx
jne 0x47af45
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.0056bcd8
int3
Function at 0x47e9f0
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, 0x661fc0
cmp edx, dword [0x661fc0]
je 0x47ea29
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
sete al
test al, al
jne 0x47ea29
pause
push edx
mov ecx, edi
call fcn.00481dd0
jmp 0x47ea30
lock inc dword [0x661fc4]
movzx eax, byte [ebp + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp + 9]
push esi
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, 0x661fa0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0047a1d0
mov esi, dword [0x661fa4]
mov ecx, dword [eax + 4]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
cmp eax, esi
je 0x47eb12
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
mov ecx, dword [0x661fac]
imul edx, edx, 0x1000193
and edx, dword [0x661fb8]
lea edx, [ecx + edx*8]
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x47eaec
cmp ecx, eax
jne 0x47eae4
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x47eaf4
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
jmp 0x47eaf4
cmp ecx, eax
jne 0x47eaf4
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
dec dword [0x661fa8]
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.0056bda5
add esp, 8
lock dec dword [0x661fc4]
cmp dword [0x661fc4], 0
pop esi
jne 0x47eb27
xor eax, eax
xchg dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x47f110
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.00477fd0
test al, al
je 0x47f12d
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.00464230
add esp, 0x14
mov byte [ebp - 1], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00477fd0
pop esi
test al, al
jne 0x47f191
lea eax, [ebp - 0x100]
push eax
push 0x80000bd2
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0memstd.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x47f182
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 0x47fbb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591f9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x47fd41
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0047f9b0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x47fcfc
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x14], edx
cmp edi, esi
jne 0x47fc82
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x47fcf2
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x47fcbc
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
cmp edx, eax
je 0x47fcb4
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
jmp 0x47fcef
cmp edi, edx
je 0x47fccc
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x47fd1d
cmp edi, edx
jne 0x47fcc0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x47fc31
mov dword [ebp - 0x1c], 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 [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x47fcef
push str.invalid_hash_bucket_count
call fcn.0056bcd8
int3
Function at 0x47ff10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591fdd
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 0x4800bd
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.0056bda5
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x47fffe
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x47ffc0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4800ad
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x4800ad
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x480010
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x480013
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x4800ad
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.0056bda5
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x480091
cmp edi, esi
je 0x4800a8
mov eax, dword [ebp + 0xc]
jmp 0x480067
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x4800ad
mov edx, dword [ebp - 0x10]
jmp 0x480020
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 0x4802a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59206a
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6abc50]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x667968]
cmp eax, dword [ecx + 4]
jg 0x4802ed
mov ecx, dword [ebp - 0xc]
mov eax, 0x661fe0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x667968
call fcn.0056c116
add esp, 4
cmp dword [0x667968], 0xffffffff
jne 0x4802da
mov dword [ebp - 4], 0
push 0x47b3d0
push 0x47b1b0
push 0x26
push 0x38
mov dword [0x661fe0], 0x5b92b4
push 0x6623e8
mov dword [0x661fe0], 0x5b93b4
mov dword [ebp - 0x10], 0x661fe8
call fcn.0056c752
mov byte [ebp - 4], 1
mov dword [0x662c38], 0x6a79d0
mov byte [ebp - 4], 2
push 0x47b3d0
push 0x47b1b0
push 0x3a
push 0x38
push 0x666c40
mov dword [ebp - 0x14], 0x662c40
call fcn.0056c752
mov byte [ebp - 4], 3
mov dword [0x6678f0], 0x6679c0
mov byte [ebp - 4], 4
mov ecx, 0x667918
mov dword [0x6678f8], 4
mov dword [0x6678fc], 0
mov dword [0x667900], 0
mov dword [0x667908], 0x47c680
mov dword [0x66790c], 0
mov dword [0x667910], 0
mov dword [ebp - 0x18], 0x667910
mov dword [0x667914], 0
call fcn.00481930
mov byte [ebp - 4], 6
mov byte [0x667930], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x480434
push 0x200
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00483480
lea eax, [ebp - 0x218]
push eax
call fcn.0057d8fc
lea eax, [ebp - 0x218]
push str._RESERVELOWMEM
push eax
call fcn.0056e390
add esp, 0x18
push 1
push 0x2000
push 1
push 0xffeeffee
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x480434
push 8
push 8
mov dword [0x667934], 0
mov dword [0x667938], 0
mov dword [0x66793c], 0
mov dword [0x667940], 0
mov dword [0x667944], 0
mov dword [0x667948], 0
mov dword [0x66794c], 0
mov dword [0x667950], 0
mov dword [0x667954], 0
mov dword [0x66795c], 0
mov dword [0x667960], 0
call fcn.0057d6ea
add esp, 8
mov dword [0x667904], eax
test al, 7
je 0x4804d5
push str.__size_t__m_nLogicalBytesAllocated____8___0
push 0x7e3
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0memstd.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x4804d5
int3
mov eax, dword [0x667904]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
push 0x592aa0
call fcn.0056c085
mov dword [ebp - 4], 0xffffffff
push 0x667968
call fcn.0056c0c5
add esp, 8
jmp 0x4802da
Function at 0x481900
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 0x48192c
push str.Out_of_thread_local_storage__n
push 0xaf8
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x48192c
int3
mov eax, esi
pop esi
ret

Function at 0x4819c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591620
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 0x481b58
mov eax, dword [esi + 0xc]
mov edi, 0x32
cmp eax, 0xffffffff
sete bl
jmp 0x481a00
test bl, bl
je 0x481a60
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
sete bl
sub edi, 1
jne 0x481a00
cmp eax, 0xffffffff
jne 0x481a60
cmp byte [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x481a43
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.00464230
add esp, 0x18
mov byte [esi + 0x2f], 0
push edi
push str.Illegal_termination_of_worker_thread__s
push 0xdf5
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
call fcn.00477630
add esp, 0x10
test al, al
jne 0x481a60
int3
mov eax, dword [0x6a8be4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x481a98
push eax
call edi
cmp eax, esi
jne 0x481a93
push str.Deleting_thread_object_from_the_thread__this_is_bad
push 0xdf6
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x481a93
int3
mov eax, dword [0x6a8be4]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x481b40
cmp eax, 0xffffffff
je 0x481abb
push eax
call edi
cmp eax, esi
je 0x481b40
mov eax, dword [0x6a8be4]
cmp dword [esi + 4], 0
je 0x481b40
cmp eax, 0xffffffff
je 0x481ae9
push eax
call edi
cmp eax, esi
jne 0x481ae9
push str.Thread_cannot_be_joined_with_self
push 0xee5
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x481ae9
int3
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x481b40
test eax, eax
je 0x481b2c
cmp eax, 0xffffffff
je 0x481b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x481b2c
push 0x5935a4
push 0xeee
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x481b40
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 0x481b51
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 0x481d20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x481d2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
cmp byte [0x6a8be8], 0
jne 0x481d5b
push str.Bad_thread_local:_Get_n
push 0xb2d
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
mov byte [0x6a8be8], 1
call fcn.00477620
add esp, 0xc
test al, al
jne 0x481d5b
int3
xor eax, eax
ret

Function at 0x481f40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x481f58
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 4
cmp byte [0x6a8be9], 0
jne 0x481f84
push str.Bad_thread_local:_Set_n
push 0xb44
push str.C:_buildworker_steam_rel_client_win32_build_src_tier0_threadtools.cpp
mov byte [0x6a8be9], 1
call fcn.00477620
add esp, 0xc
test al, al
jne 0x481f84
int3
pop ebp
ret 4
Function at 0x482250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x10], 0
lea eax, [ebx + 0x10]
push esi
push edi
mov dword [ebp - 4], eax
jne 0x482283
push dword [ebx + 8]
push dword [ebx + 4]
push ebx
push str.Thread_0x_p_0x_p_0x_x_
push 0x1f
push eax
call fcn.00464230
mov eax, dword [ebp - 4]
add esp, 0x18
mov byte [ebx + 0x2f], 0
push eax
push str.WARNING__CThread::Terminate:__s_n
call fcn.00477fb0
add esp, 8
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x4822ac
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 4]
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [ebx + 8], 0
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x482aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5921e0
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.00482900
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 0x482afe
push eax
call fcn.0056be44
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 0x482ce0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5921e0
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.00482900
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 0x482d3e
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret