joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433605
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [esi + 0x174]
shr eax, 2
test al, 1
je 0x433642
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x433689
xor eax, eax
mov ecx, esi
push eax
push eax
push eax
push eax
push 0x12
push 0x20
call fcn.0043271e
mov ecx, dword [ebp + 8]
mov bl, al
mov byte [ecx], 1
jmp 0x433689
push edi
mov edi, 0xa4
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x433665
xor eax, eax
mov ecx, esi
push eax
push eax
push eax
push eax
push edi
push 0x21
call fcn.0043271e
mov bl, al
mov edi, 0xa5
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x433688
xor eax, eax
mov ecx, esi
push eax
push eax
push 1
push eax
push edi
push 0x21
call fcn.0043271e
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x435aab
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4b9894]
cmp eax, dword [ebp + 0xc]
jb 0x435b2a
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0043593f
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test bl, bl
jne 0x435b15
sub eax, dword [0x4b9898]
cmp eax, 0x7d0
jb 0x435b1a
mov eax, dword [0x4b530c]
mov ecx, esi
sub eax, dword [esi + 0xc4]
mov dword [ebp - 8], eax
mov eax, dword [0x4b5310]
sub eax, dword [esi + 0xc8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.00437598
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b9898], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b9894], eax
mov al, bl
pop ebx
jmp 0x435b2c
xor al, al
pop esi
leave
ret 8
Function at 0x43afbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push esi
push edi
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x43b0b3
xor eax, eax
mov esi, 0x46f738
mov edi, eax
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x43b09e
cmp word [esi], ax
je 0x43b0c6
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x43b09e
xor ecx, ecx
cmp word [esi + 0x80], cx
je 0x43b0c6
push 0x104
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.00457c96
add esp, 0xc
test al, al
je 0x43b09e
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x40c]
push eax
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x43b0c6
mov eax, 0xc0
add edi, eax
add esi, eax
cmp edi, 0x780
jb 0x43aff9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret 4
mov al, 1
jmp 0x43b0b5
Function at 0x43cbf0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xa8
mov eax, 0x467fe8
call fcn.00461a33
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x9c]
mov dword [ebp - 0xb4], eax
cmp dword [eax + 0x18], 0
mov dword [ebp - 0xa0], ecx
je 0x43cc29
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 0xb0], 1
and dword [ebp - 4], 0
mov esi, 0x46f5e0
lea edi, [ebx + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ecx]
mov dword [ebp - 0xac], edi
test edi, edi
je 0x43cdcf
mov eax, dword [ecx + 4]
mov dword [ebx + 0x38], eax
mov eax, dword [ecx + 4]
xor ecx, ecx
mov dword [ebx + 0x44], eax
mov dword [ebx], 4
mov dword [ebp - 0xa0], ecx
cmp dword [edi + 4], ecx
jle 0x43ccff
lea esi, [ebx + 0x78]
add edi, 8
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [ebp - 0xa4], edx
jmp 0x43cc8c
cmp dword [eax], edx
je 0x43cce6
add eax, 4
cmp eax, dword [esi + 4]
jne 0x43cc85
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x43cce0
lea eax, [ebp - 0xa4]
mov ecx, esi
push eax
call fcn.0041af33
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebx + 0x90]
call fcn.00406440
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, dword [edi]
sar ecx, 2
mov dword [ebx + ecx*4 + 0xd8], eax
inc dword [ebx + 0xd8]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xac]
inc ecx
add edi, 4
mov dword [ebp - 0xa0], ecx
cmp ecx, dword [eax + 4]
jl 0x43cc79
call fcn.00410799
cmp dword [eax + 4], 1
jbe 0x43cd1d
push ebx
push 0x43a880
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, ebx
call fcn.0043c4b0
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x43cd39
push 1
push eax
push eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
mov dword [ebx + 0x74], eax
test eax, eax
je 0x43cdcf
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], 0x68
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x30]
call fcn.00403be0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
push dword [ebx + 0x74]
call fcn.0040eda4
mov dword [ebx + 0xbc], eax
lea ecx, [ebx + 4]
lea eax, [ebp - 0x70]
push eax
call fcn.0040d1c0
mov al, byte [ebp - 0x74]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
lea esi, [ebp - 0x94]
mov dword [ebx + 0xd4], 0x148
movsd dword es:[edi], dword [esi]
and al, 1
mov byte [ebx + 0x1c], al
mov ecx, ebx
lea eax, [ebx + 0x84]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0043a51c
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x7c]
setne byte [ebp - 0x99]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040ed06
jmp 0x43cdd6
mov byte [ebp - 0x99], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x9c]
cmp dword [ecx + 0x18], 0
je 0x43cded
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x99]
call fcn.004619e2
ret 4
Function at 0x43e501
Capabilities:
Get graphical window text

