joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b948
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call fcn.0045e4c0
add esp, 4
test al, al
je 0x45e8e5
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x45e8c6
test eax, eax
je 0x45e8d1
push eax
push ecx
push edi
call fcn.00470750
add esp, 0xc
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
lea ecx, [ebp - 0x3c]
call fcn.004a21d0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x45e912
push 0
push 1
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004a2420
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a24a0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x45e924
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.004a25a0
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004a2350
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
test ebx, ebx
jne 0x45e95d
test esi, esi
je 0x45e960
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00481da0
push edi
push str.CreateDirectory_failed_for__s
push esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
movzx eax, al
push eax
call fcn.0045cc20
add esp, 0xc
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
je 0x45e9d0
test ecx, ecx
je 0x45e9d0
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
mov eax, dword [ebp - 0x1c]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x45e9f0
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x45ea01
push eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x45ea12
push eax
call esi
push dword [ebp - 0x34]
call fcn.0054454b
push dword [ebp - 0x38]
call fcn.0054454b
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x45ea36
push eax
call esi
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
Function at 0x45eb90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x45ec31
push 0
push 0x5af24c
push esi
lea ecx, [ebp - 0x278]
call fcn.004a1820
lea ecx, [ebp - 0x278]
call fcn.004a1a10
test eax, eax
je 0x45ec26
nop dword [eax + eax]
mov eax, dword [ebp - 0x278]
shr eax, 4
test al, 1
je 0x45ec0c
push 1
push dword [ebp - 0x18]
call fcn.0045eb90
add esp, 8
jmp 0x45ec17
push dword [ebp - 0x18]
call fcn.0045de40
add esp, 4
lea ecx, [ebp - 0x278]
call fcn.004a1a10
test eax, eax
jne 0x45ebf0
lea ecx, [ebp - 0x278]
call fcn.004a19c0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x27c], 0
call fcn.00481da0
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
cmp byte [ebp - 0x27c], 0
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 4], 0
je 0x45eca4
test ecx, ecx
je 0x45eca4
mov eax, dword [ebp - 0x284]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x280]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov al, bl
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.00544c5a
mov esp, ebp
pop ebp
ret

Function at 0x45fb00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ba88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00481da0
push 0x5b8a54
push dword [ebp - 0x14]
push dword [0x6176ec]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x45fb90
test ecx, ecx
je 0x45fb90
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edi, edi
jne 0x45fbcc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [0x6176ec]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45fbab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [0x6176ec]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bd82
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea edx, [ecx + 4]
mov dword [ebp - 4], 0
mov dword [edx], vtable.io::IoPool::Factory.0
mov eax, dword [ebp + 8]
mov dword [ecx], vtable.http::NativeHttpClient.0
mov dword [edx], vtable.http::NativeHttpClient.1.0
mov dword [ecx + 8], eax
lea ebx, [ecx + 0x10]
mov word [ecx + 0xc], 0x101
mov dword [ebp + 8], ebx
mov dword [ebx + 4], vtable.plat::Timer::Callback.0
lea edi, [ebx + 4]
mov dword [ebx], vtable.io::IoPool.0
mov dword [edi], vtable.io::IoPool.1.0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], 2
mov dword [ebx + 0x10], 0xea60
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], 0
lea esi, [ebx + 0x38]
mov byte [ebp - 4], 4
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00461df0
mov dword [esi], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x58], 0
lea esi, [ebx + 0x60]
mov byte [ebp - 4], 6
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00461dc0
mov dword [esi], eax
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov byte [ebp - 4], 7
call fcn.0047dab0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x88], eax
mov eax, ecx
mov dword [ecx + 0x8c], edx
mov dword [ecx + 0x90], 0
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 0x462ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bfe2
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x160], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x15c], 0
push dword [eax + 4]
mov dword [ebp - 4], 0
call fcn.0045d490
mov edi, eax
mov ecx, edx
mov eax, dword [ebp + 0xc]
add esp, 4
cdq
cmp ecx, edx
jl 0x462d10
jg 0x462d8f
cmp edi, eax
ja 0x462d8f
push edi
lea eax, [ebp - 0x168]
mov dword [esi], 0
push eax
mov ecx, esi
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
call fcn.0044ee30
mov eax, dword [ebp - 0x160]
mov dword [ebp - 4], 0
mov dword [ebp - 0x15c], 1
push dword [eax + 4]
push edi
push 1
push dword [esi + 4]
call fcn.00566050
add esp, 0x10
test eax, eax
jle 0x462dbb
mov eax, esi
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.00544c5a
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push ecx
push edi
push str.Error:_file_is_too_large___lld____d_
push 1
push eax
call fcn.00439590
add esp, 0x18
lea eax, [ebp - 0x154]
push 0x5f4710
push eax
call fcn.005461fc
lea eax, [ebp - 0x158]
push str.Reading_from_file_failed
push eax
call fcn.0046c120
add esp, 8
lea eax, [ebp - 0x158]
push 0x5fe46c
push eax
call fcn.005461fc
int3
Function at 0x467aa0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x467ac2
mov eax, dword [ecx]
test eax, eax
je 0x467ac2
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x467ac2
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x467d40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c81b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x613384]
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 0x467ea0
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 0x467dd4
xor edi, edi
jmp 0x467df4
push esi
call fcn.00544c6b
push 0
mov ebx, eax
call fcn.0054454b
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 0x467ec7
xor esi, esi
cmp dword [ebx], esi
jbe 0x467e56
add edi, 4
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x467e4e
mov ecx, dword [ebp - 0x2b0]
mov ecx, dword [ecx]
test ecx, ecx
je 0x467e4e
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x467e8a
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x467e30
mov byte [ebp - 0x2a1], 0
push ebx
call fcn.0054454b
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.00544c5a
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
je 0x467e97
test byte [ebx + esi*8 + 8], 4
je 0x467e56
mov byte [ebp - 0x2a1], 1
jmp 0x467e5d
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5b9adc
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5b9adc
lea ecx, [ebp - 0x2a0]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x2a0]
push eax
call fcn.005461fc
int3
Function at 0x46acc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ccb9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00405e30
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x10], al
push 0xffffffffffffffff
push dword [esi + 0x14]
mov dword [ebp - 4], 0
call fcn.00448d00
add esp, 8
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 1
mov dword [ecx], 0
push 0xffffffffffffffff
push dword [esi + 0x18]
call fcn.0045fa30
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 2
mov dword [ecx], 0
push 0xffffffffffffffff
push dword [esi + 0x1c]
call fcn.0045fa30
lea eax, [esi + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x20]
call fcn.00405e30
movzx eax, byte [esi + 0x2c]
mov byte [edi + 0x2c], al
movzx eax, byte [esi + 0x2d]
mov byte [edi + 0x2d], al
movzx eax, byte [esi + 0x2e]
mov byte [edi + 0x2e], al
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
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 4

Function at 0x46d810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
call fcn.0046d2c0
cmp dword [eax], 0
je 0x46d85a
call fcn.0046d2c0
mov eax, dword [eax]
test eax, eax
je 0x46d89d
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push esi
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x46d880
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push 0x70
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baselocwinutilwin.cxx
push str.name__0
lea ecx, [ebp - 0x154]
call fcn.00465850
push eax
call fcn.004658d0
push str.GetLocaleInfoEx
push 0x5b8a08
lea ecx, [ebp - 0x148]
call fcn.00439540
push 0x5f9fd8
lea eax, [ebp - 0x148]
push eax
call fcn.005461fc
int3
Function at 0x471e90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dabb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x613384]
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 [0x611411], 0
mov eax, dword [ebp + 8]
je 0x471f82
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.00481da0
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 0x471f47
test ecx, ecx
je 0x471f47
mov eax, dword [ebp - 0x2b4]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x2b0]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x471f79
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.00544c5a
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x471fa2
xor al, al
jmp 0x471f5d
push 0x104
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.writeAllowed
lea ecx, [ebp - 0x2a8]
call fcn.00465850
push eax
call fcn.004658d0
push esi
push str.RegDeleteValue
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x472550
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dc0b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x613384]
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 0x4726a5
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
inc eax
push eax
mov dword [ebp - 0x160], eax
call fcn.004672d0
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 0x47260b
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x472611
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x472625
push esi
call fcn.0054454b
add esp, 4
xor eax, eax
jmp 0x472687
test eax, eax
je 0x472631
push eax
push str.RegEnumKey_Value
jmp 0x4726ab
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x170]
call fcn.0046c430
mov edi, dword [ebp - 0x16c]
push dword [ebx + 8]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x170], 0
call fcn.0054454b
add esp, 4
mov dword [ebx + 8], edi
lea ecx, [ebp - 0x170]
call fcn.004209b0
mov edi, dword [ebx + 8]
push esi
call fcn.0054454b
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.00544c5a
mov esp, ebp
pop ebp
ret 8
push eax
push str.RegQueryInfoKey
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x472730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dc50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x613384]
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.00481da0
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 0x4727c5
test esi, esi
jne 0x472804
mov ebx, dword [edi + 4]
mov edx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4727d9
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.0044ee30
mov ebx, dword [ebp - 0x10]
cmp esi, 0xea
je 0x4727a0
cmp byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 2
je 0x47282a
test ecx, ecx
je 0x47282a
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x20]
add esp, 8
push ecx
call fcn.0054454b
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 0x473880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59de9b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x613384]
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 [0x611411], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
je 0x473997
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.00481da0
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 0x473944
test ecx, ecx
je 0x473944
mov eax, dword [ebp - 0x2b4]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x2b0]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x473975
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.00544c5a
mov esp, ebp
pop ebp
ret 0x10
push esi
push str.RegSetValueEx
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
push 0x11d
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.writeAllowed
lea ecx, [ebp - 0x2a8]
call fcn.00465850
push eax
call fcn.004658d0
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e1ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x6179c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x475629
push 8
call fcn.0054450d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x47561a
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00475120
mov dword [esi], eax
jmp 0x47561c
xor esi, esi
push esi
push dword [0x6179c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x6179c0]
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