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

Disassembly:
mov eax, 0x41a3d1
call fcn.00410f20
sub esp, 0x440
mov eax, dword [0x4240b8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [0x424e6c]
push edi
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00404ac1
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x4093c5
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call edi
cmp eax, 0x10
mov dword [ebp - 0x3c], eax
jbe 0x4093bc
add eax, 4
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040d90a
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
push ebx
push esi
mov dword [ebp - 0x34], esi
call fcn.0040daa0
add esp, 0x10
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call edi
mov edi, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4093bc
cmp dword [ebp - 0x44], edi
jne 0x4093bc
cmp dword [esi], 0x4d454f4c
je 0x409338
mov eax, dword [0x424e6c]
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.004093fa
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x38]
call fcn.00405291
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040252d
jmp 0x4093b5
push dword [esi + 4]
lea edi, [ebp - 0x30]
push str._2_db_L_
push 0x20
pop eax
call fcn.00409175
pop ecx
pop ecx
mov eax, edi
push eax
push eax
call fcn.0040dbc0
pop ecx
push eax
lea esi, [ebp - 0x44c]
call fcn.00409480
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.0040d90a
mov edi, dword [ebp - 0x3c]
mov esi, eax
mov dword [esi + edi], ebx
mov ebx, dword [ebp - 0x34]
lea eax, [edi - 8]
push eax
lea edx, [ebx + 8]
mov eax, esi
lea ecx, [ebp - 0x44c]
call fcn.00409579
push ebx
call fcn.0040f39e
lea ebx, [esi + 4]
add esp, 0x14
lea edx, [edi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x34], esi
call fcn.004091d1
cmp dword [esi], eax
jne 0x4093bc
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.00404b01
push esi
call fcn.0040f39e
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404846
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410727
leave
ret
Function at 0x409aa9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x41d930
push esi
call fcn.0040ef7c
cmp dword [ebp - 0x10], 0x10000
pop ecx
pop ecx
jl 0x409ad8
push 1
push str.c:_templlsetupbak.log
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
leave
ret

