joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c310
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
push edi
mov al, byte [esi + 1]
lea edi, [esi + 1]
cmp al, 0x3a
jne 0x40c337
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40c361
call fcn.0040b750
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0x5c
jne 0x40c355
lea edx, [esp + 8]
push edi
push edx
jmp 0x40c35b
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x104
ret 4

Function at 0x40d1f0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x443adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.partnersID
push str.SOFTWAREStorm
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
mov al, byte [esp + 8]
test al, al
je 0x40d2dc
lea ecx, [esp + 0x10c]
call fcn.00428740
push 0
push 0
mov dword [esp + 0x234], 0
call fcn.0040b770
push eax
lea ecx, [esp + 0x118]
call fcn.004287e0
lea eax, [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x10c]
push eax
push 0x4539c4
push str.INSTALL
call fcn.004288c0
push str.partnersID
push str.SOFTWAREStorm
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea ecx, [esp + 0x10c]
mov dword [esp + 0x22c], 0xffffffff
call fcn.004287d0
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x40df30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dfac
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
push eax
push esi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40dfac
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x40dfac
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x40df9a
mov edx, esi
cmp edi, ebx
jb 0x40dfa4
add edx, ebx
cmp edi, edx
jbe 0x40dfb6
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x40df8c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x40dfe0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x404
lea eax, [esp + 0x40c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov edx, dword [0x466214]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x404
ret

Function at 0x40e030
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00441e20
mov al, byte [0x46641c]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x40e063
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x40e113
cmp eax, 0x1fff
ja 0x40e113
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e113
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x453ce0
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e113
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret

Function at 0x40e3b0
Capabilities:
Get common file path

Disassembly:
push esi
push 0x4668f8
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x4668f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.Storm_
push 0x4668f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
push 0x4668f8
push str._sTemp_
push 0x104
push 0x4667f4
call esi
push 0x4667f4
call fcn.00427dd0
add esp, 0x14
push 0x4668f8
push str._sPackage_
push 0x104
push 0x4666f0
call esi
push 0x4666f0
call fcn.00427dd0
add esp, 0x14
push 0x4668f8
push str._sConfig.ini
push 0x104
push 0x466a00
call esi
add esp, 0x10
push 0x4665ec
call fcn.00427940
push 0x4664e8
push str.Codec
call fcn.00427980
pop esi
ret
Function at 0x40ea60
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x4665ec
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea ecx, [esp + 0x114]
push ecx
call edi
lea edx, [esp + 0x10]
push 0x4664e8
push edx
call esi
lea eax, [esp + 0x10]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.PATH
call ebp
mov edi, eax
lea ebx, [edi + 0x208]
push ebx
call fcn.0041b540
add esp, 4
mov esi, eax
test edi, edi
jne 0x40eae4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
push ecx
push edx
push 0x453d60
push 0x208
push esi
jmp 0x40eb1a
push ebx
push esi
push str.PATH
call ebp
push 0x453d5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push ecx
push str.__s__s
push 0x208
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push esi
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call fcn.0041da60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40f110
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push 0xffffffffffffffff
push 0x443ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
mov dword [esp + 0x40], 0
je 0x40f2b2
mov edi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x14
push str.ccosm
push ebp
call edi
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x40], 1
test eax, eax
jne 0x40f1ad
call ebx
cmp eax, 0x424
jne 0x40f1a1
push 1
call fcn.00414bb0
mov ecx, eax
call fcn.00414e20
push 0x14
push str.ccosm
push ebp
call edi
mov esi, eax
test esi, esi
jne 0x40f1ad
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40f2b2
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40f1c0
call ebx
jmp 0x40f1de
push str.Service_start_pending._n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40f1f1
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f1eb
push esi
call edi
push ebp
jmp 0x40f2b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, dword [esp + 0x30]
mov edi, eax
cmp dword [esp + 0x20], 2
jne 0x40f268
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x40f221
mov edx, 0x3e8
jmp 0x40f22e
cmp edx, 0x2710
jbe 0x40f22e
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40f268
cmp dword [esp + 0x30], ebp
jbe 0x40f255
call ebx
mov ebp, dword [esp + 0x30]
mov edi, eax
jmp 0x40f261
call ebx
mov ecx, dword [esp + 0x34]
sub eax, edi
cmp eax, ecx
ja 0x40f268
cmp dword [esp + 0x20], 2
je 0x40f206
cmp dword [esp + 0x20], 4
jne 0x40f29e
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
test esi, esi
je 0x40f27f
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f2ab
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x410710
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x443d63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [ebp], 0
mov eax, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
mov dword [esp + 0x3c], 0
mov dword [ebx], 0x44ab48
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
mov byte [esp + 0x20], 1
je 0x41080a
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0041b540
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [ebx + 8], ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4107db
add edi, 0xfffffff8
push ebp
push edi
mov edi, dword [esp + 0x34]
lea edx, [edi + 8]
push edx
call fcn.0041b570
test eax, eax
jne 0x4107df
mov eax, dword [ebp]
test eax, eax
je 0x4107d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], 0
jmp 0x4107df
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4107ec
push edi
call fcn.0041da60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x18]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x410cb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x410cf1
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x410d0f
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x410d0f
cmp dword [esp + 0xc], 5
jb 0x410d0f
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x4112e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443e5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x44ad90
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x411370
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x411337
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x411361
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x411376
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x411376
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x44ab2c
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x44ab18
mov dword [esp + 0x1c], 0xffffffff
call fcn.004427aa
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4126a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ebp, dword [esp + 0x228]
push 0x46641c
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push str.mee.db
push ecx
push 0x453924
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x12c]
push 0x104
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x120]
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x18]
mov esi, eax
push 8
push edx
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, eax
push ebx
and ecx, 0xffff
mov edx, esi
push ecx
mov ecx, 0x10
call fcn.00441ff0
and eax, 0xffff
push ebx
push eax
mov edx, esi
mov eax, esi
and edx, 0xffff
push ebx
sar esi, 0x1f
push edx
push esi
sar eax, 0x10
push eax
push str._I64d._02I64d._02I64d._02I64d
push 0x104
push ebp
call edi
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x414f60
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x108
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00414f10
test eax, eax
je 0x414f83
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x108
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x414fa2
pop edi
pop esi
pop ebp
add esp, 0x108
ret
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push str.__asservice
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push str.RPCSS
push 0
lea edx, [esp + 0x20]
push 0
push edx
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [ebp + 8]
push str.Contrl_Center_of_Storm_Media
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x41500a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebx, eax
test ebx, ebx
je 0x415030
lea ecx, [esp + 0x10]
add ebp, 0x108
push ecx
push 1
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x108
ret

Function at 0x415060
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00414f10
test eax, eax
jne 0x41507b
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x415096
pop edi
pop esi
add esp, 0x1c
ret
add esi, 8
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4150bb
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x1c
ret
Function at 0x415330
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [0x467b2c]
sub esp, 0x108
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
jne 0x4153e7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x104
push eax
push esi
push reloc.WS2_32.dll_closesocket
call ebp
cmp eax, 0x103
jne 0x41538e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
or esi, 0xffffffff
jmp 0x4153d9
cmp eax, ebx
jne 0x4153d9
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x12
jl 0x4153d9
lea edx, [esp + 0x14]
push str._Classes
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x4153d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0xf003f
push ebx
push ecx
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4153f4
mov eax, dword [0x467b2c]
inc esi
cmp eax, ebx
je 0x415351
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x10]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x415ff0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4442ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push str.SOFTWAREStorm
mov esi, ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x416047
push 1
mov ecx, esi
call fcn.00415240
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0x10128
call fcn.0041b540
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x41606d
mov ecx, eax
call fcn.0041ecb0
jmp 0x41606f
xor eax, eax
push esi
mov ecx, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 4], eax
call fcn.0041eea0
mov ecx, dword [esi + 4]
push 0x14ec
push 0x14eb
push 0x14ea
call fcn.0041eeb0
test eax, eax
jge 0x4160b8
push 1
mov ecx, esi
call fcn.00415240
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
xor edx, edx
push 4
mov dx, word [ecx + 0x2c]
mov ecx, dword [esp + 8]
push eax
push 4
push 0
push str.SERVICEPORT
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x4160fe
push 4
mov ecx, esi
call fcn.00415240
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x416a90
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x28
push ebp
push esi
push edi
xor esi, esi
push 0xf003f
push esi
mov edi, ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, esi
je 0x416b3d
push ebx
add edi, 8
push 2
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x24
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x416b23
cmp dword [esp + 0x18], 4
jne 0x416b23
push ebp
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
je 0x416b23
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov esi, eax
push edi
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x416b30
push ebx
call edi
push ebp
call edi
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x28
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x28
ret