joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480540
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5193b0
push 0x4addf0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x10], 2
jae 0x4805a6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x48060c
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x48060c
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x48060c
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4806ca
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4806c8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x4806c8
mov dword [ebp - 4], esi
movzx esi, word [edx]
mov dword [ebp - 0x28], esi
lea eax, [esi*2 + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x480670
shr ecx, 1
lea esi, [ecx - 4]
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x480677
mov dword [ebp + 0x10], 0
mov eax, esi
push eax
push edx
push dword [ebp + 0x14]
call fcn.004ad230
add esp, 0xc
mov eax, dword [str.FE2X]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x48069a
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4806ca
xor esi, esi
test edi, edi
je 0x4806d5
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4806e2
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4806ed
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4847c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0475
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x484804
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x4848ff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00476480
test al, al
jne 0x484879
test esi, esi
jne 0x484856
xor ecx, ecx
jmp 0x48486f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x484860
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484860
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00477ed0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00487000
mov edx, dword [ebp - 0x24]
or esi, 0xffffffff
add esp, 0x18
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4848bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4848dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
imul eax, dword [ebp - 0x14], 0x64
add eax, dword [ebp - 0x18]
imul eax, eax, 0x64
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x64
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
int3
Function at 0x4855e0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x485652
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x485602
push 9
push ebx
call esi
push 5
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
pop esi
pop ebx
pop ebp
ret
Function at 0x486e50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e07db
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5203c4]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x486fd5
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0047a010
mov eax, dword [ebx]
lea edi, [ebp - 0x218]
add esp, 0xc
mov dword [ebx + 4], eax
cmp word [ebp - 0x218], 0
je 0x486fd0
mov eax, edi
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x486fd0
call fcn.00476b10
test eax, eax
je 0x486ff1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00476480
test al, al
jne 0x486f51
test edi, edi
jne 0x486f30
xor eax, eax
jmp 0x486f44
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486f35
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00477ed0
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], eax
cmp eax, dword [ebx + 8]
je 0x486f89
lea eax, [esi - 0x10]
push eax
call fcn.00476560
mov ecx, dword [ebp - 0x220]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x486f98
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov ecx, ebx
call fcn.004819b0
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edi, [edi + eax*2]
or eax, 0xffffffff
add edi, 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486fc0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [edi], 0
mov esi, dword [ebp - 0x224]
jne 0x486ee0
mov eax, 1
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.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
int3
Function at 0x487000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e081d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x487167
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x487123
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487123
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
push dword [eax]
call fcn.00487180
add esp, 8
test eax, eax
je 0x48709e
mov eax, dword [ebp - 0x40]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov edi, eax
shr esi, 0x10
shr edi, 0x10
movzx ebx, ax
push ebx
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._d._d._d._d
push eax
call fcn.00476950
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x4870be
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4870ca
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4870d3
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4870dc
mov dword [eax], ebx
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00476560
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487153
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
add esi, 0xfffffff0
push esi
call fcn.00476560
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487153
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
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
int3
Function at 0x4874b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x48758a
push 0x4e7a48
push eax
call fcn.004adf50
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x4874e5
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x48750e
cmp dword [eax - 0xc], 0
jl 0x48758a
push 0x4e7a40
push eax
call fcn.004adf50
add esp, 8
test eax, eax
je 0x48758a
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x48758a
xor eax, eax
mov ecx, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 3
push eax
call fcn.0047f2c0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x487558
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x48758a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48756e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x487580
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4875a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e08b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5203c4]
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, dword [ebp + 8]
lea eax, [ebp - 0x1a0]
mov esi, dword [ebp + 0xc]
push 0xc8
push 0
mov dword [ebp - 0x1ac], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a4], 0
call fcn.004ad7b0
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004ad7b0
add esp, 0x18
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x4876e7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 3
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x1a4], 1
call fcn.0047f2c0
mov esi, dword [ebp - 0x1a8]
lea eax, [ebp - 0xd8]
push 0xc8
push eax
push 0
push 0
push 0
push 0xc8
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4876ae
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487690
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00477ed0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4876ca
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
int3
Function at 0x487c70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e09b0
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x487ce8
push 0x4e7a40
push eax
call fcn.004adf50
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x487cc7
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x487cef
cmp dword [eax - 0xc], 0
jl 0x487ce8
push 0x4e7a48
push eax
call fcn.004adf50
add esp, 8
test eax, eax
je 0x487ce8
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x487cef
xor eax, eax
jmp 0x487dfc
push 2
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0047f2c0
lea eax, [ebp - 0x824]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x820]
push 0x4e7a50
push eax
call fcn.00485ea0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.004ad7b0
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x487db6
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x487e17
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x820]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487dd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x487dfa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.004a8e4e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7f4]
xor esi, esi
cmp eax, 4
je 0x487e29
cmp eax, 7
jne 0x487e2e
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x487db8
Function at 0x488970
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0b10
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5203c4]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x488a9a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x488a9a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x488a9a
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x488a88
mov ecx, edi
call fcn.00488d10
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x240]
push eax
call fcn.00488ac0
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.00487c30
add esp, 0x10
test eax, eax
je 0x488a52
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00488870
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488a77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x488a10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [edi + 4]
sbb eax, eax
neg eax
jmp 0x488a9c
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.004a8e4e
mov esp, ebp
pop ebp
ret

Function at 0x488c90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x488d05
push edi
push dword [esi + 0x10]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x488cc4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x488cea
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x488ce6
cmp esi, dword [eax + 8]
jne 0x488ce6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x488cd6
mov esi, eax
jmp 0x488d00
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x488d00
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x488cf4
cmp esi, dword [ebx]
jne 0x488ca1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4898c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x519f60
push 0x4addf0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5203c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x430]
push eax
push 0x4eb858
push 1
push 0
push 0x4eb868
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x489aa3
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x489aa3
mov eax, dword [ecx]
lea edx, [ebp - 0x434]
push edx
push 0x4eb878
push ecx
call dword [eax]
test eax, eax
js 0x489a6c
mov ecx, dword [ebp - 0x434]
test ecx, ecx
je 0x489a6c
mov eax, dword [ecx]
push 0
push dword [esi]
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x489a60
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004ad7b0
add esp, 0xc
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
push 2
push 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [edx + 0xc]
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call fcn.0047ac30
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [edx + 0x28]
lea eax, [ebp - 0x224]
push eax
mov ecx, ebx
call fcn.0047ac30
mov dword [ebp - 0x438], 0
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
lea edx, [ebp - 0x438]
push edx
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x40]
push 0x208
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004ad7b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.0047ac30
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x489aa3
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
Function at 0x489b30
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x519f40
push 0x4addf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
je 0x489c63
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test ebx, ebx
jne 0x489b7f
test edi, edi
je 0x489c63
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x4eb858
push 1
push esi
push 0x4eb868
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x489c13
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x4eb878
push eax
call dword [ecx]
test eax, eax
js 0x489c13
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x489c13
test ebx, ebx
je 0x489beb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push dword [ebp + 0x14]
push ebx
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x489c13
test edi, edi
je 0x489bf9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 1
push dword [ebp + 8]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x489c13
mov esi, 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x489c2f
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x489c3c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489c49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret