joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d12a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52550f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
je 0x4d1317
call fcn.004cf840
mov esi, eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov edi, dword [esi]
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.004ce610
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [esi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x4d1429
inc eax
mov dword [esi + 4], eax
mov dword [edi + 4], edx
mov dword [ebx], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
call fcn.004cf840
mov ecx, eax
call fcn.004d15c0
call fcn.004d1ed0
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [eax]
mov edi, dword [edi]
push dword [0x573e18]
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
jne 0x4d1391
push 8
call fcn.0047f514
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d137b
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf3e0
mov dword [esi], eax
jmp 0x4d137d
xor esi, esi
push esi
push dword [0x573e18]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x573e18]
call ebx
cmp edi, dword [eax]
je 0x4d1305
mov edx, dword [edi + 8]
mov dword [ebp + 0xc], edx
mov esi, dword [edx]
mov ecx, esi
mov eax, dword [esi]
cmp eax, esi
je 0x4d13db
mov edi, edx
mov edx, dword [ebp + 8]
cmp dword [eax + 8], edx
lea ecx, [eax + 8]
jne 0x4d13c7
lea ebx, [ebp + 8]
cmp ecx, ebx
jne 0x4d1405
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x4d13b6
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, ecx
je 0x4d1334
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push 0xc
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edx + 4]
call fcn.0047f544
add esp, 8
jmp 0x4d1334
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
push 0xc
push eax
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 4]
call fcn.0047f544
mov edx, dword [ebp + 8]
add esp, 8
mov eax, ebx
jmp 0x4d13c9
push str.list_T__too_long
call fcn.0047f1b7
int3
Function at 0x4d1ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52559f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x573e18]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4d1f49
push 8
call fcn.0047f514
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d1f3a
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf3e0
mov dword [esi], eax
jmp 0x4d1f3c
xor esi, esi
push esi
push dword [0x573e18]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x573e18]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5255cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x573e20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4d1fe5
push 8
call fcn.0047f514
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d1fd6
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf390
mov dword [esi], eax
jmp 0x4d1fd8
xor esi, esi
push esi
push dword [0x573e20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x573e20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e2ab0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
movzx edi, al
mov esi, ecx
push ebx
push edi
push str.vkCode_0x_x_flags_0x_x
push 0x573f10
mov dword [ebp - 4], edi
call fcn.004158f0
mov edx, ebx
lea eax, [esi + 4]
and edx, 1
mov dword [ebp - 8], eax
shl edx, 8
add esp, 0x10
or edx, edi
mov dword [ebp - 0x10], edx
test bl, 2
je 0x4e2ba5
mov ebx, dword [eax]
mov esi, ebx
mov eax, dword [ebx + 4]
mov ecx, eax
cmp byte [ecx + 0xd], 0
jne 0x4e2b2a
mov edi, dword [ecx + 0x10]
cmp edi, edx
jge 0x4e2b12
mov ecx, dword [ecx + 8]
jmp 0x4e2b21
cmp byte [esi + 0xd], 0
je 0x4e2b1d
cmp edx, edi
cmovl esi, ecx
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4e2b06
mov edi, dword [ebp - 4]
cmp byte [esi + 0xd], 0
jne 0x4e2b32
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4e2b4c
cmp edx, dword [eax + 0x10]
jge 0x4e2b43
mov esi, eax
mov eax, dword [eax]
jmp 0x4e2b46
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x4e2b38
mov eax, ebx
cmp ebx, esi
je 0x4e2b92
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x4e2b78
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4e2b74
cmp eax, dword [ecx + 8]
jne 0x4e2b74
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4e2b64
mov eax, ecx
jmp 0x4e2b8e
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x4e2b8e
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x4e2b82
cmp eax, esi
jne 0x4e2b52
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push esi
push ebx
push eax
call fcn.004e2790
mov ebx, dword [ebp + 0xc]
jmp 0x4e2bb9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.004e20f0
push 0
push ebx
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e2ef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
test eax, eax
je 0x4e2f37
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x4e2f6c
mov eax, dword [esi + 8]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
call fcn.0047fc61
mov esp, ebp
pop ebp
ret 0x10
push 0xd
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinwinhook.cxx
push str._next__next__getHookType____hookType
lea ecx, [ebp - 0x154]
call fcn.00428e20
push eax
call fcn.00428ea0
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526210
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x4e305e
mov eax, dword [esi + 8]
push dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret
push 0x14
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinwinhook.cxx
push str.pThrInst__this
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
int3
Function at 0x4e4890
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5264a3
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x56d370]
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 eax, dword fs:[0x2c]
mov ecx, dword [0x572b38]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x573f5c]
cmp eax, dword [ecx + 4]
jg 0x4e4a66
mov eax, dword [0x573f54]
test eax, eax
je 0x4e4a44
lea ecx, [ebp - 0x2a4]
push ecx
push edi
call eax
test eax, eax
je 0x4e4ac0
push dword [ebp - 0x2a4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x4e4ae8
lea eax, [ebp - 0x2ac]
push eax
push edi
call dword [0x573f54]
test eax, eax
je 0x4e4a33
mov eax, dword [ebp - 0x2a4]
cmp eax, dword [ebp - 0x2ac]
jne 0x4e4a33
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 2
push eax
push 0x20008
push esi
mov dword [ebp - 0x2a0], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4e498b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52e45c
jmp 0x4e4acc
xor eax, eax
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a0]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4e49b3
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.0042ba30
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4e4a13
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4e4a13
push dword [ebp - 0x2a8]
call fcn.0047f552
mov eax, dword [ebp - 0x2a0]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2a0], 0
test eax, eax
je 0x4e49f4
push eax
call edi
push esi
call edi
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.0047fc61
mov esp, ebp
pop ebp
ret
push str.I_refuse_to_connect:_endpoint_had_unexpected_identity
lea ecx, [ebp - 0x29c]
call fcn.0040e5c0
push 0x559148
lea eax, [ebp - 0x29c]
jmp 0x4e4ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.process_sync_failed_w_GetNamedPipeServerProcessId
jmp 0x4e4acc
push str.GetNamedPipeServerProcessId
push str.Kernel32
lea ecx, [ebp - 0x29c]
call fcn.00411280
push 0x55993c
lea eax, [ebp - 0x29c]
jmp 0x4e4ae2
push 0x573f5c
call fcn.0047fb55
add esp, 4
cmp dword [0x573f5c], 0xffffffff
jne 0x4e48e4
push 0
push str.GetNamedPipeServerProcessId
push str.Kernel32
mov ecx, 0x573f54
mov dword [ebp - 4], 0
call fcn.0042cc40
push 0x5287d0
call fcn.0047f932
push 0x573f5c
mov dword [ebp - 4], 0xffffffff
call fcn.0047fb0b
add esp, 8
jmp 0x4e48e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetNamedPipeServerProcessId
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x158]
push str.OpenProcess__lu_
push eax
call fcn.0040e910
add esp, 0x10
lea eax, [ebp - 0x158]
push 0x559830
push eax
call fcn.00481150
int3
Function at 0x4e4bd0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5264db
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x360], esi
mov dword [ebp - 0x370], esi
mov dword [esi], 0
lea eax, [ebp - 0x360]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x360], 0x101
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4e4c45
cmp byte [ebp + 8], al
jne 0x4e4ca4
mov word [ebp - 0x214], ax
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00411420
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x36c], 0
mov dword [esi], ecx
push 0
call fcn.0047f552
add esp, 4
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.0047fc61
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName
lea ecx, [ebp - 0x35c]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x35c]
push eax
call fcn.00481150
int3

Function at 0x4e5d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526720
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
lea esi, [ecx + 8]
mov edx, dword [ecx + 4]
test eax, eax
je 0x4e5d36
mov byte [eax], 0
push dword [ebp + 8]
push 0x5c
push edx
push str._s_c_s
push esi
call fcn.00407700
add esp, 0x14
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.0040da20
push 0
push 1
push dword [eax]
mov dword [ebp - 4], 0
call fcn.00410dc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f552
add esp, 0x10
lea ecx, [ebp - 0x28]
push 0
push dword [esi]
call fcn.004f29f0
push dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebp - 4], 1
push dword [eax]
push dword [eax + 4]
call fcn.004a26a4
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.004f2b10
lea ecx, [ebp - 0x28]
call fcn.004f2aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4f0f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
push 0x52e454
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0042b4f0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.0042a910
push dword [ebp - 0x10]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0042b0a0
push dword [ebp - 0x18]
mov bl, al
call fcn.0047f552
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f552
add esp, 8
test bl, bl
jne 0x4f1010
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], bl
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.0042a6c0
push 0xa
push 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push str.open
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4f1010
mov bl, 1
jmp 0x4f1012
xor bl, bl
test byte [ebp - 0x14], 1
je 0x4f1047
cmp byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 4
je 0x4f103e
test ecx, ecx
je 0x4f103e
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x20]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f1130
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526b6c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], vtable.plat::Thread.0
call fcn.00407040
add esp, 8
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0xc]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 1
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 2
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
call fcn.00444bf0
push esi
push 4
push edi
push 0x4f1bf0
push 0
push 0
mov byte [ebp - 4], 3
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x529af8
push 0x529af8
push dword [esi]
mov dword [edi + 4], eax
push dword [edi + 8]
push str.created
push str.__9s__s__x_s_s
push dword [0x56fa3c]
push 0x573fa8
call fcn.0040ccf0
add esp, 0x20
call fcn.004f1580
cmp dword [eax], 0
je 0x4f1275
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [edi + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0042a6c0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004f1580
push esi
push dword [edi + 4]
mov eax, dword [eax]
call eax
cmp byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 6
je 0x4f126c
test ecx, ecx
je 0x4f126c
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x18]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov eax, edi
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 0x4f1700
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526c50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x14]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2c], 0
lea ebx, [edi + 4]
mov dword [ebp - 4], 0
jne 0x4f174f
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [edi + 0x30], 0
jne 0x4f185f
mov eax, dword [edi + 0x2c]
cmp eax, 4
je 0x4f185f
cmp eax, 3
jne 0x4f1771
mov bl, 1
jmp 0x4f1861
push 0x529af8
push 0x529af8
push dword [edi + 0xc]
push dword [edi + 8]
push str.join
push str.__9s__s__x_s_s
push dword [0x56fa3c]
push 0x573fa8
call fcn.0040ccf0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
mov ecx, ebx
call fcn.004f1e00
test al, al
jne 0x4f17fd
push 0x529af8
push 0x529af8
push dword [edi + 0xc]
push dword [edi + 8]
push str.timeout
push str.__9s__s__x_s_s
push dword [0x56fa3c]
push 0x573fa8
call fcn.0040ccf0
add esp, 0x20
xor al, al
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
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x529af8
push 0x529af8
push dword [edi + 0xc]
mov dword [ebp - 4], 1
push dword [edi + 8]
mov dword [edi + 0x2c], 3
push str.joined
push str.__9s__s__x_s_s
push dword [0x56fa40]
push 0x573fa8
call fcn.0040ccf0
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
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
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 4

Function at 0x4f1a90
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2c], 0
jne 0x4f1ab4
push dword [edi + 4]
mov dword [edi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x4f1ac0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push edi
push dword [0x573fc4]
mov dword [ebp - 0x118], edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x529af8
push 0x529af8
push dword [edi + 0xc]
push dword [edi + 8]
push str.started
push str.__9s__s__x_s_s
push dword [0x56fa3c]
push 0x573fa8
call fcn.0040ccf0
mov eax, dword [edi]
add esp, 0x20
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 4]
push 0x529af8
push 0x529af8
push dword [edi + 0xc]
push dword [edi + 8]
push str.stopped
push str.__9s__s__x_s_s
push dword [0x56fa3c]
push 0x573fa8
call fcn.0040ccf0
add esp, 0x20
jmp 0x4f1ba4
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x30], 0
mov dword [edi + 0x2c], 2
push esi
jne 0x4f1bc4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4f1bd2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret
Function at 0x4f1e70
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526e03
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x56d370]
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
mov dword [ebp - 0x164], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0xc]
mov dword [ebp - 0x16c], edi
mov ecx, esi
mov dword [edi], vtable.io::Io.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x168], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406750
mov dword [esi], eax
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
lea ebx, [edi + 0x18]
mov dword [eax], vtable.plat::Timer::Callback.0
mov dword [ebx], vtable.os::HandleInStream::Callback.0
mov dword [edi + 0x1c], vtable.os::HandleOutStream::Callback.0
mov dword [edi], vtable.os::HandleIo.1.0
mov dword [eax], vtable.os::HandleIo.2.0
mov dword [ebx], vtable.os::HandleIo.3.0
mov dword [edi + 0x1c], vtable.os::HandleIo.0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov word [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], 0
lea esi, [edi + 0x70]
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebp - 0x168]
mov byte [ebp - 4], 6
test eax, eax
je 0x4f202c
cmp dword [edi + 0x20], 0
jne 0x4f204c
push 0x5c
mov dword [edi + 0x20], eax
call fcn.0047f514
add esp, 4
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4f1fe3
push 0
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
mov ecx, eax
call fcn.004f2eb0
jmp 0x4f1fe5
xor eax, eax
push 0x64
mov byte [ebp - 4], 6
mov dword [edi + 4], eax
call fcn.0047f514
add esp, 4
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4f2016
push 0xffffffffffffffff
lea ecx, [edi + 0x1c]
push ecx
push dword [edi + 0x20]
mov ecx, eax
call fcn.004f35b0
jmp 0x4f2018
xor eax, eax
push dword [edi + 0x20]
mov dword [edi + 8], eax
push str._handle__p_
push esi
call fcn.00407700
add esp, 0xc
mov eax, edi
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.0047fc61
mov esp, ebp
pop ebp
ret 4
push 0x1c
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinhandleio.cxx
push 0x54a860
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
int3