joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0x114
push 0x110
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.10006510
add esp, 0xc
push 2
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10001e2e
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jbe 0x10001e24
push 4
push 0x1000
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 6
jb 0x10001e92
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001a00
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 4]
je 0x10001e92
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret 4
Function at 0x10001eb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001efb
jmp 0x10001f77
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001f1d
jmp 0x10001f77
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], 1
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x10
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001f6f
push str._sagestub__t_UpPrivilegeW_failed____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10001f77
xor edx, edx
jne 0x10001ee0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002090
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x138], 0x114
push 0x110
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.10006510
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000217d
xor edx, edx
mov word [ebp - 0x348], dx
push 0x206
push 0
lea eax, [ebp - 0x346]
push eax
call fcn.10006510
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x348]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
push 0x5c
lea eax, [ebp - 0x348]
push eax
call fcn.10006806
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10002173
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10001890
add esp, 4
test eax, eax
je 0x10002173
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x1000218d
mov eax, 1
jmp 0x100022a5
call fcn.10001b10
push 1
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sym.SZStub.dll_UpPrivilegeW
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 6
jne 0x100021f2
cmp dword [ebp - 0x130], 0
jne 0x100021f2
mov dword [ebp - 8], 1
jmp 0x10002272
cmp dword [ebp - 0x134], 5
jne 0x10002250
cmp dword [ebp - 0x130], 1
jne 0x10002250
push str.Service_Pack_2
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002230
push str.Service_Pack_3
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002250
mov ecx, dword [ebp - 0x10]
xor edx, edx
cmp ecx, dword [ebp - 0x13c]
setne dl
mov dword [ebp - 8], edx
cmp dword [ebp + 0x14], 0
je 0x1000224e
mov dword [ebp - 8], 1
jmp 0x10002272
cmp dword [ebp - 0x134], 5
jne 0x1000226b
cmp dword [ebp - 0x130], 2
jne 0x1000226b
mov dword [ebp - 8], 0
jmp 0x10002272
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1000228e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10002800
mov dword [ebp - 0x14], eax
jmp 0x100022a2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10002360
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, 0x100027f0
sub eax, 0x10002640
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002856
jmp 0x1000293d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100026a0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002878
jmp 0x1000293d
cmp dword [ebp + 0x10], 0
je 0x100028a9
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10002970
mov dword [ebp - 8], eax
jmp 0x10002935
mov dword [ebp - 0x21c], 0
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.10006510
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100018e0
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x10002918
jmp 0x1000293d
push 0
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10002970
mov dword [ebp - 8], eax
xor eax, eax
jne 0x10002828
cmp dword [ebp - 4], 0
je 0x10002954
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002b90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.10006510
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
ja 0x10002c13
cmp dword [ebp - 0x11c], 5
jne 0x10002c1a
cmp dword [ebp - 0x118], 2
jne 0x10002c1a
xor eax, eax
jmp 0x10002cae
push str.FreeLibrary
push 0x10017004
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
movzx ecx, byte [eax]
cmp ecx, 0xe8
jne 0x10002c65
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x12c], edx
jmp 0x10002ca8
mov eax, dword [ebp - 0x130]
push eax
call fcn.10003e60
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x10002c82
jmp 0x10002ca8
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x128]
add edx, 0x1000
cmp dword [ebp - 0x130], edx
jb 0x10002c43
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret
Function at 0x10003220
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [0x10018e84], 0
je 0x10003271
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
jmp 0x10003387
lea edx, [ebp - 0x24]
push edx
call fcn.100010b0
add esp, 4
mov dword [ebp - 0x14], 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 4]
push ecx
call sym.SZStub.dll__GetShellcodeLen_8
push str.GlobalSageInjDrvMap
mov edx, dword [ebp - 4]
push edx
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x10018e84], eax
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
call fcn.10001240
add esp, 0xc
cmp dword [0x10018e84], 0
je 0x10003384
mov dword [ebp - 0x28], 0
push 0
push 0
push 0
push 0xf001f
mov eax, dword [0x10018e84]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10003368
push 0x40
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000335e
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sym.SZStub.dll__InitializeShellCodeData_8
test eax, eax
je 0x1000334d
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.10006920
add esp, 0xc
mov dword [ebp - 0x18], 1
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], 0
jne 0x10003384
mov eax, dword [0x10018e84]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10018e84], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x100033b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100140f0
push 0x10006c90
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x10017dd8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x20]
push eax
call sym.SZStub.dll__GetShellcodeLen_8
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100034a5
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call sym.SZStub.dll__InitializeShellCodeData_8
test eax, eax
je 0x100034a5
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xfffffffe
jmp 0x100034a5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x1000412b
jmp 0x10004169
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov edx, dword [ebp + 8]
mov dword [0x10019098], edx
push 0x104
push 0x10018e90
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10018e90
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.drivers_sgmodule.sys
push 0x10018e90
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
xor eax, eax
je 0x100041a9
call fcn.10003220
call fcn.10003510
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push str.SzCtlDev
call fcn.10001560
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100041e1
push 0x1001236c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
jmp 0x10004202
push 0x10012380
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 4]
push edx
call fcn.10003af0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10004350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.10006510
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.100031a0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000447d
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10004473
mov dword [ebp - 0x244], 0xffffffff
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp + 0xc], 0
jne 0x10004413
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x244]
jne 0x1000445b
cmp dword [ebp - 0x238], 0
je 0x1000445b
push 0x10012394
lea eax, [ebp - 0x21c]
push eax
call fcn.10006722
add esp, 8
test eax, eax
je 0x1000445b
push str.smss.exe
lea ecx, [ebp - 0x21c]
push ecx
call fcn.10006722
add esp, 8
test eax, eax
je 0x1000445b
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.100046d0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x100043da
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret
Function at 0x10004540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push str.SageFs5
call fcn.10001560
add esp, 8
mov byte [ebp - 5], al
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x1000457f
push 0
push 0
push str.load_sageplcy
push str.fltmc
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10004589
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100064f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10017dd8]
jne 0x10006502
repz ret
jmp fcn.100079b8

