joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476580
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4765f5
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4765ed
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4765ed
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x4765c9
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.004c0b70
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e430
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed118
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x47e5a5
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00408cb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x47e5a5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0
jne 0x47e51e
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041f5b0
push eax
lea ecx, [ebp - 0x28]
call fcn.00405950
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47e51e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e514
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e623
push edx
push ecx
call fcn.004a1b67
add esp, 8
push str.microsoft_sharedinkTabTip.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47e565
mov ecx, eax
call fcn.00406b80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47e59f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e595
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e628
push edx
push ecx
call fcn.004a1b67
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x47e5b4
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.004068e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47e609
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e5ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e62d
push edx
push ecx
call fcn.004a1b67
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
call fcn.004c43e9
call fcn.004c43e9
call fcn.004c43e9
int3
Function at 0x481bbf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x53ebbc], 0
push esi
mov esi, ecx
je 0x481be7
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x481ca9
push ebx
push edi
test esi, esi
je 0x481ca5
xor ebx, ebx
cmp word [esi], bx
je 0x481ca5
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x481ca5
cmp ecx, edi
jae 0x481ca5
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x481ca5
movzx eax, word [esi]
test ax, ax
je 0x481c55
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x481ca5
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x481c3b
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x53ebb4]
test eax, eax
je 0x481c73
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x481c78
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x481ca1
mov ecx, dword [0x53ebb4]
test ecx, ecx
je 0x481ca1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x481ca7
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4820a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1118
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x53ebcc], 0
mov esi, dword [ebp + 8]
jne 0x482120
lea eax, [ebp - 0x28]
mov byte [0x53ebcc], 1
push 0
push eax
call fcn.00482180
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
jb 0x4820fd
mov eax, dword [ebp - 0x28]
push eax
call fcn.00481fd0
add esp, 4
test eax, eax
je 0x482111
mov byte [0x53ebcd], 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406be0
cmp byte [0x53ebcd], 0
je 0x482157
test esi, esi
je 0x482157
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482157
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push esi
call fcn.00481e10
xor eax, eax
add esp, 8
cmp dword [ebp - 0x2c], 4
sete al
jmp 0x482159
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
Function at 0x484060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4840b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4840b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4840aa
cmp esi, edx
jae 0x4840b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x484098
cmp esi, edx
jae 0x4840b9
cmp word [esi], 0
je 0x4840b9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x484530
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], esi
je 0x48455d
or edi, 0x8000
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c10f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
test eax, eax
je 0x4845a7
xor eax, eax
mov word [esi], ax
push 0x50b270
jmp 0x4845b3
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00406a20
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a1e09
mov esp, ebp
pop ebp
ret

Function at 0x4846b0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x484722
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4846d2
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 0x485110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f157a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 3
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x48522f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 5
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x485239
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 7
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x485243
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 9
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x48524d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00441b50
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004836b0
push 0x80004005
call fcn.004836b0
push 0x80004005
call fcn.004836b0
push 0x80004005
call fcn.004836b0
int3

