joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408444
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408549
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x440b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x440b6c]
jne 0x408490
mov eax, esi
mov edx, 0x440b70
mov ecx, 0x55
call fcn.00406748
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408533
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406560
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408501
cmp byte [0x440b50], 0
je 0x4084c6
mov edx, esi
mov eax, ebx
call fcn.00408324
jmp 0x408501
mov edx, esi
mov eax, ebx
call fcn.00408124
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408501
cmp dword [esi], 0
je 0x4084ea
mov eax, esi
mov edx, 0x408564
call fcn.00406950
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408124
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406950
push 0x440b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x440b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.004065ec
push eax
push 0x440b70
call sub.kernel32.dll_lstrcpynW
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408550
lea eax, [ebp - 4]
call fcn.00406550
ret
Function at 0x408788
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406548
xor eax, eax
push ebp
push 0x40896d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4087c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4087e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004065ec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408957
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40897c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408871
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40897c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408871
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408871
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408957
xor eax, eax
push ebp
push 0x408950
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040858c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4088e0
mov eax, dword [ebp - 0x10]
call fcn.00404170
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040670c
jmp 0x40892b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408a24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40892b
mov eax, dword [ebp - 0x10]
call fcn.00404170
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408a24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040670c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408957
cmp dword [ebp - 8], 0
je 0x408946
mov eax, dword [ebp - 8]
call fcn.0040418c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408974
lea eax, [ebp - 4]
call fcn.00406550
ret
Function at 0x408c38
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406548
mov eax, dword [ebp - 0x21c]
call fcn.00406548
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408dd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406560
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004065ec
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408cd8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408cea
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408cd5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408da3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408d13
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408788
cmp dword [ebp - 0x220], 0
je 0x408d4b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408b2c
pop ecx
mov ebx, eax
jmp 0x408da3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408444
mov eax, dword [ebp - 0x224]
call fcn.00408b2c
pop ecx
mov ebx, eax
test bl, bl
jne 0x408d96
cmp byte [0x440b50], 0
jne 0x408d96
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408444
mov eax, dword [ebp - 0x228]
call fcn.00408b2c
pop ecx
mov ebx, eax
test bl, bl
jne 0x408da3
push ebp
call fcn.00408bdc
pop ecx
mov ebx, eax
test bl, bl
je 0x408db9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dde
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406558
ret

Function at 0x409520
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40a5d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x440c4c
push 0xa
push 0x40a668
mov eax, dword [0x440c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a5f8
call fcn.00414b78
push ebx
mov eax, dword [0x440c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a60f
call fcn.00414b78
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a621
call fcn.00414b78
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x440c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x440c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x440c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x440c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x440c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x440c64], edx
pop esi
pop ebx
ret

Function at 0x40dcac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40dd55
test eax, edx
je 0x40dd58
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40dcd5
push edx
mov edx, eax
mov eax, esp
call fcn.00406764
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40dceb
push eax
lea eax, [esp + 8]
call fcn.00406764
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40dcfa
movzx eax, word [eax]
sub eax, ecx
jmp 0x40dd21
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40dd3b
add ecx, 4
js 0x40dd12
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40dd38
push eax
mov eax, ecx
mov edx, 2
call fcn.00405db0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40dd1f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40dd21
xor eax, eax
ret
test eax, eax
je 0x40dd68
test edx, edx
jne 0x40dcbc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40ee14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004065ec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ee32
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40ee53
cmp ebx, 3
je 0x40ee53
cmp ebx, 0x7b
je 0x40ee53
mov eax, esi
call fcn.0040edd4
test al, al
jne 0x40ee57
xor eax, eax
jmp 0x40ee59
mov al, 1
pop esi
pop ebx
ret

Function at 0x412154
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41218d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040669c
jmp 0x412196
mov eax, ebx
mov edx, esi
call fcn.00406560
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4121a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4121c2
movzx eax, word [esp]
jmp 0x4121c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412954
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x412a79
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412764
mov esi, eax
mov eax, dword [0x43d2cc]
cmp byte [eax], 0
je 0x412a21
mov eax, dword [0x43d190]
call fcn.00404478
call fcn.004042b8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41292c]
call fcn.00407b50
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x412a94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412a5d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43d160]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x440c38]
call fcn.00407c14
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a80
lea eax, [ebp - 4]
mov edx, dword [0x41292c]
call fcn.00407b5c
ret

