joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463ae8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x463b59
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 8], 1
mov eax, dword [ebx + 0xc]
call sub.AIMP.Runtime.dll__Acl_Classes_TACLStringList_GetCount_qqrv
mov edi, eax
dec edi
test edi, edi
jl 0x463b3b
inc edi
xor esi, esi
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [ebx + 0xc]
call sub.AIMP.Runtime.dll__Acl_Classes_TACLStringList_GetString_qqri
mov eax, dword [ebp - 4]
push eax
mov edx, esi
mov eax, dword [ebx + 0xc]
call sub.AIMP.Runtime.dll__Acl_Classes_TACLStringList_GetObject_qqri
pop edx
call fcn.004635c0
inc esi
dec edi
jne 0x463b16
mov eax, dword [ebx + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463b60
lea eax, [ebp - 4]
call sub.AIMP.Runtime.dll__System__UStrClr_qqrpv
ret
Function at 0x469758
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4697d0
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00465528
test al, al
jne 0x4697b3
mov eax, dword [sym.imp.AIMP.Shared.dll__Aimp_Core_TAIMPCoreInstance_]
call sub.AIMP.Shared.dll__Aimp_Core_TAIMPCoreInstance_CheckForRunningCopy_qqrv
test al, al
je 0x4697af
lea eax, [ebp - 4]
call sub.AIMP.Runtime.dll__System__UStrClr_qqrpv
push eax
call sub.kernel32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 8]
call sub.AIMP.Runtime.dll__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 8]
mov edx, 0x4697ec
pop ecx
call sub.AIMP.Runtime.dll__Acl_Fileutils_WideFindSwitch_qqrx20System_UnicodeStringt1r20System_UnicodeString
test al, al
je 0x4697b3
xor ebx, ebx
jmp 0x4697b5
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4697d7
lea eax, [ebp - 8]
mov edx, 2
call sub.AIMP.Runtime.dll__System__UStrArrayClr_qqrpvi
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401581
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
push 5
call fcn.00402fb2
xor esi, esi
add esp, 0xc
inc esi
cmp eax, esi
jge 0x4015b6
push 3
pop eax
jmp 0x40179e
push ebx
push edi
push 0x431fd0
push 0x431dc8
push str.__s___s
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00403cbc
lea eax, [ebp - 0x20c]
mov edi, 0x4327f0
push eax
push str.Executing:__s
push ebx
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x24
test eax, eax
je 0x40160c
push edi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, esi
jne 0x401622
push esi
call fcn.0040809b
pop ecx
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x25c]
push 0x3c
push 0
push eax
mov dword [ebp - 0x264], 0x44
call fcn.0040eb20
movsx eax, byte [0x4323e0]
push eax
call fcn.0041146d
add esp, 0x10
cmp eax, 0x48
jne 0x401667
xor eax, eax
mov dword [ebp - 0x238], esi
mov word [ebp - 0x234], ax
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
mov ebx, edx
cmp byte [0x4321d8], cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
mov eax, 0x4321d8
cmove eax, ecx
push eax
push edx
push 0x20
push edx
push edx
push edx
lea eax, [ebp - 0x20c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x40176b
mov edi, 0x103
mov dword [ebp - 0x210], edi
cmp byte [0x433a74], bl
jne 0x401705
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, esi
jne 0x4016fb
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401718
call fcn.00405ab0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x433a74], bl
je 0x4016c5
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401718
push edi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40173e
push eax
push str._08x
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x20c]
jmp 0x401743
mov eax, 0x4266e8
push eax
push str.LASTERROR
call fcn.00408df2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x21c]
call esi
xor esi, esi
inc esi
jmp 0x401783
push str.SILENT
push 0x4325e8
call fcn.00411539
neg eax
pop ecx
sbb ebx, ebx
pop ecx
and ebx, 0x1b
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, esi
jne 0x40179a
push 0
call fcn.0040809b
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret
Function at 0x4018a4
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 3
call fcn.00402fb2
add esp, 0xc
cmp eax, 2
jge 0x4018d6
push 3
pop eax
jmp 0x401a88
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x4018ed
push eax
call fcn.0040809b
pop ecx
push ebx
push esi
push edi
mov ebx, 0x431fd0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x208
cmp eax, 0xffffffff
je 0x401921
test al, 0x10
je 0x401921
push ebx
call fcn.0040723d
mov dword [esp], 0x431dc8
push esi
push ebx
call fcn.0041149d
add esp, 0xc
push ebx
push str.Copying_file:__s
push esi
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x40194e
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409020
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
pop ecx
push 0x431fd0
push 0x431dc8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a6b
test esi, esi
jle 0x40198b
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401961
cmp edi, 0x1f
jne 0x401a40
push str.REBOOTIFLOCKED
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
jne 0x401a37
mov esi, 0x431fd0
lea eax, [ebp - 0x108]
push esi
push str._s.bak
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
xor ecx, ecx
test eax, eax
push 4
push 0
lea eax, [ebp - 0x108]
cmove ecx, edi
push eax
mov edi, ecx
call esi
mov byte [0x433a72], 1
test edi, edi
jne 0x401a32
push str.TRYTIME
call fcn.00409020
pop ecx
mov esi, eax
push 0x431fd0
push 0x431dc8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a32
test esi, esi
jle 0x401a32
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401a0c
cmp edi, 0x1f
jne 0x401a3c
push 8
pop edi
jmp 0x401a40
test edi, edi
je 0x401a6b
push str.SILENT
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
jne 0x401a6b
push 0x431fd0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 8
pop edi
cmovne edi, ecx
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401a83
push 0
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret
Function at 0x401bf1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401c11
push 3
pop eax
leave
ret
push ebx
push esi
push edi
mov ebx, 0x4323e0
mov edi, 0x4327f0
push ebx
push 0x4321d8
push str.Creating_Registry_value:__s_s
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x401c50
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401c67
push eax
call fcn.0040809b
pop ecx
push 0xa
push esi
push ebx
call fcn.00415381
push 0x431dc8
mov dword [ebp - 8], eax
mov edi, esi
call fcn.00403004
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401cef
cmp byte [0x433a70], 0
mov esi, 0xf003f
je 0x401cb1
push 0x4264f0
push 0x4325e8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push esi
xor esi, esi
push esi
push esi
push esi
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cf2
push 0xc
pop edi
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401d09
push esi
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401d2f
push 3
pop eax
leave
ret
push esi
push edi
push 0x4323e0
push 0x4321d8
push str.Creating_Registry_value:__s_s
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x14
xor edi, edi
test eax, eax
je 0x401d6c
push esi
push edi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401d83
push eax
call fcn.0040809b
pop ecx
push ebx
push 0x431dc8
mov esi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e07
cmp byte [0x433a70], 0
mov edi, 0xf003f
je 0x401dc0
push 0x4264f0
push 0x4325e8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove edi, ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
xor edi, edi
push edi
push edi
push edi
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, 0x4323e0
push ebx
call fcn.00411620
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e0a
push 0xb
pop esi
push str.REALUSER
call fcn.00409020
pop ecx
pop ebx
cmp eax, 1
jne 0x401e22
push edi
call fcn.0040809b
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x402122
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.Removing_DeskSoft_license_file_association
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x402168
push esi
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.DeskSoftLicense
call fcn.004079ee
pop ecx
test eax, eax
jne 0x4022b8
push 0x530
lea eax, [ebp - 0x73c]
push ebx
push eax
call fcn.0040eb20
add esp, 0xc
lea eax, [ebp - 0x744]
mov esi, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022b8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x402230
lea eax, [ebp - 0x73c]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00407ea6
pop ecx
pop ecx
test al, al
je 0x40221d
push str.SetDLC.exe
lea eax, [ebp - 0x728]
push eax
push str._s_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402298
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x744]
mov dword [ebp - 0x740], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4021cc
cmp byte [ebp - 0x728], bl
je 0x402294
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x728]
push eax
push str._s_s.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
push 0x426670
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.004089eb
add esp, 0x24
xor eax, eax
jmp 0x4022bb
push 0x4266e8
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.004089eb
add esp, 0x10
jmp 0x402294
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x4022c9
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 2
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
jge 0x4022fb
push 3
pop eax
jmp 0x40246a
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x402312
push eax
call fcn.0040809b
pop ecx
push esi
push edi
mov esi, 0x431dc8
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
call fcn.00411293
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040edb0
add esp, 0x14
test eax, eax
je 0x402344
mov byte [eax + 1], 0
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402447
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x402431
lea eax, [ebp - 0x108]
push eax
push str.Deleting_file:__s
push 0x208
push 0x4327f0
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x4023d3
push 0x4327f0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409020
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
pop ecx
cmovl esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402431
test esi, esi
jle 0x402420
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402431
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x64
test esi, esi
jg 0x4023ea
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40235d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.REALUSER
call fcn.00409020
pop ecx
pop edi
pop esi
cmp eax, 1
jne 0x402468
push 0
call fcn.0040809b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret
Function at 0x402552
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 4
call fcn.00402fb2
add esp, 0xc
cmp eax, 3
jge 0x402570
push 3
pop eax
leave
ret
push ebx
push esi
push edi
push 0x4321d8
push str.Deleting_Registry_value:__s
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x4025a8
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x4025bf
push eax
call fcn.0040809b
pop ecx
push 0x431dc8
xor edi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40262c
cmp byte [0x433a70], 0
mov esi, 0xf003f
je 0x4025fb
push 0x4264f0
push 0x4323e0
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], edi
je 0x40262f
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40262f
push 0x16
pop edi
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x402647
push 0
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a97
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
inc edi
push edi
call fcn.00402fb2
add esp, 0xc
cmp eax, edi
je 0x402ab9
push 3
pop eax
jmp 0x402b51
push esi
push 0x431dc8
push str.Removing_directory:__s
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x402aef
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b05
push edi
call fcn.0040809b
pop ecx
push 0x431dc8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b37
push 0x431dc8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402b37
push 4
push eax
push 0x431dc8
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x14
pop esi
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b4e
push 0
call fcn.0040809b
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402b54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.00402fb2
xor edi, edi
add esp, 0xc
inc edi
cmp eax, edi
jge 0x402b77
push 3
pop eax
jmp 0x402c04
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b8d
push edi
call fcn.0040809b
pop ecx
push ebx
push esi
push str..exe
mov esi, 0x431dc8
xor ebx, ebx
push esi
call fcn.0040eef0
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push str.Elevated
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push ebx
push 0x431fd0
push esi
call fcn.0040879f
add esp, 0xc
mov esi, eax
jmp 0x402bea
push edi
push ebx
push 0x431fd0
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1b
cmp eax, 0x20
mov esi, ebx
pop ecx
cmovbe esi, ecx
push str.REALUSER
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402c00
push ebx
call fcn.0040809b
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402dae
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 1
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
je 0x402ddd
push 3
pop eax
jmp 0x402e6a
push ebx
push esi
push edi
mov ebx, 0x431dc8
mov edi, 0x4327f0
push ebx
push str.Stopping_service:__s
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
xor esi, esi
test eax, eax
je 0x402e17
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x402e2d
inc eax
jmp 0x402e67
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x402e5e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret
Function at 0x402e76
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.0040d7d0
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x402f9b
push str.RegDeleteKeyEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1464], eax
test eax, eax
je 0x402f9b
lea eax, [ebp - 0x1458]
push eax
push 0xf013f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x1458], 0
je 0x402fa3
xor ecx, ecx
mov dword [ebp - 0x145c], 0xa28
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x145c]
mov dword [ebp - 0x1460], ecx
push eax
lea eax, [ebp - 0xa2c]
push eax
push ecx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f7e
mov byte [ebp + 0x10], bl
mov ebx, dword [ebp - 0x1460]
lea eax, [ebp - 0xa2c]
inc ebx
push eax
push edi
push str._s_s
lea eax, [ebp - 0x1454]
push 0xa28
push eax
call fcn.00403cbc
push dword [ebp + 0x10]
lea eax, [ebp - 0x1454]
push eax
push esi
call fcn.00402e76
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f27
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push edi
push esi
call dword [ebp - 0x1464]
jmp 0x402fa3
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret