joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x4ce50a
mov edx, 0x599488
lea edi, [esi + 0xc]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4ce50a
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4ce440
mov eax, dword [ebp + 0x10]
cmp eax, 6
je 0x4ce4f0
cmp eax, 0x28
je 0x4ce473
mov esi, 0x80040100
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 0x20019
push 0
push str.SoftwareLDSGameCenterDebug
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ce4d6
lea eax, [ebp + 8]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 8], 4
push eax
push 0
push 0
push str.ScriptError
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ce4c9
cmp dword [ebp + 0x10], 1
mov eax, 0x80040100
cmove esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x4ce50f
mov eax, dword [ebp + 0x1c]
mov ecx, 0xb
pop edi
mov word [eax], cx
or ecx, 0xffffffff
mov word [eax + 8], cx
mov eax, esi
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
test ecx, ecx
je 0x4ce50f
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
mov esi, 0x80040104
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4d0500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56674b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5ba278]
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, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push 0x39
xor edi, edi
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x234], edi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
call fcn.0041a300
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], edi
jb 0x4d0570
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.0042cb90
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4d0605
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00513be0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4d0605
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4d0616
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4d0652
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d0648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d0671
push edx
push ecx
call fcn.00469b7f
add esp, 8
mov eax, edi
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.00469a1d
mov esp, ebp
pop ebp
ret 8
call fcn.005181c9
int3
Function at 0x4d12d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566840
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ba278]
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 edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4d1417
cmp dword [edi + 0x14], 0
je 0x4d1417
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.00558970
mov esi, esp
test esi, esi
je 0x4d1417
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x828]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1360
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0041a300
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4d13a6
mov esi, ecx
cmp word [esi], 0xa
je 0x4d143a
add esi, 2
sub eax, 1
jne 0x4d1394
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x180]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4d13f2
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4d13f2
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.00486cd0
lea ecx, [ebp - 0x28]
call fcn.00405ea0
xor eax, eax
lea esp, [ebp - 0x54]
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.00469a1d
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4d13a6
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4d13a6
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004d18f0
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4d146c
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x180]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00405ea0
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004d18f0
cmp dword [eax + 0x14], 8
jb 0x4d149b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00405ea0
jmp 0x4d13f2
Function at 0x4d1e80
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 0x4d1ead
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 0x4d1efc
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 0x4d1f5d
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 0x4d1f1d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4d1f5d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4d1f57
cmp dword [esi + 0x558], 0
je 0x4d1f5d
cmp byte [esi + 0x578], 0
je 0x4d1f5d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d1f5d
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.00488450
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d1f70
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 0x4d1fbf
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 0x4d1fb8
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 0x4d1fe0
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4d1fb9
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4d2012
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d2012
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4d1fb9
cmp byte [esi + 0x564], 0
je 0x4d1fb9
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.00488450
pop edi
pop esi
pop ebp
ret 4
Function at 0x4d5920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5ba278]
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.00513be0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4d5a61
cmp eax, 0x104
ja 0x4d5a61
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00513be0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x58610c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4d5a12
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d59f0
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 0x4d5a86
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.00469a1d
mov esp, ebp
pop ebp
ret
Function at 0x4dbb50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566d4f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ba278]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4dbc73
push eax
push dword [esi + 0xac]
call fcn.0051ec19
add esp, 8
test eax, eax
jne 0x4dbbb9
cmp dword [esi + 0xa8], eax
jne 0x4dbbaf
push dword [esi + 0xac]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dbbb9
cmp dword [ebp + 0xc], 0
je 0x4dbc5f
push ebx
lea ecx, [esi + 0xac]
call fcn.004d9b50
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x4dbbdf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xac]
cmp dword [eax - 0xc], 0
je 0x4dbc51
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dbc51
push 0x18
call fcn.00469b4f
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4dbc17
mov ecx, eax
call fcn.004dbe50
jmp 0x4dbc19
xor eax, eax
push dword [esi + 0xac]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xa8], eax
call fcn.004dc310
test al, al
jne 0x4dbc51
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x4dbc51
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xa8], 0
cmp dword [ebp + 0x10], 0
je 0x4dbc5f
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040bcc0
int3
Function at 0x4dc170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4dc199
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
movzx eax, word [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4dc1ba
xor esi, esi
jmp 0x4dc2ad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4dc2ad
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4dc1eb
xor esi, esi
jmp 0x4dc2ad
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4dc208
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x4dc2ad
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4dc228
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x4dc2ad
push esi
push dword [ebp + 8]
push eax
call fcn.00514610
add esp, 0xc
mov dword [ebp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x4dc252
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4dc299
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4dc295
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x4dc2a0
xor esi, esi
jmp 0x4dc2a0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4dc2ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 4], esi
pop edi
test esi, esi
jne 0x4dc2bd
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4dc2d7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4dc2fa
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.004dc100
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4dd660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ba278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4dd683
test eax, eax
jne 0x4dd738
mov eax, dword [0x5bb89c]
cmp eax, 0xffffffff
je 0x4dd738
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4dd737
mov eax, dword [0x5bb89c]
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.00469e6e
add esp, 4
mov edi, 0x100
nop dword [eax + eax]
mov esi, dword [0x5c5360]
xor dl, dl
test esi, esi
jle 0x4dd71e
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x404]
test ecx, ecx
je 0x4dd719
mov eax, dword [esi*4 + 0x5c5368]
test eax, eax
je 0x4dd719
push ecx
mov dword [ebp + esi*4 - 0x404], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x4dd6f0
dec edi
test edi, edi
jle 0x4dd727
test dl, dl
jne 0x4dd6e0
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.00469a1d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e4140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567642
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ba278]
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.00469b4f
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.00469b4f
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.004f0e40
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004eb560
add esp, 8
mov esi, dword [eax]
xor ecx, ecx
mov dword [eax], 0
mov dword [ebp + 8], ecx
test esi, esi
je 0x4e4317
cmp esi, dword [ebx + 4]
je 0x4e435c
mov edx, dword [ebx + 4]
mov dword [ebx + 4], ecx
test edx, edx
je 0x4e432c
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 0x4e4339
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4e4346
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.0052a5cb
int3
Function at 0x4e4680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x5c4938
mov dword [ebp - 4], esi
call fcn.004ee130
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 0x4e47b0
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 0x4e480d
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push esi
call fcn.004de200
add esp, 0xc
test eax, eax
je 0x4e480d
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004e4020
lea ecx, [ebp - 0xb4]
call fcn.004e6830
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e6830
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5679c0
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5ba278]
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 [0x5bb6cd], 0
je 0x4e6a6d
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004fd240
movzx eax, al
mov ecx, esi
push eax
call fcn.004fc6f0
mov ecx, esi
call fcn.00460e70
lea eax, [ebp - 0x428]
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
call fcn.004fce90
mov eax, dword [0x5c4960]
test eax, eax
je 0x4e68d3
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 0x4e6a62
test byte [0x5bb6c8], 2
je 0x4e68f9
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4e68fe
cmp dword [ebx], 2
jl 0x4e693c
cmp dword [ebp - 0x414], 0x10
lea edi, [ebp - 0x428]
mov esi, dword [ebp - 0x418]
cmovae edi, dword [ebp - 0x428]
push 2
call fcn.005262cd
push eax
push 1
push esi
push edi
call fcn.00527119
push 2
call fcn.005262cd
push eax
call fcn.0052661b
lea esi, [ebx + 0xc]
add esp, 0x1c
test byte [0x5bb6c8], 1
je 0x4e69e8
push 0
push 0
call fcn.004f0ca0
add esp, 8
cmp dword [0x5c496c], 0
jne 0x4e696e
push 0xffffffffffffffff
push dword [0x5c4968]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4e697a
push dword [0x5c4964]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004f1ff0
test al, al
je 0x4e69c5
push 2
push 0
push 0
push dword [0x5c4954]
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 [0x5c4954]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5c496c], 0
jne 0x4e69dc
push dword [0x5c4968]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e69e8
push dword [0x5c4964]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x4e6a62
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x418]
cmovae eax, dword [ebp - 0x428]
cmp ecx, 0x400
ja 0x4e6a9d
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00514610
lea eax, [ebp - 0x410]
push eax
call fcn.004ea300
add esp, 0x10
cmp dword [0x5c495c], 0
je 0x4e6aa2
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.004fce90
lea eax, [ebp - 0x444]
push eax
call dword [0x5c495c]
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.0047fee0
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.00469a1d
mov esp, ebp
pop ebp
ret
call fcn.005181c9
call fcn.004ea990
int3