joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b340
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cccb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
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 dword [ebp - 0x2b0], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push 0
push 2
push eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42b4a0
mov eax, dword [ebp - 0x2a8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x2b8], ebx
test eax, eax
mov byte [ebp - 0x2b4], bl
mov esi, eax
cmovle esi, ecx
test esi, esi
cmovle esi, ecx
test esi, esi
jg 0x42b3d4
xor edi, edi
jmp 0x42b3f4
push esi
call fcn.0047ffab
push 0
mov ebx, eax
call fcn.0047f552
mov eax, dword [ebp - 0x2a8]
add esp, 8
mov dword [ebp - 0x2b8], ebx
mov edi, ebx
mov dword [ebp - 0x2bc], esi
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], 0
push ecx
push eax
push ebx
push 2
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42b4c7
xor esi, esi
cmp dword [ebx], esi
jbe 0x42b456
add edi, 4
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x42b44e
mov ecx, dword [ebp - 0x2b0]
mov ecx, dword [ecx]
test ecx, ecx
je 0x42b44e
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42b48a
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x42b430
mov byte [ebp - 0x2a1], 0
push ebx
call fcn.0047f552
mov al, byte [ebp - 0x2a1]
add esp, 4
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 8
cmp byte [ebp + 0xc], 0
je 0x42b497
test byte [ebx + esi*8 + 8], 4
je 0x42b456
mov byte [ebp - 0x2a1], 1
jmp 0x42b45d
call sub.KERNEL32.dll_GetLastError
push eax
push 0x52e4a4
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
call sub.KERNEL32.dll_GetLastError
push eax
push 0x52e4a4
lea ecx, [ebp - 0x2a0]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x2a0]
push eax
call fcn.00481150
int3
Function at 0x42d0f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d141
mov eax, dword fs:[0]
push eax
sub esp, 0x138
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 ebx, dword [ebp + 8]
push ebx
call fcn.0040e220
add esp, 4
test al, al
jne 0x42d2b0
push str.API_MS_WIN_
push ebx
call fcn.00406e40
add esp, 8
test al, al
je 0x42d191
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.00481640
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42d191
cmp dword [ebp - 0x120], 6
ja 0x42d2b0
jne 0x42d191
cmp dword [ebp - 0x11c], 2
jae 0x42d2b0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push 0x400
mov dword [ebp - 4], 2
call fcn.004075b0
xor ecx, ecx
mov dword [ebp - 0x128], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ffab
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42d20d
mov ecx, dword [ebp - 0x128]
dec ecx
push ecx
push eax
push edi
call fcn.004a0261
mov eax, dword [ebp - 0x128]
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
push dword [ebp - 0x12c]
call fcn.0047f552
add esp, 0x10
jmp 0x42d212
xor eax, eax
mov word [edi], ax
mov dword [ebp - 0x12c], edi
mov esi, dword [ebp - 0x128]
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jb 0x42d23e
push dword [ebp - 0x12c]
xor esi, esi
jmp 0x42d328
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x13c], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push ebx
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 4
call fcn.0042a6c0
push 0xffffffffffffffff
push dword [ebp - 0x140]
lea ecx, [ebp - 0x12c]
push 0xffffffffffffffff
push 0x52e818
call fcn.0042ce80
mov ecx, eax
call fcn.0042ce80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.0040ec10
push dword [ebp - 0x12c]
jmp 0x42d328
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x130], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push ebx
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0
call fcn.0042a6c0
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp byte [ebp - 0x130], 0
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 4], 1
je 0x42d327
test ecx, ecx
je 0x42d327
mov eax, dword [ebp - 0x138]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x134]
add esp, 8
push ecx
call fcn.0047f552
mov eax, esi
add esp, 4
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
Function at 0x42e7a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x57238c]
mov edi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [edi + 4]
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042e8e0
mov dword [esi], eax
push edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push dword [0x57238c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d2b0
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 edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0042ea00
cmp eax, edi
je 0x42e856
push dword [0x57238c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
jne 0x42e8b3
push dword [edi]
push dword [0x57238c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [edi + 0xc]
call fcn.004029a0
mov esi, dword [edi + 4]
push dword [esi + 4]
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.004150c0
mov eax, dword [edi + 4]
push 0x1c
mov dword [eax + 4], esi
mov eax, dword [edi + 4]
mov dword [eax], esi
mov eax, dword [edi + 4]
mov dword [eax + 8], esi
mov dword [edi + 8], 0
push dword [edi + 4]
call fcn.0047f544
add esp, 8
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
push 0x15
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseloc_transmap.cxx
push str.thrInst__this
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d33c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x572b38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5723a8]
cmp eax, dword [ecx + 4]
jg 0x42ea53
mov eax, 0x572390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x5723a8
call fcn.0047fb55
add esp, 4
cmp dword [0x5723a8], 0xffffffff
jne 0x42ea3f
push dword [0x57238c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0x572394
mov dword [0x572390], eax
mov dword [0x572394], 0
mov dword [0x572398], 0
call fcn.0042e8e0
push 0x572390
push dword [0x57238c]
mov dword [0x572394], eax
mov dword [0x57239c], 0
mov dword [0x5723a0], 0
mov dword [0x5723a4], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x527c10
call fcn.0047f932
push 0x5723a8
call fcn.0047fb0b
add esp, 8
jmp 0x42ea3f
Function at 0x42eaf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x57238c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42eb0d
push dword [0x57238c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
jmp fcn.0042ea00
Function at 0x4331a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push pe_nt_image_headers32
push 0
lea eax, [ebx + 4]
push eax
call fcn.00481640
add esp, 0xc
mov dword [ebx], 0x11c
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433267
cmp dword [ebx + 4], 6
ja 0x4331ee
jne 0x433243
cmp dword [ebx + 8], 2
ja 0x4331ee
jne 0x433243
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.00481640
add esp, 0xc
call fcn.004332f0
cmp dword [eax], 0
je 0x433243
call fcn.004332f0
mov eax, dword [eax]
test eax, eax
je 0x433284
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jne 0x433243
push esi
push edi
mov ecx, 0x47
lea esi, [ebp - 0x120]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp dword [ebx + 4], 5
ja 0x433250
jne 0x4332aa
mov eax, dword [ebx + 8]
test eax, eax
cmp dword [ebx + 0x10], 2
jne 0x4332c7
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047fc61
mov esp, ebp
pop ebp
ret
push 0x1e
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.gotVersion
lea ecx, [ebp - 0x270]
call fcn.00428e20
push eax
call fcn.00428ea0
push str.RtlGetVersion
push 0x52f9f0
lea ecx, [ebp - 0x264]
call fcn.00411280
push 0x55993c
lea eax, [ebp - 0x264]
push eax
call fcn.00481150
push 0x2f
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.atLeastVersion_5_0_
lea ecx, [ebp - 0x270]
call fcn.00428e20
push eax
call fcn.00428ea0
push 0x30
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.dwPlatformId__2
lea ecx, [ebp - 0x270]
call fcn.00428e20
push eax
call fcn.00428ea0
int3
Function at 0x434450
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51db48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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 dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
mov dword [edi], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4344ac
mov word [ebp - 0x30], ax
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.00411420
mov esi, dword [ebp - 0x3c]
push dword [edi]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.0047f552
add esp, 4
mov dword [edi], esi
cmp byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
je 0x4344fe
test eax, eax
je 0x4344fe
push dword [ebp - 0x40]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x3c]
add esp, 8
push eax
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret
Function at 0x43aba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51df80
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, dword [ebp + 0x14]
test edi, edi
je 0x43abdb
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x5308e8
push dword [ebp + 0xc]
call fcn.004a6b39
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x43ac26
test edi, edi
je 0x43abfe
mov dword [edi], 0xa
mov eax, dword [ebp + 8]
mov ecx, dword [0x572738]
mov dword [eax], ecx
test ecx, ecx
je 0x43ad2b
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.0049fac2
push esi
call fcn.004a0256
mov ebx, eax
add esp, 0x10
mov dword [ebp + 0x14], ebx
test ebx, ebx
jne 0x43ac57
test edi, edi
je 0x43ac4c
mov dword [edi], 3
push esi
call fcn.004a19a7
add esp, 4
jmp 0x43abfe
push 0
push 0
push esi
call fcn.0049fac2
lea eax, [ebx + 4]
push eax
call fcn.0043b560
push esi
push dword [ebp + 0x14]
mov ebx, eax
push 1
push ebx
call fcn.0049f656
push dword [ebp - 0x10]
mov esi, eax
call fcn.004a19a7
add esp, 0x24
mov dword [ebx + esi], 0
cmp byte [0x56d230], 0
je 0x43acad
cmp byte [ebx], 0xef
jne 0x43ace6
cmp byte [ebx + 1], 0xbb
jne 0x43ace6
cmp byte [ebx + 2], 0xbf
jne 0x43ace6
mov ecx, 3
jmp 0x43ace8
mov al, byte [ebx]
cmp al, 0xef
jne 0x43acd5
xor edx, edx
mov ecx, 2
cmp byte [ebx + 1], 0xff
cmovne ecx, edx
cmp byte [ebx + 1], 0xbb
jne 0x43ace8
cmp byte [ebx + 2], 0xbf
mov eax, 3
cmove ecx, eax
jmp 0x43ace8
cmp al, 0xff
jne 0x43ace6
cmp byte [ebx + 1], 0xfe
jne 0x43ace6
mov ecx, 2
jmp 0x43ace8
xor ecx, ecx
push edi
push dword [ebp + 0x10]
lea eax, [ebx + ecx]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0043ad40
push ebx
call fcn.004a6b97
mov esi, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [ebp + 0x14]
mov dword [esi], ecx
test ecx, ecx
je 0x43ad11
inc dword [ecx + 0x30]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x43ad29
dec dword [ecx + 0x30]
lea ecx, [ebp + 0x14]
push 0
call fcn.00438c50
mov eax, esi
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 0x43d300
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e27b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
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
cmp byte [0x56d2c1], 0
mov eax, dword [ebp + 8]
je 0x43d3f2
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2ac], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0
call fcn.0042a6c0
push dword [ebp - 0x2b0]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp byte [ebp - 0x2ac], 0
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 4], 1
je 0x43d3b7
test ecx, ecx
je 0x43d3b7
mov eax, dword [ebp - 0x2b4]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x2b0]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x43d3e9
mov al, 1
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
cmp esi, 2
jne 0x43d412
xor al, al
jmp 0x43d3cd
push 0xfb
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.writeAllowed
lea ecx, [ebp - 0x2a8]
call fcn.00428e20
push eax
call fcn.00428ea0
push esi
push str.RegDeleteValue
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3
Function at 0x43d920
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e3ab
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 ebx, ecx
mov cl, byte [ebp + 0xc]
lea eax, [ebp - 0x160]
push 0
xor edx, edx
mov byte [ebp - 0x159], cl
push 0
push 0
test cl, cl
cmovne eax, edx
test cl, cl
push eax
push edx
push edx
lea eax, [ebp - 0x160]
cmove eax, edx
push eax
push edx
push edx
push edx
push edx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x43da75
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
inc eax
push eax
mov dword [ebp - 0x160], eax
call fcn.0042a8b0
cmp byte [ebp - 0x159], 0
lea eax, [ebp - 0x160]
mov esi, dword [ebp - 0x164]
push 0
push 0
push 0
push 0
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ebx]
je 0x43d9db
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43d9e1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x43d9f5
push esi
call fcn.0047f552
add esp, 4
xor eax, eax
jmp 0x43da57
test eax, eax
je 0x43da01
push eax
push str.RegEnumKey_Value
jmp 0x43da7b
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x170]
call fcn.00411420
mov edi, dword [ebp - 0x16c]
push dword [ebx + 8]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x170], 0
call fcn.0047f552
add esp, 4
mov dword [ebx + 8], edi
lea ecx, [ebp - 0x170]
call fcn.00416a40
mov edi, dword [ebx + 8]
push esi
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret 8
push eax
push str.RegQueryInfoKey
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3
Function at 0x43db00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0042a6c0
mov dword [ebp - 4], 1
nop dword [eax]
lea eax, [ebp + 0xc]
push eax
push dword [edi + 4]
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
je 0x43db95
test esi, esi
jne 0x43dbd4
mov ebx, dword [edi + 4]
mov edx, dword [ebp + 0xc]
test ebx, ebx
jne 0x43dba9
test edx, edx
mov eax, 0xea
cmovne esi, eax
cmp edx, dword [edi]
mov ecx, edx
push edx
cmovge ecx, dword [edi]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x14], ebx
cmovg eax, ecx
mov ecx, edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417f40
mov ebx, dword [ebp - 0x10]
cmp esi, 0xea
je 0x43db70
cmp byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 2
je 0x43dbfa
test ecx, ecx
je 0x43dbfa
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 eax, esi
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
Function at 0x43ec60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e63b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
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 esi, ecx
cmp byte [0x56d2c1], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
je 0x43ed77
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2ac], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0
call fcn.0042a6c0
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x2b0]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp byte [ebp - 0x2ac], 0
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 4], 1
je 0x43ed24
test ecx, ecx
je 0x43ed24
mov eax, dword [ebp - 0x2b4]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x2b0]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x43ed55
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 0x10
push esi
push str.RegSetValueEx
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
push 0x114
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.writeAllowed
lea ecx, [ebp - 0x2a8]
call fcn.00428e20
push eax
call fcn.00428ea0
int3
Function at 0x43edd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e67b
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
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, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x15c], edi
lea edx, [ebp - 0x15c]
mov dword [ebp - 4], 0
push edx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x15c], 0
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x43eefd
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x168]
call fcn.00411420
mov esi, dword [ebp - 0x164]
push 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x168], 0
mov dword [edi], 0
call fcn.0047f552
add esp, 4
mov dword [edi], esi
cmp byte [ebp - 0x160], 0
mov eax, dword [ebp - 0x164]
mov byte [ebp - 4], 1
je 0x43eea8
test eax, eax
je 0x43eea8
push dword [ebp - 0x168]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x164]
add esp, 8
push eax
call fcn.0047f552
mov ecx, dword [ebp - 0x15c]
add esp, 4
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x15c], 0
test ecx, ecx
je 0x43eee0
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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.0047fc61
mov esp, ebp
pop ebp
ret
push eax
push 0x530e14
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ee27
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 edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], edi
mov dword [edi], vtable.plat::EventManager.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
push dword [0x5727e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push 1
lea esi, [edi + 0x20]
mov dword [edi + 0x1c], eax
push 0
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4424a3
push edi
mov dword [edi + 0x24], 0
push dword [0x5727e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
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.0047fc61
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3