joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bac0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10079914]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov edx, esi
lea ecx, [edx + 1]
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x1002bae0
sub edx, ecx
cmp edx, 3
jb 0x1002bb93
mov al, byte [esi]
cmp al, 0x2e
je 0x1002bb26
cmp al, 0x5c
je 0x1002bb67
cmp al, 0x2f
je 0x1002bb67
cmp byte [esi + 1], 0x3a
je 0x1002bb67
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x10e
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
jmp 0x1002bb40
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x10e
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1002bb93
cmp eax, 0x10e
jae 0x1002bb93
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
mov byte [ebp - 0xb], 0
push eax
push 0x10e
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
push ebx
mov bl, byte [esi + 3]
push esi
mov byte [esi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
mov byte [esi + 3], bl
cmp eax, 3
pop ebx
sete cl
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10071a90
mov esp, ebp
pop ebp
ret
Function at 0x1002bea0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10079914]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1002bf01
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
push 0x10e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002bf59
cmp eax, 0x10e
jae 0x1002bf59
mov edx, 0x10e
lea ecx, [ebp - 0x224]
push 0x1000b9b0
sub edx, eax
add ecx, eax
call fcn.1002c450
test eax, eax
js 0x1002bf59
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10071a90
mov esp, ebp
pop ebp
ret

Function at 0x1002c270
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10079914]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10e
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002c330
cmp eax, 0x10e
jae 0x1002c330
mov edx, 0x10e
lea ecx, [ebp - 0x114]
push 0x1000b9b0
sub edx, eax
add ecx, eax
call fcn.1002c450
test eax, eax
js 0x1002c330
mov ecx, dword [0x1007e220]
mov eax, ecx
not eax
mov dword [0x1007e240], 1
and eax, 0xfff
xor ecx, eax
cmp dword [0x1007e23c], 0
lea eax, [ebp - 0x114]
mov dword [0x1007e220], ecx
mov dword [0x10076898], eax
jne 0x1002c316
mov ecx, 0x23fa
call fcn.1002b890
cmp dword [0x1007aff8], 0xffffffff
jne 0x1002c316
push 1
call fcn.1002b6d0
mov dword [0x10076898], 0x1000ba44
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
Function at 0x1002c350
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10079914]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1007e23c], 0
mov dword [ebp - 0x11c], 0
jne 0x1002c438
lea eax, [ebp - 0x11c]
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.1002bbb0
add esp, 8
test eax, eax
jne 0x1002c3b2
push 1
call fcn.1002b6d0
call fcn.1002c110
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
cmp dword [0x1007e220], 0
lea eax, [ebp - 0x118]
mov dword [0x10076898], eax
mov byte [ebp - 0xb], 0
jne 0x1002c3d4
mov dword [0x1007e220], 0xfff
cmp dword [0x1007e23c], 0
jne 0x1002c3f7
mov ecx, 0x23fa
call fcn.1002b890
cmp dword [0x1007aff8], 0xffffffff
jne 0x1002c3f7
push 1
call fcn.1002b6d0
cmp dword [0x10076008], 0x1002b4e0
jne 0x1002c42e
cmp dword [ebp - 0x11c], 0
je 0x1002c42e
push 0x1000ba18
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x10076898]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1000ba20
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x10076898], 0x1000ba44
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10071a90
mov esp, ebp
pop ebp
ret
Function at 0x10038f10
Capabilities:
Terminate process

