joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.0042c450
mov eax, dword [0x448044]
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.004279d0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x2006]
push eax
mov word [ebp - 0x2008], dx
call fcn.004279d0
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov word [ebp - 0x808], cx
call fcn.004279d0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x2806]
push ecx
mov word [ebp - 0x2808], ax
call fcn.004279d0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1806]
push eax
mov word [ebp - 0x1808], dx
call fcn.004279d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push 0x48c250
push 0x3fe
lea ecx, [ebp - 0x1008]
push ecx
push 0x436474
push 0x43e214
push 0x43e020
call esi
push 0x48c250
push 0x3fe
lea edx, [ebp - 0x2008]
push edx
push 0x436474
push str.Passphrase
push 0x43e020
call esi
lea eax, [ebp - 0x1008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40efa3
sub eax, edx
sar eax, 1
je 0x40f11d
lea ecx, [ebp - 0x2008]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40efc1
sub ecx, esi
sar ecx, 1
je 0x40f11d
cmp eax, 0x90
jbe 0x40f116
cmp ecx, 0x90
jbe 0x40f116
lea edi, [ebp - 0x2808]
lea esi, [ebp - 0x2008]
call fcn.00404e70
lea edi, [ebp - 0x808]
lea esi, [ebp - 0x1008]
call fcn.00404e70
mov eax, edi
push 0x5c
push eax
call fcn.004200d1
add esp, 8
test eax, eax
je 0x40f08f
xor eax, eax
jmp 0x40f030
movzx ecx, word [ebp + eax - 0x808]
mov word [ebp + eax - 0x1808], cx
add eax, 2
test cx, cx
jne 0x40f030
lea ecx, [ebp - 0x1808]
push 0x5c
push ecx
call fcn.004200d1
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x808]
push 0x5c
push eax
call fcn.004200d1
add eax, 2
lea edx, [ebp - 0x808]
add esp, 0x10
sub edx, eax
jmp 0x40f080
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40f080
lea eax, [ebp - 0x2808]
lea edx, [eax + 2]
jmp 0x40f0a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f0a0
sub eax, edx
lea ecx, [ebp - 0x1808]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x808]
push edx
push str.DispatchRange
push 0x48b210
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x48b210
call fcn.004042f0
add esp, 4
push 0x4868d8
lea edi, [ebp - 0x2808]
lea ebx, [ebp - 0x808]
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x40f13a
mov eax, 1
mov dword [0x4868d0], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x43e298
jmp 0x40f122
push 0x43e238
push 0x48b210
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x48b210
call fcn.004042f0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x40f150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.0042c450
mov eax, dword [0x448044]
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.004279d0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x2006]
push eax
mov word [ebp - 0x2008], dx
call fcn.004279d0
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov word [ebp - 0x808], cx
call fcn.004279d0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x2806]
push ecx
mov word [ebp - 0x2808], ax
call fcn.004279d0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1806]
push eax
mov word [ebp - 0x1808], dx
call fcn.004279d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push 0x48c250
push 0x3fe
lea ecx, [ebp - 0x1008]
push ecx
push 0x436474
push 0x43e214
push 0x43e35c
call esi
push 0x48c250
push 0x3fe
lea edx, [ebp - 0x2008]
push edx
push 0x436474
push str.Passphrase
push 0x43e35c
call esi
lea eax, [ebp - 0x1008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f253
sub eax, edx
sar eax, 1
cmp eax, 0x90
jbe 0x40f3a8
lea eax, [ebp - 0x2008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f276
sub eax, edx
sar eax, 1
cmp eax, 0x90
jbe 0x40f3a8
lea edi, [ebp - 0x2808]
lea esi, [ebp - 0x2008]
call fcn.00404e70
lea edi, [ebp - 0x808]
lea esi, [ebp - 0x1008]
call fcn.00404e70
mov eax, edi
push 0x5c
push eax
call fcn.004200d1
add esp, 8
test eax, eax
je 0x40f32f
xor eax, eax
jmp 0x40f2d0
movzx ecx, word [ebp + eax - 0x808]
mov word [ebp + eax - 0x1808], cx
add eax, 2
test cx, cx
jne 0x40f2d0
lea ecx, [ebp - 0x1808]
push 0x5c
push ecx
call fcn.004200d1
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x808]
push 0x5c
push eax
call fcn.004200d1
add eax, 2
lea edx, [ebp - 0x808]
add esp, 0x10
sub edx, eax
jmp 0x40f320
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40f320
lea eax, [ebp - 0x2808]
lea edx, [eax + 2]
jmp 0x40f340
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f340
sub eax, edx
lea ecx, [ebp - 0x1808]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x808]
push edx
push str.ServerLog
push 0x48b210
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x48b210
call fcn.004042f0
add esp, 4
push 0x4856c0
lea edi, [ebp - 0x2808]
lea ebx, [ebp - 0x808]
call fcn.0040cda0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x43e370
push 0x48b210
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x48b210
call fcn.004042f0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x40f3e0
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
call fcn.004279d0
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, 6
jb 0x40f528
jne 0x40f452
cmp dword [ebp - 0x118], 2
jb 0x40f528
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0xf003f
xor edx, edx
cmp byte [ebp + 8], 1
push 0
push 0
sete dl
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerPower
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x128], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f528
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x134]
push ecx
push 0
push str.HiberbootEnabled
push edx
mov dword [ebp - 0x134], 4
mov dword [ebp - 0x138], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f4e9
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x128]
je 0x40f508
mov ecx, dword [ebp - 0x124]
push 4
lea eax, [ebp - 0x128]
push eax
push 4
push 0
push str.HiberbootEnabled
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x40f540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x448044]
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.004279d0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x489fd8
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 0x40f5d9
lea edx, [ebp - 0x210]
push edx
push 0x43e47c
push 0x48b210
call esi
add esp, 0xc
push 0x48b210
call fcn.004042f0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
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 0x40f659
push 0x43e4e0
push 0x48b210
call esi
push 0x48b210
call fcn.004042f0
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
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 0x43e528
push 0x48b210
call esi
push 0x48b210
call fcn.004042f0
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x410170
Capabilities:
Delete directory

Disassembly:
push ecx
push 0
push 0
push str.C:UsersPublicSMR7WM7installTemp
call fcn.00405f40
add esp, 0xc
push str.C:UsersPublicSMR7WM7installTemp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
pop ecx
ret
Function at 0x410950
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x488f64]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1a
push 0x402
push eax
call esi
call fcn.00416530
test eax, eax
jne 0x410995
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x488f64]
push 0
push 0x1e
push 0x402
push ecx
call esi
push 0
call fcn.004168c0
add esp, 4
call fcn.00416d80
mov edx, dword [0x488f64]
push 0
push 0x1f
push 0x402
push edx
call esi
push str._Terminate_All_Process_.
call fcn.004042f0
add esp, 4
call fcn.00418220
test al, al
je 0x410984
mov eax, dword [0x488f64]
push 0
push 0x2d
push 0x402
push eax
call esi
call fcn.00401550
test eax, eax
jne 0x410a1c
call fcn.004022d0
test eax, eax
jne 0x410a1c
call fcn.00402400
test eax, eax
jne 0x410a1c
push str._Terminate_Driver_.
call fcn.004042f0
add esp, 4
call fcn.00417210
call fcn.00418880
push 0x11c
lea ecx, [ebp - 0x128]
push 0
push ecx
call fcn.004279d0
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x410a5c
call fcn.00418ee0
mov eax, dword [0x488f64]
push 0
push 0x31
push 0x402
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x410a80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x103
lea edx, [ebp - 0x113]
push 0
push edx
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe58], ecx
mov byte [ebp - 0x114], 0
call fcn.004279d0
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.004279d0
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xd12]
push edx
mov word [ebp - 0xd14], cx
call fcn.004279d0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
lea eax, [ebp - 0x114]
push str._s.EXE
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0xe54]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0xe60], ebx
cmp ebx, 0xffffffff
jne 0x410b50
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004279d0
add esp, 0xc
lea ecx, [ebp - 0xe28]
push ecx
push esi
lea edx, [ebp - 0x114]
push str._s_s
push edx
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
test eax, eax
jne 0x410c1d
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x514]
push 0x43ed30
push edx
call edi
lea eax, [ebp - 0xd14]
add esp, 0xc
push eax
lea ebx, [ebp - 0x514]
call fcn.0040b5d0
lea ecx, [ebp - 0xd14]
add esp, 4
push ecx
call fcn.004042f0
add esp, 4
push 0x104
push 0
push 0x48c460
call fcn.004279d0
add esp, 0xc
xor eax, eax
jmp 0x410bf0
mov cl, byte [ebp + eax - 0x114]
mov byte [eax + 0x48c460], cl
inc eax
test cl, cl
jne 0x410bf0
mov edx, dword [ebp - 0xe58]
mov ecx, dword [ebp - 0xe5c]
push esi
call fcn.0040c4d0
mov ebx, dword [ebp - 0xe60]
add esp, 4
lea edx, [ebp - 0xe54]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410b50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x411c50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], 0
mov word [ebp - 0x204], ax
call fcn.004279d0
lea edx, [ebp - 0x204]
push str.SystemCurrentControlSetServicesWin_Win7
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x204]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x411d3f
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x411d10
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x208]
push edx
push 0xf003f
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x411d3f
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x411d50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x412a80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x448044]
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.004279d0
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0xa0e]
push eax
mov word [ebp - 0xa10], dx
call fcn.004279d0
add esp, 0xc
push 0x4891a0
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.004217d0
add esp, 0xc
push str.wmcUpdater.exe__smr_stop
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0042170a
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xa10]
push 0x43fe88
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0xa10]
add esp, 0xc
push edx
call fcn.004042f0
add esp, 4
push 0x44
lea eax, [ebp - 0xa68]
push 0
push eax
call fcn.004279d0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0xa20]
push ecx
lea edx, [ebp - 0xa68]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov dword [ebp - 0xa20], eax
mov dword [ebp - 0xa1c], eax
mov dword [ebp - 0xa18], eax
mov dword [ebp - 0xa14], eax
lea eax, [ebp - 0x210]
push eax
push 0
mov dword [ebp - 0xa68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412bb6
mov ecx, dword [ebp - 0xa20]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xa1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xa20]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x416160
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x1fe
lea ecx, [ebp - 0x206]
xor eax, eax
push edi
push ecx
xor bl, bl
mov dword [ebp - 0x60c], edi
mov dword [ebp - 0x614], edi
mov word [ebp - 0x208], ax
call fcn.004279d0
add esp, 0xc
push 0x3fe
lea eax, [ebp - 0x606]
xor edx, edx
push edi
push eax
mov word [ebp - 0x608], dx
call fcn.004279d0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
lea ecx, [ebp - 0x208]
push str.SystemCurrentControlSetServices_s
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x60c]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416288
push esi
lea ecx, [ebp - 0x608]
push 0x442a3c
push ecx
call edi
lea edx, [ebp - 0x608]
add esp, 0xc
push edx
call fcn.004042f0
add esp, 4
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0x60c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x416286
push esi
lea eax, [ebp - 0x608]
push 0x442a70
push eax
call edi
lea ecx, [ebp - 0x608]
add esp, 0xc
push ecx
call fcn.004042f0
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov bl, 1
mov eax, dword [ebp - 0x60c]
push 4
lea edx, [ebp - 0x610]
push edx
push 4
push 0
push str.TestValue
push eax
mov dword [ebp - 0x610], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4162f5
push eax
lea ecx, [ebp - 0x608]
push 0x442ac0
push ecx
call edi
lea edx, [ebp - 0x608]
add esp, 0xc
push edx
call fcn.004042f0
mov eax, dword [ebp - 0x60c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x60c]
push str.TestValue
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
lea edx, [ebp - 0x608]
push 0x442b08
push edx
call edi
lea eax, [ebp - 0x608]
add esp, 0xc
push eax
call fcn.004042f0
mov ecx, dword [ebp - 0x60c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41636c
lea edx, [ebp - 0x60c]
push edx
push 0xf003f
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41636c
mov ecx, dword [ebp - 0x60c]
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x416390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.004279d0
add esp, 0xc
mov dword [ebp - 0x60c], 0
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x4163d0
lea edx, [ebp - 0x60c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41643a
mov eax, dword [ebp - 0x60c]
test eax, eax
je 0x41641c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x442b50
call fcn.004042f0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x406]
push edx
mov word [ebp - 0x408], cx
call fcn.004279d0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x606]
push ecx
mov dword [ebp - 0x610], 1
mov word [ebp - 0x608], ax
call fcn.004279d0
add esp, 0xc
mov dword [ebp - 0x614], 0x200
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x435a48]
mov word [ebp + eax - 0x408], cx
add eax, 2
test cx, cx
jne 0x416490
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x608]
push eax
mov eax, dword [ebp - 0x60c]
lea ecx, [ebp - 0x610]
push ecx
push 0
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x60c]
test eax, eax
je 0x4164e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x416507
push 0x442b80
call fcn.004042f0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x442bb4
call fcn.004042f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x418050
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x410], esi
test esi, esi
je 0x4181f3
push 0xf01ff
push 0x435f98
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x4181e5
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x406]
push ecx
mov word [ebp - 0x408], ax
call fcn.004279d0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
mov esi, 1
mov edx, dword [ebp - 0x40c]
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x418147
call ebx
cmp eax, 0x420
je 0x4181a8
call ebx
push eax
push esi
lea eax, [ebp - 0x408]
push 0x443cc8
push eax
call edi
lea ecx, [ebp - 0x408]
push ecx
call fcn.004042f0
add esp, 0x14
cmp esi, 3
je 0x418188
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jle 0x4180d0
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0x408]
push 0x443c78
push edx
call edi
lea eax, [ebp - 0x408]
add esp, 0xc
push eax
call fcn.004042f0
mov ecx, dword [ebp - 0x40c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x408]
push str._Resume_Updater__wmcUpdater
push eax
call edi
lea ecx, [ebp - 0x408]
push ecx
call fcn.004042f0
mov edx, dword [ebp - 0x40c]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x443d70
jmp 0x4181f8
push str._Resume_Updater_
call fcn.004042f0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret