joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a02c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x46a092
test byte [ebp - 0xf2], 0x80
jne 0x46a092
push ebx
inc edi
push edi
push ebx
push 0x12
call esi
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x108], eax
cmp edi, ebx
je 0x46a0b0
push ebx
push 3
push ebx
push 0x12
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x46a0c5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00469f60
pop ecx
test eax, eax
jne 0x46a0db
pop ebp
jmp fcn.0046a02c
pop ebp
ret

Function at 0x46a127
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x46a17e
cmp dword [ebp - 0x110], 2
jne 0x46a17e
xor eax, eax
inc eax
jmp 0x46a180
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b46ff
leave
ret

Function at 0x46a1ab
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004b4d90
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp edi, ebx
jne 0x46a1e6
xor al, al
jmp 0x46a285
push esi
mov esi, 0x1fff
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x2018]
push eax
push edi
mov dword [ebp - 0x2018], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x46a282
cmp eax, esi
ja 0x46a282
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46a27e
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4f8b70
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46a27e
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x2014]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x2010]
mov dword [ecx], eax
mov bl, 1
mov al, bl
jmp 0x46a284
xor al, al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x46a2b6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004b4d90
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x200c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46a33a
cmp eax, 0x1fff
ja 0x46a33a
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46a33a
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4f8b70
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46a33a
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 0xc]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
xor eax, eax
inc eax
jmp 0x46a33c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret

Function at 0x46a34a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x46a379
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46a379
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46a37b
mov eax, esi
pop esi
pop ebp
ret

Function at 0x46a59d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x18]
push 0x22
mov dword [ebp - 0x218], eax
pop eax
cmp ax, word [esi]
jne 0x46a637
push esi
call fcn.004b5d07
pop ecx
cmp eax, 0x104
jae 0x46a637
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b4620
push esi
call fcn.004b5d07
dec eax
dec eax
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ba951
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b8a5
add esp, 0x20
test eax, eax
jne 0x46a640
test edi, edi
je 0x46a633
push esi
call edi
xor eax, eax
jmp 0x46a65d
push esi
call fcn.0043b8a5
pop ecx
jmp 0x46a628
push dword [ebp + 0x1c]
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push esi
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x46a6c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x46a6d9
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call fcn.0043b8a5
pop ecx
test eax, eax
je 0x46a6d5
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x46b05d
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push 0x14
mov eax, 0x4e10f2
call fcn.004b51ee
mov eax, dword [0x53fbf8]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x46b07b
cmp word [eax], 0
jne 0x46b082
mov dword [ebp - 0x20], str.http:__www.360totalsecurity.com_d_ts__s__s_
lea ecx, [ebp - 0x18]
call fcn.0040c7d0
and dword [ebp - 4], 0
push 0x400
lea ecx, [ebp - 0x18]
call fcn.00444b2e
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044dfc9
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [esp], str.config.ini
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040d610
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c8c0
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
mov byte [ebp - 4], 2
mov esi, 0x80
push esi
lea ecx, [ebp - 0x14]
call fcn.00444b2e
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push eax
push 0x50ea0c
push str.language
mov ebx, 0x4f9df8
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
call fcn.0040c7d0
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x10]
call fcn.00444b2e
push dword [ebp - 0x18]
push esi
push eax
push 0x50ea0c
push str.channel
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
call fcn.00445121
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x46b19d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46b19d
lea ecx, [ebp - 0x1c]
call fcn.0040c7d0
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call fcn.0040e3f0
add esp, 0x10
push 5
push esi
push esi
push dword [ebp - 0x1c]
push str.Open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0040d610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d610
call fcn.004b52c6
ret
Function at 0x46c3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x46c441
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x46c438
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46c438
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x46c431
push ebx
call fcn.004b53ff
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46c431
push ebx
push dword [ebp + 8]
push eax
call fcn.004b4a20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x46c47e
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x4f8b70
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46c475
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.004b5322
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x46c4a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x530]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x534], ebx
call fcn.004b4620
push edi
push 0
push esi
mov dword [ebp - 0x530], edi
call fcn.004b4620
add esp, 0x18
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 5
jne 0x46c511
mov ecx, ebx
call fcn.0046c2c4
test eax, eax
je 0x46c511
and dword [ebx + 4], 0
jmp 0x46c5e1
lea eax, [ebp - 0x530]
push eax
mov ecx, ebx
call fcn.0046c38c
mov ebx, dword [esi + 4]
mov eax, dword [ebp - 0x52c]
imul ebx, ebx, 0xa
add ebx, dword [esi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x528]
cmp eax, ebx
mov dword [ebp - 0x538], eax
jle 0x46c558
push edi
lea eax, [ebp - 0x530]
push eax
push esi
call fcn.004b4a20
mov ebx, dword [ebp - 0x538]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004b4620
mov edi, dword [ebp - 0x534]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0046c304
test eax, eax
jl 0x46c5dd
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0046c3c0
test eax, eax
je 0x46c5dd
mov ecx, dword [ebp - 0x55c]
movzx edx, word [ebp - 0x55c]
shr ecx, 0x10
mov eax, ecx
imul eax, eax, 0xa
add eax, edx
cmp ebx, eax
jge 0x46c5dd
mov eax, dword [ebp - 0x558]
shr eax, 0x10
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [edi + 4], 1
jmp 0x46c5e1
and dword [edi + 4], 0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004b46ff
leave
ret 4

Function at 0x46c60f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp word [esi], 0
push edi
jne 0x46c64a
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esi + 0x208]
cmp word [eax], 0
mov edi, 0x104
jne 0x46c66b
push esi
push 0x4f9eb0
push edi
push eax
call fcn.00411380
add esp, 0x10
lea eax, [esi + 0x410]
cmp word [eax], 0
jne 0x46c67f
push esi
push edi
push eax
call fcn.0040b640
pop edi
pop esi
leave
ret
Function at 0x46de42
Capabilities:
Accept command line arguments

Disassembly:
push 0x220
mov eax, 0x4e19b2
call fcn.004b5257
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push str._elevated
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x46de87
push 0x40
push dword [0x53fca8]
push dword [0x53fcb0]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
call fcn.004b52da
ret
call esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0044bc85
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.__elevated
lea ecx, [ebp - 0x21c]
call fcn.00444b0f
call fcn.0043b72a
test al, al
je 0x46df09
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x46df09
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
push 0x3e8
lea eax, [ebp - 0x22c]
push eax
push ebx
mov dword [ebp - 0x22c], ecx
call fcn.0046d828
add esp, 0xc
test eax, eax
je 0x46df09
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d610
mov al, bl
jmp 0x46de81
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46def3
call fcn.0046dcff
test al, al
je 0x46df67
push 1
push ebx
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push str.runas
push ebx
call fcn.0046b9ff
add esp, 0x18
jmp 0x46def1
call fcn.0046ddbf
test al, al
jne 0x46df47
cmp byte [ebp + 0x10], 1
jne 0x46def3
push 0x40
push dword [0x53fca8]
push dword [0x53fcb0]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x46def3

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x46e3be
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e3df
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
neg eax
sbb al, al
inc al
pop ebp
ret
shr al, 4
and al, 1
pop ebp
ret
Function at 0x46e480
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46e49a
mov al, 1
jmp 0x46e52e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [esi]
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x46e4cc
shr eax, 4
test al, 1
je 0x46e4cc
push dword [esi]
mov byte [ebp + 0xb], 1
call ebx
jmp 0x46e4d4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46e516
call edi
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46e4fe
cmp byte [ebp + 0xb], 0
push dword [esi]
jne 0x46e51a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46e516
cmp byte [ebp + 0xc], 0
je 0x46e52a
cmp byte [ebp + 0x10], 1
jne 0x46e51e
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e51e
mov al, 1
jmp 0x46e52c
call ebx
jmp 0x46e4fa
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor al, al
pop edi
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret
Function at 0x46e7b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x26c
mov eax, 0x4e1ac0
call fcn.004b5257
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x46e7d5
xor al, al
call fcn.004b52da
ret
cmp eax, 0x104
jge 0x46e7cd
push str..
lea eax, [ebp - 0x268]
push edi
push eax
call fcn.00445250
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x46e825
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040d610
mov al, bl
jmp 0x46e7cf
mov esi, 0x4f8b70
push 0x2e
pop eax
cmp ax, word [ebp - 0x234]
je 0x46e8ea
mov eax, dword [ebp - 0x260]
shr eax, 4
push esi
push edi
test al, 1
je 0x46e897
lea eax, [ebp - 0x26c]
push eax
call fcn.00445250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00445250
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push eax
call fcn.0046e7b0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x26c]
jmp 0x46e8e5
lea eax, [ebp - 0x270]
push eax
call fcn.00445250
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00445250
mov byte [ebp - 4], 4
push 1
push dword [ebp + 0xc]
push eax
call fcn.0046e480
add esp, 0x24
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x270]
call fcn.0040d610
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46e82a
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push dword [ebp + 0xc]
push edi
call fcn.0046e480
add esp, 0xc
mov bl, 1
jmp 0x46e812

Function at 0x46ec66
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 7
pop ecx
xor eax, eax
push 1
push eax
lea edi, [ebp - 0x24]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
je 0x46ed07
push 0x10024
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x46ecfe
cmp byte [ebp + 0xc], 1
jne 0x46ecec
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46ecec
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x46ece4
cmp dword [ebp - 0x20], 3
jne 0x46ecea
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46ecd4
pop esi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
leave
ret
Function at 0x46ed5e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46ed8d
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x46ed8f
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46ee51
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
add ecx, 0xbcc
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
ret

Function at 0x46ef3e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xd4]
mov edx, ecx
or edx, eax
je 0x46ef6e
cmp eax, dword [ebp + 0xc]
jl 0x46ef6a
jg 0x46ef65
cmp ecx, dword [ebp + 8]
jbe 0x46ef6a
xor eax, eax
inc eax
jmp 0x46efb7
xor eax, eax
jmp 0x46efb7
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x46efb5
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], eax
cmp eax, dword [ebp + 0xc]
ja 0x46efb1
jb 0x46efb5
cmp ecx, dword [ebp + 8]
jbe 0x46efb5
mov al, 1
jmp 0x46efb7
xor al, al
pop esi
leave
ret 8

Function at 0x46f1e2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
xor ebx, ebx
push eax
inc ebx
call fcn.004b4620
mov eax, dword [esi + 4]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push edi
push eax
push dword [esi]
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f2ae
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x214], edi
jbe 0x46f2ae
xor ebx, ebx
cmp dword [ebp - 0x210], edi
je 0x46f2c2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [esi]
cmp ebx, 1
jne 0x46f2d4
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x46f2da
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x46f300
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
pop ebx
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x258], eax
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], 1
call fcn.0043e503
push dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.0043e503
lea eax, [ebp - 0x25c]
push eax
push 0x20007
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f42f
push str.LaunchProtected
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x260]
push eax
mov edi, str.Start
push edi
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46f42f
push ebx
lea eax, [ebp - 0x26c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x254]
push eax
push esi
call edi
push ebx
lea eax, [ebp - 0x268]
push eax
push ebx
push str.DeleteFlag
lea eax, [ebp - 0x254]
push eax
push esi
call edi
mov al, 1
jmp 0x46f431
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret