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

Disassembly:
sub esp, 0x14
cmp eax, 3
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
je 0x40195d
push eax
call fcn.00401ae0
add esp, 4
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x401976
pop edi
pop esi
add esp, 0x14
ret 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push ebx
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.00405ec8
mov ebp, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405ec8
add esp, 8
test ebp, ebp
mov ebx, eax
je 0x4019d1
test ebx, ebx
je 0x4019d1
mov eax, dword [esp + 0x14]
push ebp
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4019dd
push ebp
call fcn.0040608b
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x412fe8
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401a08
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add edi, 0xc
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x412fec
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x10]
shr edx, 2
xor esi, esi
test edx, edx
jle 0x401a7b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
mov eax, 0x32
mov edi, ebx
call fcn.00401cc0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401a9a
mov edx, dword [esp + 0x10]
add esi, 1
shr edx, 2
cmp esi, edx
jl 0x401a30
mov edi, dword [esp + 0x28]
push ebp
call fcn.0040608b
push ebx
call fcn.0040608b
add esp, 8
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret 4
push 0x190
call fcn.00405ec8
mov edx, dword [esp + 0x24]
add esp, 4
mov edi, eax
mov esi, 0xc8
movzx ecx, word [edx]
test cx, cx
je 0x401ad2
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x401ab2
sub eax, 2
mov word [eax], 0
jmp 0x401a7f
test esi, esi
jne 0x401ad9
sub eax, 2
mov word [eax], 0
jmp 0x401a7f
Function at 0x401ae0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp eax, 3
push esi
ja case.default.0x401b01
jmp dword [eax*4 + 0x401c10]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x401b92
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401b18
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x401b18
lea eax, [esp + 4]
mov esi, 0x413058
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ebx, [ebx]
movzx ecx, word [esi + eax]
test cx, cx
je 0x401b86
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401b70
jmp 0x401b8a
test edx, edx
jne 0x401b8d
sub eax, 2
mov word [eax], 0
push 0x412fe8
lea esi, [esp + 8]
call fcn.00401c20
push edi
call fcn.00401c20
mov edx, 0x104
mov eax, edi
sub esi, edi
nop
movzx ecx, word [esi + eax]
test cx, cx
je 0x401be7
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401bb0
sub eax, 2
mov word [eax], 0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
test edx, edx
jne 0x401bee
sub eax, 2
mov ecx, dword [esp + 0x20c]
pop esi
mov word [eax], 0
xor ecx, esp
mov eax, 1
call fcn.00406090
add esp, 0x20c
ret

Function at 0x401d20
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x104
push 0
push 0x418130
call fcn.00408aa0
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00408aa0
add esp, 0x18
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov word [eax], 0
push 0x412fe8
lea eax, [esp + 8]
push eax
call esi
push str.partnercol.ini
lea ecx, [esp + 8]
push ecx
call esi
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x401dcc
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
lea eax, [esp]
push eax
push 0x104
push 0x418130
push str.url_name
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 0x418130
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x208]
test eax, eax
setne al
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
Function at 0x4036e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x208
lea eax, [esp + 4]
push 0
push eax
call fcn.00408aa0
add esp, 0xc
call fcn.00404450
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
imul edx, edx, 0x34
lea ecx, [ecx + ecx*8]
mov ecx, dword [ecx*4 + 0x4170d8]
add ecx, edx
mov edx, dword [ecx + 0x20]
cmp edx, 0xffffffff
je 0x403775
cmp dword [ecx + 0x24], eax
jg 0x403733
cmp edx, eax
jge 0x403775
cmp dword [esi + 0x28], 0
je 0x403746
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
imul edx, edx, 0x34
lea ecx, [eax + eax*8]
mov eax, dword [ecx*4 + 0x4170d8]
mov byte [eax + edx + 0x30], 1
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
mov ecx, dword [0x418128]
push 0
push 0x405270
push 0
push 0xae
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
mov dword [0x41866c], eax
je 0x4037a2
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov ecx, dword [edx*4 + 0x4170d8]
imul eax, eax, 0x34
mov edx, dword [eax + ecx + 0x18]
add eax, ecx
mov ecx, dword [eax + 0x14]
push ebp
push edx
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x10]
call fcn.004046c0
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
sub ecx, 1
and ecx, 0x80004005
mov ebp, ecx
jl 0x40387b
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov ecx, dword [edx*4 + 0x4170d8]
imul eax, eax, 0x34
cmp dword [ecx + eax + 0x18], 0x90
jne 0x40380d
mov byte [0x41812d], 1
mov eax, dword [0x41866c]
test eax, eax
je 0x40381d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x24]
imul eax, eax, 0x34
add ecx, ecx
mov edx, dword [ecx + ecx + 0x4170d8]
add ecx, ecx
add edx, eax
cmp byte [edx + 0x29], 0
je 0x40387b
cmp byte [edx + 0x2a], 0
push ebx
push edi
lea edi, [esp + 0xc]
jne 0x403855
mov ebx, dword [ecx + 0x4170ec]
call fcn.00404910
jmp 0x403879
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + ecx*8]
add ecx, ecx
mov edx, dword [ecx + ecx + 0x4170ec]
add ecx, ecx
mov ecx, dword [ecx + 0x4170d8]
mov ebx, dword [ecx + eax + 0x2c]
push edx
call fcn.004047c0
add esp, 4
pop edi
pop ebx
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
imul ecx, ecx, 0x34
lea edx, [eax + eax*8]
mov eax, dword [edx*4 + 0x4170d8]
mov al, byte [eax + ecx + 0x28]
mov ecx, dword [esp + 0x20c]
neg al
sbb eax, eax
and eax, ebp
pop ebp
xor ecx, esp
call fcn.00406090
add esp, 0x20c
ret
Function at 0x4038c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
test byte [esi + 0x18], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
je 0x40390f
cmp dword [esi + 0xc], 0
jne 0x40390f
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x40390f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4038f7
call esi
jmp 0x403903
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40396c
pop edi
mov eax, 0x80004005
pop esi
ret
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x4038e7
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x403970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x4038e7
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test byte [esi + 0x18], 2
je 0x40396a
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x404450
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x41702c]
test eax, eax
jge 0x40455f
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00408aa0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x4044c8
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x4044c8
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00406090
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40454f
sub eax, 1
je 0x404543
sub eax, 1
jne 0x404559
mov eax, dword [esp + 8]
cmp eax, 6
mov dword [0x41702c], 4
jne 0x4044fa
mov dword [0x41702c], 0
jmp 0x404559
cmp eax, 5
jne 0x404559
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x404514
mov dword [0x41702c], 1
jmp 0x404559
cmp eax, 1
jne 0x404559
push str.Service_Pack_2
lea eax, [esp + 0x1c]
push eax
mov dword [0x41702c], 3
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jl 0x404559
mov dword [0x41702c], 2
jmp 0x404559
mov dword [0x41702c], 5
jmp 0x404559
mov dword [0x41702c], 6
mov eax, dword [0x41702c]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00406090
add esp, 0x120
ret
Function at 0x404580
Capabilities:
Get token membership

Disassembly:
push 0xffffffffffffffff
push 0x410cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x4160a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 1
test byte [0x4188a0], al
mov dword [esp + 0xc], ebx
jne 0x404608
or dword [0x4188a0], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [0x418888], eax
mov dword [0x41888c], eax
mov dword [0x418890], eax
mov dword [0x418894], eax
mov dword [0x418898], eax
mov dword [0x41889c], eax
call fcn.00404b50
cmp eax, ebx
jge 0x4045fb
jmp fcn.00404ad0
push 0x410ee0
call fcn.004069a1
add esp, 4
push 0x418888
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, eax
cmp esi, ebx
jl 0x404670
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
cmp esi, ebx
jge 0x404670
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40467f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
push 0x418888
je 0x404694
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x40469c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00406090
add esp, 0x20
ret
Function at 0x4046c0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00401c20
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x1f01ff
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40470f
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0x24]
push ecx
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x404760
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x404760
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x404760
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40477b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
pop ebx
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x4047c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x268
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x264], eax
test edi, edi
mov eax, dword [esp + 0x26c]
mov dword [esp + 4], eax
mov dword [esp], 0
jne 0x404802
or eax, 0xffffffff
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00406090
add esp, 0x268
ret
push esi
push 0x44
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00408aa0
push 0x208
lea edx, [esp + 0x70]
push 0
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
mov word [esp + 0x64], 1
call fcn.00408aa0
add esp, 0x18
push 0x413b58
lea esi, [esp + 0x64]
call fcn.00401c20
push edi
call fcn.00401c20
push 0x413b58
call fcn.00401c20
test ebx, ebx
je 0x404864
push ebx
call fcn.00401c20
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4048aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00406090
add esp, 0x268
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push eax
call esi
cmp eax, 0x102
jne 0x4048e4
mov eax, dword [esp + 8]
test eax, eax
je 0x4048d1
call eax
test eax, eax
je 0x4048e4
mov ecx, dword [esp + 0xc]
push 0x1f4
push ecx
call esi
cmp eax, 0x102
je 0x4048c3
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x268]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00406090
add esp, 0x268
ret

Function at 0x404910
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00408aa0
push 0x208
mov eax, 1
lea ecx, [esp + 0x6c]
push 0
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], eax
mov word [esp + 0x60], ax
call fcn.00408aa0
add esp, 0x18
push 0x413b5c
lea esi, [esp + 0x60]
call fcn.00401c20
push 0x413b58
call fcn.00401c20
push edi
call fcn.00401c20
push 0x413b58
call fcn.00401c20
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4049c8
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00406090
add esp, 0x264
ret
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push edx
call esi
cmp eax, 0x102
jne 0x4049fe
test ebx, ebx
je 0x4049eb
call ebx
test eax, eax
je 0x4049fe
mov eax, dword [esp + 8]
push 0x1f4
push eax
call esi
cmp eax, 0x102
je 0x4049e1
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x264]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00406090
add esp, 0x264
ret
Function at 0x404a30
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x404ac1
push ebx
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404ab1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x412fe8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404ab1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov edi, dword [esp + 0x24]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
push str._d._d._d._d
mov eax, 0x104
call fcn.00404af0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x404be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_LiveMessenger
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404c87
mov eax, dword [esp]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00405ec8
mov ecx, dword [esp + 0xc]
add esp, 4
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push str.InstallationDirectory
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404c55
push esi
call fcn.00406ba0
add esp, 4
xor al, al
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
cmp edx, 0x7fffffff
ja 0x404c6c
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.00401c70
push esi
call fcn.00406ba0
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
add esp, 8
ret
xor al, al
add esp, 8
ret
Function at 0x404ff0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x410d18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4160a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x418668]
cmp word [eax + 0xc], 0
lea ebx, [eax + 0xc]
mov edi, eax
je 0x4017d6
cmp word [eax + 0x214], 0
lea ebp, [eax + 0x214]
je 0x4017d6
cmp dword [eax + 0x41c], 0
lea esi, [eax + 0x41c]
jne 0x401785
push 0x150
call fcn.004060b8
add esp, 4
test eax, eax
je 0x401781
call fcn.00405af0
jmp 0x401783
xor eax, eax
mov dword [esi], eax
mov esi, dword [esi]
test esi, esi
je 0x4017d6
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
mov dword [esp + 0x18], esi
call ecx
mov dword [esp + 0x20], 0
call fcn.004058b0
push ebx
mov eax, ebp
mov ecx, esi
call fcn.00405ba0
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 8]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, 0x80004005
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x418460
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x418460
add eax, 0xfffffffe
jmp 0x405010
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405010
mov ecx, dword [str.google.html]
mov edx, dword [0x413c10]
mov dword [eax], ecx
mov ecx, dword [0x413c14]
mov dword [eax + 4], edx
mov edx, dword [0x413c18]
mov dword [eax + 8], ecx
mov ecx, dword [0x413c1c]
mov dword [eax + 0xc], edx
mov edx, dword [0x413c20]
push esi
mov dword [eax + 0x10], ecx
push 0x420
mov dword [eax + 0x14], edx
call fcn.004060b8
mov esi, eax
add esp, 4
test esi, esi
je 0x4050a4
push 0x208
lea eax, [esi + 0xc]
push 0
push eax
mov dword [esi], vtable.CDownloadPageTask.0
mov dword [esi + 8], 0
mov dword [esi + 0x41c], 0
call fcn.00408aa0
push 0x208
lea ecx, [esi + 0x214]
push 0
push ecx
call fcn.00408aa0
add esp, 0x18
jmp 0x4050a6
xor esi, esi
mov dword [0x418668], esi
test esi, esi
pop esi
je 0x4050bb
call fcn.00404f70
jmp 0x401710
ret
Function at 0x4050c0
Capabilities:
Delete file

Disassembly:
sub esp, 0xa14
mov eax, dword [0x4160a4]
xor eax, esp
mov dword [esp + 0xa10], eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push str.dialogHeight:458px_dialogWidth:559px_scroll:no
call esi
mov edi, eax
mov eax, dword [0x418668]
test eax, eax
je 0x40512a
cmp dword [eax + 8], 0
je 0x40512a
push 0x400
lea eax, [esp + 0x21c]
push eax
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x405123
lea ecx, [esp + 0x218]
push ecx
jmp 0x40515d
push 0x413ba0
jmp 0x40515d
push 0xbb
push 0x17
push str.bg1.jpg
lea eax, [esp + 0x1c]
call fcn.004046c0
push 0xb7
push 0x17
push str.runonce.html
mov eax, 0x418460
call fcn.004046c0
add esp, 0x18
push 0x418460
call esi
lea edx, [esp + 8]
push edx
mov esi, eax
push esi
push 0
call sub.urlmon.dll_CreateURLMoniker
test eax, eax
jl 0x4051e1
lea eax, [esp + 0xc]
push eax
push 0x4113bc
push 3
push 0
push 0x4113ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4051b5
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push 0
push 0
push edi
push 0
push edx
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x418460
call esi
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0xa18]
pop edi
pop esi
xor ecx, esp
call fcn.00406090
add esp, 0xa14
ret

Function at 0x405360
Capabilities:
Inspect load icon resource

Disassembly:
movzx eax, word [esi + 0x3bc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
push 0
call ebp
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4053ac
push 0xad
push eax
call ebp
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4053ac
push 0x7f00
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4053ac
pop edi
pop ebp
mov eax, 0x80004005
pop ebx
ret
push 0x3b8
push 0
push esi
call fcn.00408aa0
mov ecx, dword [esi + 0x3b8]
lea eax, [esi + 0x18]
mov edx, str.Windows_Live_Messenger_2009
add esp, 0xc
mov dword [esi + 0x14], edi
mov dword [esi], 0x3b8
mov dword [esi + 4], ecx
mov dword [esi + 8], 0x3e8
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0
mov edi, 0x7f
sub edx, eax
movzx ecx, word [edx + eax]
test cx, cx
je 0x405408
mov word [eax], cx
add eax, 2
sub edi, 1
jne 0x4053f2
jmp 0x40540c
test edi, edi
jne 0x40540f
sub eax, 2
push esi
push 0
mov word [eax], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x4053a3
pop edi
pop ebp
mov dword [esi + 0x3c0], 1
xor eax, eax
pop ebx
ret

Function at 0x406090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4160a4]
jne 0x40609a
repz ret
jmp fcn.004073a7