joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23a06450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x23bde0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
call fcn.23a01070
mov edi, dword [esp + 0x34]
lea ecx, [esp + 8]
push ecx
add edi, 0x3c
mov dword [esp + 0x30], 0
call fcn.23a066b0
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
cmp dword [esp + 0x20], 8
jb 0x23a064b5
mov eax, dword [esp + 0xc]
push eax
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x28
ret 0xc

Function at 0x23a07bf0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x23c68938]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x11c
lea ecx, [esp + 0x30]
xor eax, eax
push ebx
push ecx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov word [esi + 0xe], ax
mov dword [esi], 1
call fcn.23a49830
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.23a07cf0
mov al, byte [esp + 0x34]
mov dl, byte [esp + 0x30]
mov cx, word [esp + 0x38]
mov byte [esi + 0xd], al
movzx eax, byte [esp + 0x146]
sub eax, 1
mov byte [esi + 0xc], dl
mov word [esi + 0xe], cx
je 0x23a07c7e
sub eax, 1
je 0x23a07c75
sub eax, 1
jne 0x23a07c85
mov dword [esi + 8], 2
jmp 0x23a07c85
mov dword [esi + 8], 3
jmp 0x23a07c85
mov dword [esi + 8], 1
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 8]
cmp eax, 9
jg 0x23a07cc0
je 0x23a07cb7
cmp eax, ebx
je 0x23a07cae
cmp eax, 6
jne 0x23a07cc7
mov dword [esi + 4], 2
jmp 0x23a07cd6
mov dword [esi + 4], 1
jmp 0x23a07cd6
mov dword [esi + 4], 3
jmp 0x23a07cd6
cmp eax, 0xffff
je 0x23a07cd6
push eax
push str.Unhandled_processor_architecture:__u
call dword [0x23c41f3c]
add esp, 8
mov ecx, dword [esp + 0x148]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.23a4addf
add esp, 0x144
ret

Function at 0x23a08230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [eax + 0x14]
sub esp, 0x30
cmp dword [eax + 0x18], 8
jb 0x23a08247
mov ecx, dword [eax + 4]
jmp 0x23a0824a
lea ecx, [eax + 4]
lea eax, [edx + edx]
test eax, eax
je 0x23a08293
push 0
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x23a08293
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1
push str.d:_builds_temporary_activitymon20_sources_actbasic.._actBasic_advapi.h
lea ecx, [esp + 0x14]
call fcn.23a01270
push 0x23c614bc
lea edx, [esp + 0xc]
push edx
call fcn.23a49c94
mov esp, ebp
pop ebp
ret 4
Function at 0x23a08ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bddb53
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
push 0x5c
call fcn.23a2ecec
add esp, 4
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x78], ebx
cmp eax, ebx
je 0x23a08bfc
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.23a084c0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x23a08c02
mov dword [esp + 0x10], ebx
mov edi, ebx
mov edx, dword [ebp + 8]
mov dword [esp + 0x78], 0xffffffff
push edx
lea ecx, [esp + 0x54]
mov dword [esi + 8], edi
call fcn.23a01070
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
lea ecx, [edi + 4]
push eax
mov dword [esp + 0x84], 1
call fcn.23a02610
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], 8
jb 0x23a08c51
mov ecx, dword [esp + 0x54]
push ecx
call fcn.23a2ed1b
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x23a08d71
jmp 0x23a08c63
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
add eax, 4
add eax, 4
xor edx, edx
mov dword [ebp + 0xc], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
mov eax, ecx
mov dword [esp + 0x78], 2
lea edi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x23a08c90
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.23a02320
mov dword [esp + 0x78], 3
mov edi, 7
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, esi
mov byte [esp + 0x78], 4
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x23a08cd0
sub eax, ecx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.23a02320
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x7c], 5
mov ecx, dword [esp + 0x14]
add ecx, 0x20
call fcn.23a09e60
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.23a02610
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x23a08d27
mov eax, dword [esp + 0x1c]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
cmp dword [esp + 0x4c], esi
jb 0x23a08d51
mov edx, dword [esp + 0x38]
push edx
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
cmp esi, ebx
jne 0x23a08c60
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x23a08f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bddde0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x23a08faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x23a08fab
push eax
push 0x83
push str.......Sources_actBasicXMLParser.cpp
lea ecx, [esp + 0x20]
call fcn.23a01270
push 0x23c614bc
lea ecx, [esp + 0x18]
push ecx
call fcn.23a49c94
mov eax, dword [esp + 0xc]
push ebx
lea edx, [esp + 0x14]
push edx
push 2
push 0x23c41644
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x23a08ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1
push str.d:_builds_temporary_activitymon20_sources_actbasic.._actBasic_advapi.h
lea ecx, [esp + 0x20]
call fcn.23a01270
push 0x23c614bc
lea eax, [esp + 0x18]
push eax
call fcn.23a49c94
xor ecx, ecx
push 0x28
mov word [esp + 0x1c], cx
push str.__xml_version_1.0__standalone_yes____r_n
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.23a02320
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.23a08230
mov byte [esp + 0x48], bl
cmp dword [esp + 0x2c], 8
jb 0x23a0903e
mov eax, dword [esp + 0x18]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
push ebx
lea edx, [esp + 0x10]
mov word [esp + 0x1c], cx
push edx
mov ecx, esi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.23a090b0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x23a09094
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x23a09094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x10]
push eax
push str.CloseHandle_0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x23a09560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bde120
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.23a098c0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.23a01070
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.23a01070
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x54], 1
call fcn.23a09e60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.23a02610
mov esi, 8
cmp dword [esp + 0x24], esi
jb 0x23a095f0
mov edx, dword [esp + 0x10]
push edx
call fcn.23a2ed1b
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp dword [esp + 0x40], esi
jb 0x23a0961a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x23a0c5a0
Capabilities:
Create service

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
test esi, esi
je 0x23a0c5be
cmp word [esi], 0
jne 0x23a0c5be
xor esi, esi
test edi, edi
je 0x23a0c5ca
cmp word [edi], 0
jne 0x23a0c5ca
xor edi, edi
mov ecx, dword [esp + 0x20]
push edi
push esi
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
push ecx
mov ecx, dword [ebx + 4]
push 1
push edx
push 0x10
push 0xf01ff
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebx], eax
test eax, eax
je 0x23a0c60e
push ebp
push str.__s__service_has_been_successfully_installed
call dword [0x23c41f20]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x20]
mov ebx, eax
push ebx
push edi
push esi
push edx
push ebp
push str.CreateService_pszName__s___pszImage__s___pszUser__s___pszPassword__s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x14

Function at 0x23a0c640
Capabilities:
Modify service

Disassembly:
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x23a0c670
xor eax, eax
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ChangeServiceConfig___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, esi
pop esi
ret 0x10
Function at 0x23a0c690
Capabilities:
Modify service

Disassembly:
push ecx
lea ecx, [esp]
push ecx
mov dword [esp + 4], eax
mov eax, dword [edx]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x23a0c6ac
xor eax, eax
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ChangeServiceConfig2_SERVICE_CONFIG_DESCRIPTION__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, esi
pop esi
pop ecx
ret

Function at 0x23a0c7a0
Capabilities:
Modify service

Disassembly:
sub esp, 0x30
mov ecx, 1
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, 0x1388
mov dword [esp + 0x20], ecx
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [edx]
xor esi, esi
push 2
push eax
mov dword [esp + 0x10], 0xe10
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 3
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x23a0c803
xor eax, eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ChangeServiceConfig2___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, esi
pop esi
add esp, 0x30
ret
Function at 0x23a0cce0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bdd080
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x23a0cd4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x23c41734
call dword [0x23c41f24]
add esp, 8
test edi, edi
jne 0x23a0ce5f
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.23a0c6d0
test al, al
jne 0x23a0cd9f
mov dword [esp + 0x28], 0xffffffff
test esi, esi
je 0x23a0cd8a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x23a0cd8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CloseServiceHandle_m_hServiceManager__0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], esi
push 0x10000
push ebx
push esi
mov byte [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x23a0ce17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov ebx, eax
push ebx
push 0x10000
push ecx
push str.OpenService___s___0x_08X__failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0x10
test ebx, ebx
je 0x23a0ce17
lea esi, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.23a0c570
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.23a0c530
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x23a0ce26
xor edi, edi
jmp 0x23a0ce40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push str.DeleteService_0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov edi, esi
lea esi, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.23a0c570
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.23a0c530
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x23a0ce80
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x23bdcf60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x23a0cefb
call ebp
mov esi, eax
push esi
push 0x23c41734
call dword [0x23c41f24]
add esp, 8
test esi, esi
je 0x23a0cefb
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x30]
push 0x10
push eax
push edi
mov byte [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x23a0cf79
call ebp
mov ecx, dword [esp + 0x30]
mov ebx, eax
push ebx
push 0x10
push ecx
push str.OpenService___s___0x_08X__failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0x10
test ebx, ebx
je 0x23a0cf79
mov dword [esp + 0x28], 0xffffffff
test edi, edi
je 0x23a0cf63
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x23a0cf63
call ebp
push eax
push edi
push str.CloseServiceHandle_m_hServiceManager__0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x23a0cf92
mov dword [esp + 0x14], 0
jmp 0x23a0cfaa
call ebp
mov ebx, eax
push ebx
push esi
push str.StartService_m_hService0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov dword [esp + 0x14], ebx
mov byte [esp + 0x28], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x23a0cfd2
push esi
call ebx
test eax, eax
jne 0x23a0cfd2
call ebp
push eax
push esi
push str.CloseServiceHandle_m_hService__0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
test edi, edi
je 0x23a0cff7
push edi
call ebx
test eax, eax
jne 0x23a0cff7
call ebp
push eax
push edi
push str.CloseServiceHandle_m_hServiceManager__0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x23a0d010
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bdcf30
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x23a0d08f
call ebx
mov esi, eax
push esi
push 0x23c41734
call dword [0x23c41f24]
add esp, 8
test esi, esi
je 0x23a0d08f
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 8]
push 0x20
push eax
push edi
mov byte [esp + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x23a0d110
call ebx
mov ecx, dword [ebp + 8]
push eax
push 0x20
push ecx
push str.OpenService___s___0x_08X__failed_with_0x_08X_error
mov dword [esp + 0x24], eax
call dword [0x23c41f28]
add esp, 0x10
cmp dword [esp + 0x14], esi
je 0x23a0d110
mov dword [esp + 0x48], 0xffffffff
test edi, edi
je 0x23a0d0f9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x23a0d0f9
call ebx
push eax
push edi
push str.CloseServiceHandle_m_hServiceManager__0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x23a0d13c
call ebx
mov edi, eax
push edi
push 1
push esi
push str.ControlService_m_hService0x_08X__dwControl0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0x10
test edi, edi
jne 0x23a0d1aa
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x23a0d16f
call ebx
mov edi, eax
push edi
push esi
push str.QueryServiceStatus_0x_08X__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 0xc
test edi, edi
jne 0x23a0d1aa
cmp dword [esp + 0x24], 3
je 0x23a0d13c
lea esi, [esp + 0x18]
mov byte [esp + 0x48], 0
call fcn.23a0c570
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.23a0c530
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x18]
mov byte [esp + 0x48], 0
call fcn.23a0c570
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.23a0c530
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x23a0e3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bdde68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.23a08930
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov dword [esp + 0x4c], esi
call fcn.23a0e290
mov bl, al
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x23a0e409
push eax
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.23a2ed1b
add esp, 4
lea ecx, [esp + 0xc]
call fcn.23a08540
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x23a0f4c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
push 0x208
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov ecx, dword [esp + 0x418]
test eax, eax
je 0x23a0f500
push ecx
mov ecx, dword [esp + 0x420]
lea edx, [esp + 8]
push edx
call fcn.23a034b0
pop esi
add esp, 0x410
ret 8
mov eax, dword [esp + 0x41c]
push 0
push eax
push ecx
push 0x29
push 0x23bf05a8
mov ecx, esi
call fcn.23a01a80
pop esi
add esp, 0x410
ret 8