Function at 0x4863c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1720
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4864bb
cmp dword [edi + 0xbc], 0
jne 0x486431
cmp dword [edi + 4], 0
jne 0x48641c
push 0
push 0
push edi
push 0x487700
push 0
push 0
call fcn.004c9604
add esp, 0x18
mov dword [edi + 4], eax
lea ecx, [edi + 0x80]
mov dword [edi + 0xbc], 1
call fcn.00487ba0
lea ecx, [ebp - 0x40]
call fcn.00485370
mov eax, esi
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486445
sub eax, edx
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.004864d0
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0xd4]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc0]
push eax
call fcn.00488310
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [edi + 8]
mov dword [edi + 0x64], 0
call fcn.00492890
lea ecx, [ebp - 0x40]
call fcn.00485a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x488130
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1948
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004828f0
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x488255
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x488280
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004836d0
test al, al
jne 0x4881b8
push 0x33
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x10]
call fcn.004864d0
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x4f79b0
push eax
call fcn.004834c0
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x24], reloc.gdiplus.dll_Ordinal_1
xor ebx, ebx
mov dword [ebp - 0x20], 0x80000002
mov dword [ebp - 0x1c], 0x20219
mov dword [ebp - 0x18], 0x20019
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + edi*4 - 0x1c]
push 0
push esi
push dword [ebp + ebx*4 - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x488223
inc edi
cmp edi, 2
jb 0x4881f3
inc ebx
cmp ebx, 2
jb 0x4881f1
xor bl, bl
jmp 0x488233
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x488231
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
or ecx, 0xffffffff
add esi, 0xfffffff0
mov eax, ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x488250
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x488257
xor bl, bl
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48826c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004836b0
int3
Function at 0x489c50
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52e780
push 0x4c1790
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x536364]
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 - 0x20], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x489c9f
mov dword [eax], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x489d04
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x489d04
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x489d04
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0
je 0x489db3
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10
push 1
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x489d83
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x489d83
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x489d83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x489d83
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x489d7b
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x489d88
mov edi, 0xd
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x489db8
mov edi, 0xd
test ebx, ebx
je 0x489dc3
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x489dd3
push eax
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x489dde
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x489e02
lea eax, [esi*2 + 4]
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
Function at 0x489e20
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52e7a0
push 0x4c1790
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x536364]
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 0x489e86
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 Ordinal_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x489eec
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 0x489eec
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 0x489eec
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 0x489faa
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x489fa8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x489fa8
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 0x489f52
mov esi, ecx
shr esi, 1
sub esi, 4
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x489f59
mov dword [ebp + 0x10], 0
push esi
push edx
push dword [ebp + 0x14]
call fcn.004c0b70
add esp, 0xc
mov eax, dword [str.FE2X]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x489f7a
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x489faa
xor esi, esi
test edi, edi
je 0x489fb5
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x489fc2
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x489fcd
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 0x48a0c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1b46
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x536364]
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 esi, ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x48a250
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push 0
push eax
call fcn.004c10f0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48a249
mov eax, dword fs:[0x2c]
mov ecx, dword [0x53fa70]
mov ebx, dword [eax + ecx*4]
lea eax, [ebp - 0x218]
shr eax, 0x10
mov dword [ebp - 0x244], eax
jmp 0x48a160
mov eax, dword [0x53ebe0]
cmp eax, dword [ebx + 4]
jg 0x48a26c
mov eax, dword [0x53ec00]
cmp eax, dword [ebx + 4]
jg 0x48a2be
mov eax, dword [0x53ebe4]
mov ecx, 0x53ebe4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x244], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
jne 0x48a1bf
movzx eax, ax
lea ecx, [ebp - 0x240]
push eax
call fcn.0048a7e0
jmp 0x48a1e4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48a1c2
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004864d0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 1
push ecx
cmp dword [esi + 8], eax
je 0x48a207
mov ecx, eax
call fcn.00482860
add dword [esi + 4], 4
jmp 0x48a20f
push eax
mov ecx, esi
call fcn.00482500
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 0x48a234
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48a160
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004a1e09
mov esp, ebp
pop ebp
ret
push 0x53ebe0
call fcn.004a1d15
add esp, 4
cmp dword [0x53ebe0], 0xffffffff
jne 0x48a171
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4f5580
mov dword [0x53ebd4], 0x4f7688
mov dword [0x53ebd8], eax
mov byte [0x53ebdc], 0
call fcn.004a1ac3
push 0x53ebe0
call fcn.004a1ccb
add esp, 8
jmp 0x48a171
push 0x53ec00
call fcn.004a1d15
add esp, 4
cmp dword [0x53ec00], 0xffffffff
jne 0x48a182
xor eax, eax
mov dword [0x53ebe4], 0x4f76a0
push 0x4f55b0
mov dword [0x53ebe8], 0x53ebd4
mov dword [0x53ebf8], 2
mov dword [0x53ebf0], 0
mov dword [0x53ebf4], 0
mov dword [0x53ebfc], eax
mov dword [0x53ebec], 0x53ebe4
call fcn.004a1ac3
push 0x53ec00
call fcn.004a1ccb
add esp, 8
jmp 0x48a182
Function at 0x48ccf0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1a40
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x48cdac
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x48cd35
mov eax, dword [edi + 0x30]
push eax
push 0
mov ecx, edi
call fcn.0048c660
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x48cd8a
lea ecx, [ecx]
test esi, esi
js 0x48cdc0
cmp esi, dword [edi + 0xc]
jge 0x48cdc0
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
jne 0x48cd7c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x48cd50
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call 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 4
push 1
push 0xc000008c
call fcn.00489840
int3