Function at 0x414a20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004060c0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4149ca
mov eax, edi
add eax, eax
call fcn.00404170
mov esi, eax
jmp 0x4149cc
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414a05
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4149ef
mov eax, esp
cmp esi, eax
je 0x414a12
mov eax, esi
call fcn.0040418c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x414a4c
cmp bl, 0
je 0x414a48
cmp bl, 0x41
jl 0x414a43
cmp bl, 0x5a
jg 0x414a43
or bl, 0x20
xor al, bl
inc esi
jmp 0x414a27
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41498c
Function at 0x4360e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp - 0xc]
inc eax
add eax, 4
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x43617a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
add edx, 4
test edx, edx
jl 0x43613b
inc edx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
mov byte [ecx], bl
inc eax
inc ecx
dec edx
jne 0x43612d
lea ecx, [ebp + 0x10]
mov edx, dword [ebp - 0xc]
test edx, edx
jl 0x436153
inc edx
mov eax, dword [ebp - 8]
movzx ebx, byte [eax]
mov byte [esi], bl
inc esi
inc eax
dec edx
jne 0x436149
xor eax, eax
movzx edx, byte [ecx + eax]
mov byte [esi], dl
inc esi
inc eax
cmp eax, 4
jne 0x436155
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
or ebx, 0xffffffff
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401140
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 8]
push edi
push eax
push 0x24
lea eax, [ebp - 0x2c]
mov edi, ecx
push eax
push 0
push edi
call ebx
test eax, eax
jne 0x40117d
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403545
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x28]
cmp eax, 2
je 0x40119b
cmp eax, 3
je 0x40119b
cmp eax, 5
je 0x40119b
cmp eax, 6
jne 0x4011b3
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
call ebx
test eax, eax
jne 0x401184
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00403545
mov esp, ebp
pop ebp
ret

Function at 0x4011d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416814
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x41f008]
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
mov ebx, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40121a
xor al, al
jmp 0x4012e5
push 0xc
call fcn.0040355b
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
mov dword [ebp - 0x14], esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0x41ccfc
mov dword [esi + 4], edi
mov dword [esi + 8], eax
push 0xf01ff
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x401266
xor bl, bl
jmp 0x4012cf
push 0xc
call fcn.0040355b
mov edi, eax
xorps xmm0, xmm0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
mov ecx, ebx
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0x41ccfc
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
call fcn.00401140
test eax, eax
je 0x4012bc
cmp eax, 4
jne 0x4012a5
mov bl, 1
jmp 0x4012be
cmp eax, 1
jne 0x4012bc
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne bl
jmp 0x4012be
xor bl, bl
mov byte [ebp - 4], 8
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov dword [ebp - 4], 9
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
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.00403545
mov esp, ebp
pop ebp
ret
Function at 0x401310
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416854
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x41f008]
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 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401357
xor al, al
jmp 0x401428
push 0xc
call fcn.0040355b
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
mov dword [ebp - 0x14], esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0x41ccfc
mov dword [esi + 4], edi
mov dword [esi + 8], eax
push 0xf01ff
push str.Spooler
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4013a7
xor bl, bl
jmp 0x401412
push 0xc
call fcn.0040355b
mov edi, eax
xorps xmm0, xmm0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
mov ecx, ebx
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0x41ccfc
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
call fcn.00401140
test eax, eax
je 0x4013ff
cmp eax, 1
jne 0x4013e6
mov bl, al
jmp 0x401401
cmp eax, 4
jne 0x4013ff
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne bl
jmp 0x401401
xor bl, bl
mov byte [ebp - 4], 8
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov dword [ebp - 4], 9
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
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.00403545
mov esp, ebp
pop ebp
ret
Function at 0x402650
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4169bc
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402220
test al, al
je 0x4026b0
push str.Wondershare_PDFelement_Monitor
push 0x41cd0c
call fcn.00401110
add esp, 8
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.00403545
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
push 0x208
movq qword [ebp - 0x18], xmm0
call fcn.00403809
mov edi, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0x208
movq qword [ebp - 0x20], xmm0
call fcn.00403809
mov esi, eax
mov dword [ebp - 0x1c], 0
add esp, 8
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
mov ecx, 0x420f64
cmp dword [0x420f78], 8
mov edx, edi
cmovae ecx, dword [0x420f64]
nop
movzx eax, word [ecx]
lea edx, [edx + 2]
add ecx, 2
mov word [edx - 2], ax
test ax, ax
jne 0x402710
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402749
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x41e3c0
push eax
call fcn.00405549
cmp word [edi], 0
mov edx, edi
je 0x40275a
add edx, 2
cmp word [edx], 0
jne 0x402751
push ecx
push str.WSMonEditor.dll
mov ecx, edi
call fcn.00402a00
add esp, 8
mov edx, esi
cmp word [esi], 0
je 0x40277b
add edx, 2
cmp word [edx], 0
jne 0x402772
push ecx
push str.WSMonEditor.dll
mov ecx, esi
call fcn.00402a00
add esp, 8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
test eax, eax
jne 0x4027aa
push edi
push str.__ERR___Cant_copy__s_to__s._n
call fcn.00401110
add esp, 0xc
jmp 0x402732
call fcn.00403556
push edi
call fcn.00403556
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x420f58]
mov dword [ebp - 0x2c], str.Wondershare_PDFelement_Monitor
mov dword [ebp - 0x24], str.WSMonEditor.dll
cmp eax, 9
jne 0x4027e0
mov dword [ebp - 0x28], str.Windows_x64
jmp 0x4027eb
test eax, eax
jne 0x402813
mov dword [ebp - 0x28], str.Windows_NT_x86
lea eax, [ebp - 0x2c]
push eax
push 2
push 0
call dword [sym.imp.WINSPOOL.DRV_AddMonitorW]
test eax, eax
jne 0x402695
push str.__ERR___Call_AddMonitor_fail._n
call fcn.00401110
add esp, 4
jmp 0x402732
push eax
push str.__ERR___Unknown_processor_model._architecture_value_is__d.
call fcn.00401110
add esp, 8
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push 0x41e3c0
jmp 0x402743
Function at 0x402840
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a06
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x41f008]
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
call fcn.00402220
test al, al
jne 0x40288b
push str.Wondershare_PDFelement_Monitor
push str.__MSG____s_does_not_exist._n
call fcn.00401110
add esp, 8
jmp 0x40298b
call fcn.004024a0
xor esi, esi
mov dword [ebp - 0x14], esi
push str.Wondershare_PDFelement_Monitor
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4028e4
call edi
cmp eax, 0xbc0
jne 0x402919
call fcn.00401310
test al, al
jne 0x4028d6
push 0x41e3c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xbc0
push eax
call fcn.00405549
sub esp, 8
lea ecx, [ebp - 0x14]
call fcn.004029b0
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
push 0x208
movq qword [ebp - 0x1c], xmm0
call fcn.00403809
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x1c], ebx
push 0x104
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40292c
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x41e3c0
push eax
call fcn.00405549
cmp word [ebx], 0
mov edx, ebx
je 0x40293d
add edx, 2
cmp word [edx], 0
jne 0x402934
push ecx
push str.WSMonEditor.dll
mov ecx, ebx
call fcn.00402a00
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40296b
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x41e3c0
push eax
call fcn.00405549
lea ecx, [ebp - 0x1c]
call fcn.00401a10
mov dword [ebp - 4], 2
test esi, esi
je 0x40298b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
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.00403545
mov esp, ebp
pop ebp
ret