joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411c90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x411bd0
push 0
mov esi, ecx
push 0
mov dword [esi + 0x428], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x424], eax
pop esi
mov eax, ecx
pop ecx
ret

Function at 0x4127a0
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
push edi
push esi
push str.CInjectDll::InjectHookProxy_hWnd:_d_tid:_d
push 0x45651c
call fcn.00405160
add esp, 0x10
test esi, esi
je 0x41280c
test edi, edi
je 0x41280c
push 0x458c28
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41280c
push 0x458b7c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412804
push edi
push esi
push eax
push 9
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x412820
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x464738]
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0x218], eax
mov eax, dword [esi + 0x21c]
test eax, eax
push edi
jne 0x4128da
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.MSVCR71.dll_wcscpy]
push 0x458cbc
push edi
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x412740
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, ebp
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004127a0
mov ecx, dword [esp + 0x21c]
pop edi
xor ecx, ebp
pop esi
call fcn.00415ae8
mov esp, ebp
pop ebp
ret

Function at 0x412b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [0x464964]
test esi, esi
push edi
je 0x412b91
mov edi, dword [esp + 0xc]
mov ecx, 0x92
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, 1
pop esi
ret 4
push 0x458cd8
push 0x8e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412bef
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412bef
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x248
jne 0x412bef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x412bef
mov edi, dword [esp + 0xc]
mov esi, eax
mov ecx, 0x92
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [0x464964], eax
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x412c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [0x464960]
test esi, esi
push edi
je 0x412c21
mov edi, dword [esp + 0xc]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, 1
pop esi
ret 4
push 0x458cfc
push 0x8d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412c7d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412c7d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x44
jne 0x412c7d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x412c7d
mov edi, dword [esp + 0xc]
mov esi, eax
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [0x464960], eax
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x412c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x46495c]
test eax, eax
je 0x412ca7
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov eax, 1
ret 4
push esi
push edi
push str.DRMRESFILELIST
push 0x8c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412d0f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412d0f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x412d0f
add eax, 0xffffd7c0
xor edx, edx
mov ecx, 0x438
div ecx
test edx, edx
jne 0x412d0f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x412d0f
mov edx, dword [esp + 0xc]
mov dword [edx], eax
pop edi
mov dword [0x46495c], eax
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x412d20
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
push ebx
push esi
push edi
push str.DRMRESMOUDLE
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412dc6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412dc6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412dc6
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412dc6
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412dbf
cmp ebx, dword [esp + 0x10]
jne 0x412dbf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4132a0
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x464738]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x44c], eax
xor eax, eax
push eax
mov ecx, 0x8a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 2
xor ebx, ebx
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x41336d
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413366
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x413300
push str.mssyscheck.exe
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
je 0x413321
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413300
jmp 0x413366
xor eax, eax
mov word [esp + 0x240], 0
mov ecx, 0x81
lea edi, [esp + 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x240]
push str.mssyscheck.exe_found__erm_has_installed_drm_will_exit
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea ecx, [esp + 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00415ae8
mov esp, ebp
pop ebp
ret

Function at 0x413390
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x464738]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x44c], eax
xor eax, eax
push eax
mov ecx, 0x8a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 2
mov ebx, 1
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x41345c
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413455
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, edi
call edi
cmp dword [esp + 0x28], eax
je 0x413409
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4133f0
jmp 0x413455
mov edx, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x240], 0
mov ecx, 0x81
lea edi, [esp + 0x242]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x248]
push str._xxxx__Process_name__s__t_ID_d_is_readers_child_exsits
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
Function at 0x414ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push ebx
je 0x414be2
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x414be2
push esi
push 0x4596b4
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x414b14
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 8
push 1
push str.SIG_LIB_
call edi
push esi
push 4
push 1
push ebx
call edi
push esi
push 4
lea eax, [ebx + 4]
push 1
push eax
call edi
push esi
push 4
lea ebp, [ebx + 0xc]
push 1
push ebp
call edi
mov eax, dword [ebp]
add esp, 0x40
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x414bd1
xor ebp, ebp
lea ebx, [ebx]
mov ecx, dword [ebx + 0x10]
push esi
push 1
add ecx, ebp
push 1
push ecx
call edi
mov edx, dword [ebx + 0x10]
push esi
push 4
lea eax, [edx + ebp + 4]
push 1
push eax
call edi
mov ecx, dword [ebx + 0x10]
push esi
push 4
lea edx, [ecx + ebp + 8]
push 1
push edx
call edi
mov eax, dword [ebx + 0x10]
push esi
push 4
lea ecx, [eax + ebp + 0xc]
push 1
push ecx
call edi
mov edx, dword [ebx + 0x10]
add esp, 0x40
push esi
push 4
lea eax, [edx + ebp + 0x10]
push 1
push eax
call edi
mov ecx, dword [ebx + 0x10]
push esi
push 4
lea edx, [ecx + ebp + 0x14]
push 1
push edx
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0xc]
add esp, 0x20
inc eax
add ebp, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x414b60
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret
Function at 0x414ca0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x464738]
xor eax, esp
push ebx
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0xc]
push eax
push 8
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 5
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414da8
push 0x400
call sub.MFC71U.DLL_SerializeElements
mov esi, eax
add esp, 4
test esi, esi
je 0x414db9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x414dac
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x414dac
mov eax, dword [esi]
push edi
xor ebx, ebx
xor edi, edi
test eax, eax
jbe 0x414d9a
push ebp
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x414d94
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x414d68
mov edx, dword [esp + 0x10]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x414dac
mov ebx, 1
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x414dac
mov esi, dword [esp + 0x10]
test esi, esi
je 0x414db9
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00415ae8
add esp, 0x18
ret
Function at 0x414dd0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4546a9
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov dword [ebp], 0
call fcn.00414ca0
test eax, eax
jne 0x414e26
push str.CSvcCtl::RunOldDrv
push 0x45651c
call fcn.00405160
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x414e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSvcCtl::RunOldDrv_OpenSCManager___failed.___err:__d
push 0x45651c
call fcn.00405160
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x459910
push 0x45651c
call fcn.00405160
lea eax, [esp + 0x34]
push str.drv_
push eax
call fcn.004083f0
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x3c], 0
call fcn.00402f50
add esp, 0x24
push 0
push 0
push 0
push 0
push 0
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 1
push 3
push 2
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [esp + 0x28]
mov edi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test edi, edi
jne 0x414f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.CSvcCtl::RunOldDrv_CreateService_failed__err:_d
push 0x45651c
call fcn.00405160
add esp, 0xc
cmp edi, 0x431
jne 0x414f30
push esi
push 0x45986c
push 0x45651c
mov dword [ebp], 1
call fcn.00405160
add esp, 0xc
cmp dword [ebp], 0
je 0x414f7c
push esi
push 0x45982c
push 0x45651c
call fcn.00405160
add esp, 0xc
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x414f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSvcCtl::RunOldDrv_OpenService_failed__err:_d
push 0x45651c
call fcn.00405160
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
test ebx, ebx
je 0x414fb9
push esi
push 0x45978c
push 0x45651c
call fcn.00405160
add esp, 0xc
jmp 0x414fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x459740
push 0x45651c
call fcn.00405160
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
setne al
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x415000
Capabilities:
Delete file
Delete service

Disassembly:
call fcn.00414ca0
test eax, eax
jne 0x415020
push str.CSvcCtl::UnInstDelSvc
push 0x45651c
call fcn.00405160
add esp, 8
xor eax, eax
ret 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x415051
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSvcCtl::UnInstDelSvc_OpenSCManager___failed.___err:__d
push 0x45651c
call fcn.00405160
add esp, 0xc
xor eax, eax
ret 4
mov ecx, dword [esp + 4]
push esi
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x415088
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSvcCtl::UnInstDelSvc_OpenService_failed__err:_d
push 0x45651c
call fcn.00405160
add esp, 0xc
xor eax, eax
pop esi
ret 4
push ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4150b2
call ebp
push eax
push str.CSvcCtl::UnInstDelSvc_DeleteService_failed__err:_d
push 0x45651c
call fcn.00405160
add esp, 0xc
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [esp + 0x14]
push str.drv_sagefs4.sys
push edx
call fcn.004083f0
add esp, 8
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x14]
inc bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
pop ebx
je 0x415107
call ebp
push eax
push str.CSvcCtl::UnInstDelSvc_DeleteFile_failed___err:_d
push 0x45651c
call fcn.00405160
add esp, 0xc
mov eax, edi
pop edi
pop ebp
pop esi
ret 4
Function at 0x415850
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x459c28
call fcn.00415dec
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x415890
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415890
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4158a8
cmp eax, 0x20b
je 0x415895
mov dword [ebp - 0x1c], edi
jmp 0x4158bc
cmp dword [ecx + 0x84], 0xe
jbe 0x415890
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4158b6
cmp dword [ecx + 0x74], 0xe
jbe 0x415890
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x468524], 0xffffffff
or dword [0x468528], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x468154]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x468150]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x468520], eax
call fcn.00415e44
call fcn.00415ee4
cmp dword [0x464740], edi
jne 0x41591c
push fcn.00415ee4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00415ed2
push 0x46402c
push 0x464028
call sub.MSVCR71.dll__initterm
push 0x415e88
call fcn.00415b1c
mov eax, dword [0x46814c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x468148]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x415970
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x464024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41599a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x415a54
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x415a09
cmp ax, di
je 0x4159b0
cmp dword [ebp - 0x20], edi
jne 0x415a09
mov ax, word [esi]
cmp ax, di
je 0x4159c5
cmp ax, 0x20
ja 0x4159c5
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4159b0
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4159e1
movzx eax, word [ebp - 0x54]
jmp 0x4159e4
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004534c2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x415a01
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x415a4e
cmp ax, 0x22
jne 0x415a1a
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41599a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00415e27
ret
Function at 0x41e7e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
mov cl, byte [edi + 4]
mov byte [esp + 0x47], cl
mov ecx, dword [esp + 0x58]
mov edx, dword [edi]
mov al, byte [ecx]
xor ebx, ebx
xor ebp, ebp
cmp al, 0x80
mov dword [esp + 0x38], edx
mov word [esp + 0x44], bx
mov dword [esp + 0x4c], ebx
jae 0x41e81f
movzx eax, al
mov dword [esp + 0x1c], eax
mov esi, 1
jmp 0x41e833
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0041c900
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 8
cmp esi, eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
jae 0x41e92d
lea edx, [edi + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax + 4]
cmp ebx, ecx
jge 0x41e92d
mov edx, dword [esp + 0x58]
mov cl, byte [esi + edx]
cmp cl, 0x80
lea eax, [esi + edx]
jae 0x41e882
movzx ecx, cl
mov dword [esp + 0x20], ecx
mov eax, 1
jmp 0x41e894
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0041c900
mov ecx, dword [esp + 0x28]
add esp, 8
mov edx, dword [esp + 0x10]
add esi, eax
cmp edx, dword [esp + 0x54]
jb 0x41e8b7
cmp ecx, 0xc
jb 0x41e8ac
lea eax, [ecx - 0xc]
shr eax, 1
jmp 0x41e8b3
movzx eax, byte [ecx + 0x45a95c]
test eax, eax
jg 0x41e92d
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x60]
add edx, ecx
push edx
call fcn.0041e3f0
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp ebx, eax
mov dword [esp + 0x10], ecx
jge 0x41e8e6
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x41e8e8
xor eax, eax
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 8]
add ecx, edx
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00420380
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x41e92d
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, 4
add ecx, 0x28
inc ebx
cmp esi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jb 0x41e855
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41e942
lea eax, [esp + 0x28]
push eax
call fcn.0041f7a0
add esp, 4
test ebp, ebp
jne 0x41e978
mov al, byte [edi + 5]
test al, al
je 0x41e95a
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
add esp, 0x40
ret
mov al, byte [edi + 6]
test al, al
jne 0x41e98c
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x10], ecx
jae 0x41e98c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41e98c
cmp ebx, dword [edi + 8]
jge 0x41e98c
cmp byte [eax + ebx], 0
je 0x41e98c
neg ebp
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret