joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x80070057
test edi, edi
je 0x407936
mov ecx, edi
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407810
sub ecx, esi
sar ecx, 1
je 0x407935
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407935
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407833
sub ecx, esi
sar ecx, 1
je 0x407935
test ebx, ebx
je 0x407935
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x407935
lea eax, [ebp - 4]
push eax
push 0x42f42c
push 1
push 0
push 0x42f43c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407935
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push str._service
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4078b0
sub eax, edx
sar eax, 1
je 0x4078cd
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebx
push eax
call edx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4078d2
sub eax, edx
sar eax, 1
je 0x4078f1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42f44c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x407928
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x407964
push str.CoInitialize___failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004077f0
add esp, 8
test eax, eax
jns 0x40798d
push str.CreateShortCut___failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop ebp
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop ebp
ret
Function at 0x4080c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, byte [0x436fec]
xor eax, eax
push 2
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [0x436fe8]
push 0
push 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], cl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x408114
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
xor edi, edi
jmp 0x408124
mov eax, dword [ebp - 0x34]
push 0xf01ff
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x408160
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40814f
cmp dword [ebp - 0x2c], 4
je 0x40816d
push 0x1f4
call ebx
push esi
inc edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408168
push 0x1f4
call ebx
inc edi
cmp edi, 0x3c
jl 0x408121
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x408c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004238b0
push 0xc38c90
lea edx, [ebp - 0x20c]
push str._i__s___sFoxSDKU32w.dll_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0
push 0x4321e4
lea eax, [ebp - 0x20c]
push eax
push str.regsvr32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x408c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004238b0
push 0xc38c90
lea edx, [ebp - 0x20c]
push str._sScheduleTask.exe
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0
push 0
push str.__SetSchedule
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x408d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004238b0
push 0xc38c90
lea edx, [ebp - 0x20c]
push str._sScheduleTask.exe
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0
push 0
push str.__DelSchedule
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x4094c0
Capabilities:
Copy file
Set file attributes

Disassembly:
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, edi
pop edi
ret

Function at 0x409540
Capabilities:
Create process on windows
Get token membership
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0xa18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xa14]
push ecx
mov dword [ebp - 0xa1c], ebx
mov dword [ebp - 0xa18], ebx
mov dword [ebp - 0xa14], ebx
mov word [ebp - 0xa10], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4095b1
mov eax, dword [ebp - 0xa18]
lea edx, [ebp - 0xa1c]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4095b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xa18]
cmp eax, ebx
je 0x4095c8
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0xa1c], ebx
jne 0x4096a3
push 0x206
lea edx, [ebp - 0x20a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x20c], cx
call fcn.004238b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7fe
lea edx, [ebp - 0xa0a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xa0c], cx
call fcn.004238b0
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xa0c]
push str.Elevate_Run:__s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x38
lea edx, [ebp - 0xa54]
push ebx
push edx
mov dword [ebp - 0xa58], 0x3c
call fcn.004238b0
add esp, 0x28
lea ecx, [ebp - 0xa0c]
lea eax, [ebp - 0x20c]
push ecx
mov dword [ebp - 0xa4c], str.runas
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa50], ebx
mov dword [ebp - 0xa3c], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0xa58]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 1
call fcn.0041dbfe
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x409ac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
push 0x7fe
xor edi, edi
lea ecx, [ebp - 0xa0a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0xa0c], ax
call fcn.004238b0
add esp, 0xc
push 0x1fe
lea eax, [ebp - 0x20a]
xor edx, edx
push edi
push eax
mov dword [ebp - 0xa10], pe_nt_image_headers32
mov word [ebp - 0x20c], dx
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0xa10]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
call fcn.00402b60
add esp, 0xc
test eax, eax
je 0x409b6a
lea eax, [ebp - 0x20c]
push 9
push eax
call fcn.0041d4a8
add esp, 8
cmp eax, edi
je 0x409b6a
lea edx, [ebp - 0x20c]
xor ecx, ecx
push 0x437668
push edx
mov word [eax], cx
call fcn.0041be77
add esp, 8
test eax, eax
je 0x409ba1
push esi
lea eax, [ebp - 0xa0c]
push 0x437680
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xa0c]
push ecx
call fcn.00403790
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004099e0
test eax, eax
jne 0x409be3
push esi
lea edx, [ebp - 0xa0c]
push 0x4376b0
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa0c]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x38
lea ecx, [ebp - 0xa48]
push edi
push ecx
call fcn.004238b0
add esp, 0xc
lea edx, [ebp - 0xa4c]
push edx
mov dword [ebp - 0xa4c], 0x3c
mov dword [ebp - 0xa48], 0x40
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa40], edi
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], 0x4321e4
mov dword [ebp - 0xa34], 0xc37c60
mov dword [ebp - 0xa30], edi
mov dword [ebp - 0xa2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4321e4
push esi
lea eax, [ebp - 0xa0c]
push 0x4376e0
push eax
call ebx
lea ecx, [ebp - 0xa0c]
push ecx
call fcn.00403790
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xa14]
add esp, 0x14
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x409cca
cmp edi, 0x102
je 0x409cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
lea ecx, [ebp - 0xa0c]
push 0x437760
push ecx
call ebx
add esp, 0x14
lea edx, [ebp - 0xa0c]
push edx
jmp 0x409b87
push esi
lea eax, [ebp - 0xa0c]
push 0x437718
push eax
call ebx
jmp 0x409b7d
push esi
lea edx, [ebp - 0xa0c]
push 0x4376fc
push edx
call ebx
lea eax, [ebp - 0xa0c]
add esp, 0xc
push eax
call fcn.00403790
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x409d00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov edi, ecx
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x409d60
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x409d82
push str.SetFileInformationByHandle
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409d94
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x28
push ebx
push 0
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop esi
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x40aa90
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
xor eax, eax
push esi
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
cmp eax, 0x4c3
jne 0x40ab23
mov edx, dword [ebp + 8]
push 1
push esi
push edx
call dword [sym.imp.MPR.dll_WNetCancelConnection2W]
push esi
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
cmp eax, 0x4c3
je 0x40ab2f
cmp eax, esi
je 0x40ab2f
push eax
push 0x437d00
push 0xc38e98
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xc38e98
call fcn.00403790
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, esi
je 0x40ab2f
push eax
push 0x437d34
jmp 0x40ab01
push 0x437d68
call fcn.00403790
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ab90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x7fe
push eax
lea ecx, [ebp - 0x816]
push ecx
mov dword [ebp - 0x820], esi
mov word [ebp - 0x818], ax
call fcn.004238b0
add esp, 0xc
push esi
push 0
push 0x431c48
push str.ComputerNameList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x14], dx
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
cmp edi, 1
jge 0x40ac12
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x4400
push 0
push 0xc26640
call fcn.004238b0
add esp, 0xc
mov dword [0xc26640], edi
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x4321e4]
mov word [eax + 0xc26644], cx
add eax, 2
test cx, cx
jne 0x40ac30
mov ebx, 1
cmp edi, ebx
jl 0x40ace6
mov esi, 0xc26684
push 0xa
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [esi], ebx
call fcn.0041c4b5
mov ecx, dword [ebp - 0x820]
add esp, 0xc
push ecx
push 0x20
lea eax, [esi + 4]
push eax
push 0x4321e4
lea edx, [ebp - 0x14]
push edx
push str.ComputerNameList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [0xc3577c], 0
je 0x40acda
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x200
lea edi, [ebp - 0x818]
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
push eax
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x818]
push str._Debug__GetPcList___u__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x818]
push edx
call fcn.00403790
mov edi, dword [ebp - 0x81c]
add esp, 0x14
inc ebx
add esi, 0x44
cmp ebx, edi
jle 0x40ac58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x40b720
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x42]
push ecx
mov word [ebp - 0x44], ax
call fcn.004238b0
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp eax, 1
jne 0x40b788
xor eax, eax
movzx ecx, word [ebp + eax - 0x44]
mov word [eax + 0xc39698], cx
add eax, 2
test cx, cx
jne 0x40b761
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x40cb90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.004284b0
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1006]
push ecx
mov word [ebp - 0x1008], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x2006]
push eax
mov word [ebp - 0x2008], dx
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov word [ebp - 0x808], cx
call fcn.004238b0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x2806]
push ecx
mov word [ebp - 0x2808], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1806]
push eax
mov word [ebp - 0x1808], dx
call fcn.004238b0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push 0xc39ed8
push 0x3fe
lea ecx, [ebp - 0x1008]
push ecx
push 0x4321e4
push 0x4388b4
push 0x4388d8
call esi
push 0xc39ed8
push 0x3fe
lea edx, [ebp - 0x2008]
push edx
push 0x4321e4
push str.Passphrase
push 0x4388d8
call esi
lea eax, [ebp - 0x1008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc93
sub eax, edx
sar eax, 1
cmp eax, 0x90
jbe 0x40cde8
lea eax, [ebp - 0x2008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ccb6
sub eax, edx
sar eax, 1
cmp eax, 0x90
jbe 0x40cde8
lea edi, [ebp - 0x2808]
lea esi, [ebp - 0x2008]
call fcn.004040c0
lea edi, [ebp - 0x808]
lea esi, [ebp - 0x1008]
call fcn.004040c0
mov eax, edi
push 0x5c
push eax
call fcn.0041c291
add esp, 8
test eax, eax
je 0x40cd6f
xor eax, eax
jmp 0x40cd10
movzx ecx, word [ebp + eax - 0x808]
mov word [ebp + eax - 0x1808], cx
add eax, 2
test cx, cx
jne 0x40cd10
lea ecx, [ebp - 0x1808]
push 0x5c
push ecx
call fcn.0041c291
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x808]
push 0x5c
push eax
call fcn.0041c291
add eax, 2
lea edx, [ebp - 0x808]
add esp, 0x10
sub edx, eax
jmp 0x40cd60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cd60
lea eax, [ebp - 0x2808]
lea edx, [eax + 2]
jmp 0x40cd80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd80
sub eax, edx
lea ecx, [ebp - 0x1808]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x808]
push edx
push str.ServerLog
push 0xc38e98
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0xc38e98
call fcn.00403790
add esp, 4
push 0xc33350
lea edi, [ebp - 0x2808]
lea ebx, [ebp - 0x808]
call fcn.0040aa90
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x4388f0
push 0xc38e98
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xc38e98
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x40ce20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004238b0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xc37c60
lea edx, [ebp - 0x210]
push str._sPCScript.dat
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40ceb9
lea edx, [ebp - 0x210]
push edx
push 0x4389b0
push 0xc38e98
call esi
add esp, 0xc
push 0xc38e98
call fcn.00403790
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x458]
push eax
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x478], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREPCScriptUpdateInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x480], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40cf39
push 0x438a14
push 0xc38e98
call esi
push 0xc38e98
call fcn.00403790
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x474]
push 8
lea edx, [ebp - 0x47c]
push edx
push 3
push 0
push str.ForceUpdateTime
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x488]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x488]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x216]
movzx edx, word [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x21a]
push ecx
movzx ecx, word [ebp - 0x21e]
push edx
movzx edx, word [ebp - 0x220]
push eax
push ecx
push edx
push 0x438a58
push 0xc38e98
call esi
push 0xc38e98
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x40da50
Capabilities:
Delete directory

Disassembly:
push ecx
push 0
push 0
push str.C:UsersPublicSMR7WM7installTemp
call fcn.00404730
add esp, 0xc
push str.C:UsersPublicSMR7WM7installTemp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
pop ecx
ret
Function at 0x40e260
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0xc36bec]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1a
push 0x402
push eax
call edi
call fcn.004134e0
test eax, eax
jne 0x40e2a6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [0xc36bec]
push 0
push 0x1e
push 0x402
push ecx
call edi
push 0
call fcn.00413870
mov edx, dword [0xc36bec]
add esp, 4
push 0
push 0x1f
push 0x402
push edx
call edi
push str._Terminate_All_Process_.
call fcn.00403790
add esp, 4
call fcn.00414b00
test al, al
je 0x40e293
mov eax, dword [0xc36bec]
push 0
push 0x2d
push 0x402
push eax
call edi
call fcn.00401550
test eax, eax
jne 0x40e328
call fcn.004022d0
test eax, eax
jne 0x40e328
call fcn.004023d0
test eax, eax
jne 0x40e328
push str._Terminate_Driver_.
call fcn.00403790
add esp, 4
call fcn.00413d30
cmp dword [0xc33138], 1
jne 0x40e353
push 0x43926c
call fcn.00403790
add esp, 4
call fcn.00415100
call fcn.004015d0
test eax, eax
je 0x40e3a2
call fcn.004157e0
jmp 0x40e3a2
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40e3a2
push 0xf01ff
push str.wm7f
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40e39b
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [0xc36bec]
push 0
push 0x31
push 0x402
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret