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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
test esi, esi
jne 0x472e56
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
push dword [0x572a74]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x472ebf
push dword [0x572a74]
call edi
push dword [0x572a74]
cmp dword [eax], esi
jne 0x472e93
call edi
mov esi, eax
push dword [esi + 4]
push dword [0x572a74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
push esi
jmp 0x472eb7
call edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x472ebf
nop dword [eax]
mov edx, dword [ecx + 4]
cmp dword [ecx], esi
je 0x472eb1
mov eax, ecx
mov ecx, edx
test ecx, ecx
jne 0x472ea0
jmp 0x472ebf
push 8
mov dword [eax + 4], edx
push ecx
call fcn.0047f544
add esp, 8
movzx eax, byte [ebp + 8]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, ebx
call fcn.004d0170
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [0x572a74]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x473009
push esi
push dword [0x572a74]
call edi
mov esi, dword [ebp + 8]
push dword [0x572a74]
cmp dword [eax], esi
jne 0x472fde
call edi
mov esi, eax
push dword [esi + 4]
push dword [0x572a74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
push esi
call fcn.0047f544
add esp, 8
pop esi
pop edi
pop ebp
ret
call edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x473008
mov edx, dword [ecx + 4]
cmp dword [ecx], esi
je 0x472ffa
mov eax, ecx
mov ecx, edx
test ecx, ecx
jne 0x472fe7
pop esi
pop edi
pop ebp
ret
push 8
push ecx
mov dword [eax + 4], edx
call fcn.0047f544
add esp, 8
pop esi
pop edi
pop ebp
ret

Function at 0x473210
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push str.opening_clipboard
push 0x572a78
mov edi, ecx
call fcn.004172b0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47325b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047fc61
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x538058
lea ecx, [ebp - 0x14c]
call fcn.00473310
push 0x564f84
lea eax, [ebp - 0x14c]
push eax
call fcn.00481150
int3
Function at 0x473610
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a7c
mov eax, dword fs:[0]
push eax
sub esp, 0x164
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 esi, dword [ebp + 8]
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4737aa
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15c], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.0042a6c0
mov eax, dword [ebp - 0x160]
mov ecx, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x16c], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4736a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
lea ebx, [ecx + ecx]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x170], edi
test edi, edi
jne 0x4736e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x537fe4
jmp 0x4737b6
push edi
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 2
call fcn.00458c10
mov esi, dword [ebp - 0x168]
test ebx, ebx
jle 0x47370c
push ebx
push dword [ebp - 0x16c]
push esi
call fcn.00481850
add esp, 0xc
test esi, esi
je 0x473717
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp byte [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x160]
mov byte [ebp - 4], 5
je 0x473746
test ecx, ecx
je 0x473746
mov eax, dword [ebp - 0x164]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x160]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x170], 0
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x47378c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x538000
jmp 0x4737b6
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x537ff0
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3
Function at 0x474c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
mov dword [ebp - 4], ecx
jne 0x474cec
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, 0x100
je 0x474c29
cmp eax, 0x104
jne 0x474cec
movzx eax, byte [ecx + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
mov dword [ebp + 0xc], eax
call esi
movsx ebx, ax
push 0x11
shr ebx, 0xf
call esi
movsx edi, ax
push 0x12
shr edi, 0xf
call esi
mov esi, dword [ebp - 4]
and edi, 1
movzx edx, ax
and ebx, 1
shr edx, 0xf
and edx, 1
shl edi, 0x1a
mov esi, dword [esi + 0x40]
mov eax, esi
shl edx, 0x1b
or edx, edi
shl ebx, 0x19
or edx, ebx
mov ecx, dword [eax + 4]
or edx, dword [ebp + 0xc]
cmp byte [ecx + 0xd], 0
jne 0x474c9e
cmp dword [ecx + 0x10], edx
jge 0x474c8b
mov ecx, dword [ecx + 8]
jmp 0x474c8f
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x474c81
cmp eax, esi
je 0x474c9e
cmp edx, dword [eax + 0x10]
jge 0x474ca0
mov eax, esi
cmp eax, esi
je 0x474ce9
mov edi, dword [eax + 0x14]
mov esi, dword [edi + 8]
test esi, esi
jne 0x474cca
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
test esi, esi
jne 0x474cca
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x474cdf
call fcn.0046cbb0
mov esi, eax
test esi, esi
je 0x474cdf
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x10]
call edx
test al, al
je 0x474cdf
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x474ff0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523c98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 dword [ebp - 0x10], ecx
cmp dword [ecx + 0x1c], 0
lea ebx, [ecx + 0x1c]
je 0x47503b
push 0xffffffffffffffff
push 0
call fcn.00407040
push dword [ebx]
mov esi, eax
call fcn.0047f552
add esp, 0xc
mov dword [ebx], esi
mov edi, dword [ebp + 8]
mov ecx, 0x56e070
mov esi, edi
and esi, 0x1ffffff
push esi
call fcn.004db270
mov dword [ebp + 8], eax
test eax, eax
jne 0x47509d
push esi
call fcn.004dd3c0
mov esi, eax
add esp, 4
test esi, esi
je 0x475152
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
call fcn.004e2dd0
movzx ecx, ax
add esp, 8
cmp cx, 0xffff
je 0x475152
mov eax, ecx
shr eax, 8
test al, al
jne 0x475152
movzx eax, cl
mov dword [ebp + 8], eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004dc450
push dword [eax]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0041acd0
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f552
mov ebx, dword [ebp - 0x10]
add esp, 4
mov ecx, ebx
mov eax, dword [ebx]
push dword [ebx + 0xc]
call dword [eax]
mov eax, dword [ebp + 8]
and edi, 0xfe000000
movzx eax, al
mov edx, 0x44
or edi, eax
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebp - 0x10], edi
lea ecx, [eax + 0x38]
cmove ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ecx]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x475122
cmp dword [eax + 0x10], edi
jge 0x47510f
mov eax, dword [eax + 8]
jmp 0x475113
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x475105
cmp esi, edx
je 0x475122
cmp edi, dword [esi + 0x10]
jge 0x47514f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x538089
call fcn.00473890
mov ecx, dword [ebp - 0x18]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp + 8]
push eax
call fcn.00473a50
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 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
Function at 0x4774c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523fa0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
mov dword [edi], 0
cmp byte [esi + 8], 0
mov dword [ebp + 0x10], eax
je 0x477535
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x477535
mov eax, dword [esi]
add eax, eax
push eax
push ecx
call fcn.00408000
add esp, 8
push dword [esi + 4]
call fcn.0047f552
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add esp, 4
test eax, eax
cmovle eax, ecx
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
movzx eax, byte [edi + 8]
mov byte [esi + 8], al
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov dword [esi + 0xc], eax
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x477760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524020
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 1
sub eax, ecx
mov dword [ebp - 4], 0
push eax
push 0xfde9
push ecx
mov ecx, esi
call fcn.0042a6c0
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.00407040
mov dword [esi + 0xc], eax
add esp, 8
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
mov byte [esi + 0x28], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
movups xmmword [esi + 0x10], xmm0
test eax, eax
je 0x477836
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477810
sub eax, edx
sar eax, 1
mov dword [esi + 0x38], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov dword [esi + 0x38], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x47b420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5243d6
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ecx], vtable.ui::MenuBar.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
cmp dword [0x572ab8], 0
mov byte [ebp - 4], 4
jne 0x47b556
mov dword [0x572ab8], ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret
push 0xf
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcoreuilibsuimenubar.cxx
push str._inst_
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
int3

