joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
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], 5
jne 0x4015b5
cmp dword [ebp - 0x118], 0
jne 0x4015b5
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 0x4015d0
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
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
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x401630
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x4016a5
cmp eax, 6
jbe 0x401693
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
jne 0x4016a5
mov eax, dword [ebp - 0x118]
cmp eax, 1
jbe 0x4016a5
cmp eax, 2
jae 0x401680
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
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], 5
jne 0x40232c
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40232c
cmp word [ebp - 0xc], ax
je 0x40232e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x402340
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jae 0x40239e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
jne 0x4023c0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40238b
cmp eax, 2
je 0x4023c0
cmp eax, 1
jne 0x4023c0
mov ax, word [ebp - 0xc]
cmp ax, 3
je 0x4023c0
jb 0x40238b
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
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 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
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], 5
jne 0x40242d
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40242d
cmp word [ebp - 0xc], 0
je 0x40242f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.004238b0
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x402850
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x402850
lea edx, [ebp - 0x198]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4028a5
mov dword [0xc35768], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x431a08
push ecx
call esi
test eax, eax
je 0x4028f0
mov dword [0xc35768], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.RegNumber
push edx
mov dword [0xc35768], 1
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402957
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.0041c33e
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
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
mov eax, 1
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x403570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x441044]
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.004238b0
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.0041bcde
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 0x431cbc
push edx
call fcn.0041be77
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.0041bcde
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 [0x441044]
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.004238b0
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.0041bf3c
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.0041bf02
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041bcde
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 0xbf88c0
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 + 0xbf8a43]
mov dl, byte [ecx]
mov byte [eax + 0xbf8a04], dl
inc eax
dec ecx
cmp eax, esi
jl 0x403ac7
lea eax, [esi + 1]
mov byte [esi + 0xbf8a04], bl
cmp eax, 0x3e
jge 0x403afc
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0xbf8a04]
push 1
push ecx
call fcn.004238b0
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 0xbf89f8
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 0x404de0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x441044]
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.004238b0
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x404e3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0xc36bf4], 1
mov dword [ebp - 0x220], eax
jne 0x404e73
cmp byte [ebp + 0x10], 0
push 0
je 0x404e68
push pe_nt_image_headers32
push esi
push edi
call eax
jmp 0x404e7b
push 0x200
push esi
push edi
call eax
jmp 0x404e7b
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x404e95
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x404ea9
lea edx, [ebp - 0x218]
push edx
push 0x20119
jmp 0x404eb5
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 0x404ecd
xor ecx, ecx
cmp eax, 2
jmp 0x404fd5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
je 0x404eef
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 0x404f87
jmp 0x404f30
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.004042a0
mov edx, dword [ebp + 0x10]
push edx
push esi
push edi
call fcn.00404de0
add esp, 0xc
test eax, eax
je 0x404f87
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 0x404f30
xor ecx, ecx
mov word [ebx - 2], cx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xc36bf4], 1
jne 0x404fc9
cmp byte [ebp + 0x10], 0
push 0
je 0x404fba
push pe_nt_image_headers32
push esi
push edi
call dword [ebp - 0x220]
jmp 0x404fd1
push 0x200
push esi
push edi
call dword [ebp - 0x220]
jmp 0x404fd1
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.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x441044]
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.004238b0
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 0x406e46
and eax, 0xfc00
cmp eax, 0x400
jne 0x406e46
lea edi, [edx - 3]
jmp 0x406e48
xor edi, edi
call esi
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x406e6b
and eax, 0xfc00
cmp eax, 0x800
jne 0x406e6b
lea edx, [ecx - 3]
jmp 0x406e6d
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 0x406e70
test edi, edi
je 0x406ed9
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406e94
mov edx, dword [0x43650c]
mov ecx, dword [0x436510]
mov dword [eax], edx
mov edx, dword [0x436514]
mov dword [eax + 4], ecx
mov ecx, dword [0x436518]
mov dword [eax + 8], edx
mov edx, dword [0x43651c]
mov dword [eax + 0xc], ecx
mov cx, word [0x436520]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x406f4c
test edx, edx
je 0x406f2b
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406ee6
mov edx, dword [0x436524]
mov ecx, dword [str._Client7]
mov dword [eax], edx
mov edx, dword [0x43652c]
mov dword [eax + 4], ecx
mov ecx, dword [0x436530]
mov dword [eax + 8], edx
mov edx, dword [0x436534]
mov dword [eax + 0xc], ecx
mov cx, word [0x436538]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x406f4c
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406f34
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 0x406fde
nop
movzx ecx, word [eax + 0xc31254]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x406f80
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406fa0
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.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x407000
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xc33130], 0
mov dword [ebp - 8], 0
je 0x407073
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 0x40706d
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 0x4070ab
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 0x407350
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
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 dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004238b0
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 0x4073d4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004238b0
push str._SystemRoot_System32WinNetDaily.dll
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041d902
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 0x407410
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.004238b0
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 0x4074d2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x4074f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
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
push 0xc38c90
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041d902
push str.wmcSystem7.exe__di
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041d83c
push 0x44
lea ecx, [ebp - 0x268]
push 0
push ecx
call fcn.004238b0
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 0x4075c7
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.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x4075e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
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
push 0xc38c90
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041d902
push str.wmcSystem7.exe__i
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041d83c
push 0x44
lea ecx, [ebp - 0x268]
push 0
push ecx
call fcn.004238b0
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 0x4076b7
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.0041bcde
mov esp, ebp
pop ebp
ret

Function at 0x4076d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
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
add esp, 0xc
push 0xc38c90
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041d902
add esp, 0xc
push str.wmcUpdater.exe__smr_inst
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041d83c
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x436878
push 0xc30a50
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xc30a50
call fcn.00403790
add esp, 4
push 0x44
lea edx, [ebp - 0x268]
push 0
push edx
call fcn.004238b0
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 0x4077d7
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.0041bcde
mov esp, ebp
pop ebp
ret