joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40293b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402934
test esi, esi
je 0x402934
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402910
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402c48
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402bae
cmp eax, 4
jne 0x402bd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402bbe
cmp edx, 4
je 0x402bbe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b20
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
add ebx, eax
or eax, ebx
call fcn.00408965
mov ebx, eax
add eax, 0x49d3dc81
xor dword [esi], edi
inc esi
sub eax, 0x851d98ca
cmp esi, edx
jne fcn.00408939
add ebx, 0x7404f59
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40891e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop esi
mov edx, 0x4b7d4ff7
call fcn.00408950
or eax, edx
dec edx
xor dword [edi], esi
add eax, eax
inc edi
add edx, 0xdbef08e
cmp edi, ebx
jne fcn.0040891e
and edx, eax
sub edx, 1
ret
Function at 0x100060c2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in al, 0xe2
pushal
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x100060c1
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x100060bb
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x100060ac
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10005e67
sti
dec eax
ror edx, 1
lea eax, [ebp - 0x58]
push eax
call fcn.10005e77
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10005e2c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10006155
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c

Function at 0x100066f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10005e77
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10005e2c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b

Function at 0x10009c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10009e20
Function at 0x1000bc90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f63d
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.1000b0a0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1000bd18
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 0x1000be38
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.10017f27
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 0x1000bd85
fadd dword [0x10042524]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov eax, dword [edi + 0x1c]
fild dword [edi + 0x1c]
test eax, eax
jns 0x1000bd9b
fadd dword [0x10042524]
fstp dword [ebp - 0x10]
fdiv dword [ebp - 0x10]
fcompi st(1)
fstp st(0)
jbe 0x1000bdcd
push ecx
mov ecx, edi
call fcn.10010a50
push eax
mov ecx, edi
call fcn.10010ae0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000b0a0
mov edx, dword [eax]
jmp 0x1000bdd0
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 0x1000be02
mov dword [ecx + eax*8], esi
jmp 0x1000be11
cmp edi, edx
jne 0x1000be0b
mov dword [ecx + eax*8], esi
jmp 0x1000be15
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1000be15
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.10017ee7
int3
Function at 0x1000f920
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, 0x10052500
cmp edx, dword [0x10052500]
je 0x1000f959
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
sete al
test al, al
jne 0x1000f959
pause
push edx
mov ecx, edi
call fcn.10012690
jmp 0x1000f960
lock inc dword [0x10052504]
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, 0x100524e0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000b0a0
mov esi, dword [0x100524e4]
mov ecx, dword [eax + 4]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
cmp eax, esi
je 0x1000fa42
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 [0x100524ec]
imul edx, edx, 0x1000193
and edx, dword [0x100524f8]
lea edx, [ecx + edx*8]
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x1000fa1c
cmp ecx, eax
jne 0x1000fa14
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x1000fa24
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
jmp 0x1000fa24
cmp ecx, eax
jne 0x1000fa24
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
dec dword [0x100524e8]
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.10017f57
add esp, 8
lock dec dword [0x10052504]
cmp dword [0x10052504], 0
pop esi
jne 0x1000fa57
xor eax, eax
xchg dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10010040
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.1000a420
test al, al
je 0x1001005d
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.10009560
add esp, 0x14
mov byte [ebp - 1], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.1000a420
pop esi
test al, al
jne 0x100100c1
lea eax, [ebp - 0x100]
push eax
push 0x80000bd2
push str.C:_buildworker_steam_rel_client_hotfix_win32_build_src_tier0memstd.cpp
call fcn.10009c70
add esp, 0xc
test al, al
jne 0x100100b2
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 0x100111d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003fbca
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1009ca94]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10057ea8]
cmp eax, dword [ecx + 4]
jg 0x1001121d
mov ecx, dword [ebp - 0xc]
mov eax, 0x10052520
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x10057ea8
call fcn.1001894f
add esp, 4
cmp dword [0x10057ea8], 0xffffffff
jne 0x1001120a
mov dword [ebp - 4], 0
push 0x1000c2a0
push 0x1000c080
push 0x26
push 0x38
mov dword [0x10052520], 0x10041a10
push 0x10052928
mov dword [0x10052520], 0x10041b10
mov dword [ebp - 0x10], 0x10052528
call fcn.10018a7c
mov byte [ebp - 4], 1
mov dword [0x10053178], 0x10097f10
mov byte [ebp - 4], 2
push 0x1000c2a0
push 0x1000c080
push 0x3a
push 0x38
push 0x10057180
mov dword [ebp - 0x14], 0x10053180
call fcn.10018a7c
mov byte [ebp - 4], 3
mov dword [0x10057e30], 0x10057f00
mov byte [ebp - 4], 4
mov ecx, 0x10057e58
mov dword [0x10057e38], 4
mov dword [0x10057e3c], 0
mov dword [0x10057e40], 0
mov dword [0x10057e48], 0x100052a0
mov dword [0x10057e4c], 0
mov dword [0x10057e50], 0
mov dword [ebp - 0x18], 0x10057e50
mov dword [0x10057e54], 0
call fcn.10012590
mov byte [ebp - 4], 6
mov byte [0x10057e70], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x10011364
push 0x200
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10012d10
lea eax, [ebp - 0x218]
push eax
call fcn.10027850
lea eax, [ebp - 0x218]
push str._RESERVELOWMEM
push eax
call fcn.10019f10
add esp, 0x18
push 1
push 0x2000
push 1
push 0xffeeffee
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x10011364
push 8
push 8
mov dword [0x10057e74], 0
mov dword [0x10057e78], 0
mov dword [0x10057e7c], 0
mov dword [0x10057e80], 0
mov dword [0x10057e84], 0
mov dword [0x10057e88], 0
mov dword [0x10057e8c], 0
mov dword [0x10057e90], 0
mov dword [0x10057e94], 0
mov dword [0x10057e9c], 0
mov dword [0x10057ea0], 0
call fcn.10027539
add esp, 8
mov dword [0x10057e44], eax
test al, 7
je 0x10011405
push str.__size_t__m_nLogicalBytesAllocated____8___0
push 0x7e3
push str.C:_buildworker_steam_rel_client_hotfix_win32_build_src_tier0memstd.cpp
call fcn.10009c70
add esp, 0xc
test al, al
jne 0x10011405
int3
mov eax, dword [0x10057e44]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
push 0x100402b0
call fcn.10018278
mov dword [ebp - 4], 0xffffffff
push 0x10057ea8
call fcn.100188fe
add esp, 8
jmp 0x1001120a
Function at 0x10011820
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
push str._noassert
call fcn.1000a9c0
add esp, 4
test al, al
jne 0x10011a05
push str._nocrashdialog
call fcn.1000a9c0
add esp, 4
test al, al
jne 0x10011a05
call fcn.10012780
test al, al
jne 0x1001186b
call fcn.1000a420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10042528
call fcn.1000a9c0
add esp, 4
test al, al
je 0x10011885
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x1005109c], 0
je 0x10011a05
mov esi, dword [0x10098f24]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0x10098f24
test esi, esi
je 0x10011936
lea ebx, [ebx]
mov edi, dword [esi + 0x20c]
push esi
push dword [ebp + 8]
call fcn.10027a0d
add esp, 8
test eax, eax
jne 0x10011923
mov ecx, dword [esi + 0x200]
mov al, 1
cmp ecx, 0xffffffff
jne 0x100118e1
xor edx, edx
movzx eax, al
cmp dword [esi + 0x204], ecx
cmove eax, edx
cmp ebx, ecx
jl 0x100118ed
cmp ebx, dword [esi + 0x204]
jle 0x100118f1
test al, al
jne 0x10011923
mov eax, dword [esi + 0x208]
test eax, eax
jle 0x10011a05
add eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x10011a05
mov eax, dword [ebp - 4]
push 0x210
push esi
mov dword [eax], edi
call fcn.10017f57
add esp, 8
jmp 0x1001192c
lea eax, [esi + 0x20c]
mov dword [ebp - 4], eax
mov esi, edi
test edi, edi
jne 0x100118b0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [0x10098f28], edi
mov dword [0x10098f2c], ebx
mov dword [0x10098f30], esi
mov byte [0x10098f1e], 0
mov dword [0x10098f34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100117e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x10098f34]
test eax, eax
jne 0x100119e3
push esi
push ebx
push edi
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.10009560
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 0x100119cb
pop edi
pop esi
mov byte [0x10098f1e], 1
mov al, byte [0x10098f1e]
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x100119f9
mov al, byte [0x10098f1e]
pop edi
pop esi
mov byte [0x1005109c], 0
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x10011440
push eax
push 0x65
push dword [0x10098f20]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov al, byte [0x10098f1e]
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

