joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3f0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00475410
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x40d4a9
test ebx, ebx
je 0x40d4a9
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d4a9
cmp eax, 0x3fff
ja 0x40d4a9
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d4a9
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d2f50
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d4a9
push 0x28
push 0
push ebx
call fcn.00475410
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x13
push ebx
call fcn.00477b50
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d4ab
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x3f90
leave
ret
Function at 0x40edf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5408
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push str.Setup_Application
lea ecx, [esp + 0x10]
call fcn.004029a8
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.00411ca4
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40ee55
call fcn.00402a41
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40ee75
cmp dword [esp + 0x18], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x40ee99
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402af9
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.MainApp
lea ecx, [esp + 0x14]
call fcn.004029a8
push ebx
lea ecx, [esi + 0x134]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.004112c7
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40eed0
call fcn.00402a41
push str.VersionBaseFile
lea ecx, [esp + 0x14]
call fcn.004029a8
push ebx
add esi, 0x138
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.004112c7
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ef06
call fcn.00402a41
mov dword [esp + 0x10], ebx
xor ebx, ebx
inc ebx
jmp 0x40ee75
Function at 0x40f283
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6179
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1014
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
mov eax, dword [0x4f3bd0]
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, 0x4d3230
push esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402894
mov ecx, dword [esp + 0x18]
push esi
call fcn.00402894
push 0x4f9e00
lea ecx, [esp + 0x18]
call fcn.0040293e
and dword [esp + 0x1030], 0
mov esi, 0x800
push esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00475410
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040fff4
test eax, eax
jne 0x40f35b
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402963
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.0047548a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402894
push esi
lea eax, [esp + 0x820]
push 0
push eax
call fcn.00475410
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 0x40f3d2
push 0
push eax
call fcn.0040239b
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x81c]
je 0x40f405
push 0x400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d04f
add esp, 0xc
jmp 0x40f415
push str.safemon360tray.exe
push dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40f3fe
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402963
mov eax, esi
jmp 0x40f335
lea eax, [esp + 0x81c]
push str.1.0.0.1001
push 0x400
push eax
call fcn.004023d4
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.00402894
xor esi, esi
inc esi
jmp 0x40f3eb
Function at 0x40fd6f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5250
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1010
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x100c], eax
push esi
push edi
mov eax, dword [0x4f3bd0]
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.00475410
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.00475410
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x81c]
push eax
push 0x4d452c
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.0040260e
and dword [esp + 0x1028], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403c36
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 1
call fcn.0040c12e
mov edi, dword [esp + 0x10]
mov esi, 0x4f6fa0
push edi
lea ecx, [esi + 4]
call fcn.0040cdce
test eax, eax
je 0x40feb5
add esi, 8
cmp esi, 0x4f6fb8
jl 0x40fe5d
lea ecx, [edi - 0x10]
call fcn.00402963
mov esi, 0x804
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00402963
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.0047548a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.00402963
jmp 0x40fe82
Function at 0x40fff4
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0x818
mov eax, 0x4b418f
call fcn.00476519
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.00475410
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.004395fb
add esp, 0x14
test eax, eax
je 0x410073
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
call fcn.004023d4
lea ecx, [ebp - 0x81c]
call fcn.00411010
xor eax, eax
inc eax
call fcn.0047659c
ret 4
mov eax, dword [esi + 0x14c]
push 1
push eax
push dword [esi + 0x114]
lea ecx, [ebp - 0x81c]
call fcn.00410fcf
test eax, eax
jne 0x410110
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.00410f60
test eax, eax
jne 0x410105
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410105
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410105
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
xor ebx, ebx
inc ebx
call fcn.004023d4
lea ecx, [ebp - 0x81c]
call fcn.00411010
mov eax, ebx
jmp 0x41006b
lea ecx, [ebp - 0x81c]
call fcn.00411010
call fcn.0040ff7c
test eax, eax
je 0x4100f3
push ebx
push 0x26
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4100f3
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 0x4100f3
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4100dd
jmp 0x4100f3

Function at 0x410f60
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 0x410fc9
cmp dword [ebp + 0x10], 1
je 0x410fa1
cmp dword [ebp + 0x10], 2
je 0x410fa1
push 0xd
pop eax
jmp 0x410fc9
mov eax, dword [ebp - 4]
test edi, edi
je 0x410fc3
test eax, eax
je 0x410fbe
test al, 1
jne 0x410f9c
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x410fc3
jmp 0x410f9c
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 0x41238a
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 0x4123c7
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 0x41241a
Capabilities:
Continue service
Modify service
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov ecx, ebx
mov dword [ebp - 0xc], edi
call fcn.0041273f
push 1
push edi
push edi
mov byte [ebp - 0x10], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call esi
push eax
push dword [ebp - 8]
push str.ForceExitService::OpenSCManager_Handle:_x_Error:_d_r_n
push dword [ebp - 0x10]
push ebx
call fcn.0041256e
add esp, 0x14
cmp dword [ebp - 8], edi
je 0x412538
push 0x30130
push str.ZhuDongFangYu
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call esi
push eax
push dword [ebp - 4]
push str.ForceExitService::OpenService_ZhuDongFangYu__Handle:_x_Error:_d_r_n
push dword [ebp - 0x10]
push ebx
call fcn.0041256e
add esp, 0x14
cmp dword [ebp - 4], edi
je 0x41252f
call fcn.0041238a
push 1
mov ecx, ebx
call fcn.0041253f
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push str.EFlags
push str.SOFTWARE360Safe360krnlsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
mov ecx, ebx
call fcn.004123cc
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 3
mov ecx, ebx
call fcn.004123f6
lea eax, [ebp - 0x2c]
push eax
push 0x8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0xc], eax
call esi
push eax
push dword [ebp - 0xc]
push str.ForceExitService::ControlService___Ret:_d_Error:_d
push dword [ebp - 0x10]
push ebx
call fcn.0041256e
add esp, 0x14
cmp dword [ebp - 0xc], edi
jne 0x412526
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x41256e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
je 0x412637
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x814]
push 0x200
push eax
call fcn.00415ab4
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.00475410
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x412637
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
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00412643
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret

Function at 0x412643
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 0x412739
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 0x412692
push esi
jmp 0x412732
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
jl 0x4126bf
jg 0x4126ab
cmp dword [ebp - 0x14], 0x100000
jbe 0x4126bf
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 0x41272f
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 0x41272f
inc eax
push eax
call fcn.00474d33
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41272f
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.00476880
pop ecx
inc eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00476b24
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412909
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e2dd8
push 0x476f70
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.00476b30
mov eax, dword [0x4f3bd0]
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 0x412a62
push eax
call fcn.00475eae
pop ecx
cmp eax, 0x104
ja 0x412a62
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41299e
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.00475410
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.00475410
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 0x412a62
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.004753b9
lea eax, [ebp - 0x224]
push eax
call fcn.004759b6
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x412a62
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.00412e3e
test eax, eax
je 0x412a59
lea eax, [ebp - 0xa24]
push eax
call fcn.004759b6
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047557e
add esp, 0xc
test eax, eax
jne 0x412a59
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x1c]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x412a12
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.0047548a
leave
ret 8
Function at 0x412dad
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 0x412e08
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 0x412e0f
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 0x412e3a
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 0x413330
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4e5bf0
push 0x476f70
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f3bd0]
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 0x413515
cmp word [edi], 0
je 0x413515
push edi
call fcn.00475eae
pop ecx
cmp eax, 0x104
ja 0x413515
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413515
test ebx, ebx
mov eax, ebx
jne 0x4133da
mov eax, 0x4d3230
push eax
push edi
push dword [0x4f7cb8]
mov ebx, str._sRun_App__s__s
push ebx
call fcn.004147e7
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.00475410
push edi
push 0x4d50d0
push 0x3ff
lea eax, [ebp]
push eax
call fcn.004159f8
push 0x3c
pop edi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00475410
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 0x41346a
push esi
push dword [ebp - 0x24]
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x413515
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x820], esi
je 0x4134ad
cmp eax, esi
je 0x4134ad
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4134ad
cmp dword [ebp + 0x82c], esi
je 0x4134ad
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 0x4134c3
cmp dword [ebp - 0x1c], esi
je 0x4134d1
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x4134d1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x4134da
mov edi, 0x4d3230
push edi
push dword [ebp - 0x24]
push dword [0x4f7cbc]
push ebx
mov esi, dword [ebp - 0x20]
call fcn.004147e7
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x41351e
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.0047548a
add ebp, 0x804
leave
ret 0x24
Function at 0x413543
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x18
mov eax, 0x4b3e83
call fcn.004764e3
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 0x413715
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 0x413704
lea edi, [ebp - 0x14]
call fcn.00414f88
cmp eax, ebx
jl 0x413704
mov eax, edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00415588
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
cmp al, bl
je 0x4135f1
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x413704
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x413704
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x413602
push 0x80004003
call fcn.00474e40
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x4135db
cmp dword [ebp - 0x20], ebx
je 0x413628
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f8
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x4135db
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f8
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x4135db
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475410
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.004753b9
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x820], ebx
jle 0x413686
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f8
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 0x4135f8
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x4135db
cmp esi, ebx
je 0x4135f8
mov eax, dword [esi]
push edi
push dword [ebp - 0x24]
push esi
call dword [eax + 0x18]
test eax, eax
jge 0x4136c1
mov byte [ebp - 4], bl
jmp 0x4135e6
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 0x4136e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x413717
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413715
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.0047548a
add ebp, 0x804
leave
ret 0x18