joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0xa0
push ebx
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
mov ebx, dword [esp + 0xb4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
test ebx, ebx
mov edi, 0x4313b4
je 0x41aca0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x41acf5
lea ecx, [esp + 0x2c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41ad1f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x41adae
mov al, byte [ebx - 1]
test al, al
je 0x41ada4
cmp al, 0xff
je 0x41ada4
dec al
pop edi
mov byte [ebx - 1], al
pop esi
pop ebx
add esp, 0xa0
ret
lea edx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edx
push esi
call ebp
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, 1
je 0x41ad6e
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [esp + 0x18], 1
je 0x41ad6e
mov ecx, dword [esp + 0x2c]
inc edi
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x14]
push edx
push esi
call ebp
cmp edi, 0xa
jg 0x41ad6e
cmp dword [esp + 0x18], 1
jne 0x41ad4e
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
test ebx, ebx
pop ebp
je 0x41adae
mov al, byte [ebx - 1]
test al, al
je 0x41ada4
cmp al, 0xff
je 0x41ada4
dec al
pop edi
mov byte [ebx - 1], al
pop esi
pop ebx
add esp, 0xa0
ret
dec ebx
push ebx
call fcn.00420ca8
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x41e0d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41e0df
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x438cdc]
test eax, eax
je 0x41e0ed
call fcn.0041df80
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x41e1e1
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x43e9c8]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43e9c8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x43e9c8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43e9c8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x43e9c8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43e9c8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x43e9c8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43e9c8]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x41e107
pop edi
pop ebx
test edx, edx
je 0x41e201
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43e9c8]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x41e1e5
not eax
pop esi
ret 0xc
Function at 0x42487a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42489a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00429e9f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4248bb
test byte [esp + 8], 2
je 0x4248bb
mov dword [0x43f258], 0xd
mov dword [0x43f25c], 5
jmp 0x424896
xor eax, eax
ret
Function at 0x5d50d110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d516ca0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d560624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 8]
shr eax, 4
push 0
inc eax
movzx eax, ax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5d50d23e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50d23e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50d23e
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + esi]
and edi, 0xf
jbe 0x5d50d1ab
cmp esi, ecx
jae 0x5d50d23e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x5d50d195
cmp esi, ecx
jae 0x5d50d23e
cmp word [esi], 0
je 0x5d50d23e
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x5d50d1db
push edi
mov ecx, ebx
call fcn.5d50d4d0
movzx eax, word [esi]
add esi, 2
add eax, eax
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + edi]
push esi
push ecx
push dword [ebx]
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x5d50d207.1
movzx eax, byte [eax + 0x5d50d284]
jmp dword [eax*4 + 0x5d50d274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx]
cmp edi, dword [ecx - 8]
jg case.0x5d50d207.22
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x8007000e
call fcn.5d51bcaa
mov ecx, 0x80070057
call fcn.5d51bcaa
mov ecx, 0x80004005
call fcn.5d51bcaa
mov edi, edi
push cs
rcl byte [eax + 93], cl
push esp
rcl byte [eax + 93], cl
pop esi
rcl byte [eax + 93], cl
push 0x5d50d2
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x5d50d6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50d71e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50d71e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x5d50d70a
cmp esi, edx
jae 0x5d50d71e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x5d50d6f8
cmp esi, edx
jae 0x5d50d71e
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x5d50d7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
mov eax, edi
shr eax, 4
push 0
inc eax
movzx eax, ax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5d50d812
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50d808
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50d856
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x5d50d852
mov edi, edi
cmp esi, ecx
jae 0x5d50d856
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x5d50d840
cmp esi, ecx
jb 0x5d50d861
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d50da80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d516d00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d560624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x5d560fac
mov dword [ebp - 0x1c], 0x5d560fac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d560fc8]
mov byte [ebp - 0x18], 1
test eax, eax
js 0x5d50db9d
jne 0x5d50dae4
mov edi, dword [0x5d560f9c]
lea ecx, [ebp - 0x1c]
call fcn.5d50e22a
jmp 0x5d50dafc
jle 0x5d50dbb9
mov eax, dword [0x5d560fc4]
push 0x5d560fac
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 1
test edi, edi
je 0x5d50dba5
mov eax, ebx
shr eax, 4
inc eax
movzx eax, ax
mov dword [ebp - 0x18], eax
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x5d50db71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50db71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50db71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x14]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x5d50db67
cmp esi, edx
jae 0x5d50db71
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x5d50db55
cmp esi, edx
jae 0x5d50db71
cmp word [esi], 0
jne 0x5d50db89
mov ecx, dword [ebp - 0x10]
push ecx
inc ecx
mov dword [ebp - 0x10], ecx
call fcn.5d50d760
mov edi, eax
test edi, edi
je 0x5d50dba5
mov eax, dword [ebp - 0x18]
jmp 0x5d50db17
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.5d50e22a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xc000008c
call fcn.5d51f765
int3

Function at 0x5d50f500
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5d50f53e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5d50f536
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5d50f540
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5d50f526
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5d50f620
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d50f64f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d50f64f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5d51a7bd
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5d560624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x104
push esi
push edi
xor edi, edi
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.5d51a51c
push 0x5d508b00
lea ecx, [ebp - 0x20c]
call fcn.5d51a4b1
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
call fcn.5d511b55
test al, al
jne 0x5d51a847
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5d51a87f
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.5d519fd0
mov edi, eax
jmp 0x5d51a87f
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov ecx, esi
call fcn.5d519cfc
mov esi, eax
test esi, esi
jns 0x5d51a873
push esi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.5d51a019
mov edi, esi
jmp 0x5d51a87f
mov eax, dword [ebp - 0x210]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ebp - 0x214]
call fcn.5d511ae5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5d50eed0
leave
ret 8

Function at 0x5d51b039
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x5d51b112
mov eax, dword [edi + 0x58]
cmp eax, dword [ebx + 0x58]
jne 0x5d51b112
movzx edx, byte [ebx]
movzx ecx, byte [edi]
call fcn.5d51af83
test eax, eax
je 0x5d51b112
push dword [ebx + 0x2c]
push dword [edi + 0x2c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x5d51b112
mov edx, ebx
mov ecx, edi
call fcn.5d51afa5
test eax, eax
je 0x5d51b112
lea edx, [ebx + 0x1c]
lea ecx, [edi + 0x1c]
call fcn.5d51b459
test eax, eax
je 0x5d51b112
push esi
mov esi, dword [edi + 8]
and esi, 1
test byte [ebx + 8], 1
je 0x5d51b0b1
or esi, 2
lea edx, [ebx + 0xc]
lea ecx, [edi + 0xc]
call fcn.5d51b459
test eax, eax
je 0x5d51b0c3
or esi, 4
mov al, byte [edi]
cmp al, 2
je 0x5d51b0d5
cmp al, 7
je 0x5d51b0d5
cmp al, 3
je 0x5d51b0d5
cmp al, 8
jne 0x5d51b0d8
or esi, 8
movzx ecx, byte [edi + 1]
lea eax, [ebp - 4]
mov edx, dword [edi + 4]
push eax
movzx eax, byte [ebx + 1]
push esi
push dword [ebx + 4]
push eax
call fcn.5d51b120
mov edx, eax
mov ecx, edx
pop esi
sub ecx, 3
je 0x5d51b108
sub ecx, 1
jne 0x5d51b10e
mov ecx, dword [ebp - 4]
mov dword [edi + 4], ecx
jmp 0x5d51b10e
mov al, byte [ebp - 4]
mov byte [edi + 1], al
mov eax, edx
jmp 0x5d51b114
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x5d51c150
Capabilities:
Get thread local storage value

Disassembly:
push 0x64
mov eax, 0x5d516f0c
call fcn.5d516672
mov esi, edx
mov edi, ecx
mov eax, dword [0x5d560638]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x5d51c178
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x34], eax
jmp 0x5d51c17b
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push dword [esi + 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp ecx, 2
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ebx
sete al
add eax, 0x22
push eax
push dword [0x5d560df4]
lea eax, [ebp - 0x10]
push eax
call fcn.5d555706
lea eax, [ebp - 0x34]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x70], 0x5d50113c
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], eax
add esp, 0xc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
push edi
call fcn.5d51c0ef
lea ecx, [ebp - 0x10]
lea esi, [eax - 1]
neg esi
sbb esi, esi
call fcn.5d555786
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5c], 0
je 0x5d51c224
push dword [ebp - 0x5c]
call fcn.5d54df24
lea eax, [esi + 1]
call fcn.5d51662e
ret 0x20

Function at 0x5d5209e1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d560624]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
lea eax, [ebp - 0x204]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.5d52455e
push 0x100
lea eax, [ebp - 0x204]
push eax
mov eax, dword [esi + 0xfc]
push dword [eax + 0x24]
push dword [0x5d560df4]
call dword [sym.imp.USER32.dll_LoadStringW]
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x204]
push 3
pop ecx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x230]
push eax
push ecx
push 0x1061
push dword [esi + 0xf4]
mov dword [ebp - 0x230], 0xd
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.5d52476c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.5d50eed0
leave
ret
Function at 0x5d520a90
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d560624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.5d52455e
xor ebx, ebx
push ebx
push ebx
push 0xb
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, ebx
cmp dword [esi + 0xc8], ebx
jbe 0x5d520b3f
xor eax, eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x204]
push 0x100
push eax
mov eax, dword [esi + 0xfc]
push dword [ebx + eax]
push dword [0x5d560df4]
call dword [sym.imp.USER32.dll_LoadStringW]
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x230]
push eax
push edi
push 0x1061
push dword [esi + 0xf4]
mov dword [ebp - 0x230], 0xd
mov dword [ebp - 0x21c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
lea ebx, [ebx + 0xc]
cmp edi, dword [esi + 0xc8]
jb 0x5d520acb
xor ebx, ebx
push ebx
push 1
push 0xb
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push ebx
push 0x1015
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5d50eed0
leave
ret
Function at 0x5d52720a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5d560624]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5d5092c8
mov esi, ecx
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 4
mov dword [esi + 0x44], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x5d52728e
push 0
push 0
push dword [esi + 0x44]
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x44], eax
jne 0x5d52728e
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0x2c
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x5d527285
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.5d50eed0
leave
ret
Function at 0x5d5341fe
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
test ebx, ebx
je 0x5d53422f
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x5d53422f
xor eax, eax
lea edi, [esi + 0x10]
inc eax
cmp dword [edi], 0
jne 0x5d534234
mov byte [ebp - 1], al
jmp 0x5d534238
xor al, al
lea edi, [esi + 0x10]
mov byte [ebp - 1], 0
test al, al
je 0x5d5342b3
cmp dword [edi], 0
je 0x5d534274
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5d5342a3
cmp dword [edi], eax
je 0x5d534274
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, esi
jbe 0x5d53428e
cmp dword [edi], 0
je 0x5d534274
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x5d5069c0
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push eax
call fcn.5d50f391
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
je 0x5d5342d7
mov esi, dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov esi, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x5d5342d7
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
jmp 0x5d5342cb
cmp dword [edi], 0
je 0x5d5342c3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [edi], 0
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x5d562560]
mov ecx, edi
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5d534d07
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
test ebx, ebx
je 0x5d534d3c
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x5d534d3c
xor eax, eax
lea edi, [esi + 0xc]
inc eax
cmp dword [edi], 0
mov byte [ebp - 0xc], al
jne 0x5d534d44
mov byte [ebp - 4], al
jmp 0x5d534d48
xor al, al
lea edi, [esi + 0xc]
mov byte [ebp - 0xc], al
mov byte [ebp - 4], 0
test al, al
je 0x5d534dc3
cmp dword [edi], 0
je 0x5d534d84
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5d534db3
cmp dword [edi], eax
je 0x5d534d84
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, esi
jbe 0x5d534d9e
cmp dword [edi], 0
je 0x5d534d84
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x5d5069c0
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push eax
call fcn.5d50f391
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
je 0x5d534e04
mov esi, dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov esi, dword [ebp - 8]
cmp byte [ebp - 4], 0
je 0x5d534de7
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
jmp 0x5d534ddb
cmp dword [edi], 0
je 0x5d534dd3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [edi], 0
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x5d562560]
mov ecx, edi
call esi
mov edi, dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5d562560]
mov ecx, edi
call esi
pop edi
pop esi
pop ebx
leave
ret 4