joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fefd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040fba1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40ff47
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402b96
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402b67
jmp 0x40ff52
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040b551
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40ff58
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004100ae
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x40ff95
call fcn.0040fba1
mov dword [esi + 0xc], 1
jmp 0x40ff9a
call fcn.0040fba1
cmp dword [esi], 0
je 0x40ffe3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x40ffbb
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402b96
jmp 0x40ffcd
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004015b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402b67
jmp 0x410007
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x410007
push dword [esi]
push dword [ebp + 8]
call fcn.0040b551
pop esi
pop ebp
ret 0xc

Function at 0x4103e4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x510496
call fcn.004f6343
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410409
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41045b
call fcn.00402c95
push eax
lea ecx, [ebp - 0x10]
call fcn.00401450
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f644d
push eax
call fcn.00401050
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012f0
mov eax, esi
call fcn.004f641b
ret 8
Function at 0x4172d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x417318
call fcn.00405780
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417318
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417334
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416dd1
mov esi, eax
test edi, edi
je 0x417332
test ebx, ebx
je 0x417332
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4687f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00405780
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46882f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00468433
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46888d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4688b1
cmp dword [edi + 0x74], 0
jne 0x4688b1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00405780
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046884e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46ebbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46ebd5
call fcn.00405780
mov esi, dword [eax + 0xc]
push dword [0x565870]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46ebf3
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46ebeb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46ec20
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46ebed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046eae9
mov esi, eax
jmp 0x46ec12
Function at 0x4bb58c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004efb4d
call fcn.004051b1
cmp dword [eax + 0x14], 0
jne 0x4bb5a9
mov ecx, esi
pop esi
jmp fcn.004bb091
pop esi
ret

Function at 0x4be7eb
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00468e6c
call fcn.004051b1
cmp dword [eax + 0x14], 0
jne 0x4be808
mov ecx, esi
pop esi
jmp fcn.004be1be
pop esi
ret

Function at 0x4d06cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d06e3
mov edi, dword [esi + 0xc]
jmp 0x4d0723
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d06fc
call fcn.004070d6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d0711
call fcn.004070d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d0723
call fcn.004070d6
call fcn.00405780
cmp dword [eax + 0x3c], 0
je 0x4d0738
push edi
mov ecx, ebx
call fcn.004cf587
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d05e5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d0756
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d0762
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f5c32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5606dc]
jne 0x4f5c3c
repz ret
jmp fcn.004fd3ac
Function at 0x5082eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5606dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fc09e
and dword [ebp - 0x14], 0
cmp dword [0x568144], 0
mov dword [ebp - 0x18], eax
jne 0x50839e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x508446
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x543364
push ebx
call edi
test eax, eax
je 0x508446
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x543354
push ebx
mov dword [0x568144], eax
call edi
push eax
call esi
push 0x543340
push ebx
mov dword [0x568148], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56814c], eax
call edi
push eax
call esi
mov dword [0x568154], eax
test eax, eax
je 0x50839e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x568150], eax
mov eax, dword [0x568150]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5083f7
cmp dword [0x568154], ecx
je 0x5083f7
push eax
call esi
push dword [0x568154]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5083f7
test ebx, ebx
je 0x5083f7
call edi
test eax, eax
je 0x5083ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5083ee
test byte [ebp - 8], 1
jne 0x5083f7
or dword [ebp + 0x10], 0x200000
jmp 0x50842a
mov eax, dword [0x568148]
cmp eax, dword [ebp - 0x18]
je 0x50842a
push eax
call esi
test eax, eax
je 0x50842a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50842a
mov eax, dword [0x56814c]
cmp eax, dword [ebp - 0x18]
je 0x50842a
push eax
call esi
test eax, eax
je 0x50842a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x568144]
call esi
test eax, eax
je 0x508446
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x508448
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5c32
leave
ret
Function at 0x4dfba6
Capabilities:
Check if file exists
Modify service

Disassembly:
jmp 0x50e966
cld
sub eax, edx
or eax, ecx
jge 0x50e979
push edx
lea ecx, [ebp - 0x2c]
call fcn.005049d0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x50ea8a
lea eax, [ebp - 0x4c]
push eax
push esi
push str.InstalledDir
lea ecx, [ebp - 0x64]
call fcn.00508730
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.005092b0
test ebx, ebx
jne 0x50ea8a
cmp dword [esi - 0xc], ebx
je 0x50ea8a
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00509300
mov ecx, 0x526e2c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50e9eb
test dx, dx
je 0x50e9e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50e9eb
add eax, 4
add ecx, 4
test dx, dx
jne 0x50e9c5
xor esi, esi
jmp 0x50e9f0
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x50]
call fcn.00504320
test esi, esi
je 0x50ea09
push 0x526e2c
lea ecx, [ebp - 0x2c]
call fcn.00504e60
push str.VESRes.dll
lea ecx, [ebp - 0x2c]
call fcn.00504e60
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50ea8a
push 0x2981
push esi
lea eax, [ebp - 0x30]
push str.___s____d
push eax
call fcn.00506b70
add esp, 0x10
lea eax, [ebp - 0x3c]
mov ecx, 4
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x50ea43
mov edi, dword [ebp - 0x30]
cmp dword [edi - 4], 1
jle 0x50ea65
push dword [edi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.005047b0
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 1
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
neg eax
lea ecx, [ebp - 0x30]
push 0xffffffffffffffff
sbb eax, eax
neg eax
mov dword [ebp - 0x44], eax
call fcn.005092b0
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x50ea9a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x50eaae
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50eacc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x50eae8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x44]
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.0050f225
mov esp, ebp
pop ebp
ret
Function at 0x504c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x504ceb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x504ceb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x504cda
cmp esi, edx
jae 0x504ceb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x504cc8
cmp esi, edx
jae 0x504ceb
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x506970
Capabilities:
Delete service
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5241d5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53120c]
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 0x10000
push 0x40
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x44]
push eax
push 0x10000
push esi
push 3
push 0x30
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x506b3b
xor ebx, ebx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x38], ebx
jle 0x506b3b
lea edi, [esi + 4]
mov dword [ebp - 0x3c], edi
mov esi, dword [edi]
call fcn.005048a0
test eax, eax
je 0x506b5e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00506850
test al, al
jne 0x506a59
test esi, esi
jne 0x506a3a
xor eax, eax
jmp 0x506a4f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x506a40
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00504b10
mov esi, dword [ebp - 0x30]
push str.VAIO_Event_Service
push esi
call fcn.005129c1
add esp, 8
test eax, eax
je 0x506a84
push str.NetworkSupport
push esi
call fcn.005129c1
add esp, 8
test eax, eax
jne 0x506b06
mov eax, dword [ebp - 0x48]
push 0xf01ff
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x506b03
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor edi, edi
nop word [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x506ad1
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x64
jbe 0x506ab0
jmp 0x506af9
push ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x506af9
nop
cmp edi, 0x64
ja 0x506af9
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x506ae0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x506b25
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add edi, 0x24
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], edi
cmp ebx, dword [ebp - 0x38]
jl 0x506a02
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
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.0050f225
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.005046e0
int3
Function at 0x506d00
Capabilities:
Get common file path
Get program files directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524276
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x53120c]
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 - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0
push dword [ebp + 8]
mov byte [ebp - 4], 2
push SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x506ed6
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
and esi, 0x300
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], esi
mov ecx, 0x208
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x506db0
call fcn.005048a0
mov ecx, eax
test ecx, ecx
je 0x506f2f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
push 0
push 0x2a
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x506e93
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00504170
push 0x1a
push str.VAIOVAIO_Control_Center_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00506760
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
push dword [eax - 0xc]
push eax
call fcn.00506760
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x506e78
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x22c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x506e46
sub edx, dword [ebp - 0x22c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x525a80
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x21c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x506e93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x506ea6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x506ecb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x506ed6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x506ef4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x506f13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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.0050f225
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.005046e0
int3
Function at 0x508730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5087a1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x50876f
cmp eax, 2
jne 0x50878b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x50879b
test ecx, ecx
je 0x508796
test cl, 1
jne 0x50878b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x50879b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x5087b0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524631
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53120c]
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 ecx, 0x208
lea eax, [ebp - 0x218]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x5087f0
push ecx
push 0x2a
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5089c6
mov ebx, 0x5310d8
nop dword [eax]
call fcn.005048a0
test eax, eax
je 0x5089e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.00506850
test al, al
jne 0x508885
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x508863
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00504b10
push 0x1a
push str.VAIOVAIO_Control_Center_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00506760
mov edx, dword [ebx]
test edx, edx
jne 0x5088a8
xor eax, eax
jmp 0x5088bf
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5088b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x220]
call fcn.00506760
mov edi, dword [ebp - 0x220]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x508998
call fcn.005048a0
test eax, eax
je 0x5089e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x526e9c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00506850
test al, al
jne 0x508928
push 2
push 0x526e9c
lea ecx, [ebp - 0x21c]
call fcn.00504b10
push dword [edi - 0xc]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
push edi
call fcn.00506760
push 1
push 0x526e98
lea ecx, [ebp - 0x21c]
call fcn.00506760
push 0xb
push str.__RegServer
lea ecx, [ebp - 0x21c]
call fcn.00506760
mov esi, dword [ebp - 0x21c]
push 0
push 0
push esi
push 0x526ec8
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x508998
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5089b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, 0x5310e4
jl 0x508820
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.0050f225
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.005046e0
int3