joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f720
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577f30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x5cfcf0]
mov dword [ebp - 0x20], 0
test al, 1
jne 0x47f793
or eax, 1
mov dword [0x5cfcf0], eax
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x47f779
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x583d00
mov dword [0x5cfcf4], eax
call fcn.004f596a
add esp, 4
mov eax, dword [0x5cfcf4]
cmp dword [eax - 0xc], 0
jne 0x47f8ce
push 0x5a2d3c
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPDFConverter.exe
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.004bcc80
add esp, 8
push eax
mov ecx, 0x5cfcf4
mov dword [ebp - 4], 0
call fcn.00402ed0
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47f7f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5cfcf4]
cmp dword [eax - 0xc], 0
jne 0x47f8ce
lea ecx, [ebp - 0x18]
call fcn.004beb20
push eax
mov ecx, 0x5cfcf4
mov dword [ebp - 4], 1
call fcn.00402ed0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47f83a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5cfcf4]
mov esi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47f847
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPDFConverter.exe
sub esi, ecx
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47f8bd
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x47f89c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0x5a2d3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x47f8ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5cfcf4]
add eax, 0xfffffff0
push eax
call fcn.00406e20
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4804a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5780e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
call fcn.00480240
push 0x59b818
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00407900
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004b4160
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480511
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004b3b60
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi - 0xc]
test ebx, ebx
je 0x480615
cmp dword [esi - 4], 1
jle 0x480541
push ebx
lea ecx, [ebp - 0x10]
call fcn.004046b0
mov esi, dword [ebp - 0x10]
push ecx
lea eax, [ebx + 1]
mov edx, esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048c690
mov edi, dword [ebp - 0x1c]
add esp, 8
mov ebx, edi
lea ecx, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x480560
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], SysReAllocStringLen
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMasterPDF
sub ebx, ecx
mov dword [ebp - 0x18], 0
push SysReAllocStringLen
sar ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x4805e4
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000001
je 0x4805bc
push eax
call ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebx*2 + 2]
push eax
push edi
push 1
push 0
push 0x5a2d50
push ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000001
je 0x4805f1
push eax
call ecx
xor ebx, ebx
lea edx, [edi - 0x10]
cmp dword [ebp - 0x1c], ebx
sete bl
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x480617
xor ebx, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x480630
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x3c]
call fcn.0045c880
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481810
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5782b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edx, edx
mov ecx, str.PdfRecommand
mov eax, str.PDFConverter
cmove eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.00407900
mov dword [ebp - 4], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48186d
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.SoftwareClients_s
push eax
call fcn.00423d10
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.00481e10
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x10]
push str.SOFTWARERegisteredApplications
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4818d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4818f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x481ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
mov ebx, 0x20019
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x481d66
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x481d5d
mov eax, dword [ebp - 8]
shr eax, 1
inc eax
push 2
push eax
call fcn.005486f5
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x481d5d
push edi
call fcn.005256c6
add esp, 4
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x481d8a
mov eax, dword [ebp - 0xc]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x481d8a
cmp ebx, 0x20019
jne 0x481d8a
mov edx, dword [ebp - 0x10]
mov ebx, 0x20119
jmp 0x481cf8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578357
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x482093
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0051a560
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or edi, 0xffffffff
cmp dword [ebp - 0x120], 5
je 0x48223a
push str.SoftwareClasses_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x134], 0
call fcn.00407900
push str..pdf
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.0044c1e0
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call fcn.00402ed0
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x12c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x482149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48216a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x134]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x2003f
push 0
push esi
push SysReAllocStringLen
call ebx
test eax, eax
je 0x48223a
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x12c]
call fcn.00407900
push str..pdf
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.0044c1e0
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00402ed0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4821ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x12c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48220f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x134]
push eax
push 0x2003f
push 0
lea eax, [ebp - 0x138]
push eax
push SysReAllocStringLen
call ebx
mov esi, dword [ebp - 0x128]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x48223c
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x482258
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x482280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578388
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4822be
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str..pdf
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], 0
call fcn.00423d10
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.Progid
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x482323
xor edi, edi
jmp 0x482337
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00547e25
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x482356
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4829e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578418
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x130], esi
call fcn.00406e20
add esp, 4
add eax, 0x10
mov ecx, SysReAllocStringLen
mov dword [esi], eax
call fcn.00480ae0
mov eax, dword [ebp + 8]
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x130], esi
push eax
call fcn.00406e20
add esp, 4
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00480ae0
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0051a560
add esp, 0x10
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 0xa
je 0x482a9f
call fcn.00482d10
test eax, eax
je 0x482b07
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x130], esi
call fcn.00406e20
add esp, 4
add eax, 0x10
mov ecx, SysReAllocStringLen
mov dword [esi], eax
call fcn.00481110
mov eax, dword [ebp + 8]
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x130], esi
push eax
call fcn.00406e20
add esp, 4
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00481110
add esp, 4
mov ecx, str.PDFConverter
call fcn.00482730
test eax, eax
je 0x482b07
mov edx, str.PDFConverter
call fcn.00482370
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x482b3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret

Function at 0x482d10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0051a560
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x482d7c
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x482d69
cmp eax, 3
jne 0x482d7c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x483910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578570
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0051a560
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x5a019c
push dword [ebp + 0xc]
push str.conv
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x4839ba
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483995
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407740
mov edi, 1
jmp 0x4839bc
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4839dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4839fc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x487180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4871b6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.0051a560
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x48723d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
mov eax, str.explorer.exe
lea ecx, [ebp - 0x20c]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x487226
test dx, dx
je 0x487222
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x487226
add ecx, 4
add eax, 4
test dx, dx
jne 0x487200
xor eax, eax
jmp 0x48722b
sbb eax, eax
or eax, 1
test eax, eax
je 0x48724f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4871f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x228]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x487330
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57886b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x487372
mov ecx, edi
call fcn.004521a0
cmp dword [0x5cef64], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x48739b
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call ebx
push eax
call esi
mov dword [0x5cef64], eax
cmp dword [0x5cef60], 0
jne 0x4873b8
push str.NtQueryInformationProcess
push str.ntdll
call ebx
push eax
call esi
mov dword [0x5cef60], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x487408
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0051a560
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x487426
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
xor ebx, ebx
call fcn.00407e20
test eax, eax
je 0x48753d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x487476
push 0x104
lea ecx, [ebp - 0x240]
call fcn.00407460
mov esi, dword [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x234]
mov edx, esi
call fcn.004870f0
push dword [esi - 8]
push esi
call fcn.00537622
add esp, 0xc
test eax, eax
js 0x487533
cmp eax, dword [esi - 8]
jg 0x487533
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [ebp - 0x240]
mov ecx, dword [ebp - 0x248]
call fcn.0049bac0
test eax, eax
je 0x4874e0
test edi, edi
je 0x4874df
push dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.00454a80
inc ebx
mov dword [ebp - 0x23c], 0x22c
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487509
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x487428
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x48740a
push 0x80070057
call fcn.004079f0
push 0x80004005
call fcn.004079f0
int3
Function at 0x4876b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5788eb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x21c], edi
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48770d
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0051a560
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x48779a
push dword [ebp - 0x21c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x48779a
add esi, 0xfffffff0
push esi
call fcn.00406e20
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487895
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x487895
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], 0
push eax
push 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4877e5
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x48782b
mov eax, dword [0x5cef64]
test eax, eax
jne 0x48780a
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5cef64], eax
mov dword [ebp - 0x224], 0x104
test eax, eax
je 0x48782b
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487840
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00407740
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
push esi
call fcn.00406e20
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487895
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret