joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10120d50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [ebp + 8]
call fcn.10145590
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x10120d8d
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [ebp + 8]
call fcn.10145590
add esp, 0x10
pop edi
pop ebp
ret

Function at 0x10122e40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 4], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x10122e7e
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + ebx*4 - 8]
push esi
call fcn.101232b0
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x10122f3f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
call fcn.100e20c0
push edi
call fcn.100e2b90
add esp, 0x14
cmp eax, 0x65
jne 0x10122ed2
mov edx, dword [ebp + 0x10]
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ecx
push edx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.10122d60
add esp, 0x1c
jmp 0x10122f2d
cmp eax, 0x64
jne 0x10122f2d
push 0
push edi
call fcn.100e3000
mov ecx, eax
add esp, 8
mov eax, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x18]
cmp ecx, edx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
jne 0x10122efa
cmp eax, ecx
je 0x10122f2d
push ecx
mov ecx, dword [ebp + 0x14]
test ebx, ebx
push edx
mov edx, dword [ebp + 0x10]
mov eax, str.__rowid
push ecx
push edx
mov dword [ebp + 8], str.__parent
cmove eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push ecx
push edx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.10122d60
add esp, 0x2c
push edi
call fcn.100e3b80
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x10122f3f
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10137fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x1013805a
push ebx
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1013803a
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x10212ac0]
movzx ecx, al
movzx ecx, byte [ecx + 0x10212ac0]
sub ecx, edx
jne 0x10138021
sub ebx, esi
nop
test al, al
je 0x10138036
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10212ac0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x10212ac0]
sub ecx, edx
je 0x10138000
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x10137fc0
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x10138021
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.100ffac0
add esp, 0xc
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x1013802d
jmp 0x10138024
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10138070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
nop
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x1013813d
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x10138100
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x10212ac0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x10212ac0]
sub edi, ecx
jne 0x10138124
sub edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
nop dword [eax]
test al, al
je 0x101380f6
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10212ac0]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x10212ac0]
sub edi, edx
mov edx, dword [ebp - 8]
je 0x101380d0
jmp 0x10138124
test edi, edi
jne 0x10138124
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
shl ebx, 4
push 0
push ecx
mov eax, dword [ebx + eax + 0xc]
add eax, 8
push eax
call fcn.100ffac0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x101381ed
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, dword [edx + 0x14]
jl 0x10138091
mov dl, byte [ecx]
movzx eax, dl
cmp byte [eax + 0x10212ac0], 0x73
jne 0x101381eb
mov esi, str.sqlite_master
sub esi, ecx
test dl, dl
je 0x1013817f
movzx eax, byte [esi + ecx + 1]
inc ecx
mov dword [ebp + 0xc], ecx
mov dl, byte [ecx]
movzx ecx, byte [eax + 0x10212ac0]
movzx eax, dl
movzx eax, byte [eax + 0x10212ac0]
sub eax, ecx
jne 0x101381eb
mov ecx, dword [ebp + 0xc]
jmp 0x10138156
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x10138195
neg edx
sbb edx, edx
jmp 0x101381da
test edx, edx
je 0x101381eb
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x10212ac0]
movzx eax, bl
movzx eax, byte [eax + 0x10212ac0]
sub eax, ecx
jne 0x101381d8
sub edx, edi
test bl, bl
je 0x101381d8
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x10212ac0]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x10212ac0]
sub eax, ecx
je 0x101381b7
mov edx, eax
test edx, edx
jne 0x101381eb
mov ecx, str.sqlite_temp_master
mov dword [ebp + 0xc], ecx
jmp 0x10138080
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10147500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1014752a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1014752a
cmp dword [edx + 0x60], 0
je 0x10147526
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10168f30
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10147528
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x10147548
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1011aba0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1011be60
Function at 0x1016d640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
mov dword [edi], 0
call fcn.10144f40
mov esi, eax
add esp, 8
test esi, esi
jne 0x1016d667
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp dword [0x1025f8ac], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x1016d6b2
mov eax, dword [0x1025f9ac]
test eax, eax
je 0x1016d68b
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1016d6b2
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10151b70
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.101b381e
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1016d6bf
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1016d6d8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x1017c990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1017c9b3
test eax, eax
jne 0x1017ca68
mov eax, dword [0x10264324]
cmp eax, 0xffffffff
je 0x1017ca68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x1017ca67
mov eax, dword [0x10264324]
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.100d06c7
add esp, 4
mov edi, 0x100
nop dword [eax + eax]
mov esi, dword [0x1026a198]
xor dl, dl
test esi, esi
jle 0x1017ca4e
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x404]
test ecx, ecx
je 0x1017ca49
mov eax, dword [esi*4 + 0x1026a1a0]
test eax, eax
je 0x1017ca49
push ecx
mov dword [ebp + esi*4 - 0x404], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x1017ca20
dec edi
test edi, edi
jle 0x1017ca57
test dl, dl
jne 0x1017ca10
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.100d02f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10183190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fa645
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [ebp - 4], 0
mov ecx, 0x10269770
mov dword [esi], vtable.base::SequencedWorkerPool.0
mov dword [ebp - 0x14], edi
call fcn.1018bb60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101831f0
mov dword [edi], eax
jmp 0x10183208
mov ecx, dword [eax + 0xa8]
mov dword [edi], ecx
test ecx, ecx
je 0x10183208
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push 0x98
mov byte [ebp - 4], 1
call fcn.100cff51
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1018324b
push 0x98
push 0
push edi
call fcn.101a08b0
add esp, 0xc
mov ecx, edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10182ab0
mov dword [esi + 0xc], eax
jmp 0x10183252
mov dword [esi + 0xc], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10183310
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 0x1018336d
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push esi
call fcn.1017d300
add esp, 0xc
test eax, eax
je 0x1018336d
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.10182ce0
lea ecx, [ebp - 0xb4]
call fcn.101854c0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101854c0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101faa20
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x1025e344]
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 [0x10264155], 0
je 0x101856fd
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.1019aae0
movzx eax, al
mov ecx, esi
push eax
call fcn.1019a110
mov ecx, esi
call fcn.100c7100
lea eax, [ebp - 0x428]
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
call fcn.1019a790
mov eax, dword [0x10269798]
test eax, eax
je 0x10185563
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 0x101856f2
test byte [0x10264150], 2
je 0x10185589
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1018558e
cmp dword [ebx], 2
jl 0x101855cc
cmp dword [ebp - 0x414], 0x10
lea edi, [ebp - 0x428]
mov esi, dword [ebp - 0x418]
cmovae edi, dword [ebp - 0x428]
push 2
call fcn.101b492d
push eax
push 1
push esi
push edi
call fcn.101b44f2
push 2
call fcn.101b492d
push eax
call fcn.101b3d87
lea esi, [ebx + 0xc]
add esp, 0x1c
test byte [0x10264150], 1
je 0x10185678
push 0
push 0
call fcn.1018e730
add esp, 8
cmp dword [0x102697a4], 0
jne 0x101855fe
push 0xffffffffffffffff
push dword [0x102697a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1018560a
push dword [0x1026979c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.1018f630
test al, al
je 0x10185655
push 2
push 0
push 0
push dword [0x1026978c]
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 [0x1026978c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x102697a4], 0
jne 0x1018566c
push dword [0x102697a0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10185678
push dword [0x1026979c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x101856f2
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x418]
cmovae eax, dword [ebp - 0x428]
cmp ecx, 0x400
ja 0x1018572d
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.1019fdb0
lea eax, [ebp - 0x410]
push eax
call fcn.101887a0
add esp, 0x10
cmp dword [0x10269794], 0
je 0x10185732
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.1019a790
lea eax, [ebp - 0x444]
push eax
call dword [0x10269794]
add esp, 4
lea ecx, [ebp - 0x444]
call fcn.10007910
lea ecx, [ebp - 0x428]
call fcn.10007910
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebx + 8]
call fcn.100b9c20
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.100d02f2
mov esp, ebp
pop ebp
ret
call fcn.101a3dde
call fcn.10188e30
int3
Function at 0x10185940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101faa50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1025e344]
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, 0x10269770
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
call fcn.1018bb60
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.101917b0
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10185a4b
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x101859b4
cmp edx, 0x7fffffff
jne 0x101859b4
movsd xmm0, qword [0x10209c78]
jmp 0x101859c1
call fcn.100d06a0
divsd xmm0, qword [0x1020a458]
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.10187ce0
test eax, eax
je 0x10185a4b
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 0x1026a0bb
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.1018f190
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.1018b7a0
mov ecx, 0x10269770
call fcn.1018bb60
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.10198ef0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1dc]
call fcn.101931a0
mov esi, dword [edi + 8]
add esp, 8
test esi, esi
je 0x10185acb
push 0x10185b30
push 0x40
push 0x60
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.100cfe53
push 0x1810
push esi
call fcn.100cff81
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.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x10189140
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 0x101891b1
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 + 0x1021ee58]
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 + 0x1021ee58]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1021ee58]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x1021ee58]
sub edi, 1
jne 0x10189153
pop edi
pop ebx
pop esi
ret
Function at 0x10189c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x10189c98
call fcn.1018d2e0
cmp dword [eax], 1
jl 0x10189c98
mov dword [ebp - 4], 0x10000
jmp 0x10189c9a
xor esi, esi
push 8
call fcn.100cff51
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp - 4]
mov dword [ebx], ecx
setne cl
push ebx
push 0x10193f30
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10189ce2
push 8
push ebx
call fcn.100cff81
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10189cf8
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1018bb60
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 0x1018bbd7
push esi
call fcn.101901e0
add esp, 4
test al, al
je 0x1018bbd7
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 0x1018bbd4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.1017d300
add esp, 0xc
test eax, eax
je 0x1018bbd4
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.10182ce0
lea ecx, [ebp - 0xb4]
call fcn.101854c0
mov dword [esi], edi
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1018d0f0
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 0x1018d106
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 0x1018d14e
push dword [edi + 0x1dc]
call esi
mov esi, eax
mov edx, dword [esi + 8]
test edx, edx
je 0x1018d14e
cmp ebx, dword [edx + 0x1808]
jne 0x1018d14e
mov eax, dword [ebp + 0xc]
movzx ecx, ax
cmp ecx, dword [esi + 0xc]
jne 0x1018d14e
movzx eax, word [ebp + 0xe]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, edx
jne 0x1018d1b2
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1018d167
cmp byte [esi + 4], 0
jne 0x1018d167
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x1018d1a6
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmp eax, dword [edi + 0x210]
jne 0x1018d1a6
cmp ebx, dword [ecx + 0x1808]
jne 0x1018d19d
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 0x1018efd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10264324]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x1018effb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1018f000
call fcn.10189900
mov eax, 1
mov ecx, 0x1026a198
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 0x1018f05d
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1017d020
add esp, 0xc
test eax, eax
je 0x1018f05d
push eax
push 0xd2
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0xbc]
call fcn.10182ce0
lea ecx, [ebp - 0xbc]
call fcn.101854c0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x1026a1a0], eax
mov al, 1
mov ecx, dword [ebp - 4]
mov byte [esi], 1
xor ecx, ebp
pop esi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 4