joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537b00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00511fb0
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x537b64
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x537b64
lea eax, [ebp - 0x108]
push eax
call dword [0x67302c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00474193
mov esp, ebp
pop ebp
ret

Function at 0x537b80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00537b00
Function at 0x53ad00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x53b9b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x673020]
mov edi, eax
add esp, 4
test edi, edi
jne 0x53b9dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x53ba24
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x53ba2a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x53ba8b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x53ba50
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x53bab7
mov eax, dword [esi + 4]
push 1
push 0x65660c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x65660d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x53ba90
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53bae0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x53bb13
push 0x2e
push edi
call fcn.004f1520
add esp, 8
test eax, eax
je 0x53bb11
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x43e154
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffeb8
push ebx
push esi
push edi
push eax
pop esi
mov byte [ebp - 1], 0
sub ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, 0
jne 0x43e1a1
cmp eax, 0xffffffff
jne 0x43e1a1
mov byte [ebp - 1], 1
jmp 0x43e31e
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e1d0
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4e]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43e1d0
mov bl, 1
test bl, bl
jne 0x43e1dd
mov byte [ebp - 1], 1
jmp 0x43e31e
xor ebx, ebx
cmp word [ebp - 0x4e], 0x5a4d
je 0x43e1ed
cmp dword [ebp - 8], 0x40
jne 0x43e23f
push 0
push 0
mov eax, dword [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e23f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x146]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43e23f
mov eax, dword [ebp - 0x146]
cmp eax, 0x4550
je 0x43e23d
cmp eax, 0x454e
je 0x43e23d
cmp eax, 0x454c
jne 0x43e23f
mov bl, 1
test bl, bl
je 0x43e315
xor eax, eax
push ebp
push 0x43e30b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043e0ac
mov dword [ebp - 0x13e], eax
call fcn.00402ab0
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - reloc.ole32.dll_CoInitializeEx], ax
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0x100], ax
push 0
push 0
mov eax, dword [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e2c1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x146]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp word [ebp - 0x4e], reloc.ole32.dll_CoInitializeEx
je 0x43e301
mov word [ebp - 0xe], reloc.ole32.dll_CoInitializeEx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43e301
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e315
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f894
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], ebx
push ecx
pop esi
mov dword [ebp - 4], edx
push eax
pop ebx
mov edi, dword [ebp + 8]
sub eax, eax
push ebp
push 0x43fa20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dword [esi], 2
mov eax, edi
call fcn.00404024
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
pop eax
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43fa02
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43f9fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x43f9fc
cmp word [ebp - 0x50], reloc.ole32.dll_CoInitializeEx
jne 0x43f9fc
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43f9fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43f9fc
cmp dword [ebp - 0x148], 0x4550
jne 0x43f9fc
mov eax, dword [ebp - 0x140]
xor eax, 0x50485e00
xor eax, dword [ebp - 0x120]
movzx edx, word [ebp - reloc.ole32.dll_CoInitializeEx]
xor eax, edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x43f9af
call fcn.0043c774
add eax, 0x7c6
xor dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jle 0x43f9c9
cmp dword [ebp - 0x10], 0x7a120
jge 0x43f9c9
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov byte [ebp - 5], 1
jmp 0x43f9fc
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
call fcn.00407a8c
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x150]
mov eax, 0x43fa3c
call fcn.0043e5bc
mov edx, dword [ebp - 0x150]
mov eax, edi
pop ecx
call fcn.00404330
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa27
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00404048
ret
Function at 0x43fa6c
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x43fc2a
push dword fs:[eax]
mov dword fs:[eax], esp
sub ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43fc0e
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x43fc08
cmp word [ebp - 0x4c], reloc.ole32.dll_CoInitializeEx
jne 0x43fc08
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43fc08
cmp dword [ebp - 0x144], 0x4550
jne 0x43fc08
call sub.kernel32.dll_GetCurrentProcessId
add eax, 0x7c6
xor eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
call fcn.00402ab0
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0x100], ax
nop
push 9
nop
pop eax
call fcn.00402ca8
mov word [ebp - 0xfe], ax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fbac
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
je 0x43fc08
mov eax, 0x200
call fcn.00402ca8
mov edi, eax
shl edi, 4
or edi, edi
jle 0x43fc08
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43fc08
push edi
lea eax, [ebp - 0xc]
nop
nop
push 1
pop ecx
mov edx, dword [0x43fa48]
call fcn.004053ac
add esp, 4
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00406574
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fc31
lea eax, [ebp - 0xc]
mov edx, dword [0x43fa48]
call fcn.004053b8
ret
Function at 0x402214
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x436064
call fcn.00425651
mov dword [ebp - 4], 1
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0x14], bl
push ebx
sete al
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov dword [ebp - 0x10], ebx
dec eax
and eax, 0x100
inc eax
inc eax
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x402276
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0041d9e5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041d9e5
call fcn.00425729
ret
Function at 0x402bea
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x402c09
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x402c21
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x402c6f
push edi
xor edi, edi
test ebx, ebx
jle 0x402c63
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x402c32
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x402c2c
pop edi
pop ebx
leave
ret 0x18
Function at 0x4056b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x43609f
call fcn.00425651
mov dword [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x4413f4
xor ebx, ebx
push 1
push ebx
push 0x441404
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405752
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x405710
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x405722
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x441414
push eax
call dword [ecx]
test eax, eax
jl 0x405752
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x405752
mov ecx, dword [eax]
push 1
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0041d9e5
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0041d9e5
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0041d9e5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0041d9e5
call fcn.00425729
ret
Function at 0x406576
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0x30
mov eax, 0x436039
call fcn.00425651
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x40667e
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x40667e
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push ebx
call esi
test eax, eax
je 0x406669
cmp dword [ebp - 0x38], 1
je 0x40667e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40661a
push dword [ebp - 0x24]
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x406669
cmp dword [ebp - 0x38], 1
je 0x406669
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x406669
cmp dword [ebp - 0x38], 3
je 0x4065ec
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406669
jmp 0x406663
push 0x3e8
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x406669
cmp dword [ebp - 0x38], 1
je 0x406669
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x406669
cmp dword [ebp - 0x38], 1
jne 0x406633
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x18]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041d9e5
call fcn.00425729
ret
Function at 0x406e18
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x406e4c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406ef7
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x406e69
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x406e45
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
call edi
test eax, eax
je 0x406e45
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x406edb
mov eax, dword [ebp - 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x406eae
mov ecx, 0x2710
cmp eax, ecx
jbe 0x406eb0
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call edi
test eax, eax
je 0x406ee1
cmp dword [ebp - 0x1c], ebx
ja 0x406e88
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
ja 0x406ee1
cmp dword [ebp - 0x2c], 2
je 0x406e92
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
mov eax, 0x3e8
pop ebx
pop edi
xor edx, edx
pop esi
leave
ret

Function at 0x407389
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x437eb3
call fcn.00425651
lea eax, [ebp - 0x10]
push eax
call fcn.0041bea7
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
lea eax, [ebp - 0x14]
push str._shm
push eax
lea esi, [ebp - 0x10]
call fcn.00408a58
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041d9e5
lea eax, [ebp - 0x14]
push str._wal
push eax
call fcn.00408a58
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041d9e5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0041d9e5
call fcn.00425729
ret
Function at 0x4085ac
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x14
mov eax, 0x43791a
call fcn.00425651
xor ebx, ebx
push 0x228
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.00423ac0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x408666
lea eax, [ebp]
push eax
push esi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x408662
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.00412e3d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
call fcn.00405fce
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jl 0x40864d
push str.advancedsystemrepairpro.exe
push eax
call fcn.00424783
pop ecx
pop ecx
cmp eax, ebx
je 0x40864d
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40869a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0041d9e5
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408612
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x408675
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0040ea6c
add ebp, 0x230
leave
ret
push dword [ebp + 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x4086f6
push 0x441bb4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x4086df
lea ecx, [ebp - 0x18]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4086f6
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x408707
push esi
call edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0041d9e5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x408720
push dword [ebp - 0x14]
call edi
mov al, 1
jmp 0x408677
Function at 0x40af70
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x40af84
cmp dword [esi + 0x30], 0x40
jbe 0x40b088
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x40b08d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40b08d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x40b088
ja 0x40afcf
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x40b088
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x40b08d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x40b08d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x40b005
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x40b021
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x40b038
mov ecx, 0x20b
cmp ax, cx
jne 0x40b03b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x40b08d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x40b08d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x40b088
ja 0x40b076
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x40b088
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret