joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x4d64ad
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x4d64fc
mov eax, dword [esi]
call dword [eax + 0x3c]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d655d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4d651d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4d655d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4d6557
cmp dword [esi + 0x558], 0
je 0x4d655d
cmp byte [esi + 0x578], 0
je 0x4d655d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d655d
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.0048cb80
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d6570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x4d65bf
mov eax, dword [esi]
push ebx
call dword [eax + 0x3c]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d65b8
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4d65e0
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4d65b9
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4d6612
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d6612
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4d65b9
cmp byte [esi + 0x564], 0
je 0x4d65b9
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0048cb80
pop edi
pop esi
pop ebp
ret 4
Function at 0x4d9f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.00513860
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4da061
cmp eax, 0x104
ja 0x4da061
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00513860
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x58777c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4da012
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9ff0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00405ea0
jmp 0x4da086
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046975d
mov esp, ebp
pop ebp
ret

Function at 0x4dd290
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4dd2b3
test eax, eax
jne 0x4dd368
mov eax, dword [0x5bc89c]
cmp eax, 0xffffffff
je 0x4dd368
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4dd367
mov eax, dword [0x5bc89c]
mov ecx, 0x100
push esi
push edi
mov esi, ebx
mov dword [ebp - 0x408], eax
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00469bae
add esp, 4
mov edi, 0x100
nop dword [eax + eax]
mov esi, dword [0x5c6240]
xor dl, dl
test esi, esi
jle 0x4dd34e
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x404]
test ecx, ecx
je 0x4dd349
mov eax, dword [esi*4 + 0x5c6248]
test eax, eax
je 0x4dd349
push ecx
mov dword [ebp + esi*4 - 0x404], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x4dd320
dec edi
test edi, edi
jle 0x4dd357
test dl, dl
jne 0x4dd310
push 0
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046975d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e3d70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5683f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bb278]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.base::MessageLoop.0
mov dword [ebp - 4], 0
mov dword [ebx + 4], 0
mov edi, dword [ebp + 8]
lea esi, [ebx + 0xc]
mov dword [ebx + 8], edi
mov dword [ebp + 8], esi
push 8
mov byte [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0046988f
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
lea esi, [ebx + 0x38]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebp + 8], esi
push 8
mov byte [ebp - 4], 3
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0046988f
mov dword [esi], eax
add esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov word [ebx + 0x64], 1
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0xf
mov byte [ebx + 0x68], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.004f0aa0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004eb1c0
add esp, 8
mov esi, dword [eax]
xor ecx, ecx
mov dword [eax], 0
mov dword [ebp + 8], ecx
test esi, esi
je 0x4e3f47
cmp esi, dword [ebx + 4]
je 0x4e3f8c
mov edx, dword [ebx + 4]
mov dword [ebx + 4], ecx
test edx, edx
je 0x4e3f5c
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], esi
test ecx, ecx
je 0x4e3f69
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4e3f76
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, ebx
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.0052a5b0
int3
Function at 0x4e42b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x5c5818
mov dword [ebp - 4], esi
call fcn.004edd90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e43e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, ecx
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x4e443d
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push esi
call fcn.004dde30
add esp, 0xc
test eax, eax
je 0x4e443d
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004e3c50
lea ecx, [ebp - 0xb4]
call fcn.004e6470
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e6470
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568770
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5bb278]
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
mov ebx, ecx
cmp byte [0x5bc6cd], 0
je 0x4e66ad
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004fcec0
movzx eax, al
mov ecx, esi
push eax
call fcn.004fc370
mov ecx, esi
call fcn.00460bb0
lea eax, [ebp - 0x428]
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
call fcn.004fcb10
mov eax, dword [0x5c5840]
test eax, eax
je 0x4e6513
lea ecx, [ebp - 0x428]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x4e66a2
test byte [0x5bc6c8], 2
je 0x4e6539
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4e653e
cmp dword [ebx], 2
jl 0x4e657c
cmp dword [ebp - 0x414], 0x10
lea edi, [ebp - 0x428]
mov esi, dword [ebp - 0x418]
cmovae edi, dword [ebp - 0x428]
push 2
call fcn.0052605a
push eax
push 1
push esi
push edi
call fcn.00526fd5
push 2
call fcn.0052605a
push eax
call fcn.005264ec
lea esi, [ebx + 0xc]
add esp, 0x1c
test byte [0x5bc6c8], 1
je 0x4e6628
push 0
push 0
call fcn.004f0900
add esp, 8
cmp dword [0x5c584c], 0
jne 0x4e65ae
push 0xffffffffffffffff
push dword [0x5c5848]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4e65ba
push dword [0x5c5844]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004f1c50
test al, al
je 0x4e6605
push 2
push 0
push 0
push dword [0x5c5834]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x42c]
push 0
push ecx
push dword [ebp - 0x418]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push dword [0x5c5834]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5c584c], 0
jne 0x4e661c
push dword [0x5c5848]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e6628
push dword [0x5c5844]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x4e66a2
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x418]
cmovae eax, dword [ebp - 0x428]
cmp ecx, 0x400
ja 0x4e66dd
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00514290
lea eax, [ebp - 0x410]
push eax
call fcn.004e9f40
add esp, 0x10
cmp dword [0x5c583c], 0
je 0x4e66e2
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.004fcb10
lea eax, [ebp - 0x444]
push eax
call dword [0x5c583c]
add esp, 4
lea ecx, [ebp - 0x444]
call fcn.00405e50
lea ecx, [ebp - 0x428]
call fcn.00405e50
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebx + 8]
call fcn.0047fc20
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.0046975d
mov esp, ebp
pop ebp
ret
call fcn.00517dfc
call fcn.004ea5f0
int3
Function at 0x4e6ca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x5c5818
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
call fcn.004edd90
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.004f3c80
mov esi, dword [edi + 0x10]
test esi, esi
je 0x4e6dab
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x4e6d14
cmp edx, 0x7fffffff
jne 0x4e6d14
movsd xmm0, qword [0x58a910]
jmp 0x4e6d21
call fcn.00559b80
divsd xmm0, qword [0x58a8f8]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov ecx, edi
mov dword [ebp - 0x20], str.average_overhead
mov esi, eax
call fcn.004e9480
test eax, eax
je 0x4e6dab
movsd xmm0, qword [ebp - 0x30]
push 0
push 0
movsd qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x11]
movlpd qword [ebp - 0x28], xmm0
push ecx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x30], xmm0
push ecx
push 1
push 0
push 0
push str.overhead
push 0x5c6163
push 0x4d
push dword [ebp - 0x24]
mov ecx, eax
mov byte [ebp - 0x11], 4
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call fcn.004f1660
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.004ed9d0
mov ecx, 0x5c5818
call fcn.004edd90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], eax
add ecx, 0x1e8
lea eax, [ebp - 0x20]
push eax
call fcn.004faf10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1dc]
call fcn.004f6140
mov esi, dword [edi + 8]
add esp, 8
test esi, esi
je 0x4e6e2b
push 0x4e6e90
push 0x40
push 0x60
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00469791
push 0x1810
push esi
call fcn.004698bf
add esp, 8
mov dword [edi], vtable.base::MessageLoop::DestructionObserver.0
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.0046975d
mov esp, ebp
pop ebp
ret
Function at 0x4ea610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx]
sub eax, esi
sar eax, 2
test eax, eax
je 0x4ea681
push ebx
push edi
mov edi, eax
mov ebx, dword [esi]
lea esi, [esi + 4]
movzx edx, al
movzx ecx, bl
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ecx, 8
xor eax, dword [edx*4 + 0x587cd8]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
xor eax, dword [edx*4 + 0x587cd8]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x587cd8]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x587cd8]
sub edi, 1
jne 0x4ea623
pop edi
pop ebx
pop esi
ret
Function at 0x4edd90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, 0xfffffffe
jne 0x4ede07
push esi
call fcn.004f2480
add esp, 4
test al, al
je 0x4ede07
push edi
lea edi, [esi + 4]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x4ede04
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.004dde30
add esp, 0xc
test eax, eax
je 0x4ede04
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004e3c50
lea ecx, [ebp - 0xb4]
call fcn.004e6470
mov dword [esi], edi
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ef4d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x4ef4e6
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
push esi
push dword [edi + 0x1dc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x4ef52e
push dword [edi + 0x1dc]
call esi
mov esi, eax
mov edx, dword [esi + 8]
test edx, edx
je 0x4ef52e
cmp ebx, dword [edx + 0x1808]
jne 0x4ef52e
mov eax, dword [ebp + 0xc]
movzx ecx, ax
cmp ecx, dword [esi + 0xc]
jne 0x4ef52e
movzx eax, word [ebp + 0xe]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, edx
jne 0x4ef592
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4ef547
cmp byte [esi + 4], 0
jne 0x4ef547
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x4ef586
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmp eax, dword [edi + 0x210]
jne 0x4ef586
cmp ebx, dword [ecx + 0x1808]
jne 0x4ef57d
movzx eax, word [ebp + 0xe]
pop esi
pop edi
pop ebx
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, ecx
pop ebp
ret 0xc
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4f14a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5bc89c]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x4f14cb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4f14d0
call fcn.004eae50
mov eax, 1
mov ecx, 0x5c6240
lock xadd dword [ecx], eax
inc eax
mov dword [ebp - 8], 0x100
mov dword [esi + 4], eax
mov dword [ebp - 0xc], eax
cmp eax, 0x100
jl 0x4f152d
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004ddb50
add esp, 0xc
test eax, eax
je 0x4f152d
push eax
push 0xd2
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0xbc]
call fcn.004e3c50
lea ecx, [ebp - 0xbc]
call fcn.004e6470
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x5c6248], eax
mov al, 1
mov ecx, dword [ebp - 4]
mov byte [esi], 1
xor ecx, ebp
pop esi
call fcn.0046975d
mov esp, ebp
pop ebp
ret 4
Function at 0x4f1d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569a31
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bb278]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.004f1550
test al, al
je 0x4f1f21
mov eax, dword [0x5bc89c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4f1db1
call fcn.004eae50
mov ecx, eax
mov eax, dword [0x5c6654]
cmp dword [ecx + eax*4], 0
jne 0x4f1f21
push 0x70
call fcn.0046988f
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4f1ef7
push 0x70
push 0
push edi
call fcn.00513860
mov dword [edi], 0
add esp, 0xc
mov dword [edi + 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x20], 0
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f8c00
mov dword [esi], eax
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f8c20
mov dword [esi], eax
lea esi, [edi + 0x34]
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042c8c0
mov dword [esi], eax
lea eax, [edi + 0x3c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea esi, [edi + 0x54]
mov byte [ebp - 4], 5
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0046988f
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 6
mov dword [edi + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x4f1eee
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4f1ee5
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.0041a210
mov ecx, edi
call fcn.004f3180
jmp 0x4f1ef9
xor edi, edi
mov eax, dword [0x5bc89c]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4f1f19
call fcn.004eae50
mov ecx, eax
mov eax, dword [0x5c6654]
mov dword [ecx + eax*4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f29e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, 0xfffffffe
jne 0x4f2a65
push esi
call fcn.004f2480
add esp, 4
test al, al
je 0x4f2a65
push edi
lea edi, [esi + 4]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x4f2a54
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.004dde30
add esp, 0xc
test eax, eax
je 0x4f2a54
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004e3c50
lea ecx, [ebp - 0xb4]
call fcn.004e6470
push esi
push 0x4f28d0
mov dword [esi], edi
call fcn.004f3340
add esp, 8
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f30c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x5c5818
call fcn.004edd90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
mov al, byte [eax + 0x65]
test al, al
lea eax, [ebp - 0x20]
je 0x4f3126
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4f3122
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4f3122
xor bl, bl
jmp 0x4f3138
mov bl, 1
jmp 0x4f3138
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x4f315a
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046975d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004f2ef0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046975d
mov esp, ebp
pop ebp
ret