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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x5ad56c
mov dword [edi], 0x5ad564
mov dword [edi + 4], 0x5ad588
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x288]
mov dword [edi + 0x14], eax
call fcn.004efa70
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x4f84f3
cmp dword [eax], edi
je 0x4f84ef
add eax, 4
cmp eax, edx
jne 0x4f84e4
cmp eax, edx
jne 0x4f84fc
lea eax, [ebp - 8]
push eax
call fcn.004f05c0
call fcn.00509450
push dword [eax]
call esi
test eax, eax
je 0x4f8520
mov esi, dword [eax]
mov dword [ebp + 8], esi
test esi, esi
je 0x4f8525
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jmp 0x4f8525
xor esi, esi
mov dword [ebp + 8], esi
mov eax, dword [0x5c2bf0]
test eax, eax
jne 0x4f8533
call fcn.00515500
lea ecx, [ebp + 8]
push ecx
push str.ThreadLocalEventBuffer
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.00514af0
test esi, esi
je 0x4f857b
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x4f857b
test ecx, ecx
je 0x4f8568
add ecx, 0xfffffffc
jmp 0x4f856a
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5ad9ec
jne 0x4f85ad
push 1
call dword [eax + 8]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x21c]
call fcn.004fc4c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edx
jmp 0x4f857b
Function at 0x4f85f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
lea ebx, [edi + 4]
mov dword [ebx], 0x5ad588
mov dword [edi], 0x5ad564
call fcn.004efa70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea ecx, [eax + 0x54]
call fcn.004f02a0
mov eax, dword [0x5c2bf0]
test eax, eax
jne 0x4f863c
call fcn.00515500
push ecx
push ebx
mov ecx, eax
call fcn.00514c70
mov esi, dword [edi + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0xc], 0
je 0x4f8683
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x288]
cmp dword [edi + 0x14], eax
jne 0x4f8683
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [edi + 0xc]
push ecx
mov edx, esp
mov dword [edi + 0xc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [edi + 0x10]
call dword [eax + 8]
call fcn.004efa70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], eax
add ecx, 0x21c
lea eax, [esp + 0x14]
push eax
call fcn.004fb1d0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 8]
push 0
push dword [eax + 0x210]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4f8707
cmp dword [0x5c1b2c], 3
jg 0x4f86f7
push 3
push 0x23
push str.d:webapps_b_build_slave_repo_build_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 4
call fcn.004ebdd0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004e3770
add esp, 8
test byte [esp + 0x10], 4
je 0x4f8707
lea ecx, [esp + 0x18]
call fcn.004ebe90
mov esi, dword [edi + 0xc]
mov dword [edi + 0xc], 0
test esi, esi
je 0x4f8725
mov ecx, esi
call fcn.005128b0
push esi
call fcn.00539d80
add esp, 4
mov dword [edi], method.std::_Facet_base.virtual_4
pop edi
pop esi
mov dword [ebx], 0x5ad56c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f91a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x214]
call edi
test eax, eax
jne 0x4f9204
call fcn.004efa70
push dword [eax]
call edi
test eax, eax
je 0x4f9204
push dword [esi + 0x210]
call edi
mov edx, eax
test edx, edx
je 0x4f91e6
mov ecx, dword [edx + 0x14]
cmp ecx, dword [esi + 0x288]
je 0x4f9204
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x18
call fcn.00539d85
add esp, 4
mov ecx, eax
push esi
call fcn.004f8480
push eax
lea ecx, [esi + 0x210]
call fcn.004efae0
pop edi
pop esi
pop ebx
ret
Function at 0x4faf30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
jne 0x4faf55
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [esi + 0x210]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x4faf80
push dword [esi + 0x210]
call edi
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.004f8420
test eax, eax
jne 0x4fafe9
mov edi, dword [ebp + 8]
test edi, edi
je 0x4faf99
cmp byte [edi + 4], 0
jne 0x4faf99
push dword [edi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 4], 1
cmp dword [esi + 0x23c], 0
mov edx, dword [ebp + 0x10]
je 0x4fafdd
mov eax, edx
and eax, 0x3ffffff
cmp eax, dword [esi + 0x240]
jne 0x4fafdd
mov ecx, dword [esi + 0x23c]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x1e08]
jne 0x4faf4b
shr edx, 0x1a
mov eax, edx
shl eax, 4
sub eax, edx
add ecx, 8
lea eax, [ecx + eax*8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x3c]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4fb7d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
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
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea ebx, [edx + ecx*4]
mov edx, dword [ebp + 0xc]
cmp edi, esi
jne 0x4fb82e
mov ecx, esi
jmp 0x4fb833
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4fb882
mov ecx, dword [eax + 8]
cmp ecx, dword [edx]
je 0x4fb842
mov eax, dword [eax]
jmp 0x4fb826
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
nop dword [eax]
cmp edi, esi
jne 0x4fb858
mov ecx, esi
jmp 0x4fb85d
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4fb86d
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 8]
jne 0x4fb86d
mov eax, dword [eax]
jmp 0x4fb850
cmp edx, eax
je 0x4fb882
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fbdc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x4fbe31
cmp dword [ecx], edi
jne 0x4fbe29
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4fbe39
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4fbe39
cmp dword [ecx], edi
jne 0x4fbe3c
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.00539d80
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fc4c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
shl ecx, 3
mov dword [ebp - 8], ecx
add ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
cmp esi, eax
je 0x4fc52e
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4fc52e
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4fc54e
cmp esi, eax
jne 0x4fc522
mov eax, dword [ebx + 4]
push 0xc
mov edi, dword [eax]
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
call fcn.00539d85
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4fc560
jmp 0x4fc619
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ecx + 4]
mov dword [ecx], edi
test edx, edx
je 0x4fc56e
mov eax, dword [ebp - 4]
mov dword [edx], eax
lea eax, [ecx + 8]
test eax, eax
je 0x4fc57d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ecx + 8], eax
mov eax, 0x15555554
sub eax, dword [ebx + 8]
cmp eax, 1
jb 0x4fc61e
inc dword [ebx + 8]
mov dword [edi + 4], ecx
mov eax, dword [edx]
mov dword [eax], ecx
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, dword [edi]
cmp esi, eax
je 0x4fc5c4
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4fc5de
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x4fc600
cmp eax, esi
jne 0x4fc5e6
mov dword [ecx], edi
jmp 0x4fc600
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4fc600
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004fc630
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0053fbe1
push str.list_T__too_long
call fcn.00538c53
int3
Function at 0x4fc8e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], ebx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4fc95c
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4fc95c
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4fc9a1
cmp esi, eax
jne 0x4fc950
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4fc98a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4fc9ef
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x4fca11
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
lea ecx, [ebx + 0xc]
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
call fcn.004fd090
push dword [ebx + 0xc]
call fcn.00539d80
add esp, 4
mov dword [ebx + 0xc], 0
push ebx
call fcn.00539d80
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4fc9f7
mov dword [ecx], edi
jmp 0x4fca11
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4fca11
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004fcd50
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fca30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4fcaac
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4fcaac
mov ecx, dword [edi]
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4fcaf4
cmp esi, eax
jne 0x4fcaa0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4fcada
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4fcb53
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x4fcb75
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x4fcb27
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004e2910
mov edx, dword [esp + 0xc]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push edx
mov byte [edi], 0
call fcn.00539d80
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4fcb5b
mov dword [ecx], edi
jmp 0x4fcb75
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4fcb75
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004fcdf0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fcb90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4fcc01
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4fcc01
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4fcc45
cmp esi, eax
jne 0x4fcbf5
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4fcc2e
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4fcc73
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x4fcc95
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.00539d80
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x4fcc7b
mov dword [ecx], edi
jmp 0x4fcc95
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4fcc95
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004fc630
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x4fdde0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
mov eax, dword [ecx + 0xc]
push esi
push edi
test eax, eax
je 0x4fde0d
mov ebx, 1
mov dword [ebp - 8], eax
mov ecx, ebx
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 8]
jmp 0x4fde44
mov ebx, 2
call fcn.00509450
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fde3a
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4fde41
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
jmp 0x4fde41
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi], eax
test bl, 2
je 0x4fde92
mov eax, dword [ebp - 4]
and ebx, 0xfffffffd
test eax, eax
je 0x4fde92
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x4fde92
test ecx, ecx
je 0x4fde7f
add ecx, 0xfffffffc
jmp 0x4fde81
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5ad9ec
jne 0x4fdee1
push 1
call dword [eax + 8]
test bl, 1
je 0x4fded6
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fded6
lea ecx, [eax + 4]
lock xadd dword [ecx], edi
sub edi, 1
setne al
test al, al
jne 0x4fded6
test ecx, ecx
je 0x4fdeb8
add ecx, 0xfffffffc
jmp 0x4fdeba
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5ad9ec
jne 0x4fdee5
push 1
call dword [eax + 8]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edx
jmp 0x4fde92
call edx
jmp 0x4fded6
Function at 0x500210
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], ebx
call fcn.00500770
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x500289
cmp dword [0x5c1b2c], 3
jg 0x500278
push 3
push 0x23
push str.d:webapps_b_build_slave_repo_build_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x2c]
lea ebx, [eax + 0x10]
call fcn.004ebdd0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004e3770
add esp, 8
test bl, 0x10
je 0x500289
lea ecx, [esp + 0x20]
and ebx, 0xffffffef
call fcn.004ebe90
mov edx, dword [ebp + 8]
mov eax, 2
cmp dword [edx + 8], 0
mov esi, dword [edx]
cmovne esi, eax
mov eax, dword [edx + 4]
mov dword [edi + 0x4c], eax
sub esp, 0x20
mov ecx, dword [edx + 8]
mov eax, esp
mov dword [esp + 0x30], eax
mov dword [eax], ecx
test ecx, ecx
je 0x5002bb
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
mov dword [ecx + 4], eax
add ecx, 8
lea eax, [edx + 0x10]
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004e2420
mov edx, esi
lea ecx, [esp + 0x30]
call fcn.004ee200
mov esi, dword [esp + 0x30]
add esp, 0x20
mov dword [edi + 0x48], esi
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
add edi, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
lea edx, [eax + 0x24]
mov dword [esp + 0x10], edx
test bl, 0x20
je 0x500347
lea ecx, [esp + 0x20]
and ebx, 0xffffffdf
call fcn.004ebe90
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x18]
push edx
mov edx, eax
call fcn.004f7f20
add esp, 8
test al, al
jne 0x50037e
test bl, 4
je 0x500368
lea ecx, [esp + 0x20]
call fcn.004ebe90
mov eax, dword [esp + 0x14]
push edi
mov dword [eax + 0x48], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
jmp 0x500397
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
test bl, 8
je 0x500395
lea ecx, [esp + 0x20]
call fcn.004ebe90
mov bl, 1
test esi, esi
je 0x5003a3
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x500a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0
test edi, edi
jns 0x500a8d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x5c2bf8]
xor ebx, ebx
test ecx, ecx
je 0x500ad3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x500ad3
mov ecx, dword [0x5c2bf8]
lea ebx, [esi + 0x1c]
mov eax, edi
mov dword [esp + 0x14], str.File::WriteAtCurrentPos
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
add eax, 4
push eax
push ebx
push str.File::WriteAtCurrentPos
call dword [esi + 0x10]
mov esi, dword [esp + 0x10]
jmp 0x500adb
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [esp + 0x18]
test ebx, ebx
je 0x500b10
mov ecx, dword [0x5c2bf8]
test ecx, ecx
je 0x500b10
mov edx, dword [ecx]
push ebx
push dword [esp + 0x18]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8