joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00422210
add esp, 0xc
push edi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4035c8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403609
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x20c]
push 0x42fc8c
push edx
call fcn.0041a8a7
add esp, 8
test eax, eax
jne 0x4035fa
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4035e1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp edi, 1
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x403630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x84e]
push edx
mov dword [ebp - 0x85c], eax
mov word [ebp - 0x850], cx
call fcn.00422210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x850]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [ebp - 0x850]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x403779
push ebx
push esi
call fcn.0041a96c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403778
push ebx
push esi
push 0
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40376f
push 0
lea eax, [ebp - 0x858]
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 0x858], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40376f
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x40376f
push edi
mov ecx, 0x12
mov esi, str.StringFileInfo12345678FileVersion
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
mov dword [ebp - 0x854], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
pop edi
test eax, eax
je 0x40376f
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x40376f
mov edx, dword [ebp - 0x85c]
sub edx, eax
jmp 0x403760
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403760
push ebx
call fcn.0041a932
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x403a40
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 with custom key via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp esi, 0x10
jle 0x403a55
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x403a98
push 8
push 1
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call edi
test eax, eax
jne 0x403a98
push 0xf0000000
push 1
push ebx
push ebx
lea edx, [ebp - 4]
push edx
call edi
test eax, eax
je 0x403b36
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x134
push 0xb42a30
push ecx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x403b36
xor eax, eax
cmp esi, ebx
jle 0x403ad5
lea ecx, [esi + 0xb42bb3]
mov dl, byte [ecx]
mov byte [eax + 0xb42b74], dl
inc eax
dec ecx
cmp eax, esi
jl 0x403ac7
lea eax, [esi + 1]
mov byte [esi + 0xb42b74], bl
cmp eax, 0x3e
jge 0x403afc
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0xb42b74]
push 1
push ecx
call fcn.00422210
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push 0x4c
push 0xb42b68
push edx
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x403b36
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 8]
push edx
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403b3f
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404d60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.00422210
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x404dba
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0xb59158], 1
mov dword [ebp - 0x220], eax
jne 0x404df3
cmp byte [ebp + 0x10], 0
push 0
je 0x404de8
push 0x100
push esi
push edi
call eax
jmp 0x404dfb
push 0x200
push esi
push edi
call eax
jmp 0x404dfb
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x404e15
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x404e29
lea edx, [ebp - 0x218]
push edx
push 0x20119
jmp 0x404e35
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404e4d
xor ecx, ecx
cmp eax, 2
jmp 0x404f55
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
je 0x404e6f
mov edx, 0x5c
mov word [ebx], dx
add ebx, 2
xor eax, eax
mov word [ebx], ax
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push ecx
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404f07
jmp 0x404eb0
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.004042a0
mov edx, dword [ebp + 0x10]
push edx
push esi
push edi
call fcn.00404d60
add esp, 0xc
test eax, eax
je 0x404f07
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push eax
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404eb0
xor ecx, ecx
mov word [ebx - 2], cx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xb59158], 1
jne 0x404f49
cmp byte [ebp + 0x10], 0
push 0
je 0x404f3a
push 0x100
push esi
push edi
call dword [ebp - 0x220]
jmp 0x404f51
push 0x200
push esi
push edi
call dword [ebp - 0x220]
jmp 0x404f51
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x20c], ax
call fcn.00422210
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
add esp, 0xc
call esi
movzx eax, ax
mov edx, eax
and edx, 0x3ff
cmp edx, 4
jne 0x406dc6
and eax, 0xfc00
cmp eax, 0x400
jne 0x406dc6
lea edi, [edx - 3]
jmp 0x406dc8
xor edi, edi
call esi
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x406deb
and eax, 0xfc00
cmp eax, 0x800
jne 0x406deb
lea edx, [ecx - 3]
jmp 0x406ded
xor edx, edx
xor eax, eax
nop
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x406df0
test edi, edi
je 0x406e59
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406e14
mov edx, dword [0x434444]
mov ecx, dword [0x434448]
mov dword [eax], edx
mov edx, dword [0x43444c]
mov dword [eax + 4], ecx
mov ecx, dword [0x434450]
mov dword [eax + 8], edx
mov edx, dword [0x434454]
mov dword [eax + 0xc], ecx
mov cx, word [0x434458]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x406ecc
test edx, edx
je 0x406eab
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406e66
mov edx, dword [0x43445c]
mov ecx, dword [str._Client7]
mov dword [eax], edx
mov edx, dword [0x434464]
mov dword [eax + 4], ecx
mov ecx, dword [0x434468]
mov dword [eax + 8], edx
mov edx, dword [0x43446c]
mov dword [eax + 0xc], ecx
mov cx, word [0x434470]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x406ecc
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406eb4
mov ecx, 7
mov esi, str.WiNet_Client7
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
test eax, eax
jne 0x406f5e
nop
movzx ecx, word [eax + 0xb54bd0]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x406f00
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f20
mov ecx, dword [ebp - 0x210]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xb568a8], 0
mov dword [ebp - 8], 0
je 0x407003
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_servicesWM7F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406ffd
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push str.NetDevice
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.systemcurrentcontrolset_servicesWM7F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40703b
mov eax, dword [ebp - 4]
push str.NetDevice
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4072e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.00422210
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_serviceseventlogApplicationWinNetDaily
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x407364
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00422210
push str._SystemRoot_System32WinNetDaily.dll
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041c332
lea eax, [ebp - 0x20c]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073a0
mov ecx, dword [ebp - 0x210]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
lea eax, [ebp - 0x20c]
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call esi
mov eax, dword [ebp - 0x210]
push edi
lea edx, [ebp - 0x20c]
push edx
push 2
push 0
push str.CategoryMessageFile
push eax
call esi
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00422210
mov eax, dword [ebp - 0x210]
add esp, 0xc
push 4
lea edx, [ebp - 0x214]
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [ebp - 0x214], 7
call esi
mov edx, dword [ebp - 0x210]
push 4
lea ecx, [ebp - 0x214]
push ecx
push 4
push 0
push str.CategoryCount
push edx
mov dword [ebp - 0x214], 1
call esi
mov eax, dword [ebp - 0x210]
pop edi
pop esi
test eax, eax
je 0x407462
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x407480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x43e044]
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.00422210
push 0xb5b1f0
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041c332
push str.wmcSystem7.exe__di
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041c26c
push 0x44
lea ecx, [ebp - 0x268]
push 0
push ecx
call fcn.00422210
add esp, 0x30
xor eax, eax
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407557
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x220]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x407570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x43e044]
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.00422210
push 0xb5b1f0
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041c332
push str.wmcSystem7.exe__i
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041c26c
push 0x44
lea ecx, [ebp - 0x268]
push 0
push ecx
call fcn.00422210
add esp, 0x30
xor eax, eax
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407647
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x220]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x407660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x43e044]
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.00422210
add esp, 0xc
push 0xb5b1f0
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041c332
add esp, 0xc
push str.wmcUpdater.exe__smr_inst
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041c26c
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x4347b0
push 0xb543d0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xb543d0
call fcn.00403790
add esp, 4
push 0x44
lea edx, [ebp - 0x268]
push 0
push edx
call fcn.00422210
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407767
mov eax, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x220]
push ecx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x407780
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x80070057
test edi, edi
je 0x4078c6
mov ecx, edi
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4077a0
sub ecx, esi
sar ecx, 1
je 0x4078c5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4078c5
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4077c3
sub ecx, esi
sar ecx, 1
je 0x4078c5
test ebx, ebx
je 0x4078c5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4078c5
lea eax, [ebp - 4]
push eax
push 0x42d3fc
push 1
push 0
push 0x42d40c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4078c5
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 0x407840
sub eax, edx
sar eax, 1
je 0x40785d
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 0x407862
sub eax, edx
sar eax, 1
je 0x407881
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 0x42d41c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x4078b8
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 0x4078d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4078f4
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.00407780
add esp, 8
test eax, eax
jns 0x40791d
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 0x408040
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, byte [0x434f24]
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 [0x434f20]
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 0x408094
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
xor edi, edi
jmp 0x4080a4
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 0x4080e0
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4080cf
cmp dword [ebp - 0x2c], 4
je 0x4080ed
push 0x1f4
call ebx
push esi
inc edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4080e8
push 0x1f4
call ebx
inc edi
cmp edi, 0x3c
jl 0x4080a1
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.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x408b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e044]
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.00422210
push 0xb5b1f0
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 0x4301b4
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.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x408c10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e044]
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.00422210
push 0xb5b1f0
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.0041a70e
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 [0x43e044]
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.00422210
push 0xb5b1f0
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.0041a70e
mov esp, ebp
pop ebp
ret