Function at 0x10012560
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 0x1001258c
push str.Out_of_thread_local_storage__n
push 0xa8c
push str.C:_buildworker_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.10009c70
add esp, 0xc
test al, al
jne 0x1001258c
int3
mov eax, esi
pop esi
ret
Function at 0x10012650
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x1001265f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
cmp byte [0x10099224], 0
jne 0x1001268b
push str.Bad_thread_local:_Get_n
push 0xac1
push str.C:_buildworker_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x10099224], 1
call fcn.10009c70
add esp, 0xc
test al, al
jne 0x1001268b
int3
xor eax, eax
ret

Function at 0x10012700
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10012718
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 4
cmp byte [0x10099225], 0
jne 0x10012744
push str.Bad_thread_local:_Set_n
push 0xad8
push str.C:_buildworker_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
mov byte [0x10099225], 1
call fcn.10009c70
add esp, 0xc
test al, al
jne 0x10012744
int3
pop ebp
ret 4

Function at 0x10014b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
mov esi, dword [ebp + 8]
call fcn.10014720
test al, al
je 0x10014ce1
push ebx
push edi
call fcn.10014700
mov edi, eax
mov dword [ebp - 4], ebp
mov dword [ebp - 8], esp
push 0x108
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10019db0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 3
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xec], 3
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0x1009b38c
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
jle 0x10014c7a
lea esp, [esp]
push 0
push dword [0x1009b3c4]
lea eax, [ebp - 0x118]
push dword [0x1009b3c0]
push 0
push 0
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x14c
call dword [0x1009b3a8]
test eax, eax
je 0x10014c7a
mov eax, dword [ebp - 0xf8]
or eax, dword [ebp - 0xf4]
je 0x10014c7a
cmp edi, dword [ebp + 0x10]
jle 0x10014c75
mov edx, dword [esi + 0xa0]
cmp edx, 0x14
jge 0x10014c75
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], ecx
inc dword [esi + 0xa0]
inc edi
cmp edi, ebx
jl 0x10014c10
push 0x1009b38c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esi + 0xa0]
xor edi, edi
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
test ebx, ebx
jle 0x10014cdf
xor ecx, ecx
xor edx, edx
lea esp, [esp]
shld edx, ecx, 2
shl ecx, 2
mov eax, edx
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], eax
xor ecx, dword [esi + edi*8]
mov edx, dword [esi + edi*8 + 4]
inc edi
xor edx, eax
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
cmp edi, ebx
jl 0x10014cb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret