joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2e8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5779
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1014
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, 0x4d2ec0
push esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.004028fb
mov ecx, dword [esp + 0x18]
push esi
call fcn.004028fb
push 0x4f8ce0
lea ecx, [esp + 0x18]
call fcn.004029af
and dword [esp + 0x1030], 0
mov esi, 0x800
push esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040fff0
test eax, eax
jne 0x40f3c0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
xor eax, eax
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004028fb
push esi
lea eax, [esp + 0x820]
push 0
push eax
call fcn.00474a10
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push dword [edi + 0x138]
lea eax, [esp + 0x20]
push dword [esp + 0x18]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
lea eax, [esp + 0x1c]
je 0x40f437
push 0
push eax
call fcn.00402402
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x81c]
je 0x40f46a
push 0x400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d0b6
add esp, 0xc
jmp 0x40f47a
push str.safemon360tray.exe
push dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40f463
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, esi
jmp 0x40f39a
lea eax, [esp + 0x81c]
push str.1.0.0.1001
push 0x400
push eax
call fcn.0040243b
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401df2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x81c]
push eax
call fcn.004028fb
xor esi, esi
inc esi
jmp 0x40f450
Function at 0x40fd6b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b48bf
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1010
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x100c], eax
push esi
push edi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x800
push esi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00474a10
mov edi, dword [edi + 0x154]
add esp, 0xc
push str.i18ni18n.ini
push edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea eax, [esp + 0x818]
push 0
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x81c]
push eax
push 0x4d41bc
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x10]
call fcn.00402675
and dword [esp + 0x1028], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403cb4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 1
call fcn.0040c171
mov edi, dword [esp + 0x10]
mov esi, 0x4f5fb0
push edi
lea ecx, [esi + 4]
call fcn.0040ce35
test eax, eax
je 0x40feb1
add esi, 8
cmp esi, 0x4f5fc8
jl 0x40fe59
lea ecx, [edi - 0x10]
call fcn.004029d4
mov esi, 0x804
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, esi
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.004029d4
jmp 0x40fe7e
Function at 0x40fff0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0x818
mov eax, 0x4b37f2
call fcn.00475ac8
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
push 0x800
lea eax, [ebp - 0x814]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00474a10
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.0043934b
add esp, 0x14
test eax, eax
je 0x41006f
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
call fcn.0040243b
lea ecx, [ebp - 0x81c]
call fcn.004110a0
xor eax, eax
inc eax
call fcn.00475b4b
ret 4
mov eax, dword [esi + 0x14c]
push 1
push eax
push dword [esi + 0x114]
lea ecx, [ebp - 0x81c]
call fcn.0041105f
test eax, eax
jne 0x41010c
mov esi, dword [esi + 0x150]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x814]
push eax
push esi
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], edi
call fcn.00410ff0
test eax, eax
jne 0x410101
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410101
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410101
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
xor ebx, ebx
inc ebx
call fcn.0040243b
lea ecx, [ebp - 0x81c]
call fcn.004110a0
mov eax, ebx
jmp 0x410067
lea ecx, [ebp - 0x81c]
call fcn.004110a0
call fcn.0040ff78
test eax, eax
je 0x4100ef
push ebx
push 0x26
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4100ef
push str.360360Safe
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100ef
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4100d9
jmp 0x4100ef

Function at 0x410ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411059
cmp dword [ebp + 0x10], 1
je 0x411031
cmp dword [ebp + 0x10], 2
je 0x411031
push 0xd
pop eax
jmp 0x411059
mov eax, dword [ebp - 4]
test edi, edi
je 0x411053
test eax, eax
je 0x41104e
test al, 1
jne 0x41102c
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411053
jmp 0x41102c
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x41241a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesZhuDongFangYu
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412457
push str.DeleteFlag
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x41245c
Capabilities:
Continue service
Modify service
Persist via windows service
Query or enumerate registry value
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.LFlags
mov ebx, str.SOFTWARE360Safe360krnlsvc
xor edi, edi
push ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4124a7
mov byte [ebp - 8], 1
cmp dword [ebp - 0xc], edi
jne 0x4124ab
mov byte [ebp - 8], 0
xor edi, edi
inc edi
push edi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push str.ForceExitService::OpenSCManager_Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.004125ec
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4125e4
push 0x30130
push str.ZhuDongFangYu
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push str.ForceExitService::OpenService_ZhuDongFangYu__Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.004125ec
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4125db
call fcn.0041241a
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.CFlags
push ebx
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
call edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.EFlags
push ebx
push esi
mov dword [ebp - 0x10], 1
call edi
and dword [ebp - 0x10], 0
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.RFlags
push ebx
push esi
call edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.Start
push str.SYSTEMCurrentControlSetServicesZhuDongFangYu
push esi
mov dword [ebp - 0x10], 3
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push str.ForceExitService::ControlService___Ret:_d_Error:_d
push dword [ebp - 8]
call fcn.004125ec
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4125d2
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4125ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x4126b3
push edi
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, 0x200
lea edi, [ebp - 0x814]
call fcn.00415aea
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x416], ax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x4126b3
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe
lea eax, [ebp - 0x414]
push eax
call esi
push str.Zhudongfangyu.log
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004126bf
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a8a
leave
ret