Function at 0x409cfb
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41a35a
call fcn.00410f20
sub esp, 0x230
mov eax, dword [0x4240b8]
and dword [ebp - 0x23c], 0
push dword [0x425f10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push str.MINI_d
push eax
call fcn.0040f32f
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push dword [ebp + 8]
movzx eax, ax
cmp eax, 0x404
je 0x409d5c
cmp eax, 0x804
lea eax, [ebp - 0x20]
je 0x409d55
push 0x42045c
jmp 0x409d64
push 0x42046c
jmp 0x409d64
push 0x420464
lea eax, [ebp - 0x20]
push eax
call fcn.0040f32f
mov eax, dword [0x424e6c]
add esp, 0xc
push esi
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x238]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x238]
push 0x5c
push eax
call fcn.0040f2ff
pop ecx
pop ecx
push str.llsetup.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x238]
push eax
mov edx, 0xc8
push edx
lea esi, [ebp - 0x23c]
call fcn.0040241b
push eax
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x23c]
test esi, esi
jne 0x409df2
xor eax, eax
jmp 0x409df9
push esi
call fcn.0040e7ed
pop ecx
lea edx, [ebp - 0x23c]
call fcn.00402439
add esi, 0xfffffff0
mov eax, esi
call fcn.00404846
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop esi
call fcn.00410727
leave
ret
Function at 0x409f47
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41a49b
call fcn.00410f20
sub esp, 0x420
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f2ff
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ecx
mov edi, eax
pop ecx
inc edi
push str.appdataconflava.ini
inc edi
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x41da74
push str.CLIENTUPDATESERVERCGIURL
push str.SERVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
push str.GetDebugServerInfo_URL__s_n
call fcn.00409adb
cmp word [ebp - 0x420], 0
pop ecx
pop ecx
je 0x40a0b7
mov eax, dword [0x424e6c]
mov edi, 0x424e6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
and dword [ebp - 4], 0
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 2
call fcn.00404b01
lea eax, [ebp - 0x42c]
push eax
push 0x424c6c
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00406cfb
push dword [ebp - 0x428]
mov ebx, 0x4256d8
push ebx
call esi
push dword [ebp - 0x42c]
mov edi, 0x4254d0
push edi
call esi
push edi
push dword [0x424c6c]
push ebx
push str.GetDebugServerInfo_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.00409adb
mov eax, dword [ebp - 0x42c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.0040252d
jmp 0x40a11f
push str.llsetup.ini
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, 0x4256d8
push ebx
push str.www.lava_lava.com
push str.server
mov edi, str.update
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push 0x50
push str.port
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str._cgi_bin_update
mov edi, 0x4254d0
push edi
mov dword [0x424c6c], eax
call esi
push edi
push dword [0x424c6c]
push ebx
push str.GetDebugServerInfo_llsetup.ini_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.00409adb
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410727
leave
ret
Function at 0x40a70a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x41a470
call fcn.00410f20
sub esp, 0x224
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov esi, str._build_info
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x104
push edi
lea esi, [ebp - 0x224]
mov dword [ebp - 0x10], eax
call fcn.0040ac0b
test eax, eax
mov eax, esi
je 0x40a75c
push eax
push str.GetLavaVersion_GetValidInstallDir___s_n
call fcn.00409adb
jmp 0x40a777
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push 0x5c
push eax
call fcn.0040f2ff
mov word [eax + 2], bx
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x226], 0x5c
lea eax, [ebp - 0x224]
je 0x40a79e
push str._verinfo.dat
jmp 0x40a7a3
push str.verinfo.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x224]
push eax
push str.GetLavaVersion_szVerFile___s_n
call fcn.00409adb
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a7f6
push 0x41fb5c
push dword [ebp + 8]
call fcn.0040af27
mov eax, dword [ebp + 8]
jmp 0x40a908
lea eax, [ebp - 0x224]
push eax
push str.GetLavaVersion_OpenFile_OK.___s_n
call fcn.00409adb
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x228], eax
inc eax
push eax
call fcn.0040d90a
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
push 0x208
mov byte [esi + eax], bl
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.0040daa0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
push esi
call fcn.004099f9
push esi
call fcn.0040f39e
pop ecx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040af27
lea eax, [ebp - 0x224]
push eax
push str._build_real
push eax
lea edi, [ebp - 0x230]
mov dword [ebp - 4], ebx
call fcn.0040d450
mov byte [ebp - 4], 1
push dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
push esi
call fcn.0040fb1b
test eax, eax
pop ecx
pop ecx
je 0x40a8d6
add esi, 0xfffffff0
mov eax, esi
call fcn.00406705
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
jmp 0x40a8f3
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040d450
lea eax, [esi - 0x10]
call fcn.0040252d
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410727
leave
ret
Function at 0x40a94a
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4240b8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x398], eax
je 0x40aa03
cmp word [esi], bx
je 0x40aa03
push edi
push 0x104
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.0040f2ff
pop ecx
inc eax
inc eax
pop ecx
mov dword [ebp - 0x80], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x190]
push eax
call esi
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp + eax*2 + 0x190]
cmp word [edi - 2], 0x5c
je 0x40a9cf
mov word [edi], 0x5c
inc edi
inc edi
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x7c]
lea ebx, [ebx + 0x424cd8]
push dword [ebx]
push dword [ebp - 0x80]
call esi
push dword [ebx]
push edi
call esi
push 1
push edi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add dword [ebp - 0x7c], 4
cmp dword [ebp - 0x7c], 0x14
jb 0x40a9d2
xor eax, eax
inc eax
pop edi
jmp 0x40aa05
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop esi
pop ebx
call fcn.00410727
add ebp, 0x39c
leave
ret
Function at 0x40aaa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41a314
call fcn.00410f20
sub esp, 0x220
mov eax, dword [0x4240b8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push dword [0x424cf0]
add eax, eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
xor esi, esi
push eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [0x425a88], si
lea eax, [ebp - 0x218]
je 0x40ab0d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.LvOem
push eax
call edi
push 0x425a88
lea eax, [ebp - 0x218]
push eax
call edi
jmp 0x40ab1a
push dword [0x424ccc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
mov ebx, 0xf003f
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push connect
call edi
cmp dword [ebp + 8], esi
jne 0x40ab54
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
jmp 0x40ab9f
mov eax, dword [0x424e6c]
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push 0x41fec4
push eax
mov dword [ebp - 4], esi
call fcn.004023bd
add esp, 0xc
push esi
lea eax, [ebp - 0x220]
push eax
push esi
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push esi
push esi
push ebx
push dword [ebp - 0x21c]
call edi
lea eax, [ebx - 0x10]
call fcn.0040252d
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
push esi
push dword [0x424cf4]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop ebx
jne 0x40abd2
mov dword [ebp - 0x224], 1
push dword [ebp - 0x220]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp + 8], esi
je 0x40abed
push dword [ebp - 0x21c]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x224]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00410727
leave
ret 0xc

