joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b842
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x47d640]
cmp eax, 5
push esi
jne 0x40b968
mov eax, dword [0x47d644]
test eax, eax
jne 0x40b8ac
cmp byte [0x47d6f2], 1
mov ecx, 0x47d654
jne 0x40b88a
push str.Windows_2000_Professional
jmp 0x40b8cd
mov al, byte [0x47d6f0]
test al, al
jns 0x40b89a
push str.Windows_2000_Datacenter_Server
jmp 0x40b8cd
test al, 2
je 0x40b8a5
push str.Windows_2000_Advanced_Server
jmp 0x40b8cd
push str.Windows_2000_Server
jmp 0x40b8cd
cmp eax, 1
jne 0x40b8d7
test word [0x47d6f0], 0x200
mov ecx, 0x47d654
je 0x40b8c8
push str.Windows_XP_Home_Edition
jmp 0x40b8cd
push str.Windows_XP_Professional
call fcn.0040135e
jmp 0x40b9d8
cmp eax, 2
jne 0x40b9d8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40b8f3
push str.Windows_Server_2003_R2
jmp 0x40b90a
test word [0x47d6f0], 0x2000
je 0x40b905
push str.Windows_Storage_Server_2003
jmp 0x40b90a
push str.Windows_Server_2003
mov esi, 0x47d654
mov ecx, esi
call fcn.0040135e
cmp byte [0x47d6f2], 1
je 0x40b9d8
mov eax, dword [0x47d6f0]
test ax, 0x4000
je 0x40b935
push str._Compute_Cluster_Edition
jmp 0x40b93e
test al, al
jns 0x40b942
push str._Datacenter_Edition
mov ecx, esi
jmp 0x40b961
test al, 2
mov ecx, esi
je 0x40b94f
push str._Enterprise_Edition
jmp 0x40b961
test ax, 0x400
je 0x40b95c
push str._Web_Edition
jmp 0x40b961
push str._Standard_Edition
call fcn.004016e3
jmp 0x40b9d8
cmp eax, 6
jb 0x40b9d8
push edi
lea eax, [ebp - 0x7c]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b9d7
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00435440
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push 0x45ef10
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b9ce
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x47d654
call fcn.0040135e
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop esi
call fcn.0043526a
add ebp, 0x90
leave
ret

Function at 0x40b9ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x102
push esi
push esi
push esi
push str.SOFTWARERuijie_NetworksRuijie_Supplicant
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x40ba25
add eax, 0x3e8
jmp 0x40ba57
push edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.IsSilent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x40ba54
lea eax, [edi + 0x3e8]
jmp 0x40ba56
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40ba5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.SOFTWARERuijie_NetworksRuijie_Supplicant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ba89
add eax, 0x3e8
leave
ret
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push str.IsSilent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40bac1
lea eax, [edi + 0x3e8]
jmp 0x40bac3
xor eax, eax
pop edi
leave
ret

Function at 0x40c0f6
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x454cc2
call fcn.0043bb65
xor esi, esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
cmp dword [edi - 0xc], esi
je 0x40c195
push 0x45e28f
lea ecx, [ebp - 0x10]
call fcn.004017bc
push esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call ebx
test eax, eax
jne 0x40c185
lea esi, [ebp + 8]
call fcn.00407f31
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00407f8e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004056ef
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401212
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40c170
lea ecx, [eax - 0x10]
jmp 0x40c190
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040118e
call fcn.0040c0f6
pop ecx
push 0
push edi
call ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401212
lea ecx, [edi - 0x10]
call fcn.00401212
call fcn.0043bc3d
ret

Function at 0x40c1a3
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x455408
call fcn.0043bb65
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040118e
call fcn.0040c0f6
mov edi, dword [ebp + 8]
pop ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c1e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c1e8
xor esi, esi
inc esi
lea ecx, [edi - 0x10]
call fcn.00401212
mov eax, esi
call fcn.0043bc3d
ret
Function at 0x40c1f8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40c214
xor eax, eax
jmp 0x40c2fb
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x40c20d
call fcn.00407f31
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push eax
push ecx
mov ecx, esi
call fcn.00407f8e
call fcn.0040c1a3
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
add eax, 2
push eax
call fcn.00418f75
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40c20d
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, 2
push eax
call fcn.00418f75
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x40c271
push dword [ebp - 4]
call fcn.00418f70
xor eax, eax
jmp 0x40c2fa
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
push 2
pop ebx
add eax, ebx
push eax
push 0
push dword [ebp - 4]
call fcn.00435440
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
push edi
add eax, ebx
push eax
push dword [ebp - 4]
call fcn.00435205
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
mov edi, dword [ebp - 8]
add eax, ebx
push eax
push 0
push edi
call fcn.00435440
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push esi
add eax, ebx
push eax
push edi
call fcn.00435205
push 0x1e
xor esi, esi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00435440
add esp, 0x3c
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x18], 0x214
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x40c2eb
inc esi
push ebx
call fcn.00418f70
push edi
call fcn.00418f70
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00435440
add esp, 0xc
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x404]
push 0x45e28f
push eax
call fcn.0043a220
test eax, eax
pop ecx
pop ecx
je 0x40c387
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 2
jl 0x40c387
cmp ecx, 1
jge 0x40c372
push 0x80070057
call fcn.0040114f
cmp byte [eax + 1], 0x3a
jne 0x40c387
push dword [ebp - 0x404]
mov ecx, esi
push 0
call fcn.0040c902
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043526a
leave
ret
Function at 0x40c393
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0xf9c]
mov eax, 0x101c
call fcn.0043cc40
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0xf98], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push 8
push eax
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], 5
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40c3e6
xor eax, eax
jmp 0x40c478
lea ecx, [ebp - 0x80]
push ecx
mov eax, 0x1000
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x68]
push eax
push 2
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40c3df
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40c3df
push esi
xor esi, esi
cmp dword [ebp - 0x68], ebx
mov dword [ebp - 0x7c], ebx
jbe 0x40c458
push edi
lea edi, [ebp - 0x64]
push dword [edi]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40c450
inc esi
add edi, 8
cmp esi, dword [ebp - 0x68]
jb 0x40c436
jmp 0x40c457
mov dword [ebp - 0x7c], 1
pop edi
cmp dword [ebp - 0x78], ebx
pop esi
je 0x40c467
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x74], ebx
je 0x40c475
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0xf98]
xor ecx, ebp
pop ebx
call fcn.0043526a
add ebp, 0xf9c
leave
ret

Function at 0x40c4d9
Capabilities:
Read .ini file

Disassembly:
push 0x13c
mov eax, 0x454c82
call fcn.0043bbce
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], ebx
call fcn.0041a7d9
push ebx
push dword [ebp - 0x128]
xor esi, esi
inc esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], esi
call fcn.0041a865
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x12c], eax
call fcn.0041a407
cmp dword [ebp - 0x12c], ebx
jne 0x40c56a
push 0x45e28f
mov ecx, edi
call fcn.004017bc
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], bl
call fcn.0041a7fd
mov eax, edi
jmp 0x40c5d0
mov edi, 0x104
push edi
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00435440
add esp, 0xc
push dword [ebp - 0x128]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x45e28f
push dword [ebp - 0x130]
push str.SOFTPRODUCT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x11c]
push eax
call fcn.004017bc
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], bl
call fcn.0041a7fd
mov eax, dword [ebp - 0x124]
call fcn.0043bc51
ret
Function at 0x40c6be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ebp - 0xc]
mov dword [ebx], edi
mov dword [ebp - 8], 0x20019
call fcn.0040c48e
test eax, eax
je 0x40c6ea
cmp dword [ebp - 0xc], 0x40
jne 0x40c6ea
mov dword [ebp - 8], 0x20119
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c737
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push ebx
push edi
push edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c72e
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40c73d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push 0x45e28f
mov dword [ebp - 8], edi
call fcn.0040135e
lea esi, [ebp - 0xc]
mov ebx, 0x20019
call fcn.0040c48e
test eax, eax
je 0x40c774
cmp dword [ebp - 0xc], 0x40
jne 0x40c774
mov ebx, 0x20119
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c807
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 8]
push ecx
push edi
push edi
push edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
test eax, eax
jne 0x40c7fe
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.00418f75
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x40c7fe
mov eax, dword [ebp + 8]
inc eax
push eax
push edi
push ebx
call fcn.00435440
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
push ebx
push edi
push edi
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40c7f7
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 8], 1
call fcn.0040135e
push ebx
call fcn.00418f70
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fa9b
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x46f570]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
lea eax, [esp + 8]
push eax
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40fb10
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x40fb10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40fb10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fb10
test al, 1
je 0x40fb10
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40fb10
push esi
call edi
mov ebx, eax
mov ecx, dword [esp + 0x14c]
xor eax, eax
test ebx, ebx
setne al
pop edi
pop ebx
xor ecx, esp
dec eax
call fcn.0043526a
mov esp, ebp
pop ebp
ret

Function at 0x40fb2c
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x45533b
call fcn.0043bbce
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x40fc63
push esi
call fcn.004353b0
test eax, eax
pop ecx
je 0x40fc63
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x49], bl
call fcn.00404bb8
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.00403b52
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40fb83
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40fc44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40fc44
push 0x45e28f
lea ecx, [ebp - 0x48]
call fcn.00404bda
mov edi, dword [ebp - 0x18]
jmp 0x40fbd0
lea eax, [ebp - 0x2c]
call fcn.0040fefc
cmp byte [eax], 0x5c
je 0x40fbd7
lea eax, [ebp - 0x2c]
call fcn.0040fefc
cmp byte [eax], 0x2f
je 0x40fbd7
dec edi
cmp edi, ebx
jg 0x40fbb6
jmp 0x40fc03
push edi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x68]
call fcn.004023dc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040490c
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040499e
cmp dword [ebp - 0x34], ebx
je 0x40fc48
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x40fc14
lea eax, [ebp - 0x44]
push eax
call fcn.0040fb2c
test al, al
pop ecx
je 0x40fc48
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40fc2b
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40fc44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fc48
mov byte [ebp - 0x49], 1
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040499e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040499e
mov al, byte [ebp - 0x49]
jmp 0x40fc65
xor al, al
call fcn.0043bc51
ret
Function at 0x40fc6b
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
sub esp, 0xb0
lea ebp, [esp - 4]
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0xb0], eax
push 0x3c
mov eax, 0x4552fb
call fcn.0043bb65
mov esi, ecx
test esi, esi
je 0x40fd78
push esi
call fcn.004353b0
test eax, eax
pop ecx
je 0x40fd78
mov edi, 0x94
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00435440
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40fd78
push str.open
lea ecx, [ebp + 0x94]
call fcn.00404bb8
and dword [ebp - 4], 0
cmp dword [ebp + 4], 6
jb 0x40fcfb
push str.runas
lea ecx, [ebp + 0x94]
call fcn.00404bda
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00435440
mov eax, dword [ebp + 0x98]
add esp, 0xc
cmp dword [ebp + 0xac], 0x10
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x540
jae 0x40fd2c
lea eax, [ebp + 0x98]
test ebx, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], str.__uninstall
mov dword [ebp - 0x2c], 5
je 0x40fd47
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40fd62
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x40fd65
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x94]
call fcn.0040499e
mov eax, esi
jmp 0x40fd7b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb0]
xor ecx, ebp
call fcn.0043526a
add ebp, 0xb4
leave
ret
Function at 0x40fd9e
Capabilities:
Get file version info

Disassembly:
push 0x288
mov eax, 0x4566a4
call fcn.0043bb65
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40fdfe
lea eax, [ebp - 0x158]
push eax
call fcn.004093ca
and dword [ebp - 4], esi
push str.Failed_to_GetFileVersionInfoSize
push ecx
push 3
mov esi, eax
pop ebx
call fcn.0040b3e1
pop ecx
push eax
call fcn.00409635
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x158]
push eax
call fcn.00409420
xor al, al
jmp 0x40fef6
push esi
call fcn.00418f75
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40fe32
lea eax, [ebp - 0x158]
push eax
call fcn.004093ca
mov dword [ebp - 4], 1
push str.Failed_to_GetFileVersionInfo
jmp 0x40fdd3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45e3b4
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40fe68
lea eax, [ebp - 0x158]
push eax
call fcn.004093ca
mov dword [ebp - 4], 2
push str.Failed_to_VerQueryValue
jmp 0x40fdd3
lea eax, [ebp - 0x294]
push eax
call fcn.004093ca
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0xc]
mov esi, eax
push str._LS:
push dword [ecx + 8]
push str.File_Version_MS:
push 2
pop ebx
call fcn.0040b3e1
push eax
call fcn.00409635
pop ecx
pop ecx
push eax
call fcn.00409670
pop ecx
pop ecx
push eax
call fcn.00409635
pop ecx
pop ecx
push eax
call fcn.00409670
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x294]
push eax
call fcn.00409420
mov esi, dword [ebp - 0x10]
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov eax, dword [esi + 8]
mov edx, ebx
mov cl, 0x20
call fcn.004530d0
push dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 0xc]
or dword [edi], eax
or dword [edi + 4], ebx
call fcn.00418f70
pop ecx
mov al, 1
call fcn.0043bc3d
ret
Function at 0x4119fd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456b41
mov eax, dword fs:[0]
push eax
sub esp, 0x280
push ebx
push esi
push edi
mov eax, dword [0x46f570]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x294], 0
je 0x411ade
lea eax, [esp + 0x14]
push eax
call fcn.004093ca
and dword [esp + 0x298], 0
push str.OnClose_PostMessage_to_parent_dlg.
push ecx
push 2
mov esi, eax
pop ebx
call fcn.0040b3e1
pop ecx
push eax
call fcn.00409635
or dword [esp + 0x2a0], 0xffffffff
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.00409420
mov ecx, dword [edi + 0x294]
push 0
push 0
push 0x10
call dword [sym.imp.Duilib.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageA_unsigned_int__unsigned_int__long_int_]
test eax, eax
jne 0x411ade
lea eax, [esp + 0x150]
push eax
call fcn.004093ca
push str.PostMessage_to_parent_dlg_failed.
push ecx
push 4
mov esi, eax
pop ebx
mov dword [esp + 0x2a0], 1
call fcn.0040b3e1
pop ecx
push eax
call fcn.00409635
or dword [esp + 0x2a0], 0xffffffff
pop ecx
pop ecx
lea eax, [esp + 0x150]
push eax
call fcn.00409420
push 0
call fcn.0043a692
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4135cd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456546
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x46f570]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41374f
mov edi, SysReAllocString
cmp dword [esp + 0x18], 0
ja 0x413799
jb 0x413642
cmp dword [esp + 0x14], 0x6400000
jae 0x413799
push 0x45e28f
lea ecx, [esp + 0x14]
call fcn.004017bc
push 0x22
lea ebx, [esp + 0x24]
mov dword [esp + 0x184], 1
call fcn.004086c6
pop ecx
mov byte [esp + 0x180], 2
push dword [esi]
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004056dc
mov byte [esp + 0x18c], 1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401212
push 0x294
call fcn.00418f45
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x180], 3
je 0x4136be
mov esi, eax
call fcn.004126e4
mov esi, dword [ebp + 0xc]
mov ebx, eax
jmp 0x4136c0
xor ebx, ebx
mov ecx, dword [ebp + 8]
push 0
push edi
push edi
push edi
push edi
push pe_nt_image_headers32
push 0x96c80000
push str.SuInstalling
mov byte [esp + 0x1a0], 1
call dword [sym.imp.Duilib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
mov ecx, ebx
call dword [sym.imp.Duilib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____char_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.0040118e
push 0
push ebx
call fcn.00412898
mov ecx, ebx
call dword [sym.imp.Duilib.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
cmp eax, 0x3ea
jne 0x41379e
or dword [esp + 0x180], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401212
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x413627
lea eax, [esp + 0x38]
push eax
call fcn.004093ca
mov esi, eax
and dword [esp + 0x180], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskFreeSpaceEx_fail
push 4
pop ebx
call fcn.0040b3e1
push eax
call fcn.00409635
pop ecx
pop ecx
push eax
call fcn.00409670
or dword [esp + 0x188], 0xffffffff
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
call fcn.00409420
xor eax, eax
inc eax
jmp 0x4137ac
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401212
xor eax, eax
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8