joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x110
lea eax, [ebp - 0x114]
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x128], ebx
mov edi, ecx
call fcn.004d00d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x4332a7
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cdf2e
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
mov dword [ebx], 0x3000
push edi
push esi
push 0x1fffff
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4333b9
lea eax, [ebp - 0x120]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4333b6
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], esi
push eax
push esi
push esi
push 0x19
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4333ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4333ae
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4333ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4333ac
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x11c]
push esi
push 0x19
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x433394
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test eax, eax
je 0x433394
movzx eax, byte [eax]
dec eax
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x124], 1
mov eax, dword [eax]
mov dword [ecx], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x124]
jmp 0x4333ae
xor esi, esi
push dword [ebp - 0x120]
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004cdf2e
mov esp, ebp
pop ebp
ret
Function at 0x4337c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x24]
call fcn.0042e780
push str.check.dat
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406cf0
lea ecx, [ebp - 0x24]
call fcn.0042fc90
mov esi, dword [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
je 0x433858
push 1
mov edx, 0x62bf00
lea ecx, [ebp - 0x10]
call fcn.0042fd50
add esp, 4
mov ebx, eax
test edi, edi
je 0x433838
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jle 0x433858
test esi, esi
je 0x433848
cmp word [esi], 0
mov eax, esi
jne 0x43384d
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x43385a
mov bl, 1
test esi, esi
je 0x433867
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x433877
push eax
call fcn.004d2e13
add esp, 4
mov al, bl
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 0x433890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
mov eax, dword [esi]
test eax, eax
je 0x4338ae
cmp word [eax], 0
jne 0x4338b3
mov eax, 0x628fa4
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
xor edi, edi
lea ecx, [ebx*2 + 2]
test ecx, ecx
jle 0x4338da
push 1
push ecx
call fcn.004d8c1a
add esp, 8
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4338e6
cmp word [eax], 0
jne 0x4338eb
mov eax, 0x628fa4
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x433923
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x6294f0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x433957
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
je 0x43394e
push edi
call fcn.004d2e13
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
movzx esi, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 0xc]
movzx eax, word [eax + 0xa]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
test edi, edi
je 0x433982
push edi
call fcn.004d2e13
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a35c
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x43a37f
or esi, 1
push 1
call edi
test ax, ax
jns 0x43a38b
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x43a397
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x43a3a3
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x43ac96
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xd8]
call fcn.0043ed50
mov edi, dword [ebp + 8]
test eax, eax
jle 0x43ace6
push ebx
mov byte [ebp + 0xb], 0
call fcn.0043f8a9
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x43ad41
lea ecx, [esi + 0xd8]
inc ebx
call fcn.0043ed50
cmp ebx, eax
jl 0x43acb5
sub edi, 0x100
je 0x43ad9b
sub edi, 4
je 0x43ad45
dec edi
sub edi, 1
jne 0x43ad92
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.004e1751
pop ecx
mov ecx, dword [esi + 0x50]
lea edx, [ebp + 8]
push 0x8000000a
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x43d95c
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x43ad92
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x43ad94
cmp dword [esi + 0x54], 0
je 0x43ad92
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x68]
and dword [ebp - 0x1c], 0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x64]
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
call fcn.0043a35c
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x43ad92
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x43ade8
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x43ade8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x43ade8
mov ecx, dword [esi + 0x54]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004cfb55
pop ecx
pop ecx
test eax, eax
je 0x43ade8
mov ecx, dword [esi + 0x54]
call fcn.00448712
test al, al
jne 0x43ad92
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0043ccd0
jmp 0x43ad41
Function at 0x43c8ba
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi]
je 0x43c8d9
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp + 8]
cmp esi, dword [edi + 0x54]
je 0x43c9b9
cmp dword [edi + 0x54], 0
je 0x43c93d
and dword [esp + 0x24], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.killfocus
push dword [edi + 0x54]
mov ecx, edi
call fcn.0043cee2
and dword [edi + 0x54], 0
test esi, esi
je 0x43c9b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x43c9b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x43c9b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x43c9b9
and dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [edi + 0x54], esi
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.setfocus
push dword [edi + 0x54]
mov ecx, edi
call fcn.0043cee2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43ee24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43ee56
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x445746
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.004457e5
push 0x62b5f4
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4457e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4457d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4457d9
push edi
call fcn.004ce3fc
pop ecx
push edi
push ebx
mov dword [0x64c724], eax
mov dword [0x64c728], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x64c724]
call fcn.004d0350
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [0x64c728]
mov ecx, dword [0x64c724]
push 3
call fcn.0040f4b0
pop ecx
mov dword [0x64c720], eax
mov dword [0x645a64], 4
jmp 0x4457e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4458e6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x64c72c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
test eax, eax
je 0x445909
push 1
push eax
call fcn.004ce396
pop ecx
pop ecx
mov dword [0x64c72c], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
mov dword [0x64c730], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445931
xor al, al
jmp 0x44598b
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x445949
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x445979
push edi
mov dword [ebp - 4], ebx
call fcn.004ce3fc
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x44597d
push ebx
call fcn.004ce3c7
pop ecx
xor al, al
jmp 0x44598a
mov dword [0x64c730], eax
mov al, 1
mov dword [0x64c72c], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44898a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4dc], 0
je 0x4489f3
cmp dword [ebp + 8], 0x100
jne 0x4489e3
cmp word [ebp + 0xc], 0xd
jne 0x4489e3
cmp byte [esi + 0x4e2], 0
je 0x4489c8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4489e3
cmp byte [esi + 0x4e3], 0
jne 0x4489e3
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4489df
push ecx
push 0
push 0
push str.return
push esi
call fcn.0043cee2
xor eax, eax
jmp 0x4489f6
mov eax, dword [esi + 0x4dc]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x44f01e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x44f04a
cmp eax, edi
jge 0x44f03e
call fcn.0044e95a
mov eax, dword [esi + 8]
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x44f070
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x44f053
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x44f08a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x44f07b
xor dl, dl
jmp 0x44f080
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x44f072
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x44f0b7
call fcn.00418740
jmp 0x44f0ed
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x44f0b0
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x44f0d7
mov edx, edi
mov ecx, esi
call fcn.0044e98e
test eax, eax
je 0x44f0ed
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004d0350
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4588dc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x458949
cmp dword [esi + 0x10], 0
je 0x458949
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004cf160
mov ebx, esp
test ebx, ebx
je 0x458949
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0043fa89
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0
mov eax, dword [ecx]
push 0x631fc4
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043cee2
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cdf2e
leave
ret 0x10
Function at 0x464a01
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x98], esi
mov dword [esi + 0x10], eax
mov dword [eax + 0x5a4], ebx
cmp dword [esi + 4], ebx
jne 0x464a96
lea eax, [ebp - 0xa8]
push eax
call fcn.00464b0d
mov ecx, dword [esi + 0x10]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
push 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043aae0
mov esi, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.0043ed54
mov ecx, dword [esi + 0x10]
call fcn.0045fdeb
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043d519
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.0043fa3b
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0043f923
mov edi, 0x594
test bl, bl
je 0x464ace
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.004cdf2e
leave
ret 4
Function at 0x46a050
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc72c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6441a4]
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
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x54], 0
mov dword [esi], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 6
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
mov byte [esi + 0x54], 0
mov dword [esi + 0x6c], 0
lea ecx, [esi + 0x74]
mov dword [ebp - 4], 0
mov dword [esi + 0x70], 0
mov dword [ebp - 0x14], ecx
call fcn.00475cd0
push 0x7c
mov byte [ebp - 4], 1
mov dword [esi + 0x7c], vtable.mars::comm::Thread.0
mov dword [esi + 0x80], 0
mov byte [esi + 0x84], 0
call fcn.004ce3cc
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x46a17e
push 0xc
call fcn.004ce3cc
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46a172
push eax
mov ecx, edi
mov dword [eax], vtable.detail::RunnableFunctor_class_mars_boost::_bi::bind_t_void__class_mars_boost::_mfi::mf0_void__class_mars::xlog::XloggerAppender___class_mars_boost::_bi::list1_class_mars_boost::_bi::value_class_mars::xlog::XloggerAppender_____.0
mov dword [eax + 4], 0x46d0f0
mov dword [eax + 8], esi
call fcn.00469fa0
jmp 0x46a180
xor eax, eax
mov ecx, edi
push eax
call fcn.00469fa0
jmp 0x46a180
xor eax, eax
mov dword [esi + 0x80], eax
lea ecx, [ebp - 0x18]
push 1
add eax, 0x70
push eax
call fcn.00469930
mov eax, dword [esi + 0x80]
inc dword [eax + 4]
cmp byte [ebp - 0x14], 0
je 0x46a1ae
mov eax, dword [ebp - 0x18]
xor ecx, ecx
xchg dword [eax], ecx
mov byte [ebp - 0x14], 0
lea eax, [esi + 0x88]
push 2
push eax
call fcn.004b6e76
lea eax, [esi + 0xb8]
push 2
push eax
call fcn.004b6e76
mov dword [esi + 0xe8], 0
lea eax, [esi + 0x11c]
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov word [esi + 0xf8], 0x100
push 2
push eax
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
call fcn.004b6e76
mov dword [esi + 0x14c], 0
push 0x400
lea eax, [esi + 0x170]
mov byte [ebp - 4], 6
push 0
push eax
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0xd2f00
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
call fcn.004d00d0
add esp, 0x24
mov ecx, esi
push dword [ebp + 8]
call fcn.0046b570
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 4
Function at 0x46c820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esi + 0xfc]
mov dword [esi], eax
call fcn.00471670
cmp dword [esi], 0
jne 0x46c8ef
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x46c8ef
push 1
add eax, 0x70
lea ecx, [ebp - 8]
push eax
call fcn.00469930
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x46c8e2
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 0x80]
mov al, byte [esi + 0x84]
push edi
push 0
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x80]
push 0
inc dword [eax + 4]
mov edi, dword [esi + 0x80]
push edi
push 0x471c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46c8ac
mov dword [edi + 8], eax
jmp 0x46c8e1
push str.thrd_success__ret
push 0x628f39
push 0xcc
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
call sym.WeChatUpdate.exe___ASSERT
mov eax, dword [esi + 0x80]
add esp, 0x10
mov byte [eax + 0xd], 1
lea eax, [ebp - 8]
mov ecx, dword [esi + 0x80]
push eax
call fcn.0046c6e0
pop edi
cmp byte [ebp - 4], 0
je 0x46c8ef
mov eax, dword [ebp - 8]
xor ecx, ecx
xchg dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x471ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [ebp - 8]
push edi
push 1
mov eax, dword [esi + 4]
add eax, 0x70
push eax
call fcn.00469930
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
je 0x471c4d
mov dword [eax + 0x6c], 0
mov eax, dword [esi + 4]
push 0
push 0
mov byte [eax + 0x18], 0
mov eax, dword [esi + 4]
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 4]
mov al, byte [esi + 8]
mov byte [ecx + 0xc], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edi, dword [esi + 4]
push edi
push 0x471ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x471c4a
push str.thrd_success__ret
push 0x628f39
push 0x103
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
or edi, 0xffffffff
call sym.WeChatUpdate.exe___ASSERT
mov eax, dword [esi + 4]
add esp, 0x10
mov byte [eax + 0xd], 1
mov eax, dword [esi + 4]
mov dword [eax + 0x10], edi
lea eax, [ebp - 8]
mov ecx, dword [esi + 4]
push eax
call fcn.0046c6e0
jmp 0x471c4f
mov dword [edi + 8], eax
xor edi, edi
cmp byte [ebp - 4], 0
je 0x471c5c
mov ecx, dword [ebp - 8]
xor edx, edx
xchg dword [ecx], edx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4