Function at 0x4126bf
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x4127b5
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41270e
push esi
jmp 0x4127ae
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
jl 0x41273b
jg 0x412727
cmp dword [ebp - 0x14], 0x100000
jbe 0x41273b
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xffffffff
je 0x4127ab
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4127ab
inc eax
push eax
call fcn.0047438e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4127ab
push ebx
push ebx
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov byte [eax + edi], bl
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00475e30
pop ecx
inc eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004760d4
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41293e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e2a98
push 0x476500
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa30], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa2c], eax
xor edi, edi
cmp eax, edi
je 0x412a97
push eax
call fcn.004754ae
pop ecx
cmp eax, 0x104
ja 0x412a97
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4129d3
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.00474a10
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.00474a10
add esp, 0x18
lea eax, [ebp - 0xa28]
push eax
push esi
lea eax, [ebp - 0x2a30]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x412a97
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.004749c2
lea eax, [ebp - 0x224]
push eax
call fcn.00474fb6
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x412a97
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.00412e6e
test eax, eax
je 0x412a8e
lea eax, [ebp - 0xa24]
push eax
call fcn.00474fb6
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00474b7e
add esp, 0xc
test eax, eax
jne 0x412a8e
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x1c]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x412a47
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00474a8a
leave
ret 8
Function at 0x412ddd
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412e38
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x412e3f
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412e6a
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x413360
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4e5858
push 0x476500
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f2be0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x80c]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 0x814]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x824]
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
test edi, edi
je 0x413545
cmp word [edi], 0
je 0x413545
push edi
call fcn.004754ae
pop ecx
cmp eax, 0x104
ja 0x413545
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413545
test ebx, ebx
mov eax, ebx
jne 0x41340a
mov eax, 0x4d2ec0
push eax
push edi
push dword [0x4f6b98]
mov ebx, str._sRun_App__s__s
push ebx
call fcn.00414817
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.00474a10
push edi
push 0x4d4d40
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415a65
push 0x3c
pop edi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00474a10
add esp, 0x38
mov dword [ebp - 0x68], edi
lea eax, [ebp]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], str.open
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], 0x440
cmp dword [ebp + 0x81c], esi
je 0x41349a
push esi
push dword [ebp - 0x24]
call fcn.00402402
pop ecx
pop ecx
test eax, eax
je 0x413545
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x820], esi
je 0x4134dd
cmp eax, esi
je 0x4134dd
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4134dd
cmp dword [ebp + 0x82c], esi
je 0x4134dd
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x28], esi
je 0x4134f3
cmp dword [ebp - 0x1c], esi
je 0x413501
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x413501
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x41350a
mov edi, 0x4d2ec0
push edi
push dword [ebp - 0x24]
push dword [0x4f6b9c]
push ebx
mov esi, dword [ebp - 0x20]
call fcn.00414817
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x41354e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x804
leave
ret 0x24
Function at 0x413573
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x18
mov eax, 0x4b34a3
call fcn.00475a92
mov ecx, dword [ebp + 0x818]
mov eax, dword [ebp + 0x814]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x81c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413745
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x413734
lea edi, [ebp - 0x14]
call fcn.00414fbb
cmp eax, ebx
jl 0x413734
mov eax, edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004155f5
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
cmp al, bl
je 0x413621
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x413734
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x413734
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x413632
push 0x80004003
call fcn.004744a0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x41360b
cmp dword [ebp - 0x20], ebx
je 0x413658
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413628
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x41360b
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413628
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x41360b
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00474a10
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.004749c2
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x820], ebx
jle 0x4136b6
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413628
push dword [ebp + 0x820]
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413628
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x41360b
cmp esi, ebx
je 0x413628
mov eax, dword [esi]
push edi
push dword [ebp - 0x24]
push esi
call dword [eax + 0x18]
test eax, eax
jge 0x4136f1
mov byte [ebp - 4], bl
jmp 0x413616
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [esi]
push esi
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413711
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x413747
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413745
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x804
leave
ret 0x18
Function at 0x41376c
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0
mov eax, 0x4afbb5
call fcn.00475a5f
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x4137ac
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x4137ac
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402675
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4137b6
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004029d4
xor eax, eax
call fcn.00475b37
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, pe_nt_image_headers32
cmp dword [eax - 0xc], edi
jl 0x4137c8
lea ecx, [eax - 0x10]
jmp 0x4137a7
push 0x2a8
push ebx
push esi
call fcn.00474a10
push edi
push dword [ebp + 0xc]
push esi
call fcn.004749c2
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add esp, 0x18
push dword [ebp + 0xc]
push edi
call dword [eax + 0x3c]
mov dword [esi + 0x208], eax
cmp eax, ebx
je 0x413821
mov eax, dword [edi]
lea ecx, [esi + 0x28c]
push ecx
lea ecx, [esi + 0x288]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x44]
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x218]
call fcn.0040d457
mov edi, dword [ebp + 8]
jmp 0x413847
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x413847
push dword [edi + 8]
lea ecx, [esi + 0x218]
push 0x14
push ecx
push ebx
push 0x4d4da0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push 0x28
lea ecx, [esi + 0x238]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x40]
lea eax, [ebp + 0xc]
push eax
call fcn.0040d527
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
call fcn.004029d4
xor eax, eax
inc eax
jmp 0x4137ae

Function at 0x413980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4139e2
mov word [ebx], ax
test esi, esi
jne 0x4139a9
xor eax, eax
jmp 0x4139e2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4139a5
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00474a10
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040d357
add esp, 0x14
test eax, eax
je 0x4139a5
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040d406
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
leave
ret 0x10