Function at 0x10010834
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100086dd
and dword [ebp - 4], 0
cmp dword [0x10019b38], 0
mov ebx, eax
jne 0x100108e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10010996
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10010996
push eax
call fcn.1000866b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10019b38], eax
call esi
push eax
call fcn.1000866b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10019b3c], eax
call esi
push eax
call fcn.1000866b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10019b40], eax
call esi
push eax
call fcn.1000866b
pop ecx
mov dword [0x10019b48], eax
test eax, eax
je 0x100108e5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000866b
pop ecx
mov dword [0x10019b44], eax
mov eax, dword [0x10019b44]
cmp eax, ebx
je 0x1001093d
cmp dword [0x10019b48], ebx
je 0x1001093d
push eax
call fcn.100086e6
push dword [0x10019b48]
mov esi, eax
call fcn.100086e6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001093d
test edi, edi
je 0x1001093d
call esi
test eax, eax
je 0x10010934
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10010934
test byte [ebp - 0xc], 1
jne 0x1001093d
or dword [ebp + 0x10], 0x200000
jmp 0x10010976
mov eax, dword [0x10019b3c]
cmp eax, ebx
je 0x10010976
push eax
call fcn.100086e6
pop ecx
test eax, eax
je 0x10010976
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10010976
mov eax, dword [0x10019b40]
cmp eax, ebx
je 0x10010976
push eax
call fcn.100086e6
pop ecx
test eax, eax
je 0x10010976
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10019b38]
call fcn.100086e6
pop ecx
test eax, eax
je 0x10010996
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10010998
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c2de
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4730bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x40199e
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0x13], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x4018d5
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop dword [eax]
cmp dword [0x473014], 0x10
mov ecx, section..data
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [section..data]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004019c0
inc esi
cmp esi, 4
jl 0x4018a0
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [ebp + 0x13]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x401845
mov dword [ebp + 0x10], esi
test esi, esi
je 0x40199e
mov eax, esi
cmp esi, 3
jge 0x40190e
cmp eax, 3
jae 0x4019b2
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4018f2
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x401911
mov cl, byte [ebp - 0xe]
mov al, dh
shr cl, 6
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
xor ebx, ebx
mov al, dl
shl dh, 4
shr al, 4
and dl, 0xf
add dh, al
shl dl, 2
lea eax, [esi + 1]
mov byte [ebp - 0x17], dh
add dl, cl
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x16], dl
test eax, eax
jle 0x40197c
mov esi, eax
nop word [eax + eax]
cmp dword [0x473014], 0x10
mov ecx, section..data
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [section..data]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004019c0
inc ebx
cmp ebx, esi
jl 0x401950
mov esi, dword [ebp + 0x10]
cmp esi, 3
jge 0x40199e
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.004019c0
sub ebx, 1
jne 0x401990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045ae98
int3
Function at 0x402530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0x270
jne 0x402580
lea edx, [edi + 8]
mov esi, eax
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x402542
mov eax, dword [edi]
jmp 0x402667
cmp eax, 0x4e0
jb 0x402667
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
push ebp
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4025a0
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4025f0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
pop ebx
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret