joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2001c
call fcn.00447a40
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
mov eax, dword [ebx]
cmp dword [eax - 8], 0
jne 0x425f92
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425fa7
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebx]
lea eax, [ebp - 0x1001c]
push 0x8000
push eax
call fcn.0044651d
lea ecx, [ebp - 0x1001c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425fe2
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x1001e], 0x5c
jne 0x426006
xor eax, eax
mov word [ebp + ecx*2 - 0x1001e], ax
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
lea esi, [ebp - 0x1001c]
call fcn.00426300
mov edi, eax
lea ebx, [ebp - 0x10014]
test edi, edi
mov eax, esi
cmove ebx, eax
cmp dword [ebp - 4], 0
je 0x426038
add ebx, 8
push 2
push 0x461828
push ebx
call fcn.00446579
add esp, 0xc
test eax, eax
jne 0x426060
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.0044646f
mov esi, eax
add esp, 8
test esi, esi
je 0x426084
test edi, edi
je 0x426067
sub ebx, 8
cmp dword [ebp - 4], 0
je 0x426070
sub ebx, 8
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.0044646f
mov edi, eax
add esp, 8
test edi, edi
jne 0x42608d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 2
je 0x426114
cmp word [edi], 0
je 0x426114
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0044646f
mov edi, eax
add esp, 8
test edi, edi
je 0x4260d3
mov esi, edi
lea eax, [ebp - 0x2001c]
sub esi, ebx
sar esi, 1
push esi
push ebx
push eax
call fcn.0044666d
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x2001c], ax
jmp 0x4260f0
lea edx, [ebp - 0x2001c]
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4260e0
lea eax, [ebp - 0x2001c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x426110
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x2001c]
push eax
call fcn.00426120
test edi, edi
jne 0x426096
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426120
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42613e
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push 0x2000000
push 3
push 0
push 0
push 0x60000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x426169
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov word [ebp - 0x10], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
movq qword [ebp - 0x20], xmm0
push eax
movdqu xmmword [ebp - 0x30], xmm0
push 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 0x10000000
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x426230
push 0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 8]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4271c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x42723a
cmp eax, 0xffffffff
je 0x42723a
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
push dword [ebp + 0xc]
mov eax, dword [esi]
call dword [eax + 4]
test eax, eax
jne 0x4271f2
pop esi
mov eax, 0xe
pop edi
pop ebp
ret 0xc
push ebx
push 0
lea ebx, [edi + 0xc]
push ebx
push dword [ebp + 0xc]
push dword [esi + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427218
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jbe 0x42722a
mov eax, dword [ebx]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
pop ebx
pop esi
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebp
ret 0xc
mov eax, 0x11
pop edi
pop ebp
ret 0xc

Function at 0x427250
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov edx, dword [edi]
test edx, edx
je 0x4272e6
cmp edx, 0xffffffff
je 0x4272e6
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
and eax, ecx
cmp eax, 0xffffffff
jne 0x427292
lea eax, [ebp + 0xc]
xorps xmm0, xmm0
push eax
push edx
movlpd qword [ebp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push 0
push ecx
push ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x4272be
mov eax, dword [ebp - 4]
add edi, 0x18
push 0
push edi
push ebx
push dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4272c9
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jbe 0x4272db
mov ecx, dword [edi]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4277b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [ebp - 4], 0
mov esi, 1
mov edx, dword [ecx + 0xc]
mov eax, dword [edx - 8]
add eax, eax
mov dword [edx - 4], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ecx + 0x10]
or eax, 0x20019
push eax
push 0
push dword [ecx + 0xc]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427804
xor esi, esi
jmp 0x427838
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x42786b
add eax, 0xffffffe0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42786b
mov ecx, dword [ebp + 8]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x427ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
add edx, edx
mov dword [eax - 4], edx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427f4a
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.explorer.exe
call fcn.004054c0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00427b20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x427f7d
lea ecx, [eax - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x427f7d
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4280c0
Capabilities:
Delete service
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2268
call fcn.00447a40
push esi
mov esi, ecx
test esi, esi
je 0x4280e9
mov eax, dword [ebp + 8]
test eax, eax
je 0x4280e9
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4280f2
mov dword [esi + 0x18], 6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x428119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x1000
lea eax, [ebp - 0x1200]
mov dword [ebp + 8], 0x800
push 0
push eax
call fcn.004486f0
push 0x1068
lea eax, [ebp - 0x2268]
push 0
push eax
call fcn.004486f0
add esp, 0x18
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1200]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x1200]
push eax
lea eax, [ebp - 0x2268]
push str.Service_being_removed_by__s
push eax
call fcn.00446fb8
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4281da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp + 8]
mov dword [esi + 0x18], eax
push ecx
push 0x409
push eax
push 0
push 0x1100
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4281d0
push eax
lea eax, [ebp - 0x200]
push str.Cant_delete_service_because__s
push eax
call fcn.00446fb8
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x429100
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a5d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
test eax, eax
je 0x42917b
push eax
call edi
mov ecx, dword [ebp - 0x20]
test esi, esi
cmovne ecx, esi
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x42922e
xor eax, eax
cmp dword [ebp + 0x10], eax
push 0
push 0x80
setne al
inc eax
push eax
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x42922e
cmp eax, 0xffffffff
je 0x42922e
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 8]
test edx, edx
je 0x4291ca
mov ecx, dword [esi + 0x10]
jmp 0x4291cc
xor ecx, ecx
push ebx
test ecx, ecx
jne 0x4291d5
xor ebx, ebx
jmp 0x4291ea
push 0
lea ebx, [ebp - 0x10]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
cmp dword [esi + 8], 0
jbe 0x4291f8
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
jmp 0x429206
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
xor esi, esi
cmp ebx, edx
pop ebx
jne 0x42921a
cmp esi, ecx
jne 0x42921a
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x429236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x429236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42924f
cmp eax, 0xffffffff
je 0x42924f
cmp dword [ebp - 0x2c], 0
jne 0x42924f
push eax
call edi
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42926f
cmp eax, 0xffffffff
je 0x42926f
cmp dword [ebp - 0x2c], 0
jne 0x42926f
push eax
call edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x4292a9
lea ecx, [eax - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4292a9
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x429850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ecx + 8]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
push esi
push edi
test eax, eax
je 0x4298a9
cmp eax, 0xffffffff
je 0x4298a9
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp - 0x18]
mov ebx, 0x100fe
mov esi, dword [ebp - 0x1c]
test edi, edi
ja 0x4298b9
jb 0x4298b7
cmp esi, ebx
jae 0x4298b9
jmp 0x4298b7
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ebx, esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x461694
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x429905
cmp eax, 0xffffffff
je 0x429905
mov eax, ebx
mov ecx, esi
cdq
sub ecx, eax
mov eax, edi
push 0
push 0
sbb eax, edx
push eax
mov eax, dword [ebp - 0x10]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.004271c0
mov edx, dword [ebp - 0x14]
cmp edx, ebx
jne 0x42993e
mov ecx, 3
cmp edx, ecx
jb 0x42993e
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffd
add eax, ebx
mov edi, edi
cmp dword [eax], 0x6054b50
je 0x429996
inc ecx
dec eax
cmp ecx, edx
jbe 0x429930
or esi, 0xffffffff
or edi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], 0x461694
test eax, eax
je 0x42996d
cmp eax, 0xffffffff
je 0x42996d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov edx, edi
pop edi
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
mov eax, esi
movlpd qword [ebp - 0x2c], xmm0
pop esi
movlpd qword [ebp - 0x24], xmm0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub esi, eax
sbb edi, edx
jmp 0x429943
Function at 0x42b5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x42b641
push 0x10
call fcn.004457b7
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x42b621
lea ecx, [ebp - 0x20]
call fcn.00405e60
push 0x472bfc
lea eax, [ebp - 0x20]
push eax
call fcn.004473e6
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x30]
call fcn.00440380
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b820
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a868
push eax
mov eax, 0x29f8
mov dword fs:[0], esp
call fcn.00447a40
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42b85e
mov eax, 0x11
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x2c]
push eax
lea ecx, [esi + 0x28]
push 0
push ecx
mov dword [ebp - 0x1c], ecx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x42b99e
mov eax, dword [esi + 0x78]
xorps xmm0, xmm0
push ebx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], 0x461694
mov dword [ebp - 0x38], 0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0
shl eax, 2
push 0
push eax
call fcn.00426490
mov edi, dword [ebp - 0x38]
mov ebx, eax
test ebx, ebx
jne 0x42b95f
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
je 0x42b8e0
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax]
lea eax, [edi + ecx*4]
test ecx, ecx
jne 0x42b8d9
mov eax, edi
inc ecx
mov dword [eax], edx
cmp ecx, ebx
jb 0x42b8c8
cmp dword [esi + 0x10], 0
jbe 0x42b8ee
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
jmp 0x42b8fc
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0
push 0
push dword [esi + 0x10]
push 0
push 0xc
push eax
push ecx
call fcn.00447930
mov esi, dword [ebp - 0x1c]
push eax
push edi
push ebx
push dword [esi]
call sub.RstrtMgr.DLL_RmRegisterResources
mov ebx, eax
test ebx, ebx
jne 0x42b95f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0x10
push eax
lea eax, [ebp - 0x2a04]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call sub.RstrtMgr.DLL_RmGetList
mov ebx, eax
test ebx, ebx
jne 0x42b95f
cmp dword [ebp - 0x18], eax
jne 0x42b95d
push eax
push 1
push dword [esi]
call sub.RstrtMgr.DLL_RmShutdown
mov ebx, eax
test ebx, ebx
jne 0x42b95f
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], 0x461694
test edi, edi
je 0x42b986
cmp edi, 0xffffffff
je 0x42b986
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
pop edi
mov eax, ebx
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42bb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, dword [0x476478]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x42bb83
cmp dword [eax - 0x20], 0
mov ecx, edi
jl 0x42bb79
call fcn.00427ff0
jmp 0x42bb83
push 0x46155c
call fcn.00409040
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax - 8], ebx
jle 0x42bbe8
mov edx, 0x35694285
mov dword [ebp + 0xc], edx
jmp 0x42bba0
movzx ecx, word [eax + ebx*2]
mov esi, 0xf5694285
mov eax, edx
xor edx, edx
div esi
xor dl, cl
add dl, bl
movzx eax, dl
push eax
lea eax, [ebp - 0x10]
push str._02X
push eax
call fcn.004134b0
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov ecx, edi
push esi
push dword [esi - 8]
call fcn.0040ce70
mov eax, dword [ebp + 8]
inc ebx
mov edx, dword [ebp + 0xc]
add edx, 7
mov dword [ebp + 0xc], edx
cmp ebx, dword [eax - 8]
jl 0x42bba0
mov byte [ebp - 4], 0
lea eax, [esi - 0x20]
or edi, 0xffffffff
pop ebx
cmp eax, dword [0x476474]
je 0x42bc12
add esi, 0xffffffe0
mov eax, edi
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x42bc12
push esi
call fcn.004471aa
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x42bc42
add eax, 0xffffffe0
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42bc42
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x435020
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
test esi, esi
je 0x435042
mov eax, dword [ebp + 8]
test eax, eax
je 0x435042
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43504b
mov dword [esi + 0x18], 6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0x24
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x43506f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4350ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
cmp dword [ebp - 0x18], 1
push ebx
je 0x435103
mov eax, dword [ebp - 8]
lea ebx, [ebx]
push 0xc8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4350e9
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x4350fb
inc esi
cmp esi, 0x64
jb 0x4350fd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
cmp dword [ebp - 0x18], 1
jne 0x4350c0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4