joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x43137c], 0
jl 0x40d246
mov eax, dword [0x43137c]
jmp 0x40d36a
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00413bb0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d29e
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d29e
xor eax, eax
jmp 0x40d36a
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40d35b
cmp dword [ebp - 0x12c], 1
je 0x40d34f
cmp dword [ebp - 0x12c], 2
je 0x40d2d2
jmp 0x40d365
mov dword [0x43137c], 4
cmp dword [ebp - 0x124], 6
jne 0x40d2f1
mov dword [0x43137c], 0
jmp 0x40d365
cmp dword [ebp - 0x124], 5
jne 0x40d30f
cmp dword [ebp - 0x120], 2
jb 0x40d30f
mov dword [0x43137c], 1
jmp 0x40d365
cmp dword [ebp - 0x124], 5
jne 0x40d34d
cmp dword [ebp - 0x120], 1
jne 0x40d34d
mov dword [0x43137c], 3
push str.Service_Pack_2
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jl 0x40d34b
mov dword [0x43137c], 2
jmp 0x40d365
jmp 0x40d365
mov dword [0x43137c], 5
jmp 0x40d365
mov dword [0x43137c], 6
mov eax, dword [0x43137c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x40d440
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4278fe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x433498]
and eax, 1
jne 0x40d4b4
mov ecx, dword [0x433498]
or ecx, 1
mov dword [0x433498], ecx
mov dword [ebp - 4], 0
mov ecx, 0x433480
call fcn.0040dc30
push 0x4280a0
call fcn.004140ef
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0
push 1
push 0x433480
lea ecx, [ebp - 0x14]
call fcn.0040dae0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 5
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x40d52e
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40d52e
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x28], 0
je 0x40d53e
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x18], 0
je 0x40d558
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x14]
call fcn.0040db30
mov eax, dword [ebp - 0x30]
jmp 0x40d569
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x14]
call fcn.0040db30
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x40d600
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 0x80004005
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004047b0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x1f01ff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40d665
mov eax, dword [ebp - 0x1c]
jmp 0x40d776
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x10]
push edx
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d6a8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
jmp 0x40d776
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d6db
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
jmp 0x40d776
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d70b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
jmp 0x40d776
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d737
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
jmp 0x40d776
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40d7a8
or eax, 0xffffffff
jmp 0x40d8c9
push 0x44
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00413bb0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
push 0x208
push 0
lea ecx, [ebp - 0x270]
push ecx
call fcn.00413bb0
add esp, 0xc
push 0x42ad7c
push 0x104
lea edx, [ebp - 0x270]
push edx
call fcn.004047b0
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x270]
push ecx
call fcn.004047b0
push 0x42ad80
push 0x104
lea edx, [ebp - 0x270]
push edx
call fcn.004047b0
cmp dword [ebp + 0xc], 0
je 0x40d83e
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x270]
push ecx
call fcn.004047b0
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x270]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
jmp 0x40d8c9
mov edx, 1
test edx, edx
je 0x40d8b8
push 0x1f4
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0x102
jne 0x40d8b4
cmp dword [ebp + 0x10], 0
je 0x40d8b2
call dword [ebp + 0x10]
test eax, eax
jne 0x40d8b2
jmp 0x40d8b8
jmp 0x40d8b6
jmp 0x40d8b8
jmp 0x40d879
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x40d8e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
push 0x44
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00413bb0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
push 0x208
push 0
lea ecx, [ebp - 0x270]
push ecx
call fcn.00413bb0
add esp, 0xc
push 0x42ad84
push 0x104
lea edx, [ebp - 0x270]
push edx
call fcn.004047b0
push 0x42ad9c
push 0x104
lea eax, [ebp - 0x270]
push eax
call fcn.004047b0
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x270]
push edx
call fcn.004047b0
push 0x42ada0
push 0x104
lea eax, [ebp - 0x270]
push eax
call fcn.004047b0
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d9b6
xor eax, eax
jmp 0x40da06
mov ecx, 1
test ecx, ecx
je 0x40d9f5
push 0x1f4
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0x102
jne 0x40d9f1
cmp dword [ebp + 0xc], 0
je 0x40d9ef
call dword [ebp + 0xc]
test eax, eax
jne 0x40d9ef
jmp 0x40d9f5
jmp 0x40d9f3
jmp 0x40d9f5
jmp 0x40d9b6
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret

Function at 0x40da20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0x42ada4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40dad8
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40dac4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dac4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
push 0x42ada8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040dda0
add esp, 0x1c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x40ded0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0xc8
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40df8e
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413741
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40df5f
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004171c3
add esp, 4
xor al, al
jmp 0x40df94
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00404770
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004171c3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40df92
xor al, al
jmp 0x40df94
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40e0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0xc8
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e17e
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413741
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e14f
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004171c3
add esp, 4
xor al, al
jmp 0x40e184
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00404770
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004171c3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e182
xor al, al
jmp 0x40e184
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4110a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4110ba
lea eax, [ebp - 4]
push eax
push 6
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x4110e4
cmp dword [ebp + 8], 2
jne 0x4110d0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x4110e4
cmp dword [ebp + 8], 1
jne 0x4110e4
lea edx, [ebp - 4]
push edx
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x4336a8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x4336a8
push 0x104
push 0x4334a0
call fcn.00404770
cmp dword [ebp + 8], 2
je 0x411134
push 0x42aeb0
push 0x104
push 0x4334a0
call fcn.004047b0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
push 0x4334a0
call fcn.004047b0
push 0x4334a0
call fcn.00411010
add esp, 4
test eax, eax
jne 0x411152
push 0
push 0x4334a0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x4334a0
mov esp, ebp
pop ebp
ret

Function at 0x411160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004110a0
add esp, 8
push eax
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00404770
push 0x42aeb4
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004047b0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004047b0
push 0
push 0x80
push 2
push 0
push 1
push 0x1f01ff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
je 0x4112d7
mov dword [ebp - 0x220], str._InternetShortcut__n
mov dword [ebp - 0x21c], 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.00414110
add esp, 4
push eax
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4112b1
push str.URL
push 0x104
lea edx, [ebp - 0x330]
push edx
call fcn.004116b0
mov eax, dword [ebp + 0x14]
push eax
push 0x104
lea ecx, [ebp - 0x330]
push ecx
call fcn.004116f0
push 0x42aed4
push 0x104
lea edx, [ebp - 0x330]
push edx
call fcn.004116f0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x330]
push ecx
call fcn.00414110
add esp, 4
push eax
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4112bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x411610
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x42b2e0
push 1
push 0
push 0x42b2f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4116a2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea eax, [ebp - 0xc]
push eax
push 0x42b310
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x411694
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x411870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427d7b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x431474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4338b0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.google.html
push 0x4338b0
call fcn.00415e40
add esp, 8
push 0x420
call fcn.00413764
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x4118e1
mov ecx, dword [ebp - 0x14]
call fcn.00403f10
mov dword [ebp - 0x18], eax
jmp 0x4118e8
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [0x433ab8], ecx
cmp dword [0x433ab8], 0
je 0x411929
push 0x4338b0
mov edx, dword [str.http:__www.google.cn]
push edx
mov ecx, dword [0x433ab8]
call fcn.00411ac0
mov ecx, dword [0x433ab8]
call fcn.00404140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x411940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0x18], eax
push str.dialogHeight:458px_dialogWidth:559px_scroll:no
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 8], eax
cmp dword [0x433ab8], 0
je 0x4119c1
mov ecx, dword [0x433ab8]
call fcn.00411b10
test eax, eax
je 0x4119c1
push 0x400
lea eax, [ebp - 0xa20]
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 0x4119af
lea ecx, [ebp - 0xa20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
jmp 0x4119bf
mov edx, dword [str.http:__runonce.windowslive.cn_]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
jmp 0x411a03
push 0xbb
push 0x17
push str.bg1.jpg
lea eax, [ebp - 0x220]
push eax
call fcn.0040d600
add esp, 0x10
push 0xb7
push 0x17
push str.runonce.html
push 0x4338b0
call fcn.0040d600
add esp, 0x10
push 0x4338b0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
call sub.urlmon.dll_CreateURLMoniker
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x411a20
jmp 0x411aa4
lea eax, [ebp - 4]
push eax
push 0x42b340
push 3
push 0
push 0x42b330
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 4], 0
je 0x411a6a
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
push 0x4338b0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret

Function at 0x413b95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431474]
jne 0x413b9f
repz ret
jmp fcn.00418b6c
Function at 0x420b8e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004185bb
xor ebx, ebx
cmp dword [0x4345b0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x420c63
push 0x42c3c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x420bce
xor eax, eax
jmp 0x420d27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c3b8
push edi
call esi
cmp eax, ebx
je 0x420bc7
push eax
call fcn.00418558
mov dword [esp], 0x42c3a8
push edi
mov dword [0x4345b0], eax
call esi
push eax
call fcn.00418558
mov dword [esp], 0x42c394
push edi
mov dword [0x4345b4], eax
call esi
push eax
call fcn.00418558
mov dword [0x4345b8], eax
lea eax, [ebp - 8]
push eax
call fcn.00419503
test eax, eax
pop ecx
pop ecx
je 0x420c31
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c34
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x420c63
push 0x42c378
push edi
call esi
push eax
call fcn.00418558
cmp eax, ebx
pop ecx
mov dword [0x4345c0], eax
je 0x420c63
push 0x42c360
push edi
call esi
push eax
call fcn.00418558
pop ecx
mov dword [0x4345bc], eax
mov eax, dword [0x4345bc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x420cdc
cmp dword [0x4345c0], esi
je 0x420cdc
push eax
call fcn.004185c4
pop ecx
call eax
cmp eax, ebx
je 0x420ca9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4345c0]
call fcn.004185c4
pop ecx
call eax
test eax, eax
je 0x420ca9
test byte [ebp - 0x18], 1
jne 0x420cdc
lea eax, [ebp - 0xc]
push eax
call fcn.0041953a
test eax, eax
pop ecx
je 0x420cc4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c34
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x420cd3
or dword [ebp + 0x10], 0x200000
jmp 0x420d0d
or dword [ebp + 0x10], 0x40000
jmp 0x420d0d
mov eax, dword [0x4345b4]
cmp eax, esi
je 0x420d0d
push eax
call fcn.004185c4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420d0d
mov eax, dword [0x4345b8]
cmp eax, esi
je 0x420d0d
push dword [ebp - 4]
push eax
call fcn.004185c4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4345b0]
call fcn.004185c4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret