joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e82
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], 0
mov byte [esi + 8], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.00410070
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004100a0
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.004100d0
mov dword [esi + 0x34], eax
lea eax, [esi + 0x3c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 4
lea edi, [esi + 0x54]
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0042646d
add esp, 4
test eax, eax
jne 0x40f061
call fcn.0042622f
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov byte [ebp - 4], 5
mov dword [esi + 0x6c], 0xffffffff
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], ebx
test ebx, ebx
jg 0x40f0c5
push str.thread_number___0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x40f0c5
push eax
push 0xfe
push str.tracked_objects.cc
lea ecx, [ebp - 0xcc]
call fcn.0040c8b0
lea ecx, [ebp - 0xcc]
call fcn.0040ca70
push ebx
lea eax, [esi + 8]
push str.WorkerThread__d
push eax
call fcn.0040de60
add esp, 0xc
mov ecx, esi
call fcn.0040f100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413850
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446584
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x458008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x114], ebx
cmp dword [0x4595d0], 0xffffffff
jne 0x413915
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp dword [0x45b934], 1
mov esi, eax
jne 0x4138e1
cmp dword [0x45b940], 3
jg 0x4138e1
cmp esi, 0xffffffff
jne 0x4138e1
push 3
push 0x36
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x1c8]
call fcn.0040c820
mov dword [ebp - 4], ebx
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.Check_failed:_value___TLS_OUT_OF_INDEXES.
mov dword [ebp - 0x114], ebx
call fcn.00406de0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4138fb
lea ecx, [ebp - 0x1c8]
and ebx, 0xfffffffe
call fcn.0040ca70
push 0xffffffffffffffff
push esi
push 0x4595d0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x413915
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp dword [0x45b934], 1
jne 0x413968
cmp dword [0x45b940], 3
jg 0x413968
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413968
push 3
push 0x43
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x278]
call fcn.0040c820
or ebx, 2
mov dword [ebp - 4], 1
lea ecx, [eax + 8]
mov dword [ebp - 0x114], ebx
mov edx, str.Check_failed:__TlsGetValue_g_native_tls_key_.
call fcn.00406de0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x41397f
lea ecx, [ebp - 0x278]
call fcn.0040ca70
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004344b0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push pe_nt_image_headers32
call fcn.00426310
add esp, 4
lea esi, [ebp - 0x110]
mov ebx, eax
mov ecx, 0x40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426319
mov esp, ebp
pop ebp
ret
Function at 0x413a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4465e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x458008]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x4595d0]
cmp eax, 0xffffffff
je 0x413bb2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x413bb2
lea eax, [esp + 0xc4]
mov ecx, 0x40
push eax
push dword [0x4595d0]
mov esi, ebx
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00427d7e
add esp, 4
mov edi, 0x40
lea esp, [esp]
mov esi, dword [0x45c2f0]
xor dl, dl
test esi, esi
jle 0x413ade
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0xc4]
test ecx, ecx
je 0x413ad9
mov eax, dword [esi*4 + 0x45c310]
test eax, eax
je 0x413ad9
push ecx
mov dword [esp + esi*4 + 0xc8], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x413ab0
dec edi
test edi, edi
jle 0x413aec
test dl, dl
jne 0x413aa0
jmp 0x413ba4
cmp dword [0x45b934], 1
jne 0x413b87
cmp dword [0x45b940], 3
jg 0x413b87
sub esp, 8
mov dword [esp + 0x1c], 3
lea ecx, [esp + 0x24]
call fcn.00409220
mov dword [esp + 0x1d8], 0
mov dword [esp + 0xb8], str.threading_thread_local_storage_win.cc
mov dword [esp + 0xbc], 0x8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc0], eax
push 0x8d
push str.threading_thread_local_storage_win.cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e0], 1
call fcn.0040cd70
mov dword [esp + 0x1d8], 2
lea ecx, [esp + 0x1c]
mov ebx, 1
mov edx, str.Check_failed:_false.
mov dword [esp + 0x10], ebx
call fcn.00406de0
jmp 0x413b8b
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1d8], 0xffffffff
test bl, 1
je 0x413ba4
lea ecx, [esp + 0x14]
call fcn.0040ca70
push 0
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00426319
mov esp, ebp
pop ebp
ret
Function at 0x413be0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44663c
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x4595d0]
cmp eax, 0xffffffff
je 0x413c23
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x413c28
call fcn.00413850
push 0x45c2f0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [0x45b934], 1
mov dword [0x45c2a8], eax
jne 0x413c92
cmp dword [0x45b940], 3
jg 0x413c92
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x413c92
push str.slot____0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x413c8d
push eax
push ecx
push 0xa6
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xcc]
call fcn.0040c990
lea ecx, [ebp - 0xcc]
call fcn.0040ca70
mov eax, dword [0x45c2a8]
cmp eax, 0x40
jl 0x413d07
cmp dword [0x45b934], 1
jne 0x413cdc
cmp dword [0x45b940], 3
jg 0x413cdc
push 3
push 0xa8
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x17c]
call fcn.0040c820
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.Check_failed:_false.
mov dword [ebp - 0x14], ebx
call fcn.00406de0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x413cf3
lea ecx, [ebp - 0x17c]
call fcn.0040ca70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [eax*4 + 0x45c310], 0x40f400
mov al, 1
mov byte [0x45c2a4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413d30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push esi
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x413d53
call fcn.00413850
mov esi, eax
cmp dword [0x45b934], 1
jne 0x413e1c
mov ecx, dword [0x45b940]
mov eax, dword [0x45c2a8]
cmp ecx, 3
jg 0x413e21
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
test eax, eax
jg 0x413dcf
push str.slot____0
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x413dbb
push eax
push ecx
push 0xc0
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.0040c990
lea ecx, [ebp - 0xb8]
call fcn.0040ca70
cmp dword [0x45b934], 1
mov eax, dword [0x45c2a8]
jne 0x413e21
mov ecx, dword [0x45b940]
cmp ecx, 3
jg 0x413e21
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
cmp eax, 0x40
jl 0x413e21
push str.slot____kThreadLocalStorageSize
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x413e1c
push eax
push ecx
push 0xc1
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.0040c990
lea ecx, [ebp - 0xb8]
call fcn.0040ca70
mov eax, dword [0x45c2a8]
mov eax, dword [esi + eax*4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push esi
push dword [0x4595d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x413e53
call fcn.00413850
mov esi, eax
cmp dword [0x45b934], 1
jne 0x413f1c
mov eax, dword [0x45b940]
cmp eax, 3
jg 0x413f1c
mov ecx, dword [0x45c2a8]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], ecx
test ecx, ecx
jg 0x413ecf
push str.slot____0
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x413ebb
push eax
push ecx
push 0xc9
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xbc]
call fcn.0040c990
lea ecx, [ebp - 0xbc]
call fcn.0040ca70
cmp dword [0x45b934], 1
jne 0x413f1c
mov ecx, dword [0x45c2a8]
mov eax, dword [0x45b940]
cmp eax, 3
jg 0x413f2e
mov dword [ebp - 8], 0x40
mov dword [ebp - 0xc], ecx
cmp ecx, 0x40
jl 0x413f2e
push str.slot____kThreadLocalStorageSize
lea edx, [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.0040c1a0
add esp, 4
test eax, eax
je 0x413f1c
push eax
push ecx
push 0xca
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xbc]
call fcn.0040c990
lea ecx, [ebp - 0xbc]
call fcn.0040ca70
mov eax, dword [0x45c2a8]
mov ecx, dword [ebp + 8]
mov dword [esi + eax*4], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [esi + ecx*4], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x414310
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x414320
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41431d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x41431d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x415c27
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x415c62
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x415c49
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x415c5a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x415c64
inc edi
add eax, 0x28
cmp edi, esi
jb 0x415c3f
xor eax, eax
pop edi
pop esi
ret

Function at 0x41b270
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
cmp dword [0x45b934], 1
push esi
mov esi, ecx
jne 0x41b2da
cmp dword [0x45b940], 3
jg 0x41b2da
call fcn.0041b4a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp esi, eax
je 0x41b2da
push ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0041b750
add esp, 4
test eax, eax
je 0x41b2da
push eax
push ecx
push 0x108
push str.message_loopmessage_loop.cc
lea ecx, [ebp - 0xbc]
call fcn.0040c990
lea ecx, [ebp - 0xbc]
call fcn.0040ca70
push dword [ebp + 8]
lea ecx, [esi + 0x4c]
call fcn.0041b3b0
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41b2f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
cmp dword [0x45b934], 1
push esi
mov esi, ecx
jne 0x41b35d
cmp dword [0x45b940], 3
jg 0x41b35d
call fcn.0041b4a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
cmp esi, eax
je 0x41b35d
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
call fcn.0041b750
add esp, 4
test eax, eax
je 0x41b35d
push eax
push ecx
push 0x10e
push str.message_loopmessage_loop.cc
lea ecx, [esp + 0x20]
call fcn.0040c990
lea ecx, [esp + 0x10]
call fcn.0040ca70
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
cmp edx, eax
je 0x41b3a9
mov ecx, dword [ebp + 8]
lea ebx, [ebx]
cmp dword [edx], ecx
je 0x41b37b
add edx, 4
cmp edx, eax
jne 0x41b370
cmp edx, eax
je 0x41b3a9
cmp dword [esi + 0x5c], 0
je 0x41b392
mov dword [edx], 0
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call fcn.004264c0
add esp, 0xc
add dword [esi + 0x54], 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41eac0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov dword [esp + 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x41eb15
push str.slot_____DWORD_0xFFFFFFFF_
lea edx, [esp + 8]
mov ecx, esi
call fcn.0041b070
add esp, 4
test eax, eax
je 0x41eb15
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.0040c8b0
lea ecx, [esp + 8]
call fcn.0040ca70
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41ebe0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447515
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
mov eax, dword [0x458008]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor ebx, ebx
push edx
mov dword [esp + 0xc], ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41ecc1
cmp dword [0x45b940], 4
jg 0x41eca8
sub esp, 8
mov dword [esp + 0x14], 4
lea ecx, [esp + 0x1c]
call fcn.00409220
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xb0], str.threading_thread_local_win.cc
mov dword [esp + 0xb4], 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xb8], eax
push 0x24
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 1
call fcn.0040cd70
mov dword [esp + 0xc8], 2
lea ecx, [esp + 0x14]
mov ebx, 1
mov edx, str.Failed_to_TlsSetValue__.
mov dword [esp + 8], ebx
call fcn.00406de0
mov dword [esp + 0xc8], 0xffffffff
test bl, 1
je 0x41ecc1
lea ecx, [esp + 0xc]
call fcn.0040ca70
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ff10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447721
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x30]
push 0x41f070
push 0x4144c0
push 2
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push 4
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push esi
mov dword [edi + 0x14], eax
call fcn.0044164b
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x44]
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [edi + 0x44], eax
movzx eax, byte [ebx + 0x48]
mov byte [edi + 0x48], al
movzx eax, byte [ebx + 0x49]
mov byte [edi + 0x49], al
mov eax, dword [ebx + 0x40]
mov dword [ebp + 8], eax
test eax, eax
je 0x41ffc9
push 1
add eax, 4
push eax
call edx
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [edi + 0x40], ecx
test eax, eax
je 0x41fff8
add eax, 4
push 0xffffffffffffffff
push eax
call edx
dec eax
jne 0x41fff8
mov ecx, dword [ebp - 0x14]
add ecx, 4
je 0x41fff8
add ecx, 0xfffffffc
je 0x41fff8
mov eax, dword [ecx]
push 1
call dword [eax + 8]
sub ebx, dword [ebp - 0x10]
lea ecx, [edi + 0x4a]
mov edx, 0xffffffb6
mov dword [ebp + 8], ecx
add edi, 0x18
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
nop
mov eax, dword [ebx + edi]
mov dword [edi], eax
mov eax, dword [ebx + edi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + ebx - 8]
mov dword [esi - 8], eax
mov al, byte [ebx + ecx]
mov byte [ecx], al
cmp al, 8
jne 0x42005f
mov eax, dword [ebx + esi]
mov dword [ebp - 0x14], eax
mov dword [ebx + esi], 0
test eax, eax
je 0x420041
cmp eax, dword [esi]
je 0x4200a7
mov edx, dword [esi]
mov dword [esi], 0
test edx, edx
je 0x42005b
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x42007c
mov edx, dword [esi]
mov dword [esi], 0
test edx, edx
je 0x420076
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
inc ecx
add eax, ecx
mov dword [ebp + 8], ecx
add edi, 8
add esi, 4
cmp eax, 2
jl 0x420010
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0042de53
int3
Function at 0x420620
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447642
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
mov eax, dword [0x458008]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x45b934], 1
jne 0x4206b0
cmp dword [0x45b940], 3
jg 0x4206b0
mov eax, dword [esi + 4]
push dword [eax + 0x170]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
je 0x4206b0
push 3
push 0x321
push str.debug_trace_event_impl.cc
lea ecx, [esp + 0x20]
call fcn.0040c820
mov dword [esp + 0xd0], ebx
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.Check_failed:_trace_log___thread_local_event_buffer_.Get____this.
mov dword [esp + 0x10], ebx
call fcn.00406de0
mov dword [esp + 0xd0], 0xffffffff
test bl, 1
je 0x4206c9
lea ecx, [esp + 0x14]
call fcn.0040ca70
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4206e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4477cb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [esi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
mov dword [esi + 4], ebx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 1
mov eax, 0x66666667
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40
jae 0x420774
push 0x40
lea ecx, [esi + 8]
call fcn.00423b50
call fcn.0041b4a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.0041b270
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x174]
movzx eax, byte [0x45c5fe]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00424930
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420e20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4479b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x7d0
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x28]
push 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00407280
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], 0
mov byte [esi + 0x48], 0
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [esi + 0x60]
call fcn.00423380
sub esp, 8
mov byte [ebp - 4], 5
lea ecx, [esi + 0x84]
mov dword [esi + 0x80], 0
call fcn.00423500
sub esp, 8
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa4]
call fcn.00423380
sub esp, 8
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc4]
call fcn.004235f0
sub esp, 8
mov byte [ebp - 4], 8
lea ecx, [esi + 0xe4]
call fcn.004236c0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x138], 0xf
mov dword [esi + 0x134], 0
mov byte [esi + 0x124], 0
mov dword [esi + 0x13c], 1
mov dword [esi + 0x140], 0
mov byte [ebp - 4], 0xb
xor ecx, ecx
mov dword [esi + 0x144], 0
mov eax, 0xe
mov dword [esi + 0x148], 0
cmp byte [str._Debug__Test], cl
mov dword [ebp - 0x14], 0xf
cmove eax, ecx
mov dword [ebp - 0x18], 0
push eax
push str._Debug__Test
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], 0
call fcn.00402670
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x14c]
call fcn.004225d0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x14], 0x10
jb 0x420ff6
push dword [ebp - 0x28]
call fcn.00426468
add esp, 4
lea ecx, [esi + 0x170]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ecx], 0
call fcn.0041eac0
sub esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x174]
call fcn.00423960
lea ecx, [esi + 0x194]
mov byte [ebp - 4], 0x10
push 0
call fcn.00407280
mov dword [esi + 0x19c], 0
mov byte [ebp - 4], 0x12
mov dword [esi + 0x1a0], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x110], eax
push pe_nt_image_headers32
cdq
push 0x1b3
xor edx, 0xcbf29ce4
xor eax, 0x84222325
push edx
push eax
call fcn.0043ba20
mov ecx, esi
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edx
call fcn.00421690
mov edi, eax
test edi, edi
je 0x4210a0
cmp edi, dword [esi + 0x30]
jne 0x4210a0
call fcn.0042de53
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x30], 0
test ecx, ecx
je 0x4210b4
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426319
mov esp, ebp
pop ebp
ret