joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100129e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7a08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.10012db0
mov dword [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea esi, [edi + 0x14]
mov dword [ebp - 0x14], edi
mov word [edi + 0xc], 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov dword [ebp + 0xc], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
push fcn.10010820
push fcn.10010800
push 2
mov byte [ebp - 4], 1
lea eax, [esi + 0x6c]
push 0x14
mov dword [esi], vtable.CStartButton.0
push eax
mov dword [esi + 0x54], 0
call fcn.100d4cab
mov dword [esi + 0x2c], 0
mov eax, edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov word [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x58], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10013a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movups xmm0, xmmword [str._LOCALAPPDATA_]
mov dword [ebp - 0x418], eax
mov eax, dword [0x1010ae9c]
mov dword [ebp - 0x1f4], eax
mov ax, word [0x1010aea0]
push 0x1ea
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1ee]
movups xmmword [ebp - 0x20c], xmm0
push 0
movq xmm0, qword [0x1010ae94]
push eax
movq qword [ebp - 0x1fc], xmm0
call fcn.100d6eb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x10013c48
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10013c3c
push ebx
push esi
push edi
mov esi, 1
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sCSM_Crash_d.dmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.100a4830
add esp, 0x14
lea eax, [ebp - 0x414]
push 0
push 0x80
push esi
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10013be7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
jne 0x10013be2
inc esi
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sCSM_Crash_d.dmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.100a4830
add esp, 0x14
lea eax, [ebp - 0x414]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10013b91
jmp 0x10013be7
cmp ebx, 0xffffffff
je 0x10013c39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.ExplorerShellDLL32.dll_enum__MINIDUMP_TYPE_MiniDumpType]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
lea ecx, [ebp - 0x42c]
push ecx
push esi
push ebx
push edi
push eax
call dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 4

Function at 0x10013c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [eax], 0xc00000fd
jne 0x10013cae
push esi
push 0
push 0
push ecx
push fcn.10013a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
ret 4
push ecx
call fcn.10013a90
xor eax, eax
pop ebp
ret 4
Function at 0x10014310
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov dword [0x10158af4], 0
push 0x10014280
mov dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar], 0
mov dword [0x10158afc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
test eax, eax
jne 0x1001436c
push eax
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar], eax
test eax, eax
je 0x10014476
mov cx, word [0x10159320]
test cx, cx
jne 0x1001439c
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
shl ax, 8
movzx ecx, cl
or cx, ax
mov eax, dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
mov word [0x10159320], cx
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, 0x601
cmp cx, dx
jne 0x100143c4
push 0
push 0x10014200
push 0
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
push 0
push eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x10014471
cmp dword [0x10158af4], 0
je 0x10014435
push 0
push 0x10014140
push 0
push dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
call edi
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov ecx, dword [0x10158afc]
test ecx, ecx
je 0x10014435
mov eax, dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
push 0x10158b00
push 0
push 0x435
mov dword [0x10158b08], eax
mov eax, dword [0x10158af4]
push ecx
mov dword [0x10158b00], 0x30
mov dword [0x10158b0c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 4]
push 0x1013e808
push 0x1013c960
call fcn.10013500
add esp, 0xc
movzx eax, ax
mov ecx, 0x1013e7e8
push 0
push eax
push 0
push 0x88
push SysReAllocString
push 0
push 0
push 0
call fcn.100133d0
mov dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_OwnerWindow], eax
mov eax, dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7b50
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x1014be50]
mov esi, dword [edi]
cmp esi, edi
je 0x10015116
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 0x10]
call ebx
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100150f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100150f0
cmp esi, dword [eax + 8]
jne 0x100150f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100150e0
mov esi, eax
jmp 0x1001510c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1001510c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10015100
mov edi, dword [0x1014be50]
cmp esi, edi
jne 0x100150c7
mov dword [ebp - 4], 0
push dword [edi + 4]
call fcn.1001fb80
mov eax, dword [0x1014be50]
mov dword [eax + 4], edi
mov eax, dword [0x1014be50]
mov dword [eax], edi
mov eax, dword [0x1014be50]
mov dword [eax + 8], edi
mov dword [0x1014be54], 0
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 0x10017a70
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7c80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100b0900
test al, al
je 0x10017ade
push 0
push str.Shell_TrayWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x10017c4c
push 0x580008
push 0x24e
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
mov cx, word [0x10159320]
test cx, cx
jne 0x10017b09
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
movzx ecx, cl
shl ax, 8
or cx, ax
mov word [0x10159320], cx
mov eax, 0xa00
cmp cx, ax
jb 0x10017c28
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.10013cd0
test al, al
je 0x10017c04
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1010bf6c
push str.:N_tG
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_IUnknown_QueryService]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017bf6
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
push 2
push eax
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edi, [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017be2
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push 0x1010bf8c
push 0x1010bf8c
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_IUnknown_QueryService]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10017bd1
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x10017bdf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10017bf6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x10017c04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10017c4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [0x10158b98], 0
je 0x10017c4c
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push 0xb
push dword [0x10158af8]
push dword [0x10158b98]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001b620
Capabilities:
Create process on windows

Disassembly:
mov cx, word [0x10159320]
test cx, cx
jne 0x1001b64b
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
movzx ecx, cl
shl ax, 8
or cx, ax
mov word [0x10159320], cx
mov eax, 0xa00
cmp cx, ax
jb 0x1001b66a
push 1
push 0
push 0
push str.shell:::2559a1f8_21d7_11d4_bdaf_00c04f60b9f0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x1001f550
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Extract resource via kernel32 functions
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 8], 0
push esi
push edi
je 0x1001f57f
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10158f48], eax
mov dword [0x10158f4c], 0
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001f5ac
push 0x100a1ed0
push 0x1010b918
mov edx, 0x1010b92c
mov ecx, eax
call fcn.100b1c30
add esp, 8
mov dword [0x10158d2c], eax
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x1001f5cc
xor ecx, ecx
jmp 0x1001f5fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
jne 0x1001f5e5
xor ecx, ecx
jmp 0x1001f5fe
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
test edi, edi
je 0x1001f645
cmp ecx, 0x6020000
jb 0x1001f645
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x62
push edi
call esi
push 0x5f
push edi
mov dword [0x10158d1c], eax
call esi
push 0x60
push edi
mov dword [0x10158d20], eax
call esi
cmp dword [0x10158d20], 0
mov dword [0x10158d24], eax
je 0x1001f63b
test eax, eax
jne 0x1001f645
mov dword [0x10158d1c], 0
call fcn.10029ad0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, 0x1014e9e0
mov byte [0x1014e941], 1
nop dword [eax]
push esi
call edi
add esi, 0x18
cmp esi, 0x1014ea28
jl 0x1001f660
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x1014ea34], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov dword [0x1014ea38], eax
nop word [eax + eax]
push 0
push 0
push 0x1014e940
push 0x10080e40
push 0
push 0
call edi
mov dword [esi + 0x1014ea3c], eax
add esi, 4
cmp esi, 0x20
jb 0x1001f6a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1014ea60], eax
call fcn.1007c140
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x1001f8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100ae790
Function at 0x10023300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10023348
push str.StartMenu_DLL:_DLL_PROCESS_ATTACH
push str.Software360WallPaperOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_360WallPaperOpenShellStartupLog.txt
call fcn.100acd90
mov eax, dword [ebp + 8]
add esp, 8
mov dword [0x1014be3c], eax
push 0
push 0
push 0
push 0x10023030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10158c50], eax
mov eax, 1
pop ebp
ret 0xc
test eax, eax
jne 0x1002335e
push str.StartMenu_DLL:_DLL_PROCESS_DETACH
push str.Software360WallPaperOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_360WallPaperOpenShellStartupLog.txt
call fcn.100acd90
add esp, 8
mov eax, 1
pop ebp
ret 0xc

Function at 0x10023410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x100234f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 8]
lea ebx, [eax - 0x10]
mov dword [ebp - 4], 1
mov edx, dword [edi + 8]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x100234ba
mov eax, dword [ebx + 0xc]
shr eax, 0x1f
test al, al
jne 0x100234af
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x100234af
call fcn.10021e50
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100234a8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x100234ba
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.10021eb0
mov eax, dword [edi + 0xc]
mov dword [esi + 4], eax
movzx eax, byte [edi + 0x30]
and al, 1
mov byte [esi + 8], al
movzx eax, byte [edi + 0x31]
shr al, 1
and al, 1
mov byte [esi + 9], al
movzx eax, byte [edi + 0x32]
mov byte [esi + 0xa], al
movzx eax, byte [edi + 0x33]
mov byte [esi + 0xb], al
mov eax, esi
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 0x80004005
call fcn.10013970
int3
Function at 0x10027dd0
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x10028c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], ecx
cmp edi, 0x1a
jg 0x10028c7c
xor ebx, ebx
jmp 0x10028c93
cmp edi, 0x20
jg 0x10028c88
mov ebx, 1
jmp 0x10028c93
xor ebx, ebx
cmp edi, 0x2c
setg bl
add ebx, 2
mov esi, ebx
nop word [eax + eax]
push dword [esi*4 + 0x1010c068]
lea eax, [esp + 0x1c]
push ecx
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10028d26
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, 4
jb 0x10028ca0
lea esi, [ebx - 1]
test esi, esi
js 0x10028d0f
mov ebx, ecx
nop dword [eax]
push dword [esi*4 + 0x1010c068]
lea eax, [esp + 0x1c]
push ebx
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10028d26
sub esi, 1
jns 0x10028ce0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
mov eax, 2
lea edx, [esp + 0x10]
sub eax, edi
lea ecx, [esp + 0x18]
push 0
mov dword [esp + 0x14], eax
lea eax, [edi - 2]
push 1
push 1
mov dword [esp + 0x20], eax
call fcn.100af920
add esp, 0xc
test eax, eax
je 0x10028d0f
push ecx
push dword [ebp + 8]
mov edx, edi
mov ecx, eax
call fcn.10028950
mov ecx, dword [esp + 0x22c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x10028d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], ecx
or edx, 0xffffffff
xor eax, eax
cmp dword [eax + 0x1010c04c], edi
jge 0x10028db9
add eax, 4
inc edx
cmp eax, 0x1c
jb 0x10028da8
xor eax, eax
test edx, edx
cmovns eax, edx
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x10], eax
cmp esi, 7
jae 0x10028e15
nop dword [eax]
push dword [esi*4 + 0x1010c04c]
lea eax, [esp + 0x1c]
push ecx
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10028e06
mov ecx, dword [esp + 0xc]
inc esi
cmp esi, 7
jb 0x10028dd0
jmp 0x10028e15
mov ebx, dword [esi*4 + 0x1010c04c]
test ebx, ebx
jne 0x10028e60
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
add esi, 0xffffffff
js 0x10028e5c
nop
push dword [esi*4 + 0x1010c04c]
lea eax, [esp + 0x1c]
push ecx
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10028e55
sub esi, 1
mov ecx, dword [esp + 0xc]
jns 0x10028e20
jmp 0x10028e5c
mov ebx, dword [esi*4 + 0x1010c04c]
test ebx, ebx
je 0x10028eae
push 0
cmp ebx, edi
lea edx, [esp + 0x14]
mov eax, edi
lea ecx, [esp + 0x1c]
cmovle eax, ebx
push 1
push 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.100af920
add esp, 0xc
test eax, eax
je 0x10028eae
push ecx
push dword [ebp + 8]
mov edx, edi
mov ecx, eax
call fcn.10028950
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x224]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x1002a8c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f86fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x1013c014]
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
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push 0x80
push str.file
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
or ebx, 0xffffffff
test eax, eax
mov edi, ebx
cmovne edi, dword [ebp - 0x2c4]
mov dword [ebp - 4], 0
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x1002ab31
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 4], 1
mov word [ebp - 0x2e4], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2e8], 0
test edi, edi
js 0x1002a99a
mov esi, dword [0x1014b4c8]
mov ecx, 0x1014be70
push esi
push edi
call fcn.1002ead0
push ecx
push esi
push eax
mov ecx, 0x1014be70
call fcn.1002e850
mov dword [ebp - 0x2d8], eax
jmp 0x1002a9a4
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2cc], 0
push eax
lea eax, [ebp - 0x2cc]
mov ecx, 0x1014bfc8
push eax
call fcn.10036830
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2d0]
mov ecx, 0x1014bfc8
push eax
call fcn.100368e0
mov eax, dword [ebp - 0x2d0]
add eax, 0x14
mov dword [ebp - 0x2e8], 1
mov dword [0x1014bfdc], eax
test edi, edi
js 0x1002aa20
mov esi, dword [0x1014b4c4]
mov ecx, 0x1014be70
push esi
push edi
call fcn.1002ead0
push ecx
push esi
push eax
mov ecx, 0x1014be70
call fcn.1002e850
mov dword [ebp - 0x2d8], eax
jmp 0x1002aa2a
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2cc], 0
push eax
lea eax, [ebp - 0x2cc]
mov ecx, 0x1014bfc8
push eax
call fcn.10036830
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2d0]
mov ecx, 0x1014bfc8
push eax
call fcn.100368e0
mov eax, dword [ebp - 0x2d0]
add eax, 0x14
mov dword [ebp - 0x2e8], 2
mov dword [0x1014bfe0], eax
test edi, edi
js 0x1002aaa2
push 0x40
push edi
mov ecx, 0x1014be70
call fcn.1002ead0
push ecx
push 0x40
push eax
mov ecx, 0x1014be70
call fcn.1002e850
mov dword [ebp - 0x2d8], eax
jmp 0x1002aaac
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2cc], 0
push eax
lea eax, [ebp - 0x2cc]
mov ecx, 0x1014bfc8
push eax
call fcn.10036830
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2d0]
mov ecx, 0x1014bfc8
push eax
call fcn.100368e0
mov eax, dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2d4]
add eax, 0x14
mov dword [0x1014bfe4], eax
add edx, 0xfffffff0
mov dword [ebp - 4], 2
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002ab15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100d4906
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013970
int3