Function at 0x40ac5b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41a3a5
call fcn.00410f20
sub esp, 0x14
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00404c6e
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [0x424cec]
lea eax, [ebp - 0x10]
push eax
call fcn.004047bc
push dword [ebp - 0x10]
push esi
push str.CheckDate
push str.LastUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx esi, word [ebp - 0x20]
movzx eax, word [ebp - 0x1e]
imul esi, esi, 0x64
add esi, eax
movzx eax, word [ebp - 0x1a]
imul esi, esi, 0x64
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
sub esi, edi
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40aefe
Capabilities:
Create process on windows

Disassembly:
push 0
push str.uninst.exe__s
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00407011
push esi
call fcn.0040aea9
push eax
push esi
push 0x41fde0
call fcn.00409adb
add esp, 0xc
ret
Function at 0x40b40e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4240b8]
push ebx
push esi
push 0x3f3
push dword [ebp + 0x1a8]
mov dword [ebp + 0x19c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x70], eax
push 0x104
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x6c]
push 0x5c
push eax
call fcn.0040f2ff
mov esi, eax
pop ecx
inc esi
pop ecx
inc esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, 0x404
je 0x40b48d
cmp eax, 0x804
je 0x40b485
push dword [0x424d00]
jmp 0x40b493
push dword [0x424cf8]
jmp 0x40b493
push dword [0x424cfc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x74], eax
jne 0x40b4ca
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
or eax, 0xffffffff
jmp 0x40b51d
push edi
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040d90a
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push esi
push edi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x80]
push eax
push 0x461
push dword [ebp - 0x70]
mov byte [edi + esi], bl
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0040f39e
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
pop ebx
call fcn.00410727
add ebp, 0x1a0
leave
ret

Function at 0x40b5cc
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x4240b8]
push 0x83
push dword [0x4258f0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x3ac], 0x3a8
mov dword [ebp - 0x3a8], esi
mov dword [ebp - 0x3a4], 1
mov dword [ebp - 0x3a0], 7
mov dword [ebp - 0x39c], 0x6fd
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x394]
push eax
push 0x80
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x3ac]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
cmp dword [ebp - 0x398], 0
je 0x40b65b
push dword [ebp - 0x398]
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
call fcn.00410727
leave
ret
Function at 0x40b6e0
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
jne 0x40b706
push 4
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040b257
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40b94a
cmp dword [esp + 8], 3
jne 0x40b94a
cmp dword [0x424e4c], 0xffffffff
jne 0x40b732
cmp dword [0x425f10], 0xffffffff
jne 0x40b732
mov dword [0x424e4c], 1
jmp 0x40b94a
mov eax, dword [0x425f1c]
test eax, eax
push ebx
jne 0x40b740
xor ebx, ebx
jmp 0x40b74b
mov ebx, dword [0x425f20]
sub ebx, eax
sar ebx, 2
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push esi
call edi
push dword [0x424e4c]
mov ebp, eax
push esi
push str.OnQuietDownloadInstallTimer_hDlg_x__nState_d_n
call fcn.00409adb
mov ecx, dword [0x424e4c]
add esp, 0xc
test ecx, ecx
jge 0x40b7a1
and dword [0x424e4c], 0
push 3
mov eax, esi
call fcn.0040b1d8
test eax, eax
jg 0x40b79b
call fcn.0040b257
push 0xffffffffffffffff
call fcn.0040f8d0
push 0
push 9
jmp 0x40b7d6
jne 0x40b80c
mov edi, 0x425f18
push edi
call fcn.00403968
test eax, eax
jl 0x40b947
cmp eax, 0x64
jge 0x40b7e7
cmp eax, 0x5f
jle 0x40b7c3
push 0x5f
pop eax
push 0
lea eax, [eax + eax*4]
push 0x64
shl eax, 3
xor edx, edx
pop ecx
div ecx
add eax, 0xa
push eax
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b947
push 0
mov ecx, edi
call fcn.00403fc5
push 0x85
push 0xffffffffffffffff
push esi
mov dword [0x424e4c], 1
call fcn.0040b099
jmp 0x40b947
test ecx, ecx
jle 0x40b833
cmp ecx, 3
jge 0x40b833
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x424e4c], ecx
call fcn.00408c2f
mov eax, dword [0x424e4c]
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x31]
jmp 0x40b893
push 3
pop eax
cmp ecx, eax
jle 0x40b85c
cmp ecx, 5
jg 0x40b85c
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x424e4c], ecx
call fcn.00408c2f
mov eax, dword [0x424e4c]
lea eax, [eax + eax*4 + 0xf]
shl eax, 1
jmp 0x40b893
cmp dword [0x426360], ebx
jge 0x40b8a8
mov edx, dword [0x426360]
inc dword [0x426360]
call fcn.00408c2f
mov eax, dword [0x426360]
cmp eax, ebx
jl 0x40b888
mov dword [0x424e4c], 4
lea eax, [eax + eax*4]
shl eax, 1
cdq
idiv ebx
add eax, 0x46
push 0
push eax
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x424e4c]
cmp ecx, 5
jle 0x40b947
push 3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040b257
mov eax, dword [0x425f10]
cmp eax, 0xffffffff
jne 0x40b8d4
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40b947
xor ebp, ebp
cmp eax, ebp
je 0x40b8e1
push 0x8a
jmp 0x40b8e6
push 0x89
push 0xffffffffffffffff
push esi
call fcn.0040b099
call fcn.00409cd8
push 0x64
pop ecx
xor edx, edx
div ecx
push dword [eax*4 + 0x424d10]
push 2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 0x3ed
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push ebp
push 0x3e8
push esi
call edi
push eax
call ebx
push 1
push 0xfffffffffffffff4
push 2
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebp
push 0x3a98
push 4
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x40bc0d
Capabilities:
Create thread
Terminate process

Disassembly:
mov eax, 0x41a786
call fcn.00410f20
cmp dword [ebp + 0xc], 5
jne 0x40bd93
mov eax, dword [0x42635c]
push esi
xor esi, esi
cmp eax, esi
jne 0x40bc59
or dword [0x42635c], 0xffffffff
push esi
push esi
push esi
push 0x40bb48
push esi
push esi
mov dword [0x425da8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42635c], 0xfffffffe
jmp 0x40bd92
cmp eax, 0xffffffff
je 0x40bd92
cmp eax, 0xfffffffe
push edi
jne 0x40bd1f
mov eax, dword [0x425da8]
cmp eax, esi
je 0x40bd91
cmp eax, 0x1000
push esi
jge 0x40bc97
or dword [0x42635c], 0xffffffff
push 0x8b
push dword [ebp + 8]
call fcn.00409edf
jmp 0x40bcad
lea eax, [ebp + 8]
push eax
call fcn.00404c6e
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], esi
jne 0x40bcb4
push 1
call fcn.0040f8d0
mov eax, dword [0x424e6c]
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
mov eax, dword [0x425da8]
push eax
push eax
push dword [0x425dac]
lea eax, [ebp + 0xc]
push str._s0_ld_ld1_r_n_r_n
push eax
call fcn.004023bd
mov esi, dword [ebp + 0xc]
add esp, 0x14
push dword [ebp + 8]
mov edi, 0x425f18
push esi
push edi
call fcn.00403578
call fcn.0040354d
lea eax, [esi - 0x10]
mov dword [0x42635c], 1
call fcn.0040252d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040252d
jmp 0x40bd91
push ebx
mov edi, 0x425f18
push edi
call fcn.00403968
mov ebx, eax
cmp ebx, esi
jl 0x40bd90
cmp ebx, 0x64
jge 0x40bd6e
cmp ebx, 0x5f
jle 0x40bd3e
push 0x5f
pop ebx
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov ecx, eax
push 0x64
pop esi
lea eax, [ebx + ebx*4]
shl eax, 3
xor edx, edx
div esi
add eax, 0xa
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bd90
push esi
mov ecx, edi
call fcn.00403fc5
mov esi, dword [ebp + 8]
push 5
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040b257
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8