joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439e49
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x47d388
call fcn.0044b114
mov ebx, dword [ebp + 0x41c]
xor eax, eax
push 0x206
mov word [ebp + 0x208], ax
xor esi, esi
lea eax, [ebp + 0x20a]
push esi
push eax
mov edi, ecx
call fcn.00449bc0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x49501c]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push str._c:_
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00417af3
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0043781c
test eax, eax
je 0x439fd2
cmp dword [ebp - 0x18], esi
jl 0x439fd2
jg 0x439eff
cmp dword [ebp - 0x1c], 0x6400000
jbe 0x439fd2
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
push 0x208
lea eax, [ebp]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00449bc0
add esp, 0xc
push esi
push 0x26
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x439f73
push str.360360safe
lea ecx, [ebp - 0x18]
call fcn.0041077d
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ax, word [ebp + 0x208]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e910
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040bf88
jmp 0x439f9b
movzx eax, word [ebp + 0x208]
push eax
lea eax, [ebp - 0x10]
push 0x48038c
push eax
call fcn.00417af3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x750]
call fcn.0040e8c0
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00439c31
test eax, eax
je 0x439fca
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040e8c0
lea ecx, [ebp - 0x10]
call fcn.0040bf88
lea ecx, [ebp - 0x14]
call fcn.0040bf88
xor eax, eax
inc eax
jmp 0x439fdc
lea ecx, [ebp - 0x10]
call fcn.0040bf88
lea ecx, [ebp - 0x14]
call fcn.0040bf88
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x414
leave
ret 4
Function at 0x43ad36
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x10
mov eax, 0x47d514
call fcn.0044b114
push pe_nt_image_headers32
xor esi, esi
lea eax, [ebp]
push esi
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x80
call fcn.00449bc0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Desktop.exe
lea ecx, [ebp - 0x10]
call fcn.0041077d
push 0x4874bc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0041077d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x18], 1
jne 0x43adfa
cmp word [ebp], si
je 0x43adfa
cmp dword [ebp - 0x1c], esi
jbe 0x43adfa
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43adfa
lea eax, [ebp]
push esi
push eax
call fcn.004102aa
pop ecx
pop ecx
test eax, eax
je 0x43adfa
lea ecx, [ebp - 0x14]
call fcn.0040bf88
lea ecx, [ebp - 0x10]
call fcn.0040bf88
xor eax, eax
inc eax
jmp 0x43ae0c
lea ecx, [ebp - 0x14]
call fcn.0040bf88
lea ecx, [ebp - 0x10]
call fcn.0040bf88
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x104
leave
ret
Function at 0x43af87
Capabilities:
Check if file exists
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x79c], eax
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 0x80], str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se.exe
mov dword [ebp - 0x7c], str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
mov dword [ebp - 0x78], str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_5.exe
mov dword [ebp - 0x74], str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
mov dword [ebp - 0x6c], ebx
inc esi
xor eax, eax
push 0x7fe
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.00449bc0
push 0x800
lea eax, [ebp - 0x64]
push ebx
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], 0x400
call fcn.00449bc0
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x4874bc
push dword [ebp + edi*4 - 0x80]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43b04e
cmp dword [ebp - 0x70], esi
jne 0x43b04e
cmp word [ebp - 0x64], bx
je 0x43b04e
cmp dword [ebp - 0x68], ebx
jbe 0x43b04e
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b04e
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004102aa
pop ecx
pop ecx
test eax, eax
jne 0x43b09d
inc edi
cmp edi, 4
jb 0x43afcb
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
push 0x481ce8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b082
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x79c]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449c3a
add ebp, 0x7a0
leave
ret
mov dword [ebp - 0x6c], esi
jmp 0x43b082

Function at 0x43bdac
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x47d5de
call fcn.0044b114
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CCommandParser.0
mov eax, dword [0x49501c]
mov dword [esi + 4], eax
mov eax, dword [0x49501c]
and dword [ebp - 4], 0
mov dword [esi + 8], eax
mov eax, dword [0x49501c]
lea edi, [esi + 0xc]
mov dword [edi], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, edi
call fcn.0040e910
mov ecx, esi
call fcn.0043bc86
mov eax, esi
call fcn.0044b1ec
ret
Function at 0x43bf33
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b8]
push ebx
push esi
mov esi, dword [ebp + 0x1b4]
mov dword [ebp - 0x70], eax
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x43bfd2
push edi
push 0x208
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.00449bc0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.0044eb7e
xor eax, eax
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
add esp, 0x20
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x43bfd0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x43bfd2
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00449c3a
add ebp, 0x1ac
leave
ret

Function at 0x43c09c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x43c0bb
test byte [ebp - 4], 7
je 0x43c0bb
xor eax, eax
inc eax
leave
ret
call fcn.0043c029
leave
ret

Function at 0x43c6c7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0044b510
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x43c7aa
test edi, edi
je 0x43c7aa
cmp dword [ebp + 0x10], 0x80
jl 0x43c7aa
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x43c7aa
cmp eax, 0x1fff
ja 0x43c7aa
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43c7aa
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x48037c
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43c7aa
push dword [ebp + 0x10]
push 0
push edi
call fcn.00449bc0
mov eax, dword [ebp - 0x2008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push edi
call fcn.0043c66f
xor eax, eax
add esp, 0x28
inc eax
jmp 0x43c7ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449c3a
leave
ret
Function at 0x43cbee
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x914
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x914], eax
push 0xc
mov eax, 0x47d658
call fcn.0044b114
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x43cdb8
push ebx
call fcn.0044aa75
pop ecx
test eax, eax
je 0x43cdb8
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], esi
mov dword [ebp + 0x460], esi
xor eax, eax
mov edi, 0x18e
push edi
mov word [ebp + 0x5f4], ax
lea eax, [ebp + 0x5f6]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00449bc0
push ebx
push str._s.
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.0043c66f
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0043c5b5
test eax, eax
je 0x43cd9c
mov ebx, str._s_s
lea ecx, [ebp]
call fcn.0043c2e9
lea ecx, [ebp]
mov dword [ebp - 0x18], eax
call fcn.0043c578
test eax, eax
jne 0x43cd8f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.0043cb2f
push 0xc8
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d426
push eax
push esi
lea eax, [ebp + 0x464]
push eax
call fcn.004105e9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040bf88
push 0x10
lea ecx, [ebp]
call fcn.0043c2c5
push edi
push 0
test eax, eax
je 0x43cd3e
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00449bc0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.0043c66f
lea eax, [ebp + 0x784]
push eax
call fcn.0043cbee
add esp, 0x24
jmp 0x43cd8f
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00449bc0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.0043c66f
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43cd8f
push 4
push eax
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x18], 0
jne 0x43cc9e
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0043c310
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0043c310
xor eax, eax
inc eax
jmp 0x43cdba
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x914]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x918
leave
ret
Function at 0x43cf12
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x47d6b5
call fcn.0044b114
push 0x800
xor edi, edi
lea eax, [ebp]
push edi
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [ebp]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp word [ebp], di
je 0x43cfc8
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x10]
push str._c:_
push eax
mov dword [ebp - 4], edi
call fcn.00417af3
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call fcn.0043bf33
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, dword [ebp + 0x810]
jg 0x43cfed
jl 0x43cfac
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x80c]
ja 0x43cfed
push esi
call fcn.0044aa75
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x10]
lea esi, [esi + eax*2 + 2]
call fcn.0040bf88
cmp word [esi], di
jne 0x43cf68
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x804
leave
ret
movzx esi, word [esi]
lea ecx, [ebp - 0x10]
call fcn.0040bf88
mov ax, si
jmp 0x43cfca

Function at 0x43cffd
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.00449bc0
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00449bc0
add esp, 0x18
push edi
push 0x20
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x104
lea eax, [ebp + 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x18c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041077d
push edi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040bf56
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
lea ecx, [ebp - 0x80]
call fcn.0040bf88
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449c3a
add ebp, 0x398
leave
ret

Function at 0x43d97c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x43d9ba
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x43d996
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x43d9a1
cmp eax, 1
jne 0x43d9a1
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x18]
and dword [esi + 0xc], 0
and dword [esi + 8], 0
and dword [esi + 0x14], 0
or dword [esi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x43da64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x43da89
xor eax, eax
jmp 0x43db32
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x43dadc
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x43dadc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
jne 0x43dac3
push edi
jmp 0x43dad6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x43dae0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x43db31
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0044ce90
add esp, 0xc
push esi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp + 0x10]
xor ebx, ebx
call fcn.00410e02
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43db1b
push edi
push dword [ebp + 0x10]
call fcn.00410af9
pop ecx
pop ecx
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x43db2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43de49
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.0044b510
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.00449bc0
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00449bc0
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0043d8a4
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.0044aa8f
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43df1c
inc edi
cmp edi, 0xa
jl 0x43deb3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449c3a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040e910
xor eax, eax
inc eax
jmp 0x43df0d
Function at 0x43df2f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43df55
xor al, al
jmp 0x43e09c
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x43dfad
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x43dfad
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x43df94
push eax
jmp 0x43dfa7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x43dfb4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x43e09b
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0044ce90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea esi, [edi + 0x18]
push esi
call fcn.0043de49
pop ecx
test eax, eax
je 0x43e01a
mov eax, dword [esi]
push 0x4825f4
push eax
call fcn.0044d6ee
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x43e01a
push ebx
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0044f289
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x43e01a
push ebx
call fcn.0044ee26
push ebx
call fcn.0044d5ac
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x43e032
mov esi, dword [esi]
push ebx
push esi
call fcn.00410adb
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43e068
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.00410e02
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43e05b
push eax
push dword [ebp + 0xc]
call fcn.00410af9
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43e068
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0x14], ebx
test ebx, ebx
je 0x43e094
mov ecx, ebx
mov dword [edi + 0x10], 1
call fcn.00418f8a
mov ecx, dword [edi + 0x14]
mov dword [edi + 8], eax
call fcn.00418fae
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.0043d841
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x43f4af
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x482604
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
test eax, eax
je 0x43f518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43f4f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.Q360InstallerMainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x43f51a
push edi
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 4]
call fcn.0043f38b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x43f9a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x43f98e
push eax
push eax
mov dword [ebp - 4], eax
call fcn.0044e469
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
leave
ret

Function at 0x43ff95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x43ff7e
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x4c], eax
call fcn.0044e469
mov dword [esi + 0x20], eax
add esp, 0x18
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4401a3
Capabilities:
Delete file
Move file

Disassembly:
push 8
mov eax, 0x47d9a0
call fcn.0044b114
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CP2SPWrapper.0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ebx, [edi + 0xc]
push dword [ebx]
mov dword [ebp - 4], 1
call esi
push str.liveupdatelogP2SP_360installer.log
add edi, 8
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040f74d
push 4
push 0
push dword [eax]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040bf88
push 0x482678
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040f74d
push 4
push 0
push dword [eax]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040bf88
push 4
push 0
push dword [edi]
call esi
mov ecx, ebx
call fcn.0040bf88
mov ecx, edi
call fcn.0040bf88
call fcn.0044b1ec
ret