joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413860
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4cb04c], 0
je 0x4138e9
cmp dword [0x4cb02c], 0
je 0x4138e9
cmp dword [0x4cb030], 0
je 0x4138e9
push 0x4cb034
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0xffff
push 0x10000
push dword [0x4cb02c]
call fcn.004872df
add esp, 0x14
push dword [0x4cb02c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._CLDLer____5u___s_n
push 0xffff
push 0x10000
push dword [0x4cb030]
call fcn.00486606
add esp, 0x18
push dword [0x4cb030]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4cb034
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
ret

Function at 0x414570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, 0xfffffe09
cmp eax, 0xf
ja case.default.0x41458a
movzx eax, byte [eax + 0x414640]
push esi
jmp dword [eax*4 + 0x414624]
mov eax, dword [ebp + 8]
push 6
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
pop esi
pop ebp
jmp fcn.00419020
push 0x4acf4c
call fcn.004010d0
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.0041a230
mov ecx, dword [ebp + 8]
push 0
push 6
call fcn.00417d10
test eax, eax
jns case.0x41458a.509
push eax
push str.Fail_to_pause_download_process_0x_x
call fcn.00413860
add esp, 8
pop esi
pop ebp
ret
push 0x4acfa0
call fcn.004010d0
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, esi
push 3
call fcn.004178a0
cmp eax, 0xa0070001
jne case.0x41458a.509
push 3
mov ecx, esi
call fcn.00417e30
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
pop esi
pop ebp
jmp fcn.0041ab40
mov ecx, dword [ebp + 8]
pop esi
pop ebp
jmp fcn.0041bc20
Function at 0x415470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
test ebx, ebx
je 0x4155bf
test edi, edi
je 0x4155bf
mov ecx, dword [eax + 0x69c]
test ecx, ecx
je 0x4155bf
push esi
call fcn.0040ab50
xor esi, esi
mov dword [ebp - 0x41c], eax
test eax, eax
jle 0x4155be
mov eax, dword [ebp - 0x418]
add eax, 0x47ba
mov dword [ebp - 0x420], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004866f0
push esi
push str.Avg30SecBitRate
push str._s_d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00401690
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004866f0
add esp, 0x2c
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x104
push eax
push 0x4a1b98
lea eax, [ebp - 0x20c]
push eax
push str.Statistics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push 0x4a6580
push eax
mov dword [ebp - 0x418], 0
call fcn.00489d83
add esp, 0xc
test esi, esi
jne 0x415591
movss xmm0, dword [ebp - 0x418]
movss dword [ebx], xmm0
movss dword [edi], xmm0
jmp 0x4155b1
movss xmm1, dword [ebp - 0x418]
comiss xmm1, dword [ebx]
jbe 0x4155a4
movss dword [ebx], xmm1
jmp 0x4155b1
movss xmm0, dword [edi]
comiss xmm0, xmm1
jbe 0x4155b1
movss dword [edi], xmm1
inc esi
cmp esi, dword [ebp - 0x41c]
jl 0x4154d8
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret 8
Function at 0x4171a0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0xea0c], 0
je 0x4171d3
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
mov edi, 0x80004005
call fcn.004866f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004866f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004866f0
add esp, 0x24
lea eax, [ebp - 0x61c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x417374
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
mov ecx, esi
call fcn.00417390
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41727b
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x61c]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4172d6
test dx, dx
je 0x4172d2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4172d6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4172b0
xor eax, eax
jmp 0x4172db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4172ef
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x824], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00487152
xor eax, eax
add esp, 0xc
mov word [ebp - 0x61e], ax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00411fa0
push 0x4a1b98
push 0x4a1b98
push 0x4a1b98
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00410d10
add esp, 0x20
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x417570
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push edi
mov ebx, ecx
push 2
push dword [ebx + 0xc]
call esi
push 4
push dword [ebx + 0xc]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4175f3
cmp dword [ebp + 8], eax
jl 0x417714
mov ecx, ebx
mov dword [ebx + 0xd520], 4
mov byte [ebx + 0xd532], 1
call fcn.00420280
mov ecx, ebx
call fcn.0041f500
mov ecx, ebx
call fcn.0041f090
movzx eax, byte [ebx + 0xd532]
push eax
push 9
mov ecx, ebx
call fcn.0041fe00
mov ecx, ebx
push 0
call fcn.0041e960
mov ecx, ebx
call fcn.004208f0
mov ecx, ebx
call fcn.00417b40
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret 8
cmp eax, 1
jne 0x417714
push 0
lea ecx, [ebx + 0x8e54]
mov dword [ebx + 0xd520], 3
call fcn.004089a0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [ebx + 0x698]
lea ecx, [ebx + 0x9514]
movzx eax, byte [eax + 0x384]
push eax
call fcn.00408960
lea ecx, [ebx + 0x9514]
push 5
call fcn.004089a0
push eax
call edi
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 0xfff00000
cmp eax, 0x80800000
jne 0x41768e
push str.Internet_Error_Occurs
call fcn.00413860
mov ecx, dword [ebx + 0x698]
add esp, 4
call fcn.00404c20
mov esi, eax
test esi, esi
jns 0x417784
push str.Fail_to_UninitDownload
call fcn.00413860
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp ecx, 0x80004004
jne 0x4176a6
mov ecx, ebx
call fcn.00418350
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret 8
cmp ecx, 0x80700007
jne 0x4176d0
push str.NO_DISK_SPACE
push str.Low_Disc_Space_Exception____S
call fcn.00413860
add esp, 8
mov ecx, ebx
call fcn.004189a0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret 8
cmp ecx, 0x80700006
jne 0x4176ef
push str.WRITE_FILE
push str.Low_Disc_Space_Exception____S
call fcn.00413860
add esp, 8
jmp 0x417777
push ecx
push str.Unexpected_Error_0x_x_
call fcn.00413860
mov ecx, dword [ebx + 0x698]
add esp, 8
call fcn.00404c20
mov esi, eax
test esi, esi
js 0x41779f
jmp 0x417784
push 0
lea ecx, [ebx + 0x8e54]
mov dword [ebx + 0xd520], 3
call fcn.004089a0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [ebx + 0x698]
lea ecx, [ebx + 0x9514]
movzx eax, byte [eax + 0x384]
push eax
call fcn.00408960
lea ecx, [ebx + 0x9514]
push 5
call fcn.004089a0
push eax
call edi
cmp dword [ebp + 8], 0x80004004
je 0x417696
push str.Low_Disc_Space_Exception___Unknown
call fcn.00413860
add esp, 4
mov ecx, dword [ebx + 0x698]
call fcn.00404c20
mov esi, eax
push 0
mov ecx, ebx
call fcn.004178a0
cmp eax, 0xa0070001
jne 0x41779f
push 0
mov ecx, ebx
call fcn.00417e30
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4177b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0xea0c], 0
je 0x4177e3
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, 0x80004005
call fcn.004866f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004866f0
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41788a
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00417390
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41788a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x41786d
mov esi, eax
jmp 0x417876
movzx esi, ax
or esi, 0x80070000
push esi
push eax
push str.DeleteFile_for_shortcut
push str._s_failed__error___d__0x_x_
call fcn.00413860
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00487c50
mov esp, ebp
pop ebp
ret

Function at 0x4178a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f41b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c9890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [ebp - 0x10], 0
call fcn.004867f5
mov edx, dword [ebp + 8]
mov ebx, eax
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 4], edx
cmp dword [edi + 0xd564], 0
jne 0x41791c
push 0x2c
call fcn.004867f5
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41790d
mov ecx, eax
call fcn.00411100
jmp 0x41790f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xd564], eax
mov esi, dword [edi + 0xd564]
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push 0x420660
push 0
push 0
call fcn.00487a23
mov dword [esi], eax
mov eax, dword [edi + 0xd564]
add esp, 0x18
cmp dword [eax], 0
jne 0x41799c
push str.CLDownloaderApp::DownloadStartAsync
push str.__S___beginthreadex_failed
call fcn.00413860
push ebx
call fcn.00486409
mov esi, dword [edi + 0xd564]
add esp, 0xc
test esi, esi
je 0x417983
mov ecx, esi
call fcn.00411150
push esi
call fcn.00486409
add esp, 4
mov dword [edi + 0xd564], 0
mov eax, 0xa0070001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4179c0
Capabilities:
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.DownloadTask__
mov ebx, ecx
call fcn.004010d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 4
lea edi, [ebx + 0x47ba]
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x4a8ca4
push 0x4a8ca8
push str.Downloader
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0048727b
add esp, 4
cdq
push edi
push 0x104
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x414]
push eax
push 0x4a8ca4
push str.SavePath
push str.Downloader
mov dword [ebp - 0x420], edx
call esi
lea eax, [ebp - 0x414]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x41c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp eax, 0xffffffff
je 0x417aa6
lea ecx, [ebp - 0x41c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x424]
mov esi, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417ab2
mov edi, dword [ebp - 0x418]
mov esi, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x428]
cmp esi, eax
jne 0x417b0a
mov ecx, dword [ebp - 0x420]
cmp edi, ecx
jne 0x417b0a
or eax, ecx
je 0x417b0a
mov ecx, dword [ebx + 0x69c]
push edi
push esi
call fcn.0040b020
mov ecx, dword [ebx + 0x69c]
call fcn.0040ac20
mov ecx, dword [ebx + 0x69c]
call fcn.0040aab0
mov ecx, ebx
call fcn.00420750
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0041c7f0
cmp eax, 0xa0070001
jne 0x417b1f
mov ecx, ebx
call fcn.0041c2e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x417d10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00488190
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push str.Download_Pause
mov ebx, ecx
call fcn.00413860
mov ecx, dword [ebx + 0x69c]
add esp, 4
call fcn.0040ab30
fstp dword [ebp - 0x2008]
mov ecx, dword [ebx + 0x69c]
call fcn.0040ab40
fstp dword [ebp - 0x200c]
movss xmm0, dword [ebp - 0x200c]
sub esp, 8
lea eax, [ebp - 0x2004]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2008]
movss dword [esp], xmm0
push esi
push dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041ac90
lea eax, [ebp - 0x2004]
push eax
call fcn.004010d0
add esp, 4
mov ecx, ebx
call fcn.0041bcc0
mov ecx, dword [ebx + 0x698]
call fcn.00401ab0
mov edi, eax
test edi, edi
js 0x417e01
push dword [ebx + 0xd528]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x417df2
push 5
lea ecx, [ebx + 0x9514]
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [ebx + 0x9514]
call fcn.00408960
mov dword [ebx + 0xd520], 2
jmp 0x417e0f
push str.Fail_to_reset_DownloadState_event
call fcn.00413860
add esp, 4
jmp 0x417e0f
push edi
push str.Fail_to_abort_download:__x
call fcn.00413860
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret 8
Function at 0x418100
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f2ab
mov eax, dword fs:[0]
push eax
mov eax, 0x13ec
call fcn.00488190
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xea0c], 0
jne 0x418145
mov eax, 1
jmp 0x418331
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x27c], ax
lea eax, [ebp - 0x27a]
push eax
call fcn.004866f0
add esp, 0xc
lea eax, [esi + 0x47ba]
push eax
push 0x104
lea eax, [ebp - 0x27c]
push eax
push 0x4a8ca4
push str.EulaAccepted
push str.Downloader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x27c]
push eax
call fcn.0048727b
add esp, 4
cmp eax, 1
je 0x41832f
push 0x400
push 0x104
lea eax, [ebp - 0x484]
push eax
push 0x1fd
push dword [esi + 4]
call fcn.00412610
push 0x400
push 0x104
lea eax, [ebp - 0x27c]
push eax
push 0x1a1
push dword [esi + 4]
call fcn.00412610
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x68c]
push 0x103
push eax
call fcn.00401690
push 0x400
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0xe3
push dword [esi + 4]
call fcn.00412610
mov ecx, dword [esi + 0x6a4]
lea eax, [ebp - 0x68c]
mov dword [ebp - 0x13f8], eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x13f4], eax
add esp, 0x4c
lea eax, [ebp - 0x74]
mov dword [ebp - 0x13f0], 0x4a1b98
mov dword [ebp - 0x13ec], eax
mov dword [ebp - 0x13e8], 0
mov dword [ebp - 0x13e4], 0
mov dword [ebp - 0x13e0], 0
mov dword [ebp - 0x13dc], 0
mov dword [ebp - 0x13d8], 0
test ecx, ecx
je 0x41829d
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41829d
mov ecx, dword [esi + 0x6a4]
call fcn.004089a0
jmp 0x4182a0
mov eax, dword [esi + 0xc]
push 0
push eax
lea eax, [ebp - 0x13f8]
push eax
push 5
lea ecx, [ebp - 0x13d4]
call fcn.004092f0
lea eax, [esi + 0x5656]
push eax
lea ecx, [ebp - 0x13d4]
mov dword [ebp - 4], 0
call fcn.00409d50
mov ecx, dword [esi + 0x6a4]
push 0
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x13d4]
call fcn.00409af0
cmp eax, 0x322
je 0x41830f
lea ecx, [ebp - 0x13d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004098d0
mov eax, 0x80004005
jmp 0x418331
mov ecx, esi
mov byte [esi + 0xd535], 1
call fcn.00420300
lea ecx, [ebp - 0x13d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004098d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x418720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f4fb
mov eax, dword fs:[0]
push eax
mov eax, 0x11e4
call fcn.00488190
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.ExceptionHandle_InvalidPath
call fcn.004010d0
push str.ExceptionHandle_InvalidPath
call fcn.00413860
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x27c], ax
lea eax, [ebp - 0x27a]
push eax
mov ebx, 0x80004005
call fcn.004866f0
add esp, 0x14
lea eax, [ebp - 0x27c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4187c4
lea eax, [esi + 0x3982]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x27c]
push 0x104
push eax
call fcn.00411ff0
add esp, 0xc
lea edi, [esi + 0x3982]
mov ecx, edi
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4187f8
test dx, dx
je 0x4187f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4187f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4187d2
xor eax, eax
jmp 0x4187fd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41880b
mov eax, 0x8000ffff
jmp 0x418977
push 0x400
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0x198
push dword [esi + 4]
call fcn.00412610
push 0x400
push 0x104
lea eax, [ebp - 0x484]
push eax
push 0xce
push dword [esi + 4]
call fcn.00412610
mov ecx, dword [esi + 0x6a4]
lea eax, [ebp - 0x484]
mov dword [ebp - 0x11f0], eax
add esp, 0x28
lea eax, [ebp - 0x74]
mov dword [ebp - 0x11ec], eax
mov dword [ebp - 0x11e8], 0
mov dword [ebp - 0x11e4], 0
mov dword [ebp - 0x11e0], 0
mov dword [ebp - 0x11dc], 0
mov dword [ebp - 0x11d8], 0
mov dword [ebp - 0x11d4], 0
mov dword [ebp - 0x11d0], 0
test ecx, ecx
je 0x4188c6
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4188c6
mov ecx, dword [esi + 0x6a4]
call fcn.004089a0
jmp 0x4188c9
mov eax, dword [esi + 0xc]
push 0
push eax
lea eax, [ebp - 0x11f0]
push eax
push 0
lea ecx, [ebp - 0x11cc]
call fcn.004092f0
lea ecx, [ebp - 0x11cc]
mov dword [ebp - 4], 0
call fcn.00409af0
push 0x103
lea eax, [ebp - 0x27c]
push eax
push edi
call fcn.00487152
add esp, 0xc
xor eax, eax
push edi
lea ecx, [esi + 0xc174]
mov word [esi + 0x3b88], ax
call fcn.0040d370
lea eax, [esi + 0x47ba]
push eax
push edi
push str.SavePath
push str.Downloader
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esi + 0x698]
cmp dword [ecx + 0x50], 0
je 0x418948
push edi
call fcn.00401b90
jmp 0x418961
push 0
mov ecx, esi
call fcn.004178a0
cmp eax, 0xa0070001
jne 0x418963
push 0
mov ecx, esi
call fcn.00417e30
mov ebx, eax
lea ecx, [ebp - 0x11cc]
mov dword [ebp - 4], 0xffffffff
call fcn.004098d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret
Function at 0x419190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f5fb
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.00488190
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push str.ExceptionHandle_NeedUpdate
call fcn.00413860
push 0x400
push 0x32
lea eax, [ebp - 0xd8]
push eax
push 0x19c
push dword [esi + 4]
call fcn.00412610
push 0x400
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0x19a
push dword [esi + 4]
call fcn.00412610
push 0x400
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push 0xd6
push dword [esi + 4]
call fcn.00412610
mov ecx, dword [esi + 0x6a4]
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2094], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x2090], eax
add esp, 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x208c], eax
mov dword [ebp - 0x2088], 0
mov dword [ebp - 0x2084], 0
mov dword [ebp - 0x2080], 0
mov dword [ebp - 0x207c], 0
mov dword [ebp - 0x2078], 0
mov dword [ebp - 0x2074], 0
test ecx, ecx
je 0x4192a8
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4192a8
mov ecx, dword [esi + 0x6a4]
call fcn.004089a0
jmp 0x4192ab
mov eax, dword [esi + 0xc]
push 0
push eax
lea eax, [ebp - 0x2094]
push eax
push 1
lea ecx, [ebp - 0x2070]
call fcn.004092f0
lea ecx, [ebp - 0x2070]
mov dword [ebp - 4], 0
call fcn.00409af0
cmp eax, 0x322
jne 0x419346
push str.User_click_OK_in_NEED_UPDATE_dlg
call fcn.004010d0
xor eax, eax
push 0x1044
push eax
mov word [ebp - 0x1328], ax
lea eax, [ebp - 0x1326]
push eax
call fcn.004866f0
push str._r_n__t
push edi
call fcn.00489d32
lea eax, [edi + eax*2]
push 0x822
push eax
lea eax, [ebp - 0x1328]
push eax
call fcn.00487152
add esp, 0x24
xor eax, eax
push 1
push eax
push eax
mov word [ebp - 0x2e4], ax
lea eax, [ebp - 0x1328]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x419353
push str.User_click_CANCEL_in_NEED_UPDATE_dlg
call fcn.004010d0
add esp, 4
mov ecx, dword [esi + 0x6a4]
test ecx, ecx
je 0x41936d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x6a4], 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x2070]
mov dword [ebp - 4], 0xffffffff
call fcn.004098d0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4