joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004014f0
test al, al
jne 0x402997
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push str.SOFTWARELenovoBatteryGaugeToast
push 0x80000001
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402a39
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.NewOsDisplayTimes
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029fd
push str.IsSetNewOsUpdateFlag_1_check_flag_value
push 0x40d028
call fcn.004016f0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x402a39
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0
push str.NewOsUpdateFlag
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402a39
push str.IsSetNewOsUpdateFlag_2_set_new_flag_value:_1
push 0x40d028
call fcn.004016f0
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402a47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret

Function at 0x402a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
push 0xf003f
push 0
push str.SOFTWARELenovoBatteryGauge
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ac0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ShowInTaskbar
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402ac0
push str.UpdateRegStatus_....OK
push 0x40d028
call fcn.004016f0
add esp, 8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402ace
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x402b20
Capabilities:
Get session user name
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.ImpersonateLoggedOnUserBegin_1
push 0x40d028
mov edi, ecx
call fcn.004016f0
push 0x200
lea eax, [ebp - 0x208]
mov dword [edi], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov dword [ebp - 0x218], 0x100
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x210]
mov word [ebp - 0x20c], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x402bed
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x214], 0
jne 0x402c37
lea eax, [ebp - 0x208]
push eax
push str.system
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x402c37
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x214]
push str.ImpersonateLoggedOnUserBegin_3_failed._bRet_d__szUserName_s
push 0x40d028
call fcn.004016f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
push edi
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x402c7b
push esi
push str.ImpersonateLoggedOnUserBegin_5__dwSessionId_d
push 0x40d028
call fcn.004016f0
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x402c7b
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
push str.ImpersonateLoggedOnUserBegin_7_no_impersonate
push 0x40d028
call fcn.004016f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x403040
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407468
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.IsFileInfoValid_1
push 0x40d028
mov dword [ebp - 4], 0
call fcn.004016f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea ebx, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmovae ebx, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x4031a9
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4031a9
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406302
mov esi, eax
add esp, 4
test esi, esi
je 0x4031a9
lea ecx, [edi*2 + 2]
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x403175
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x34
push eax
lea eax, [ebp - 0x220]
push eax
push 0x4084f4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403175
mov ecx, dword [ebp - 0x220]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._03d._03d._03d._03d
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.00405800
add esp, 0x1c
push esi
call fcn.004062fd
add esp, 4
push str.IsFileInfoValid_2_OK_
push 0x40d028
call fcn.004016f0
lea eax, [ebp - 0x218]
push str.001.000.000.001
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x10
test eax, eax
setns bl
jmp 0x4031ab
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4031bd
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00404e80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407550
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x403b70
xor eax, eax
cmp ax, word [esi]
je 0x403b70
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403b70
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00402b20
test eax, eax
je 0x403b69
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.00404aa0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x403b3d
mov eax, dword [ecx]
jmp 0x403b3f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.00404cf0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00403690
mov ecx, dword [ebp - 0x14]
add esp, 0x30
call fcn.00402ca0
jmp 0x403b82
push str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
jmp 0x403b75
push str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
push 0x40d028
call fcn.004016f0
add esp, 8
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x403b94
inc eax
push eax
push dword [ebp + 8]
call fcn.00404e80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x4042a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp - 0x258]
xor edi, edi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4042e1
xor bl, bl
jmp 0x4043b6
mov ecx, 0x4084e8
lea eax, [ebp - 0x22c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404316
test dx, dx
je 0x404312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404316
add eax, 4
add ecx, 4
test dx, dx
jne 0x4042f0
xor eax, eax
jmp 0x40431b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40436c
mov ecx, 0x4084ec
lea eax, [ebp - 0x22c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404356
test dx, dx
je 0x404352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404356
add eax, 4
add ecx, 4
test dx, dx
jne 0x404330
xor eax, eax
jmp 0x40435b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40436c
test byte [ebp - 0x258], 0x10
je 0x40436b
inc esi
jmp 0x40436c
inc edi
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4042e1
cmp esi, 0xa
jle 0x404390
cmp edi, 0xa
jle 0x404390
mov bl, 1
jmp 0x404392
xor bl, bl
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
movzx eax, bl
cmovae ecx, dword [ebp + 8]
push eax
push edi
push esi
push ecx
push str.SubDir____s__of_Addin_package_info:_FolderCount___d__FileCount___d__IsFullPackage___d
push 0x40d028
call fcn.004016f0
add esp, 0x18
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4043c8
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00404e80
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406283
mov esp, ebp
pop ebp
ret

Function at 0x4043e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0x408380
mov ecx, edi
mov dword [ebp - 0x10], edx
call fcn.00404bf0
test ebx, ebx
je 0x404486
xor ecx, ecx
mov dword [ebp - 0xc], 0x100
mov eax, 0x101
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406302
mov ecx, dword [ebp - 0xc]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40447c
cmp word [esi], ax
je 0x404473
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404464
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.00404bf0
push esi
call fcn.004062fd
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4076b7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4048cf
push 5
xor eax, eax
mov dword [ebp - 0x14], 7
push str.x64_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404bf0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x18]
test eax, eax
jle 0x4048ad
inc eax
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.00404900
mov edi, eax
cmp esi, edi
je 0x40489b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x404874
inc eax
push eax
push dword [esi]
call fcn.00404e80
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40488c
mov eax, dword [esi]
jmp 0x40488e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00404e10
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4048ad
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404e80
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4048bf
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4048e1
inc eax
push eax
push dword [ebp + 8]
call fcn.00404e80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4046f4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], str.Backupper_Service
mov dword [esi + 0x24], ebp
mov dword [esi + 8], 0x10
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esp + 0x20], ebp
mov dword [esi], vtable.CSampleService.0
call fcn.00402880
mov dword [esi + 0x440], eax
mov dword [esi + 0x444], ebp
mov byte [esp + 0x20], 1
call fcn.004028f0
mov dword [esi + 0x44c], eax
mov dword [esi + 0x450], ebp
lea edi, [esi + 0x230]
push edi
push ebp
push ebp
push 0x23
mov byte [esp + 0x30], 2
push ebp
mov dword [esi + 0x454], ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.AomeiBR_
push 0x104
push edi
call ebx
push str.Login.Mutex
push 0x104
push edi
call ebx
push 0x208
lea edi, [esi + 0x28]
push ebp
push edi
call sub.MSVCR80.dll_memset
add esp, 0x24
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x401510
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401510
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0x26], 0x5c
lea eax, [esi + eax*2 + 0x26]
je 0x401539
jmp 0x401530
sub eax, 2
cmp word [eax], 0x5c
jne 0x401530
push str.Backupper.exe
push 0x104
push edi
mov word [eax], bp
call ebx
add esp, 0xc
push 1
call sub.UiLogic.dll_GetRecordObj
push ebp
push ebp
push 1
push ebp
mov dword [esi + 0x438], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebp
mov dword [esi + 0x45c], eax
jne 0x401587
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push 0x405ee0
lea eax, [esp + 0x18]
push eax
call sub.MSVCR80.dll__CxxThrowException
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp dword [esi + 0x45c], ebp
mov dword [esi + 0x458], eax
jne 0x4015b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x405ee0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], eax
call sub.MSVCR80.dll__CxxThrowException
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4017f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40184f
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str.Backupper_Service_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.004016a0
lea esi, [esp + 8]
call fcn.00401380
mov ecx, dword [esp + 0xc]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x2710
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3b
jne 0x40189c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x402280
call fcn.00402b10
push edi
push 0x4018c0
call fcn.00402b10
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4026b3
Capabilities:
Access the windows event log
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x402709
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str.Backupper_Service_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x45c]
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x454], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop edi
pop esi
je 0x40274e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x405ee0
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
call sub.MSVCR80.dll__CxxThrowException
add esp, 8
ret

Function at 0x402773
Capabilities:
Access the windows event log
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x4027c9
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str.Backupper_Service_in_OnShutdown
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x45c]
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x454], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop edi
pop esi
je 0x40280e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x405ee0
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
call sub.MSVCR80.dll__CxxThrowException
add esp, 8
ret
Function at 0x402db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x407454]
test eax, eax
jne 0x402e97
lea eax, [esp]
push eax
mov dword [0x407454], 0x10
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x402e8d
sub eax, 1
je 0x402e6e
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x402e12
mov eax, 0x10
jmp 0x402e92
jne 0x402e3b
mov eax, dword [esp + 8]
test eax, eax
jne 0x402e23
mov eax, 0x20
jmp 0x402e92
cmp eax, 1
jne 0x402e2f
mov eax, 0x30
jmp 0x402e92
cmp eax, 2
jne 0x402e67
mov eax, 0x40
jmp 0x402e92
cmp eax, 6
jne 0x402e67
mov eax, dword [esp + 8]
test eax, eax
jne 0x402e4f
mov eax, 0x80
jmp 0x402e92
cmp eax, 1
jne 0x402e5b
mov eax, 0x90
jmp 0x402e92
cmp eax, 2
jne 0x402e67
mov eax, 0xa0
jmp 0x402e92
mov eax, 0xf0
jmp 0x402e92
mov eax, dword [esp + 8]
cmp eax, 0x5a
jne 0x402e7e
mov eax, 4
jmp 0x402e92
xor ecx, ecx
cmp eax, 0xa
sete cl
add ecx, 2
mov eax, ecx
jmp 0x402e92
mov eax, 1
mov dword [0x407454], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00403cf4
add esp, 0x118
ret

Function at 0x402f50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push 0x228
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402faf
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x402fc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00403cf4
add esp, 0x230
ret
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
push edi
or edi, 0xffffffff
lea edx, [esp + 0x30]
push 0x405308
push edx
call ebx
add esp, 8
test eax, eax
je 0x402ff6
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402fd2
jmp 0x402ffa
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x403020
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00403cf4
add esp, 0x230
ret
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x238]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.00403cf4
add esp, 0x230
ret

Function at 0x403800
Capabilities:
Access the windows event log

Disassembly:
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x403859
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push esi
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 8
ret 8
Function at 0x403900
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x210
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
call fcn.00403a20
push 0x104
lea eax, [esp + 0xc]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40395c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed_w_err_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00403cf4
add esp, 0x210
ret
push ebx
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40397e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
jmp 0x4039e0
push 0
push 0
push 0x40553c
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.AOMEI_Backupper_Scheduler_Service
push str.Backupper_Service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4039c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x4039e0
lea edx, [esp + 0xc]
push edx
push 1
push esi
mov dword [esp + 0x18], str.AOMEI_Backupper_schedule_task_service...
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push str.Backupper_Service
push str._s_is_installed._n
call dword [sym.imp.MSVCR80.dll_wprintf]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
test edi, edi
je 0x4039f6
push edi
call ebx
test esi, esi
je 0x4039fd
push esi
call ebx
mov ecx, dword [esp + 0x218]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.00403cf4
add esp, 0x210
ret