joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426d00
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4584eb
push eax
mov eax, dword [0x469c64]
mov dword fs:[0], esp
sub esp, 0x204
test eax, eax
push ebx
push esi
mov esi, ecx
jne 0x426d48
mov eax, dword [esi + 0x7c4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x426d48
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00427840
mov ecx, dword [0x463058]
mov dword [esp + 8], ecx
mov edx, dword [0x469708]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0xc]
push pe_nt_image_headers32
mov eax, dword [edx + 8]
push ecx
push 0xa8
push eax
mov dword [esp + 0x224], 0
call ebx
test eax, eax
jne 0x426d87
mov word [esp + 0xc], ax
mov edx, pe_nt_image_headers32
sub edx, eax
cmp edx, 1
jle 0x426db7
lea eax, [esp + 0xc]
test eax, eax
je 0x426da6
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
push eax
call fcn.00403e10
jmp 0x426e18
push edi
push 0x1ff
lea ecx, [esp + 0x10]
mov edi, 0x200
call fcn.00403bf0
mov esi, eax
test esi, esi
je 0x426e0c
mov eax, dword [0x469708]
push edi
push esi
push 0xa8
mov eax, dword [eax + 8]
push eax
call ebx
test eax, eax
jne 0x426dea
mov word [esi], ax
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x426e0c
add edi, 0x100
lea ecx, [esp + 0xc]
lea edx, [edi - 1]
push edx
call fcn.00403bf0
mov esi, eax
test esi, esi
jne 0x426dd1
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00403cb0
pop edi
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 8]
mov edx, dword [0x46305c]
pop esi
pop ebx
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x426e61
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x426e61
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret

Function at 0x4271d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xe0]
push 5
push eax
call edi
mov ecx, dword [esi + 0x7bc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x427208
mov eax, dword [0x469c64]
test eax, eax
jne 0x427208
push 0
lea ecx, [esi + 0xa0]
call fcn.004158a0
mov edx, dword [esi + 0x1a8]
push 5
push edx
call edi
mov eax, dword [esi + 0x538]
push 5
push eax
call edi
mov eax, dword [0x469c64]
test eax, eax
jne 0x4272b3
mov ecx, dword [esi + 0x400]
push ebx
push 5
push ecx
call edi
mov edx, dword [esi + 0x400]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 0x14
push 0x37
push 0xeb
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x338]
push 1
push 0x14
push 0x31
push 0xeb
push 0xe9
push eax
call ebx
mov ecx, dword [esi + 0x338]
push 0
push ecx
call edi
mov edx, dword [esi + 0x270]
push 5
push edx
call edi
mov eax, dword [esi + 0x270]
push 1
push 0x14
push 0x31
push 0xeb
push 0xe9
push eax
call ebx
mov eax, dword [0x469c64]
pop ebx
test eax, eax
jne 0x4272b3
mov ecx, dword [esi + 0x470]
push 5
push ecx
call edi
pop edi
pop esi
ret
Function at 0x428610
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
mov edx, dword [eax]
mov eax, dword [edx - 8]
test eax, eax
jne 0x42862c
add esp, 0x410
ret 4
cmp eax, 0x104
jle 0x42863e
xor eax, eax
add esp, 0x410
ret 4
push edi
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push 0x2710
push 0x46353c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [esp + 4], 0
pop edi
jne 0x428676
xor eax, eax
add esp, 0x410
ret 4
lea edx, [esp]
push 0x463538
push edx
call fcn.00443ac3
add esp, 8
test eax, eax
jne 0x428695
add esp, 0x410
ret 4
push eax
call fcn.00443a15
add esp, 4
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
add esp, 0x410
ret 4

Function at 0x4287c0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x22c
push ebx
mov ebx, dword [esp + 0x234]
push esi
xor esi, esi
cmp ebx, esi
je 0x428883
mov eax, dword [0x463544]
mov ecx, dword [0x463548]
mov dx, word [ebx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
mov word [esp + 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x428883
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], si
push esi
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x34]
push esi
push ecx
push ebx
call fcn.0044416c
add esp, 0x14
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push edx
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x428883
mov eax, dword [esp + 0x23c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 1
pop ebx
add esp, 0x22c
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x22c
ret 8
Function at 0x4299b0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x458691
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x463058]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [ebx + 4], eax
mov ecx, dword [0x463058]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 8], ecx
mov edx, dword [0x463058]
mov dword [ebx + 0xc], edx
mov byte [esp + 0x1c], 2
mov dword [ebx], 0x45abb0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp esi, edi
jne 0x429a0b
xor ebp, ebp
jmp 0x429a14
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx + 0xc]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x429a27
cmp ebp, dword [eax - 4]
jle 0x429a8e
mov edx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, edx
je 0x429a57
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429a4e
mov eax, dword [ebx + 0xc]
sub eax, 0xc
push eax
call fcn.0043733c
add esp, 4
mov ecx, dword [0x463058]
mov dword [ebx + 0xc], ecx
cmp ebp, edi
jne 0x429a66
mov edx, dword [0x463058]
mov dword [ebx + 0xc], edx
jmp 0x429a8e
lea eax, [ebp + ebp + 0xe]
push eax
call fcn.00442bba
add esp, 4
cmp eax, edi
je 0x429abc
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], di
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0xc], eax
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x429aad
mov edi, dword [ebx + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0xc]
mov word [edx + eax], 0
mov ecx, ebx
call fcn.00429b90
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42a200
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x224
push esi
xor esi, esi
cmp edx, esi
je 0x42a28d
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
push esi
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push esi
push eax
push edx
call fcn.0044416c
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x42a28d
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
add esp, 0x224
ret
xor eax, eax
pop esi
add esp, 0x224
ret
Function at 0x42b120
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x42b13e
test byte [esp], 7
mov eax, 1
jne 0x42b143
call fcn.0042b090
pop ecx
ret

Function at 0x42b150
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x45876b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push ebx
push ebp
push esi
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
lea esi, [esp + 0x1c]
cmp word [esp + 0x1c], bx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x42b24f
mov edi, dword [esp + 0x830]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [0x463058]
mov dword [esp + 0x10], ecx
xor edx, edx
lea eax, [esp + 0x10]
mov dx, word [esi]
mov dword [esp + 0x824], ebx
push edx
push 0x4639f0
push eax
call fcn.00406f70
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0042a200
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
jg 0x42b26b
jl 0x42b203
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x82c]
cmp ecx, eax
ja 0x42b26b
push esi
call fcn.004438a5
mov ecx, dword [0x46305c]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x824], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42b246
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42b246
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
cmp word [esi], bx
jne 0x42b1b2
xor ax, ax
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x818
ret
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
mov si, word [esi]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42b299
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42b299
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ax, si
jmp 0x42b252
Function at 0x42b2a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x614
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x218]
push 0x20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x463058]
lea eax, [esp + 0xc]
test eax, eax
mov dword [esp + 8], edx
je 0x42b3ed
lea ecx, [esp + 0xc]
shr ecx, 0x10
jne 0x42b3ad
xor edi, edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x41c]
mov di, dx
push pe_nt_image_headers32
push eax
push edi
call fcn.00403f40
mov ecx, pe_nt_image_headers32
sub ecx, eax
cmp ecx, 1
jle 0x42b361
lea edx, [esp + 0x41c]
lea ecx, [esp + 8]
push edx
call fcn.004030c0
jmp 0x42b3ed
push 0x1ff
lea ecx, [esp + 0xc]
mov esi, 0x200
call fcn.00403bf0
test eax, eax
je 0x42b3a0
push esi
push eax
push edi
call fcn.00403f40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x42b3a0
add esi, 0x100
lea ecx, [esp + 8]
lea edx, [esi - 1]
push edx
call fcn.00403bf0
test eax, eax
jne 0x42b378
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00403cb0
jmp 0x42b3ed
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x42b3ed
push esi
lea ecx, [esp + 0xc]
call fcn.00403db0
test eax, eax
je 0x42b3ed
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x42b3ed
mov edi, dword [esp + 8]
mov eax, ecx
lea esi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x42b415
lea ecx, [esp + 0x214]
push ecx
push eax
call fcn.00442620
add esp, 8
test eax, eax
je 0x42b415
sub eax, dword [esp + 8]
sar eax, 1
jmp 0x42b418
or eax, 0xffffffff
xor edx, edx
test eax, eax
mov eax, dword [esp + 8]
setge dl
mov esi, edx
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42b450
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42b450
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x614
ret
Function at 0x42b540
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00443b20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x42b634
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x42b634
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x42b634
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x42b634
cmp eax, 0x1fff
ja 0x42b634
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b634
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x46354c
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b634
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push ebp
push ebx
call fcn.0042a960
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200c
ret

Function at 0x42c9d0
Capabilities:
Delete file

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

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x458838
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
and eax, 0xffff
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x42ce82
xor eax, eax
jmp 0x42cf88
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
jne 0x42ce97
xor eax, eax
jmp 0x42cf88
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
jne 0x42ceb3
xor eax, eax
jmp 0x42cf88
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x42cecf
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x42cf88
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x42ceef
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x42cf88
mov ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], ebp
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebp
je 0x42cf20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x42cf69
mov edi, dword [esp + 0x20]
push 0x10
call fcn.004354c0
mov esi, eax
cmp esi, ebp
je 0x42cf67
lea eax, [esp + 0x28]
mov dword [esi], 0x45a5ec
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.004357c0
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x42cf69
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
cmp eax, ebp
je 0x42cf86
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42e620
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e638
mov eax, 0x1001
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.00442330
add esp, 4
test eax, eax
jne 0x42e64f
mov eax, 0x1003
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.0041f460
add esp, 4
test eax, eax
jne 0x42e69f
mov cl, byte [0x46aed0]
mov al, 1
test al, cl
jne 0x42e68c
mov dl, cl
mov ecx, 0x46aee0
or dl, al
mov byte [0x46aed0], dl
call fcn.00433620
push 0x403fb0
call fcn.00442500
add esp, 4
push 0x1f
mov ecx, 0x46aee0
call fcn.004338f0
mov eax, 0x1002
pop esi
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42e6fa
mov esi, dword [esi + 4]
push esi
push eax
call fcn.0042ae50
add esp, 8
test eax, eax
jne 0x42e6fa
mov cl, byte [0x46aed0]
mov al, 1
test al, cl
jne 0x42e6e7
mov dl, cl
mov ecx, 0x46aee0
or dl, al
mov byte [0x46aed0], dl
call fcn.00433620
push 0x403fb0
call fcn.00442500
add esp, 4
push 0x1e
mov ecx, 0x46aee0
call fcn.004338f0
mov eax, 0x1004
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x42e700
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x42e730
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.004446c9
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret

Function at 0x42f0e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
xor eax, eax
push ecx
push eax
push esi
push 0x42f110
push eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x4c], eax
call fcn.004446c9
add esp, 0x18
mov dword [esi + 0x20], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x42f690
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x458966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x45abf0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push eax
mov dword [esp + 0x2c], 1
call ebx
lea edi, [esi + 8]
push str.liveupdatelogP2SP_360installer.log
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0040d130
mov edx, dword [eax]
push 4
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f71d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42f71d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
push str.liveupdatelog
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040d130
mov ecx, dword [eax]
push 4
push 0
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46305c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42f761
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42f761
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
mov ecx, dword [edi]
push 4
push 0
push ecx
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [0x46305c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42f793
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42f793
mov eax, dword [esi + 0xc]
sub eax, 0xc
push eax
call fcn.0043733c
add esp, 4
mov eax, dword [edi]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f7ba
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42f7ba
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4304b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x84]
mov esi, dword [ebp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x10], edi
jg 0x4304e7
cmp esi, dword [eax - 4]
jle 0x430578
mov eax, dword [eax - 8]
cmp esi, eax
mov dword [esp + 0x24], eax
jge 0x4304f4
mov esi, eax
test esi, esi
jne 0x430502
mov ecx, dword [0x463058]
mov dword [ebx], ecx
jmp 0x43052f
lea edx, [esi + esi + 0xe]
push edx
call fcn.00442bba
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x43057a
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], cx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax + 2]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x430556
mov eax, ecx
lea esi, [edi + 0xc]
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov eax, dword [0x46305c]
cmp edi, eax
je 0x430578
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430578
push edi
call fcn.0043733c
add esp, 4
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x88]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x43060e
mov ecx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4305da
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4305d3
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0043733c
add esp, 4
mov eax, dword [0x463058]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.00403db0
test eax, eax
je 0x43060e
mov edi, dword [ebx]
mov edx, dword [esi + 4]
mov eax, dword [edi - 4]
lea ecx, [edx + edx + 2]
lea edx, [eax + eax + 2]
cmp edx, ecx
jb 0x43060e
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx]
pop edi
pop esi
mov dword [edx - 8], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0xc