joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005a500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0xc]
push 0
mov edi, ecx
mov dword [ebp - 0xe4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, edi
mov esi, eax
call fcn.1005a8a0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x98], 0
lea ebx, [edi + 0x8c]
xorps xmm0, xmm0
mov dword [ebp - 0xec], eax
movq qword [ebp - 0xe0], xmm0
movq qword [ebp - 0xd8], xmm0
je 0x1005a58b
cmp dword [ebx + 4], 0
je 0x1005a58b
push 0x400
lea eax, [ebp - 0xe0]
push eax
push dword [edi + 0x90]
push dword [edi + 0x98]
jmp 0x1005a5db
push 0xc8
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0x64
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
test edi, edi
je 0x1005a5e2
lea eax, [ebp - 0xd0]
push eax
mov ecx, ebx
call fcn.1003ec60
push 0x400
lea eax, [ebp - 0xe0]
push eax
push edi
lea eax, [ebp - 0xd0]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xec]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0xd8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xd4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b0f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cf88
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.1007b570
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1020]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
or edi, 0xffffffff
test eax, eax
je 0x1005b21a
mov eax, dword [ebp - 0x1020]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x101c], eax
test eax, eax
je 0x1005b21a
lea esp, [esp]
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0xc]
push eax
call fcn.10006be0
push dword [ebp + ebx*4 - 0x1014]
call fcn.1005b250
mov edx, eax
mov dword [ebp - 0x1018], edx
cmp edx, 0xffffffff
je 0x1005b20d
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1018]
cmp ecx, eax
jae 0x1005b1e8
mov ecx, dword [esi]
lea edi, [ebp - 0x1018]
cmp ecx, edi
ja 0x1005b1e8
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x1005b1d8
push ecx
mov ecx, esi
call fcn.10025a60
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1005b204
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1005b204
cmp eax, dword [esi + 8]
jne 0x1005b1fb
push ecx
mov ecx, esi
call fcn.10025a60
mov edx, dword [ebp - 0x1018]
mov eax, dword [esi + 4]
test eax, eax
je 0x1005b204
mov dword [eax], edx
add dword [esi + 4], 4
mov edi, 1
inc ebx
cmp ebx, dword [ebp - 0x101c]
jb 0x1005b170
cmp dword [ebp + 0x20], 8
jb 0x1005b22b
push dword [ebp + 0xc]
call fcn.1006dae9
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1005b250
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cf53
mov eax, dword fs:[0]
push eax
mov eax, 0x1230
call fcn.1007b570
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
push eax
push 0
push 0x410
mov dword [ebp - 4], 0
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1005b2b1
or ebx, 0xffffffff
jmp 0x1005b43b
lea eax, [ebp - 0x238]
push eax
push 0x1000
lea eax, [ebp - 0x123c]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1005b434
xor esi, esi
test dword [ebp - 0x238], 0xfffffffc
jbe 0x1005b434
jmp 0x1005b2f0
movq xmm0, qword [str.unknown]
push 0x1f8
movq qword [ebp - 0x21c], xmm0
movq xmm0, qword [0x100b60a0]
lea eax, [ebp - 0x20c]
push 0
push eax
movq qword [ebp - 0x214], xmm0
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push eax
push dword [ebp + esi*4 - 0x123c]
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x1005b37f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005b370
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.10006cd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp + 0x20], 8
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x234]
call fcn.10007ab0
test eax, eax
je 0x1005b417
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 8
jb 0x1005b403
push dword [ebp - 0x234]
call fcn.1006dae9
add esp, 4
mov eax, dword [ebp - 0x238]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1005b2f0
jmp 0x1005b434
cmp dword [ebp - 0x220], 8
mov ebx, dword [ebp - 0x23c]
jb 0x1005b434
push dword [ebp - 0x234]
call fcn.1006dae9
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 8
jb 0x1005b44c
push dword [ebp + 0xc]
call fcn.1006dae9
add esp, 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 - 0x14]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1005b910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008d1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.CSetupRegW.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x3c], 1
call fcn.1005bca0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x38], 2
mov esi, dword [ebx + 0xc]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.100436b0
mov dword [esp + 0x18], vtable.CSetupRegW.0
push 0
push dword [ebp + 0xc]
mov byte [esp + 0x40], 3
push esi
push edi
push eax
call fcn.1004c5d0
mov byte [esp + 0x38], 2
test eax, eax
jne 0x1005b9e3
push eax
push dword [ebp + 0xc]
push dword [ebx + 0xc]
push dword [esp + 0x34]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1004c5d0
test eax, eax
jne 0x1005b9bb
xor esi, esi
jmp 0x1005b9e8
mov esi, dword [ebx + 0xc]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.100436b0
mov dword [esp + 0x18], vtable.CSetupRegW.0
push dword [ebp + 0xc]
mov byte [esp + 0x3c], 4
push esi
push edi
push eax
call fcn.1004bce0
mov esi, 1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], vtable.CStringBufferW.0
test eax, eax
je 0x1005ba01
push eax
call fcn.1006eaef
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CSeed.0
test ecx, ecx
je 0x1005ba30
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005e0a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d656
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.CLanguagePack.0
mov dword [ecx], vtable.CMapStringPtrW.0
mov dword [ecx + 4], vtable.CMapPtr.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], vtable.CStringBufferW.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
mov eax, dword [ecx]
push 0x19b
call dword [eax]
push str.en_us
lea ecx, [edi + 0x24]
call fcn.1003ec60
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 0x1005ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bd78
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
push dword [ecx + 0x28]
push dword [ecx + 0x30]
mov ecx, esi
call fcn.1003ea90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10064820
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e278
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [eax + 0xc]
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100648d2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100648d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100648d2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], vtable.CFileHandler.0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp dword [0x100f2570], 0
jne 0x100648d2
mov ecx, dword [esi + 0xc]
push eax
push ebx
call fcn.10049c80
test eax, eax
je 0x100648d2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100648d2
cmp dword [esi + 4], 0
je 0x100648d2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100663c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x100663d6
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100663fd
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1006641f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100664c7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], 0
test eax, eax
je 0x100664c0
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100664b9
cmp ebx, dword [ebp - 4]
jne 0x100664b9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 8]
push eax
push 1
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x100664c0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100664c0
mov esi, dword [ebp - 8]
add esi, 0xc
push esi
push 0x10096d14
push 1
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], eax
pop esi
pop ebx
setne al
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x100664e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100b6740
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100665c0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100665c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x100665c0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [ebp + 8]
push eax
call fcn.10074e50
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push dword [edi + 0x28]
call ebx
lea eax, [ebp + 0xc]
push eax
push 1
push dword [edi + 0x28]
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x100665a5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100665a5
lea esi, [edi + 0xc]
push esi
push 0x10096d14
push 1
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jns 0x1006659c
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [edi + 0xc], 0
jne 0x100665c9
push dword [edi + 0x28]
call ebx
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0x28], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
Function at 0x100667a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0x10], 3
je 0x100667f6
mov eax, dword [ebp + 8]
test eax, eax
je 0x100668f2
push dword [ebp + 0xc]
push eax
call fcn.100664e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100668f2
mov eax, dword [ecx]
push 0
push 0x100cae9c
push 0x100ca71c
push 0
push 0
push 8
call dword [eax + 0x10]
push eax
call fcn.10084c25
add esp, 0x14
test eax, eax
je 0x100668f2
mov dword [ebp - 0x20], vtable.CStringBufferW.0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10064610
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x10066868
xor edi, edi
jmp 0x100668d0
mov dword [ebp + 0x10], vtable.CFileHandler.0
mov byte [ebp - 4], 1
test esi, esi
je 0x10066888
cmp dword [ebp - 0x1c], 0
je 0x10066888
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100668c6
push ecx
push 0x100b6740
lea ecx, [ebp - 0x30]
call fcn.1003e580
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push dword [ebp + 8]
call fcn.10064820
lea ecx, [ebp - 0x30]
test eax, eax
jne 0x100668bd
call fcn.10022960
xor edi, edi
jmp 0x100668d0
mov byte [ebp - 4], 1
call fcn.10022960
push esi
mov ecx, edi
call fcn.100666d0
mov edi, eax
test esi, esi
je 0x100668dd
push esi
call fcn.1006eaef
add esp, 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 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006cdc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1006cddc
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1006cdfa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
movzx eax, word [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x100b6740
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1006ceed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1006ceed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1006ceed
mov edi, dword [ebp + 0xc]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x1006ceed
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1006cedd
push edi
push ebx
push eax
call fcn.10074e50
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [esi + 8]
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1006ced4
mov ecx, dword [ebp + 0xc]
call fcn.1006cbc0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1006ced4
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x1006cec0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1006cecd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x1006d160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ed26
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CListViewCtrl.0
mov dword [ecx], vtable.CMapPtr.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], vtable.CArrayPtr.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xa
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ecx]
push 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10078b39
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10076d05
mov dword [ebp - 0x14], eax
cmp dword [0x100f2088], edi
jne 0x10078c2a
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10078bb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10078d0a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10078d0a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10078d0a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100f2088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100f208c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100f2090], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100f2098], eax
test eax, eax
je 0x10078c27
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100f2094], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10078c4f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078c42
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10078c64
push 4
pop eax
jmp 0x10078d0c
cmp dword [ebp - 0x14], edi
je 0x10078c64
push dword [0x100f2088]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10078c49
mov eax, dword [0x100f2094]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10078cc2
cmp dword [0x100f2098], esi
je 0x10078cc2
push eax
call ebx
push dword [0x100f2098]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10078cc2
test eax, eax
je 0x10078cc2
call ecx
test eax, eax
je 0x10078cb7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10078cb7
test byte [ebp - 8], 1
jne 0x10078cc2
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10078cf2
mov eax, dword [0x100f208c]
cmp eax, esi
je 0x10078cef
push eax
call ebx
test eax, eax
je 0x10078cef
call eax
mov edi, eax
test edi, edi
je 0x10078cef
mov eax, dword [0x100f2090]
cmp eax, esi
je 0x10078cef
push eax
call ebx
test eax, eax
je 0x10078cef
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100f2088]
call ebx
test eax, eax
je 0x10078d0a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10078d0c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
leave
ret