Function at 0x23a0f530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x23a0f549
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x23a0f584
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x23a0f580
lea ebx, [ebx]
cmp esi, eax
jae 0x23a0f584
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x23a0f570
cmp esi, eax
jb 0x23a0f58a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x23a0f5e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 2]
jmp 0x23a0f5f0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x23a0f5f0
mov edx, dword [esp + 0xc]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 8
Function at 0x23a0f630
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x23a0f64c
pop edi
xor al, al
pop esi
ret 4
cmp dword [edi + 0x30], 2
jne 0x23a0f67e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x23a0f67e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetFileAttributes___s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0xc
pop edi
mov al, 1
pop esi
ret 4

Function at 0x23a0fb20
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
push 0x80
push 3
mov esi, ecx
mov eax, dword [esi]
push 0
push 0x40000000
lea edi, [esi + 0xc]
push eax
mov ecx, edi
call fcn.23a01460
test eax, eax
je 0x23a0fb72
cmp eax, 5
jne 0x23a0fb77
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push 3
push 0
mov esi, dword [esi]
push 0x40000000
push esi
mov ecx, edi
call fcn.23a01460
test eax, eax
jne 0x23a0fb87
pop edi
mov al, 1
pop esi
ret
cmp eax, 2
jne 0x23a0fb87
push 0x80
push 1
push 1
jmp 0x23a0fb5f
pop edi
xor al, al
pop esi
ret