Function at 0x47ffab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047f514

Function at 0x4b7f40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7b38

Function at 0x4b7f4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7cc2

Function at 0x4bae84
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba882

Function at 0x4bc08d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bbf61
Function at 0x4ca8d0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524966
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x56d370]
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 al, byte [ebp + 8]
mov byte [ebp - 0x2a1], al
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x1c], 0
test eax, eax
je 0x4ca91d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x2b8]
push 0xffffffffffffffff
push str..pipe_
mov dword [ebp - 4], 0
mov esi, dword [eax + 4]
call fcn.00407520
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x2b8]
call fcn.00407520
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 0x2a8], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
call fcn.0042a6c0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x28]
add eax, 0xc
push eax
movzx eax, byte [ebp - 0x2a1]
push 0
push ecx
push ecx
push 0xff
shl eax, 0x13
push 0
or eax, 0x40000003
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x1c], eax
test ecx, ecx
je 0x4ca9d9
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2a8], 0
mov ecx, dword [ebp - 0x2ac]
mov byte [ebp - 4], 2
je 0x4caa08
test ecx, ecx
je 0x4caa08
mov eax, dword [ebp - 0x2b0]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x2ac]
add esp, 8
push ecx
call fcn.0047f552
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0047f552
mov ecx, dword [edi + 0x1c]
add esp, 8
cmp ecx, 0xffffffff
je 0x4caab4
lea eax, [edi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4caa90
call esi
cmp eax, 0x217
je 0x4caa85
cmp eax, 0x3e5
jne 0x4caa90
mov byte [edi + 0x24], 1
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.0047fc61
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4caa68
call esi
push eax
push 0x548800
lea ecx, [ebp - 0x2a0]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x2a0]
push eax
call fcn.00481150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3
Function at 0x4cf840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52527f
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 [0x573e1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4cf8b9
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 0x4cf8aa
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf3b0
mov dword [esi], eax
jmp 0x4cf8ac
xor esi, esi
push esi
push dword [0x573e1c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x573e1c]
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 0x4cfb40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5252a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xa1
jne 0x4cfc35
push dword [0x573e14]
mov dword [ebp - 0x2b4], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4cfccc
lea eax, [ebp - 0x2b4]
push eax
push dword [0x573e14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2b4]
push 0
push 0xa
push 0xc0de30da
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xa1
push dword [ebp - 0x2b8]
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov dword [ebx], eax
push dword [0x573e14]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
jne 0x4cfcac
push 0
push dword [0x573e14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x4cfc31
push 0xc0de30da
push dword [eax + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov al, 1
jmp 0x4cfc8f
cmp eax, 0x113
jne 0x4cfc8d
cmp dword [ebp + 0x10], 0xc0de30da
jne 0x4cfc8d
push 0
push 0x5701c8
push 0x5701ac
push 0
mov dword [ebp - 4], 1
call fcn.004438a0
push eax
call fcn.00482e33
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [esi + 0xb4]
call fcn.00442ae0
mov ecx, esi
call fcn.00443470
mov dword [ebx], 0
mov al, 1
jmp 0x4cfc8f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret 0x14
push 0x1b3
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinwindow.cxx
push str.thrPumper__this
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
push 0x1ac
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinwindow.cxx
push str._thrPumper
lea ecx, [ebp - 0x2b0]
call fcn.00428e20
push eax
call fcn.00428ea0
int3
Function at 0x4d0170
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4d01b9
cmp dword [esi + 0x10], 0
jne 0x4d0186
cmp byte [esi + 8], 0
je 0x4d01b9
push 0
push esi
push eax
call fcn.004d1440
add esp, 0xc
push 0xfffffffffffffffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, 0x4d1640
jne 0x4d01b2
push dword [esi + 0x14]
push 0xfffffffffffffffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 0x14], 0
push edi
push dword [0x573e14]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x4d01e6
push dword [0x573e14]
call edi
cmp dword [eax], esi
jne 0x4d01e6
push dword [0x573e14]
call edi
mov dword [eax], 0
mov eax, dword [esi + 4]
pop edi
test eax, eax
je 0x4d01fb
cmp byte [esi + 8], 0
je 0x4d01fb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
pop esi
ret

Function at 0x4d08a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525400
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
je 0x4d08f9
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ffab
add esp, 4
mov esi, eax
jmp 0x4d08fb
xor esi, esi
push 0
call fcn.0047f552
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [esi + edi*2 - 2], ax
add esp, 4
mov word [esi], ax
push edi
push esi
push dword [ebx + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00411420
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4d094c
push 0x548f48
push dword [ebp - 0x18]
call fcn.004071c0
add esp, 8
mov eax, dword [ebp - 0x18]
lea ecx, [ebx + 0xc]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00407e80
mov edi, dword [eax]
cmp byte [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
je 0x4d0988
test eax, eax
je 0x4d0988
push dword [ebp - 0x1c]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x18]
add esp, 8
push eax
call fcn.0047f552
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, esi
mov dword [ebp - 4], 3
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d09b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
call fcn.00408000
push esi
call fcn.0047f552
push 0
call fcn.0047f552
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4