Disassembly:
lea eax, [edx - 1]
cmp eax, edx
ja 0x10038f23
dec edx
add edx, ecx
cmp edx, ecx
jb 0x10038f23
not eax
and eax, edx
ret
jmp fcn.10038f00
Function at 0x1005ae90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073a68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x10079914]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x1000d514
push SQLBindCol
mov dword [esi], 0x1000193c
mov edi, 0x2000
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1005af2d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10014bf0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005af1f
cmp dword [ebp - 0x18], 4
jne 0x1005af1f
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1005af2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], edi
mov eax, esi
cmp edi, 0x100
jae 0x1005af41
mov dword [esi + 4], 0x100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006caf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.1006c76b
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.1006c7a6
and eax, 0x8d82fd1a
inc ebp
call 0x60ef289c
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1006c7b6
push eax
push esi
push dword [ebp + 8]
call fcn.1006c76b
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1006c7b6
push eax
push esi
push dword [ebp + 8]
call fcn.1006c76b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1006c7b6
push eax
push esi
push dword [ebp + 8]
call fcn.1006c76b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1006c7a6
cmpsd dword [esi], dword es:[edi]
lea edx, [edi + ebp*2 - 0x78]
popfd
jl 0x1006cc2b
invalid
invalid
Function at 0x10071e50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10071e8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10071e86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10071e90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10071e76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10071f60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10071f76
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10071f91
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40191b
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x40c25c
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call fcn.00401000
add esp, 4
jmp 0x401a50
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x4019cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
push 0x40c284
lea eax, [ebp - 0x108]
push eax
call fcn.0040352b
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401000
add esp, 4
jmp 0x401a46
lea edx, [ebp - 0x124]
push edx
push 1
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401a03
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x401a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
push eax
push str.ControlService_failed__error_code___d
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x1a4]
push edx
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401a56
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x40c2d0
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call fcn.00401000
add esp, 4
jmp 0x401b8a
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x401b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
push 0x40c2f8
lea eax, [ebp - 0x108]
push eax
call fcn.0040352b
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401000
add esp, 4
jmp 0x401b80
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x401b3d
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x401b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.StartService_failed__error_code___d
lea edx, [ebp - 0x188]
push edx
call fcn.0040352b
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401e27
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x40c42c
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call fcn.00401000
add esp, 4
jmp 0x401f4f
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x401ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
push str.OpenService_failed__error_code___d
lea eax, [ebp - 0x108]
push eax
call fcn.0040352b
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401000
add esp, 4
jmp 0x401f45
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401f11
mov eax, dword [ebp + 8]
push eax
push str.Failed_to_delete_service__s
lea ecx, [ebp - 0x184]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x184]
push edx
call fcn.00401000
add esp, 4
jmp 0x401f38
mov eax, dword [ebp + 8]
push eax
push str.Service__s_removed
lea ecx, [ebp - 0x200]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x200]
push edx
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401f53
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push str.OpenSCManager_failed__error_code___d
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call fcn.00401000
add esp, 4
jmp 0x40207e
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.StopUpdates10_Guard
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x402020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.Failed_to_create_service__s__error_code___d
lea edx, [ebp - 0x108]
push edx
call fcn.0040352b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call fcn.00401000
add esp, 4
jmp 0x402074
mov dword [ebp - 0x10c], str.StopUpdates10_permanently_blocks_Windows_Update_service
lea ecx, [ebp - 0x10c]
push ecx
push 1
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov eax, dword [ebp + 0xc]
push eax
push str.Service__s_installed
lea ecx, [ebp - 0x188]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x188]
push edx
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40295c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push str.Starting_DisableWindowsUpdates
call fcn.00401000
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x160], 0x44
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0x40e6ac
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 1
mov word [ebp - 0x130], 0
mov word [ebp - 0x12e], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
push str.sc.exe_config_wuauserv_start_disabled
lea eax, [ebp - 0x10c]
push eax
call fcn.00403820
add esp, 8
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402a6d
mov byte [ebp - 4], 1
push str.sc.exe_stop_wuauserv
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00403820
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x160]
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402ab2
mov byte [ebp - 4], 1
push 4
push str.wuauserv
call fcn.00402c5b
add esp, 8
push str.Executed_DisableWindowsUpdates
call fcn.00401000
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x402ad2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push str.Stopping_SU10Guard...
call fcn.00401000
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x160], 0x44
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0x40e6b0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 1
mov word [ebp - 0x130], 0
mov word [ebp - 0x12e], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
push str.sc.exe_stop_SU10Guard
lea eax, [ebp - 0x10c]
push eax
call fcn.00403820
add esp, 8
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402bf0
mov byte [ebp - 4], 1
push str.SU10Guard_os_trying_to_stop.
call fcn.00401000
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x402c5b
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409142
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x210
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x214], 0x40c968
cmp dword [ebp + 8], 0
jne 0x402c97
xor al, al
jmp 0x402d8e
cmp dword [ebp + 0xc], 1
jae 0x402caa
cmp dword [ebp + 0xc], 4
jbe 0x402caa
xor al, al
jmp 0x402d8e
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004034b0
add esp, 4
cmp eax, 0x190
jbe 0x402ce6
xor al, al
jmp 0x402d8e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
push 0x40c98c
lea eax, [ebp - 0x210]
push eax
call fcn.0040352b
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402d79
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push 0x40c994
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 0x21c], 1
jmp 0x402d65
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d81
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40914c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x214], str.SYSTEMCurrentControlSetServices_
cmp dword [ebp + 8], 0
jne 0x402ddc
or eax, 0xffffffff
jmp 0x402ed4
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x218], 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004034b0
add esp, 4
cmp eax, 0x190
jbe 0x402e1c
or eax, 0xffffffff
jmp 0x402ed4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
push str._s_s
lea eax, [ebp - 0x210]
push eax
call fcn.0040352b
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0x20019
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ebf
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], 4
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push str.Start
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x402eab
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402ec7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ee5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov byte [ebp - 0x1fc], 1
mov byte [ebp - 0x1f8], 0
push 0x40d69c
push 0x1f4
lea eax, [ebp - 0x1f8]
push eax
push 0x40e6b4
push str.WaasMedicSvc
push str.DisabledFeatures
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x1f8]
cmp ecx, 0x31
jne 0x402f35
mov byte [ebp - 0x1fc], 0
mov al, byte [ebp - 0x1fc]
mov esp, ebp
pop ebp
ret

Function at 0x4061eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d2b8
cmp edx, dword [eax]
je 0x40620d
add eax, 8
inc ecx
cmp eax, 0x40d348
jl 0x4061fe
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d2b8]
jne 0x40633b
mov eax, dword [0x40e6c0]
cmp eax, 1
je 0x406315
test eax, eax
jne 0x40623e
cmp dword [0x40ca14], 1
je 0x406315
cmp edx, 0xfc
je 0x40633b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406275
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004034b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4062b8
lea eax, [ebp - 0x1a4]
push eax
call fcn.004034b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a54c
push edi
call fcn.00407e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403830
lea eax, [ebp - 0xa0]
push 0x40a52c
push eax
call fcn.00403830
push dword [esi + 0x40d2bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408968
add esp, 0x2c
pop edi
jmp 0x40633b
lea eax, [ebp + 8]
lea esi, [esi + 0x40d2bc]
push 0
push eax
push dword [esi]
call fcn.004034b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret