joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4188da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4188ec
xor al, al
jmp 0x418993
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push dword [ebp + 0x18]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call dword [eax + 0x2ac]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call ebx
test eax, eax
je 0x41898e
cmp dword [ebp - 4], 4
jb 0x41898e
mov eax, dword [esi]
push edi
push dword [ebp + 0x18]
push esi
call dword [eax + 0x2e0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x41895f
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, edi
push eax
mov eax, dword [ebp - 8]
add eax, edi
push eax
push dword [ebp + 0x10]
call ebx
test eax, eax
je 0x41897d
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jl 0x41893d
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi]
push 2
push dword [ebp - 8]
push dword [ebp + 0x18]
push esi
call dword [eax + 0x300]
mov al, 1
jmp 0x418990
mov eax, dword [esi]
push 2
push dword [ebp - 8]
push dword [ebp + 0x18]
push esi
call dword [eax + 0x300]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x418e19
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18638]
mov eax, 0x186b8
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x18634], eax
mov eax, dword [ebp + 0x1864c]
mov ecx, dword [ebp + 0x1865c]
push ebx
mov ebx, dword [ebp + 0x18650]
push esi
mov esi, dword [ebp + 0x18640]
push edi
mov edi, dword [ebp + 0x18654]
push 0
push 1
push eax
mov eax, dword [ebp + 0x18648]
push esi
mov byte [ebp - 0x6d], 0
call fcn.00418a3f
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x418f02
push ebx
push esi
call fcn.0041b8f7
mov edx, dword [ebp + 0x18658]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6c]
push eax
push edi
push esi
lea eax, [ebp - 0x80]
lea ebx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x186a0
call fcn.00418c62
add esp, 0x14
test al, al
je 0x418ef0
push dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x418ecf
mov byte [ebp - 0x6d], 1
jmp 0x418ef0
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
call esi
push eax
push str.no_success__d_n
call fcn.00422c6c
pop ecx
pop ecx
push dword [ebp - 0x74]
call fcn.0041d558
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x18634]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x18638
leave
ret 0x20
Function at 0x418f1f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
push esi
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00418a3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418f68
push edi
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.0041b8f7
pop ecx
pop ecx
mov edi, eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
call fcn.0041d558
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x18

Function at 0x419364
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x38
mov eax, 0x436fa0
call fcn.0041de82
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
push eax
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419492
mov ebx, 0x800
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x400
call fcn.0041d128
pop ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], eax
call fcn.00419125
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
push esi
jmp 0x4193fe
inc dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], 0x400
call fcn.004192ea
push ebx
call fcn.0041d128
pop ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x4193cf
push dword [ebp - 0x10]
call fcn.0041d558
pop ecx
jmp 0x41943e
lea ecx, [ebp - 0x44]
call fcn.00419175
mov edi, dword [eax]
cmp dword [ebp - 0x28], esi
je 0x419429
dec dword [ebp - 0x28]
jne 0x419429
mov dword [ebp - 0x2c], esi
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x1c]
call fcn.00419364
push edi
call fcn.0041d558
add esp, 0x10
cmp dword [ebp - 0x28], esi
jne 0x419412
cmp dword [ebp + 0x10], esi
je 0x419475
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
je 0x419475
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x419475
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x419481
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x44]
call fcn.00419052
push dword [ebp - 0x44]
call fcn.0041d558
pop ecx
call fcn.0041df5a
ret
Function at 0x41970b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18630]
mov eax, 0x186b0
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x1862c], eax
mov eax, dword [ebp + 0x18644]
mov ecx, dword [ebp + 0x1864c]
push ebx
push esi
mov esi, dword [ebp + 0x18638]
push edi
mov edi, dword [ebp + 0x18648]
push 0
push 0
push eax
mov eax, dword [ebp + 0x18640]
push esi
call fcn.00418a3f
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4197b4
push edi
push esi
call fcn.0041b8f7
and dword [ebp - 0x78], 0
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push edi
push ebx
mov dword [ebp - 0x7c], 0x186a0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4197a1
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp - 0x74]
call fcn.00419528
pop ecx
mov dword [ebp - 0x78], eax
push edi
call fcn.0041d558
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x4197b6
xor eax, eax
mov ecx, dword [ebp + 0x1862c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x18630
leave
ret 0x18
Function at 0x4197d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3fb8]
mov eax, 0x4038
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x3fb4], eax
mov eax, dword [ebp + 0x3fcc]
mov ecx, dword [ebp + 0x3fd0]
push ebx
push esi
mov esi, dword [ebp + 0x3fc0]
push edi
xor ebx, ebx
push ebx
push ebx
push eax
mov eax, dword [ebp + 0x3fc8]
push esi
call fcn.00418a3f
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x4198d3
lea ecx, [ebp - 0x74]
call fcn.00417a42
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1fb4]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x5c], ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, 0x1000
jmp 0x419896
push dword [ebp - 0x50]
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
push esi
call dword [eax + 0x28c]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x419877
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x74]
call fcn.00417ad7
inc dword [ebp - 0x5c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1fb4]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], edi
call ebx
cmp eax, 0x103
jne 0x419854
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push str.java_lang_String
push esi
call dword [eax + 0x18]
xor edi, edi
cmp eax, edi
jne 0x4198ef
lea ecx, [ebp - 0x74]
call fcn.00406cf9
push dword [ebp - 0x74]
call fcn.0041d558
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x3fb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x3fb8
leave
ret 0x14
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov edx, dword [esi]
push edi
push eax
sar ecx, 2
push ecx
push esi
call dword [edx + 0x2b0]
mov ebx, eax
cmp ebx, edi
jne 0x419921
xor ebx, ebx
lea ecx, [ebp - 0x74]
call fcn.00406cf9
push dword [ebp - 0x74]
call fcn.0041d558
pop ecx
mov eax, ebx
jmp 0x4198d5
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
sar eax, 2
test eax, eax
jbe 0x41990c
push edi
lea ecx, [ebp - 0x74]
call fcn.00406931
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push edi
push ebx
push esi
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
inc edi
sar eax, 2
cmp edi, eax
jb 0x41992e
jmp 0x41990c
Function at 0x419955
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
mov eax, dword [ebp + 0x1fc0]
mov ecx, dword [ebp + 0x1fc4]
push ebx
push esi
mov esi, dword [ebp + 0x1fb4]
push edi
xor edi, edi
push edi
push edi
push eax
mov eax, dword [ebp + 0x1fbc]
push esi
call fcn.00418a3f
add esp, 0x10
mov dword [ebp - 0x60], eax
cmp eax, edi
je 0x419a39
lea ecx, [ebp - 0x7c]
call fcn.00417a42
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x64], edi
push edi
jmp 0x4199fd
push dword [ebp - 0x5c]
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push esi
call dword [eax + 0x28c]
mov dword [ebp - 0x80], eax
cmp eax, edi
je 0x4199eb
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00417ad7
inc dword [ebp - 0x64]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], 0x1000
call ebx
cmp eax, 0x103
jne 0x4199c8
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push str.java_lang_String
push esi
call dword [eax + 0x18]
cmp eax, edi
jne 0x419a55
lea ecx, [ebp - 0x7c]
call fcn.00406cf9
push dword [ebp - 0x7c]
call fcn.0041d558
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x1fac
leave
ret 0x14
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x70]
mov edx, dword [esi]
push edi
push eax
sar ecx, 2
push ecx
push esi
call dword [edx + 0x2b0]
mov ebx, eax
cmp ebx, edi
jne 0x419a85
lea ecx, [ebp - 0x7c]
call fcn.00406cf9
push dword [ebp - 0x7c]
call fcn.0041d558
pop ecx
mov eax, edi
jmp 0x419a3b
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x70]
sar eax, 2
test eax, eax
jbe 0x419ab7
push edi
lea ecx, [ebp - 0x7c]
call fcn.00406931
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push edi
push ebx
push esi
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x70]
inc edi
sar eax, 2
cmp edi, eax
jb 0x419a92
mov edi, ebx
jmp 0x419a70

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x419d61
xor al, al
jmp 0x419dab
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x419d9a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x419dae
cmp dword [ebp - 0xc], edi
ja 0x419d69
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
ja 0x419da0
cmp dword [ebp - 0x1c], 3
je 0x419d73
xor eax, eax
cmp dword [ebp - 0x1c], 1
sete al
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x419da9
Function at 0x419db2
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x419dd3
mov eax, 0x1388
jmp 0x419e47
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0041b8f7
pop ecx
pop ecx
push 0x24
push eax
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x419e2d
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x419e20
push edi
call fcn.00419d43
pop ecx
test al, al
jne 0x419e28
mov ebx, 0x1389
jmp 0x419e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call esi
jmp 0x419e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp + 0x10]
call fcn.0041d558
pop ecx
push dword [ebp - 4]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x419f5c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x419f81
mov eax, 0x1388
jmp 0x41a006
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0041b8f7
push dword [ebp + 0x18]
mov edi, eax
push dword [ebp + 8]
call fcn.0041b8f7
push dword [ebp + 0x14]
mov ebx, eax
push dword [ebp + 8]
call fcn.0041b8f7
add esp, 0x18
push esi
push esi
push esi
push esi
push esi
push ebx
push 1
push 3
push 0x10
push 0xf01ff
push eax
push edi
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x419fdc
push eax
call esi
jmp 0x419fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
push dword [ebp - 4]
call esi
push edi
call fcn.0041d558
push ebx
call fcn.0041d558
push dword [ebp + 0x10]
call fcn.0041d558
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop ebx
pop esi
leave
ret 0x14
Function at 0x41a14e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x41a175
mov eax, 0x1388
jmp 0x41a311
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push esi
call fcn.0041b8f7
push dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
push esi
call fcn.0041b8f7
push dword [ebp + 0x24]
mov dword [ebp + 0x10], eax
push esi
call fcn.0041b8f7
push dword [ebp + 0x28]
mov dword [ebp + 8], eax
push esi
call fcn.0041b8f7
push dword [ebp + 0x2c]
mov edi, eax
push esi
mov dword [ebp - 0x10], edi
call fcn.0041b8f7
push dword [ebp + 0x30]
mov dword [ebp + 0x18], eax
push esi
call fcn.0041b8f7
push dword [ebp + 0x14]
mov dword [ebp + 0x24], eax
push esi
call fcn.0041b8f7
add esp, 0x38
push 0xf01ff
push dword [ebp - 0xc]
mov dword [ebp + 0x28], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x41a2a0
cmp edi, ebx
je 0x41a21c
push str.NT_AUTHORITYSystem
push edi
call fcn.0041da65
pop ecx
pop ecx
test eax, eax
je 0x41a217
push str.NT_AUTHORITYLocalSystem
push edi
call fcn.0041da65
pop ecx
pop ecx
test eax, eax
jne 0x41a21c
mov edi, 0x441ea0
push dword [ebp + 8]
call fcn.0041a0e0
pop ecx
push dword [ebp + 0x28]
mov ebx, eax
push dword [ebp + 0x18]
push edi
push ebx
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x41a254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41a287
cmp dword [ebp + 0x30], edi
je 0x41a287
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x41a287
push str.ChangeServiceConfig2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41a287
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 0x30], ecx
lea ecx, [ebp + 0x30]
push ecx
push 1
push esi
call eax
cmp ebx, edi
je 0x41a292
push ebx
call fcn.0041d558
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x41a2a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x41a2c9
push dword [ebp + 0x10]
call fcn.0041d558
pop ecx
cmp dword [ebp + 8], ebx
je 0x41a2d7
push dword [ebp + 8]
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x41a2e5
push dword [ebp + 0x18]
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x24], ebx
je 0x41a2f3
push dword [ebp + 0x24]
call fcn.0041d558
pop ecx
cmp edi, ebx
je 0x41a2fe
push edi
call fcn.0041d558
pop ecx
pop edi
pop esi
cmp dword [ebp + 0x28], ebx
je 0x41a30e
push dword [ebp + 0x28]
call fcn.0041d558
pop ecx
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x2c
Function at 0x41a4de
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x449004
push 1
xor ebx, ebx
push ebx
push 0x449044
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x41a65f
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
call fcn.0041b8f7
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
push esi
call fcn.0041d558
push dword [ebp + 0x18]
push edi
call fcn.0041b8f7
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x24]
push esi
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x1c], ebx
je 0x41a56b
push dword [ebp + 0x1c]
push edi
call fcn.0041b8f7
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x44]
push esi
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x20], ebx
je 0x41a58e
push dword [ebp + 0x20]
push edi
call fcn.0041b8f7
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x2c]
push esi
call fcn.0041d558
pop ecx
cmp dword [ebp + 0x28], ebx
je 0x41a5b1
push dword [ebp + 0x28]
push edi
call fcn.0041b8f7
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
push esi
call fcn.0041d558
pop ecx
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push 0x449084
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x41a653
push dword [ebp + 0x10]
push edi
call fcn.0041b8f7
pop ecx
pop ecx
mov edi, eax
cmp byte [ebp + 0x24], bl
je 0x41a631
mov eax, dword [ebp - 4]
lea edx, [ebp + 0x24]
push edx
push 0x449014
mov dword [ebp + 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x41a643
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
lea edx, [ebp + 0x1c]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, ebx
jl 0x41a628
or dword [ebp + 0x1c], 0x2000
mov eax, dword [ebp + 0x24]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x41a643
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov esi, eax
push edi
call fcn.0041d558
mov eax, dword [ebp + 0x14]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
cmp esi, ebx
pop esi
setge al
pop ebx
leave
ret 0x28
Function at 0x41b6e3
Capabilities:
Get user security identifier
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x3fcc]
mov eax, 0x404c
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x3fc8], eax
mov eax, dword [ebp + 0x3fd4]
and dword [ebp - 0x40], 0
push ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x3fdc]
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x3fe0]
push str.advapi32.dll
mov dword [ebp - 0x64], eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41b8b5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LsaOpenPolicy
push edi
call esi
push str.LsaAddAccountRights
push edi
mov dword [ebp - 0x48], eax
call esi
push str.LsaRemoveAccountRights
push edi
mov dword [ebp - 0x50], eax
call esi
push str.LsaClose
push edi
mov dword [ebp - 0x54], eax
call esi
mov dword [ebp - 0x44], eax
xor eax, eax
cmp dword [ebp - 0x48], eax
je 0x41b8b4
cmp dword [ebp - 0x50], eax
je 0x41b8b4
cmp dword [ebp - 0x44], eax
je 0x41b8b4
cmp dword [ebp - 0x54], eax
je 0x41b8b4
push dword [ebp - 0x3c]
push dword [ebp - 0x4c]
call fcn.0041b8f7
pop ecx
pop ecx
push str.ConvertStringSidToSidW
push edi
mov dword [ebp - 0x3c], eax
call esi
xor edi, edi
cmp eax, edi
je 0x41b800
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x3c]
call eax
test eax, eax
jne 0x41b800
mov esi, 0x2000
push esi
push 0x40
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push edi
mov dword [ebp - 0x68], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x41b800
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x40], edi
push dword [ebp - 0x3c]
call fcn.0041d558
pop ecx
cmp dword [ebp - 0x40], edi
je 0x41b8b4
push 0x18
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00420080
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0x810
lea eax, [ebp - 0x80]
push eax
push edi
call dword [ebp - 0x48]
test eax, eax
jne 0x41b8ab
mov edi, dword [ebp - 0x64]
mov esi, 0x439440
test edi, edi
je 0x41b84f
push edi
push dword [ebp - 0x4c]
call fcn.0041b8f7
pop ecx
pop ecx
mov esi, eax
push esi
call fcn.0041da4b
add eax, eax
mov word [ebp - 0x5c], ax
add eax, 2
cmp byte [ebp + 0x3fe4], 0
pop ecx
mov word [ebp - 0x5a], ax
push 1
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
push eax
je 0x41b880
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [ebp - 0x50]
jmp 0x41b892
test edi, edi
sete al
movzx eax, al
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [ebp - 0x54]
push dword [ebp - 0x3c]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [ebp - 0x44]
test edi, edi
je 0x41b8ab
push esi
call fcn.0041d558
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp + 0x3fc8]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x3fcc
leave
ret 0x14