joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x468cd1
mov dword [ebx], 0
test edi, edi
je 0x468cdb
mov dword [edi], 0
test esi, esi
je 0x468ce5
mov dword [esi], 0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x468d48
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x468d48
mov eax, dword [eax + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x468d48
test ebx, ebx
je 0x468d1e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
mov dword [ebx], eax
test edi, edi
je 0x468d27
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
test esi, esi
je 0x468d30
mov eax, dword [ebp - 8]
mov dword [esi], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x10

Function at 0x468dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x468dd8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.00468ca0
test eax, eax
je 0x468e25
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 8]
test eax, eax
push dword [ebp - 0xc]
cmovne ecx, eax
push 0
push ecx
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x468e25
mov ecx, dword [ebp + 8]
push edi
call fcn.00468480
test eax, eax
jne 0x468e2f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.00469f30
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4697c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4697d4
xor eax, eax
pop esi
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4697cd
mov ecx, esi
call fcn.00469f30
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x469800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x469814
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push edi
mov edi, 0x546e38
cmovne edi, eax
mov ecx, edi
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469830
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
test eax, eax
jne 0x46980d
mov ecx, esi
call fcn.00469f30
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x469870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x469887
xor eax, eax
pop esi
pop ebp
ret 8
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x469880
mov ecx, esi
call fcn.00469f30
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x4698b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x4698c3
xor eax, eax
pop esi
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4698e7
cmp word [edi], 0
je 0x4698e7
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4698f5
push edi
call fcn.0049bb90
add esp, 4
add eax, eax
jne 0x4698f5
mov ecx, esi
push dword [ebp + 8]
call fcn.00468480
pop edi
pop esi
pop ebp
ret 0xc
push eax
push edi
push 7
push 0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x469913
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov ecx, esi
call fcn.00469f30
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc

Function at 0x469950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x469963
xor eax, eax
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4699bf
cmp word [edx], 0
jne 0x469976
cmp dword [ebp + 0x14], 0
jne 0x4699bf
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469980
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
jne 0x46995c
mov ecx, esi
call fcn.00469f30
mov eax, 1
pop esi
pop ebp
ret 0x10
push dword [ebp + 8]
call fcn.00468480
pop esi
pop ebp
ret 0x10
Function at 0x46a0e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x46a141
mov edx, dword [esi + 0x24]
test edx, edx
je 0x46a141
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x46a141
cmp ecx, dword [esi + 0x10]
jge 0x46a141
mov eax, dword [esi + 0x14]
push 0
push 0
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edx
push ecx
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46a141
mov eax, dword [esi + 0x24]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret 4

Function at 0x46a160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
test ebx, ebx
je 0x46a18b
mov dword [ebx], 0
test edi, edi
je 0x46a195
mov dword [edi], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x46a216
cmp dword [esi + 0x28], 0
je 0x46a216
cmp dword [esi + 0x2c], 0
je 0x46a216
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x46a216
cmp ecx, dword [esi + 0x18]
jge 0x46a216
mov eax, dword [esi + 0x1c]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2c]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46a216
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46a1ee
mov eax, dword [esi + 0x2c]
mov dword [ecx], eax
test ebx, ebx
je 0x46a1f7
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
test edi, edi
je 0x46a200
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46ab50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push ecx
push 0x2001f
xor esi, esi
mov dword [ebp - 0x410], eax
push esi
push eax
push ebx
mov dword [ebp - 0x40c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, esi
je 0x46abd4
sub eax, 2
je 0x46abbf
cmp dword [ebp + 0x10], esi
jne 0x46abad
push 0x54dfa4
call fcn.0048a190
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0x200
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push dword [ebp - 0x40c]
call edi
test eax, eax
jne 0x46ac2b
push 1
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call fcn.0046ab50
add esp, 0xc
test eax, eax
jne 0x46abe0
jmp 0x46ac6f
cmp eax, 0x103
je 0x46ac46
cmp dword [ebp + 0x10], esi
jne 0x46ac6f
push 0x54dfc0
call fcn.0048a190
add esp, 4
jmp 0x46ac6f
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x410]
mov dword [ebp - 0x40c], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov ecx, dword [ebp - 0x40c]
pop edi
test ecx, ecx
je 0x46ac81
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x46eab0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x46eb31
push 0
push 1
push 1
push dword [ebp + 8]
call fcn.0046ebf0
test eax, eax
jne 0x46eb31
push eax
push 1
mov ecx, esi
call fcn.0046f080
test eax, eax
je 0x46eb2a
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push dword [ebp + 0x14]
or ecx, 0x100
cmp dword [ebp + 0x18], 0
push 0
push dword [ebp + 0x24]
cmove ecx, dword [ebp + 0x1c]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0x20]
push ecx
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x46eb31
push str.CreateService
call fcn.0048a190
add esp, 4
xor eax, eax
pop esi
pop ebp
ret 0x20
mov eax, 1
pop esi
pop ebp
ret 0x20

Function at 0x46eb40
Capabilities:
Delete service

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x46eb68
call fcn.0046ed90
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46eb6c
push 0x54e200
call fcn.0048a190
add esp, 4
xor eax, eax
pop esi
ret
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 0xc], 0
mov eax, 1
pop esi
ret

Function at 0x46eb90
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x46ebc3
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x46ebd3
push 0x54e288
call fcn.0048a190
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x46ef90
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
push edi
lea edi, [esi + 0x18]
jne 0x46f068
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x46eff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x46eff6
push eax
push str.EnumDependentServices
call fcn.0048a1c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push 0x24
push dword [esi + 0x14]
call fcn.00507268
push dword [ebp - 8]
call fcn.004e6b5b
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
jne 0x46f031
push str.could_not_allocate_service_list
call fcn.0048a0f0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 1
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x46f068
push str.EnumDependentServices
call fcn.0048a190
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x46f270
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, dword [ebp + 8]
push edi
call ebx
lea edi, [eax + 0x7530]
call ebx
cmp eax, edi
ja 0x46f302
nop word [eax + eax]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46f34c
mov eax, dword [ebp - 0x1c]
sub eax, 1
je 0x46f2e3
sub eax, 3
jne 0x46f2f2
push 1
push 0xfa
call dword [sym.imp.KERNEL32.dll_SleepEx]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x46f32c
push 1
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
call ebx
cmp eax, edi
jbe 0x46f2a0
push str.__timed_out_waiting_for_service
push str.MyStartService
push 0x2f68
call fcn.00489f40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push str.StartService
call fcn.0048a190
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push 0x54e288
call fcn.0048a190
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x46f370
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46f3d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x46f3c1
push eax
push 0x54e364
call fcn.0048a1c0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push 0x7530
push 1
push esi
call fcn.0046f400
mov ecx, dword [ebp - 4]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x46f400
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x24], eax
call esi
lea edi, [eax + 0x7530]
call esi
cmp eax, edi
ja 0x46f44c
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46f446
cmp dword [ebp - 0x1c], ebx
je 0x46f476
call esi
cmp eax, edi
jbe 0x46f430
push str.__timed_out_waiting_for_service
push str.WaitService
push 0x2f68
call fcn.00489f40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push 1
push 0xfa
call dword [sym.imp.KERNEL32.dll_SleepEx]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x46fd40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x46fd56
mov eax, 2
pop esi
pop ebp
ret 4
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
jne 0x46fd6f
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
pop esi
sbb eax, eax
add eax, 2
pop ebp
ret 4
Function at 0x470670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x470767
cmp word [eax], 0
je 0x470767
test ebx, ebx
je 0x470767
cmp word [ebx], 0
je 0x470767
mov ecx, edi
call fcn.00471910
test eax, eax
je 0x470767
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
xor esi, esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
test eax, eax
je 0x470752
push ebx
push eax
mov ecx, edi
call fcn.00471c70
test eax, eax
je 0x470744
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004180e0
add esp, 4
test eax, eax
jne 0x470717
mov edx, dword [ebp + 0x14]
test edx, edx
js 0x470717
mov eax, dword [edi]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004180e0
add esp, 4
test eax, eax
jne 0x470730
mov eax, dword [edi]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push dword [ebp - 0x14]
mov ecx, edi
call fcn.00471590
test eax, eax
mov ecx, 1
cmovne esi, ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470752
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x14
Function at 0x472170
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00472d80
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4721a2
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push esi
movq qword [ebp - 0x10], xmm0
or ebx, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x47229e
push 2
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x47229e
push edi
xor edi, edi
cmp dword [ebp - 0x10], edi
jbe 0x47229b
nop word [eax + eax]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x47228a
mov esi, dword [ebp - 0x20]
test byte [esi + 1], 8
jne 0x47228a
movzx eax, byte [esi]
sub eax, 0
je 0x472263
sub eax, 1
jne 0x47228a
push dword [ebp - 0x24]
lea eax, [esi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x47228a
test dword [esi + 4], 0x20000
je 0x47228a
mov eax, dword [ebp - 0x10]
xor ebx, ebx
lea edi, [eax - 1]
jmp 0x47228d
push dword [ebp - 0x24]
lea eax, [esi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x47228a
test dword [esi + 4], 0x20000
je 0x47228a
mov eax, dword [ebp - 0x10]
mov ebx, 1
lea edi, [eax - 1]
jmp 0x47228d
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, eax
jb 0x472210
cmp ebx, 0xffffffff
jne 0x47229d
xor ebx, ebx
pop edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x472ba0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x472bc5
mov dword [edi], 0
test ebx, ebx
je 0x472c2f
cmp word [ebx], 0
je 0x472c2f
push 0x200
lea eax, [ebp - 0x204]
mov dword [ebp - 0x610], 0
push 0
push eax
call fcn.00509680
add esp, 0xc
mov dword [ebp - 0x608], 0x100
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x610]
push eax
push 0
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x472c41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x472c41
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x610]
call fcn.004e6b5b
mov esi, eax
add esp, 4
test esi, esi
jne 0x472c76
push str.GetCurrentUserSid:_could_not_allocate_SID
call fcn.0048a0f0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x610]
push eax
push esi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x472cbd
mov eax, dword [ebp - 0x60c]
sub eax, 1
je 0x472d4e
sub eax, 2
je 0x472cdd
sub eax, 2
je 0x472d4e
push 0
push esi
call fcn.00507268
add esp, 8
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x604]
push 0x41
push eax
call fcn.0047ea00
add esp, 8
test eax, eax
je 0x472cbd
lea ecx, [ebp - 0x604]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472d00
sub ecx, edx
lea eax, [ebp - 0x604]
sar ecx, 1
push ebx
push 0x54d1c4
lea eax, [eax + ecx*2]
push eax
call fcn.00405510
push 0
push esi
call fcn.00507268
lea eax, [ebp - 0x604]
push 0
push eax
call fcn.00472ba0
add esp, 0x1c
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x472cca
mov eax, dword [ebp - 0x610]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, esi
pop esi
pop edi
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret