joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push str.UninstCommandClass::UninstallService_n
mov dword [esp + 0x18], esi
call fcn.00403da0
add esp, 4
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x4054e3
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x4054ba
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x405474
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
sub ebx, 1
cmp dword [esp + 0x20], 1
je 0x405445
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x40543e
test ebx, ebx
jne 0x405420
cmp dword [esp + 0x20], 1
jne 0x40544e
push 0x3e8
call edi
jmp 0x40546f
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.00401000
push eax
push str.Error:
push ebx
call fcn.00401660
add esp, 0x10
mov ebx, dword [esp + 0x14]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40549f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x40549f
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x4054cf
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00401720
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x4074a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x350
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebp
mov ebp, dword [esp + 0x358]
push esi
push edi
push str.UninstCommandClass::GetProcessId_n
mov edi, ecx
call fcn.00403da0
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.0040b8b0
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407588
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407581
push 0x220
lea edx, [esp + 0x13c]
push 0
push edx
mov dword [esp + 0x140], 0
call fcn.0040b8b0
add esp, 0xc
jmp 0x407540
mov ecx, dword [esp + 0x14]
push 0x224
lea eax, [esp + 0x138]
push eax
push ecx
mov ecx, edi
call fcn.004073f0
test eax, eax
je 0x407572
lea edx, [esp + 0x154]
push edx
push ebp
call fcn.0040b7cc
add esp, 8
test eax, eax
je 0x4075a4
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407540
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040bc62
add esp, 0x350
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x40758a

Function at 0x4075c0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push str.UninstCommandClass::KillApp_n
mov esi, ecx
call fcn.00403da0
mov edi, dword [esp + 0x10]
add esp, 4
push edi
mov ecx, esi
call fcn.004074a0
test eax, eax
je 0x407605
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.004075c0
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x407c80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x10c]
push edi
push str.UninstCommandClass::IsNvDisplayInf_n
call fcn.00403da0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
push esi
push 0x80
lea eax, [esp + 0x10]
push eax
push str._error_
push str.Class
push str.Version
call edi
push esi
push 0x80
lea ecx, [esp + 0x90]
push ecx
push str._error_
push 0x41e834
push str.Version
call edi
lea edx, [esp + 8]
push str.Display
push edx
call fcn.0040b7cc
add esp, 8
test eax, eax
pop edi
pop esi
jne 0x407d38
lea eax, [esp + 0x80]
push str._NVidia_
push eax
call fcn.0040b7cc
add esp, 8
test eax, eax
jne 0x407d38
mov eax, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040bc62
add esp, 0x104
ret 4
mov ecx, dword [esp + 0x100]
xor ecx, esp
xor eax, eax
call fcn.0040bc62
add esp, 0x104
ret 4
Function at 0x407d60
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x134
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
mov ebp, dword [esp + 0x144]
push esi
push edi
mov edi, dword [esp + 0x148]
push str.UninstCommandClass::IsGreater_n
mov dword [esp + 0x18], ebp
call fcn.00403da0
xor ebx, ebx
add esp, 4
push 0x104
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x407e51
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x407e3d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407e3d
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0x41cd2c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407e3d
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0xc]
mov dword [esp + 0x18], ecx
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
mov dword [esp + 0x24], edx
movzx edx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebp, dword [esp + 0x14]
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x407ed3
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x407ec5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407ec5
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x41cd2c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ec5
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xc]
mov dword [esp + 0x10], ecx
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
mov dword [esp + 0x20], edx
movzx edx, word [eax + 0xa]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
pop edi
pop esi
pop ebp
pop ebx
je 0x407efe
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040bc62
add esp, 0x134
ret 8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x407ee3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x407ee3
mov eax, dword [esp + 8]
mov ecx, dword [esp]
cmp ecx, eax
jne 0x407ee3
mov ecx, dword [esp + 0x130]
xor ecx, esp
xor eax, eax
call fcn.0040bc62
add esp, 0x134
ret 8
Function at 0x407f90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 8
push edi
push str.ConnectToNamespace_n
call fcn.00403da0
add esp, 4
lea eax, [esp + 4]
push eax
push 0x421070
xor edi, edi
push 1
push edi
push 0x421140
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
je 0x407fce
xor eax, eax
pop edi
add esp, 8
ret
push ebp
push 0xffffffffffffffff
push str.RootWMI
call fcn.00407f40
add esp, 8
mov ebp, eax
push ebp
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40803b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
je 0x40802e
cmp esi, 0x8007041f
jne 0x40802e
push 0x3e8
call ebx
add edi, 1
cmp edi, 0x1e
jl 0x407ff3
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
pop esi
pop ebx
je 0x40804f
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebp
xor eax, eax
pop edi
add esp, 8
ret
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x40808c
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebp
xor eax, eax
pop edi
add esp, 8
ret
mov eax, dword [esp + 0xc]
pop ebp
pop edi
add esp, 8
ret
Function at 0x40a400
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
mov edi, ecx
mov eax, esi
jne 0x40a413
mov eax, str.NULL
push eax
push str.UninstCommandClass::NvDeleteFile__s__n
call fcn.00403da0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push esi
jne 0x40a464
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
jne 0x40a450
push str.Directory_deleted_n
call fcn.00403da0
add esp, 4
pop edi
mov eax, 1
pop esi
ret 4
push str.Failure_deleting_directory_n
call fcn.00403da0
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, edi
call fcn.00404560
test al, al
je 0x40a45d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push esi
jne 0x40a4b7
push str.File___s__queued_for_delete_at_reboot_n
call fcn.00403da0
push esi
call fcn.0040d0e5
mov dword [esp + 0x18], eax
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov ecx, 0x42aa3c
call fcn.0040a3c0
pop edi
mov eax, 1
pop esi
ret 4
push str.File___s__deleted_n
call fcn.00403da0
add esp, 8
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x40bc62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4253c0]
jne 0x40bc6c
repz ret
jmp fcn.00410e37
Function at 0x413447
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x425f88]
je 0x413462
inc edi
cmp edi, 0x17
jb 0x413453
cmp edi, 0x17
jae 0x4135e2
push ebp
push 3
call fcn.0041a19f
cmp eax, 1
pop ecx
je 0x4135ae
push 3
call fcn.0041a19f
test eax, eax
pop ecx
jne 0x413496
cmp dword [0x4253e0], 1
je 0x4135ae
cmp ebx, 0xfc
je 0x4135e1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42b0b8
push ebp
call fcn.0040d741
add esp, 0xc
test eax, eax
je 0x4134cc
push esi
push esi
push esi
push esi
push esi
call fcn.0040ef58
add esp, 0x14
push 0x104
mov esi, 0x42b0d1
push esi
push 0
mov byte [0x42b1d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413510
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040d741
add esp, 0xc
test eax, eax
je 0x413510
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040ef58
add esp, 0x14
push esi
call fcn.0040f2b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413555
push esi
call fcn.0040f2b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42b3cc
push 0x4219bc
sub ecx, eax
push ecx
push eax
call fcn.00416f9d
add esp, 0x14
test eax, eax
je 0x413555
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040ef58
add esp, 0x14
jmp 0x413557
xor esi, esi
push 0x4219b8
push ebx
push ebp
call fcn.0041134f
add esp, 0xc
test eax, eax
je 0x413577
push esi
push esi
push esi
push esi
push esi
call fcn.0040ef58
add esp, 0x14
push dword [edi*8 + 0x425f8c]
push ebx
push ebp
call fcn.0041134f
add esp, 0xc
test eax, eax
je 0x413599
push esi
push esi
push esi
push esi
push esi
call fcn.0040ef58
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00419fe2
add esp, 0xc
jmp 0x4135e1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4135e1
cmp ebp, 0xffffffff
je 0x4135e1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x425f8c]
push dword [esi]
call fcn.0040f2b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x419fe2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e98f
xor ebx, ebx
cmp dword [0x42b524], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41a0b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
cmp edi, ebx
je 0x41a198
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x42242c
push edi
call esi
cmp eax, ebx
je 0x41a198
push eax
call fcn.0040e921
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b524], eax
call esi
push eax
call fcn.0040e921
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b528], eax
call esi
push eax
call fcn.0040e921
mov dword [0x42b52c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c29f
test eax, eax
pop ecx
pop ecx
je 0x41a086
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ef58
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41a0b8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e921
cmp eax, ebx
pop ecx
mov dword [0x42b534], eax
je 0x41a0b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e921
pop ecx
mov dword [0x42b530], eax
mov eax, dword [0x42b530]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41a13d
cmp dword [0x42b534], ecx
je 0x41a13d
push eax
call fcn.0040e998
push dword [0x42b534]
mov esi, eax
call fcn.0040e998
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41a13d
cmp edi, ebx
je 0x41a13d
call esi
cmp eax, ebx
je 0x41a10a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a10a
test byte [ebp - 0x18], 1
jne 0x41a13d
lea eax, [ebp - 0x10]
push eax
call fcn.0040c2d6
test eax, eax
pop ecx
je 0x41a125
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ef58
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41a134
or dword [ebp + 0x10], 0x200000
jmp 0x41a178
or dword [ebp + 0x10], 0x40000
jmp 0x41a178
mov eax, dword [0x42b528]
cmp eax, dword [ebp - 8]
je 0x41a178
push eax
call fcn.0040e998
cmp eax, ebx
pop ecx
je 0x41a178
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41a178
mov eax, dword [0x42b52c]
cmp eax, dword [ebp - 8]
je 0x41a178
push eax
call fcn.0040e998
cmp eax, ebx
pop ecx
je 0x41a178
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b524]
call fcn.0040e998
cmp eax, ebx
pop ecx
je 0x41a198
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a19a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47b000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1bde4ed
nop
push 0x47b024
pop edi
nop
push 0x598
pop edx
push dword [edx + edi]
xor dword [esp], eax
pop dword [edx + edi]
nop
sub edx, 2
sub edx, 2
nop
jne 0x47b013
nop
nop
add eax, 0xed01bc99
in al, 0xbd
add ebp, ebp
in al, 0xfd
add dword [0xcd01bd3a], eax
invalid
Function at 0x100045c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x10030180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str..wad]
mov cx, word [0x1002bf80]
push ebx
push 0x80
lea edx, [ebp - 0x84]
push edx
mov dword [0x105ab570], eax
mov eax, dword [0x10031b60]
push 0x66
push eax
mov word [0x105ab574], cx
call dword [sym.imp.USER32.dll_LoadStringA]
mov cl, byte [ebp + eax - 0x85]
xor ebx, ebx
cmp byte [ebp - 0x84], bl
je 0x1000462b
lea eax, [ebp - 0x84]
lea ecx, [ecx]
cmp byte [eax], cl
jne 0x10004626
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x10004620
push 0x58
lea ecx, [ebp - 0xe0]
push ebx
push ecx
call fcn.1000cdc0
mov edx, dword [0x1063e24c]
add esp, 0xc
lea ecx, [ebp - 0xe0]
lea eax, [ebp - 0x84]
push ecx
mov dword [ebp - 0xe0], 0x58
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 0x105ab570
mov dword [ebp - 0xc0], 0x80
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], str.DOOM
mov dword [ebp - 0xac], 2
mov dword [ebp - 0xb0], str.New_WAD_File
mov dword [ebp - 0xa4], 0x1002bf60
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x1000475f
mov eax, dword [ebp - 0xc4]
mov edx, 0x10031b80
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x100046d3
push esi
push edi
push ebx
push 0x80000020
push 1
push ebx
push 1
push 0x40000000
push 0x10031b80
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x88], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 0x1050f0d8
push 4
push str.PWAD
push esi
call edi
push ebx
push 0x1050f0d8
push 4
lea edx, [ebp - 0x88]
push edx
push esi
call edi
push ebx
push 0x1050f0d8
push 4
lea eax, [ebp - 0x88]
push eax
push esi
mov dword [ebp - 0x88], 0xc
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x10031db0], ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000cdb1
mov esp, ebp
pop ebp
ret
Function at 0x100048f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10030180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.C:MSDEVProjectsInfiniDoomRelease_temp.wad
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
push 0x52
lea eax, [ebp - 0x5e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.1000cdc0
mov eax, dword [ebp + 8]
mov ecx, dword [0x10031db0]
add eax, 0xc
add esp, 0xc
mov edi, ecx
cmp ecx, eax
jl 0x1000493e
mov edi, eax
push 0
push 0x80000020
push 3
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x10156d38
push 4
lea edx, [ebp - 0xc]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x90], esi
call ebx
mov byte [ebp - 8], 0
mov ecx, str.IWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100049a7
test dl, dl
je 0x100049a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100049a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004987
xor eax, eax
jmp 0x100049ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100049e1
mov ecx, str.PWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100049d8
test dl, dl
je 0x100049d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100049d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x100049b8
xor eax, eax
jmp 0x100049dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10004a52
push 0
push 0x10156d38
push 4
lea eax, [ebp - 0x98]
push eax
push esi
call ebx
push 0
push 0x10156d38
push 4
lea ecx, [ebp - 0x94]
push ecx
push esi
call ebx
mov edx, dword [ebp - 0x94]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
cmp eax, edi
jge 0x10004a52
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [eax + eax*2]
add esi, esi
add esi, esi
add esi, esi
sub edi, eax
mov eax, dword [0x1050f0e0]
mov edx, dword [ebp - 0x90]
push 0
push 0x1050f0d8
push 0x10
lea ecx, [esi + eax]
push ecx
push edx
call ebx
add esi, 0x18
dec edi
jne 0x10004a31
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb1
mov esp, ebp
pop ebp
ret
Function at 0x1000cdb1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10030180]
jne 0x1000cdbb
repz ret
jmp fcn.1000d8e6

Function at 0x10017d9c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10030180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10010ed6
and dword [ebp - 0x14], 0
cmp dword [0x108421e8], 0
mov dword [ebp - 0x18], eax
jne 0x10017e4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10017ef7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10017ef7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x108421e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x108421ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x108421f0], eax
call edi
push eax
call esi
mov dword [0x108421f8], eax
test eax, eax
je 0x10017e4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x108421f4], eax
mov eax, dword [0x108421f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10017ea8
cmp dword [0x108421f8], ecx
je 0x10017ea8
push eax
call esi
push dword [0x108421f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10017ea8
test ebx, ebx
je 0x10017ea8
call edi
test eax, eax
je 0x10017e9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10017e9f
test byte [ebp - 8], 1
jne 0x10017ea8
or dword [ebp + 0x10], 0x200000
jmp 0x10017edb
mov eax, dword [0x108421ec]
cmp eax, dword [ebp - 0x18]
je 0x10017edb
push eax
call esi
test eax, eax
je 0x10017edb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10017edb
mov eax, dword [0x108421f0]
cmp eax, dword [ebp - 0x18]
je 0x10017edb
push eax
call esi
test eax, eax
je 0x10017edb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x108421e8]
call esi
test eax, eax
je 0x10017ef7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10017ef9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb1
leave
ret
Function at 0x5e9335
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e9350
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ae575]
pop edx
test eax, eax
je 0x5e9422
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e9411
test dword [ebp - 0x2a8], 1
jne 0x5e9411
and dword [ebp - 0x2a8], 0x100
jne 0x5e9411
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3dca]
pop edx
pop esi
test eax, eax
je 0x5e93b4
jmp 0x5e9411
cmp word [esi], 0x5a4d
jne 0x5e9411
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e9411
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3c2a]
pop edx
test eax, eax
je 0x5e9411
lea eax, [ebp - 0x28c]
push eax
call fcn.005e9291
test eax, eax
jne 0x5e940a
jmp 0x5e9411
mov eax, esi
jmp 0x5e9422
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e9350
pop esi
leave
ret 4