joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413bc3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
push edi
jne 0x413bdf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c16
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x429460
call fcn.00417869
add esp, 0x10
jmp 0x413bd8
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x436018], esi
mov dword [ebp - 0xc], eax
jne 0x413c58
cmp dword [ebp - 8], esi
jne 0x413c3b
cmp eax, 0x500000
jbe 0x413c58
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x429460
call fcn.00417869
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413bd8
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x413c4f
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413c8c
push ebx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, esi
jmp 0x413bda
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jbe 0x413cc4
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
push ebx
call fcn.00416164
test al, al
je 0x413cc4
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.add_zip_success.___s_
push 0x429460
call fcn.00417869
add esp, 0xc
xor esi, esi
inc esi
jmp 0x413c7d

Function at 0x413fa6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413fb7
xor eax, eax
xor edx, edx
jmp 0x414006
push edi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413fda
xor eax, eax
xor edx, edx
jmp 0x414005
push ebx
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.00421e50
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x414009
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040167f
cmp dword [ebp - 0xc], ebx
je 0x41408f
cmp dword [ebp + 8], ebx
je 0x4140e7
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040167f
cmp esi, ebx
je 0x41408f
xor eax, eax
jmp 0x4140ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x4140d0
cmp dword [ebp + 8], 2
je 0x4140d0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x4140de
push str.HASH
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4140ef
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and word [ebp - 0x20c], 0
push esi
push edi
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x42a384
je 0x414177
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQLiveMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4141b6
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4141b6
push dword [ebp - 0x210]
call fcn.00412c73
pop ecx
jmp 0x4141d1
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00404a23
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.00421314
leave
ret
Function at 0x414273
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x644
mov eax, 0x422aec
call fcn.00421d3b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x41429b
xor eax, eax
jmp 0x4143b5
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
call fcn.0040167f
cmp edi, esi
jne 0x414294
push 0x618
lea eax, [ebp - 0x62e]
push esi
push eax
mov word [ebp - 0x630], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x648]
push eax
push esi
push str.ExtRptFile
push dword [ebp - 0x634]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x414345
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414294
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.00404a23
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x42a514
mov dword [ebp - 4], esi
call fcn.00404a23
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00417586
pop ecx
pop ecx
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
inc eax
call fcn.00421dbe
ret
Function at 0x4143bb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x422aae
call fcn.00421d3b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
jne 0x4143ec
xor eax, eax
jmp 0x414586
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
call fcn.0040167f
cmp edi, esi
jne 0x4143e5
push 0x410
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x640]
mov ebx, 0x208
mov dword [ebp - 0x64c], 1
mov dword [ebp - 0x648], ebx
call edi
cmp eax, esi
je 0x414499
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4143e5
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.00404a23
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x42a514
mov dword [ebp - 4], esi
call fcn.00404a23
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00417586
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0x14
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.ExcDir
push dword [ebp - 0x640]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], 0x104
call edi
test eax, eax
jne 0x41455c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00401445
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00417586
pop ecx
pop ecx
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, ebx
call fcn.00421dbe
ret
Function at 0x4145d2
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4233fe
call fcn.00421cd2
xor edi, edi
cmp dword [ebp + 8], edi
je 0x414672
xor eax, eax
mov esi, str.CrashCount
cmp eax, esi
je 0x414672
lea eax, [ebp - 0x14]
push eax
call fcn.00412c73
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
mov dword [esp], str.BREvent.ini
push eax
lea ecx, [ebp - 0x14]
call fcn.00404c06
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414681
push edi
push edi
push 2
push edi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41467a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
push 0x429460
call fcn.00417869
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
call fcn.00421daa
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
inc ebx
push ebx
push esi
push dword [ebp + 8]
mov edi, 0x429460
push str._s:_s_lu
push edi
call fcn.00417869
push ebx
lea eax, [ebp - 0x18]
push 0x42a728
push eax
call fcn.00413956
mov eax, dword [eax]
add esp, 0x20
push dword [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040167f
test bl, bl
je 0x4146f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push edi
jmp 0x414654
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
inc eax
jmp 0x414674
Function at 0x414713
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x4225bd
call fcn.00421d3b
xor edi, edi
push 0x206
lea eax, [ebp - 0x216]
mov esi, ecx
push edi
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.MSVCR80.dll_wcsrchr]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
cmp eax, edi
pop ecx
pop ecx
je 0x41477b
mov word [eax], di
call fcn.004047aa
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x21c], 1
call fcn.00401445
push str._txupd.exe
push esi
call fcn.00404ad8
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41481d
push dword [esi]
mov edi, 0x429460
push str.txupd___s__not_exist_so_uplevel_dir
push edi
call fcn.00417869
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x4147d9
and word [eax], 0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401445
push str._txupd.exe
push esi
call fcn.00404ad8
push dword [esi]
push str.txupd___s_
push edi
call fcn.00417869
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41481d
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.00417869
add esp, 0xc
mov eax, esi
call fcn.00421dbe
ret
Function at 0x414c84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414ce7
cmp dword [ebp + 0xc], 1
je 0x414cc0
cmp dword [ebp + 0xc], 2
je 0x414cc0
push 0xd
pop eax
jmp 0x414ce7
test edi, edi
mov eax, dword [ebp - 4]
je 0x414ce1
test eax, eax
je 0x414cdd
test al, 1
jne 0x414cbb
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x414ce1
jmp 0x414cbb
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x416927
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41697b
push 0x40
push 0x3000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 8], eax
mov byte [eax], 0xb9
mov eax, dword [esi + 8]
mov byte [eax + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x416981
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
push dword [esi + 8]
push 0xfffffffffffffffc
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
pop ebp
ret 4
Function at 0x416c46
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x416c69
mov eax, 0x80004005
jmp 0x416da7
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x416ca5
mov esi, dword [eax]
push edi
push 0x2710
push 0x64
push dword [ebp - 4]
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [esi]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], edi
mov dword [ebp - 0xc], eax
je 0x416d3f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x416d3f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x416d3f
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
je 0x416cfd
push esi
lea esi, [ebp - 0x1c]
call fcn.00416927
mov esi, dword [ebp + 0x10]
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x18], edi
mov esi, eax
je 0x416d29
push dword [ebp - 0x18]
push 0xfffffffffffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp - 0x14], edi
je 0x416d58
push 0x8000
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x416d58
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [esi - 0x64]
cmp eax, 0x26ac
ja 0x416d9b
mov ebx, dword [ebx + 4]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x40], 0x24
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
add esi, 0xffffff9c
movzx eax, si
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
jmp 0x416da6
push dword [ebp + 0x10]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x417fcb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x42944c
call fcn.00417869
call fcn.00418034
push 0x38
mov edi, eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [ebp - 0x38], 0x500
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41802c
mov al, 1
jmp 0x418031
test edi, edi
setne al
pop edi
leave
ret
Function at 0x418306
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.OpenUrlWithIEInternal__url_s
push 0x42944c
call fcn.00417869
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x210], bx
je 0x418380
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x418380
mov al, 1
jmp 0x418382
xor al, al
xor ecx, ecx
cmp al, bl
sete cl
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
lea ecx, [ecx*2 + str.Internet_ExplorerIEXPLORE.EXE]
call fcn.00417754
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4183cd
push esi
mov ecx, str.iexplore.exe
lea eax, [ebp - 0x210]
mov word [ebp - 0x210], bx
call fcn.00417754
pop ecx
push 5
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421314
leave
ret

Function at 0x4188b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x24]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
je 0x41899c
cmp dword [ebp - 0x650], 0
jne 0x418902
cmp dword [ebp - 0x64c], 0x500000
jbe 0x418990
mov ecx, edi
lea eax, [ebp - 0x41c]
call fcn.004177a7
mov ecx, edi
lea eax, [ebp - 0x214]
call fcn.004177a7
mov esi, 0x104
push esi
mov ecx, 0x42e640
lea eax, [ebp - 0x41c]
call fcn.00417754
push esi
mov ecx, 0x42e648
lea eax, [ebp - 0x214]
call fcn.00417754
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x41896d
cmp esi, 2
jge 0x418967
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x41894d
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
push edi
call esi
push edi
call ebx
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421314
leave
ret 4
Function at 0x418cdc
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x423045
call fcn.00421cd2
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
lea eax, [edi + 0x240]
mov dword [ebp - 4], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea ebx, [edi + 0x238]
mov byte [edi + 0x23d], 1
mov dword [edi + 0x22c], esi
mov dword [edi + 0x230], esi
mov byte [edi + 0x23c], 1
mov dword [edi + 0x234], 2
mov dword [ebx], 0x3e8
mov byte [edi + 0x23e], 1
mov byte [edi + 0x23f], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00404a23
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00417c53
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040167f
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x20], esi
mov dword [ebp + 8], ecx
je 0x418e55
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp eax, ecx
mov dword [ebp - 0x14], eax
jbe 0x418e55
jmp 0x418da5
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x418db8
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp + 8], eax
jb 0x418dbe
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x418e46
cmp word [esi], 0x2f
jne 0x418df1
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.MSVCR80.dll_iswdigit]
test eax, eax
pop ecx
je 0x418df1
cmp word [esi + 4], 0
jne 0x418df1
movzx eax, word [esi + 2]
sub eax, 0x30
jmp 0x418e11
push 0xa
push str._loglevel:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x418e19
add esi, 0x14
push esi
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [edi + 0x234], eax
jmp 0x418e46
push 8
push str._logbuf:
push esi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x418e46
mov eax, ebx
mov ecx, esi
call fcn.00417e2b
add dword [ebx], 8
cmp dword [ebx], 1
ja 0x418e46
mov byte [edi + 0x23d], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x418da3
push edi
call fcn.00418c40
test eax, eax
jne 0x418e65
mov byte [edi + 0x23c], al
mov ebx, edi
call fcn.004189ad
lea esi, [ebp - 0x24]
call fcn.00404f59
mov eax, edi
call fcn.00421daa
ret 4