Disassembly:
push 0x438
mov eax, 0x4683d1
call fcn.00461a33
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.004196ac
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43e634
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x1ff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x43e634
lea eax, [ebp - 0x444]
mov byte [ebp - 0x444], 0
push eax
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.0043e6f4
test al, al
jne 0x43e592
lea eax, [ebp - 0x410]
push str..pptx
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
test eax, eax
je 0x43e634
lea eax, [esi + 0xc]
mov ecx, esi
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x440]
push edi
push ebx
push eax
call fcn.0043e24a
and dword [ebp - 4], 0
cmp dword [ebp - 0x430], 0
jne 0x43e5bd
xor bl, bl
jmp 0x43e621
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
lea ecx, [esi + 0x5c]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00419759
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x418], 0
je 0x43e610
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov ecx, esi
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.0043e773
test al, al
jne 0x43e612
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00402310
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00402310
mov al, bl
jmp 0x43e636
xor al, al
call fcn.004619e2
ret 4

Function at 0x451d74
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x4ba5fc]
push esi
xor esi, esi
jmp 0x451d86
cmp dword [edx + 4], esi
jne 0x451ddf
mov edx, dword [edx]
test edx, edx
jne 0x451d7f
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x451de3
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x451daf
mov eax, dword [0x4ba5fc]
mov dword [edx], eax
mov dword [0x4ba5fc], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x451dd2
xor eax, eax
pop esi
ret
Function at 0x45266a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
imul esi, eax, 0x28
push edi
push 7
pop edi
push 5
add esi, dword [0x4ba5f0]
mov dword [ebp - 0xc], esi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
lea ebx, [eax - 5]
test ecx, ecx
cmove ebx, eax
pop eax
cmove edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4526c5
push 0xa
pop eax
jmp 0x452746
cmp dword [ebp + 0xc], 0
je 0x4526e8
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x45270a
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x45270a
test byte [esi + 0x14], 1
je 0x4526ff
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
jmp 0x45270a
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 0xc]
and eax, 1
mov ecx, eax
add eax, eax
and ecx, 0xfffffffd
or ecx, eax
mov eax, dword [esi + 0x14]
add ecx, ecx
and eax, 0xfffffff9
or ecx, eax
xor eax, eax
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x452782
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x452858
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
jmp 0x452849
cmp dword [ebp - 0x20], 0x10
jb 0x452838
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x452838
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x452838
mov edx, dword [esi]
test edx, edx
jne 0x452806
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x4b9908]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x452851
jmp 0x45282c
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x45282c
shl eax, 3
push eax
push edx
push 0
push dword [0x4b9908]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x452851
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4527c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004619c0
leave
ret

Function at 0x4528d4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00452782
pop ecx
cmp dword [esi], ebx
je 0x452934
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x452933
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x45292a
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00452be2
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x4528f9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x452cf9
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x452d4b
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x452d3b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x452d32
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x452d0f
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x4b9908]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret
Function at 0x454fdd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x468af8
call fcn.00461a9f
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
push 0x404
push ebx
lea eax, [ebp - 0x420]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x45506f
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x45506f
call fcn.00453f61
mov esi, eax
jmp 0x45514a
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x455092
call fcn.00453f61
jmp 0x45513d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x455088
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4550c2
mov esi, 0x8007000e
jmp 0x45513f
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x420]
call fcn.00453e21
mov dword [ebp - 4], 1
jmp 0x4550f6
cmp dword [ebp - 0x420], 0
je 0x4550bb
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x424]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x455088
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00454e96
mov esi, eax
test edi, edi
je 0x45514a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x455166
lea ecx, [ebp - 0x420]
call fcn.0045425a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004619f1
ret 0x10
Function at 0x4559fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x455a10
push 0xd
pop eax
jmp 0x455a54
push esi
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x455a23
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x455a1b
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x455a59
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x455a6b
push 0xd
pop eax
jmp 0x455a9d
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x455a74
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x456b58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x456bee
push str._vdp_rdpvcbridge.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x456bee
push edi
push str.VDP_IsViewSession
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x456be6
push 0xffffffffffffffff
mov ecx, edi
call dword [0x46a894]
call edi
pop ecx
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x456c63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x1000
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x456c88
inc ebx
jmp 0x456cfe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlTerminal_Server_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x456cef
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.GlassSessionId
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456cef
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x456cef
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [ebp - 0x10]
setne bl
cmp dword [ebp - 0x18], 0
je 0x456cfe
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x457236
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x457391
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x457391
xor eax, eax
mov byte [ebp - 0x15], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x457391
push esi
push eax
call fcn.00461754
pop ecx
mov esi, eax
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x457384
test bl, 1
je 0x457300
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a2848
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x457300
cmp dword [ebp - 8], 0
mov edi, dword [ebp - 0x10]
je 0x457303
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0xfeef04bd
jne 0x457303
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._04d
push 0x40
push edi
call fcn.0040f8f5
add esp, 0x1c
mov byte [ebp - 0x15], 1
jmp 0x457303
mov edi, dword [ebp - 0x10]
test bl, 6
je 0x457384
lea eax, [edi + 0x80]
add edi, 0x40
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov byte [edi], 0
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x457384
cmp dword [ebp - 8], 4
jb 0x457384
test bl, 2
je 0x45735e
mov ecx, dword [ebp - 0x10]
push 0x100
push dword [ebp - 0x1c]
movzx eax, word [ecx + 2]
push 0x4a34bc
push eax
movzx eax, word [ecx]
push eax
push esi
call fcn.0045711a
add esp, 0x18
test bl, 4
je 0x457380
mov ecx, dword [ebp - 0x10]
push 0x40
push edi
push str.OriginalVer
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push esi
call fcn.0045711a
add esp, 0x18
mov byte [ebp - 0x15], 1
push esi
call fcn.0046175d
mov al, byte [ebp - 0x15]
pop ecx
pop esi
jmp 0x457393
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x457a54
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x457a7c
xor al, al
jmp 0x457b2a
push ebx
xor bl, bl
mov byte [ebp - 9], bl
test eax, eax
je 0x457b27
push esi
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x457ab4
push dword [ebp - 0x10]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x457b26
and dword [ebp - 0x14], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 9]
push eax
push 0x4a64c0
push 0x4a2810
call fcn.004567d5
mov bl, byte [ebp - 9]
add esp, 0x1c
test bl, bl
jne 0x457b1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne bl
test eax, eax
jne 0x457b1f
push dword [ebp + 0x10]
push edi
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004619c0
leave
ret

Function at 0x457b4d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b9bdc]
test eax, eax
jne 0x457c35
push esi
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457c32
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 4
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push str.CurrentMajorVersionNumber
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457c26
cmp dword [ebp - 0x214], 0xa
jb 0x457c26
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push str.ReleaseId
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457c26
push esi
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
mov dword [0x4b9bdc], eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4b9bdc]
jmp 0x457c34
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004619c0
leave
ret