joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x44e478
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 0x422d92
xor eax, eax
jmp 0x422e98
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
jne 0x422da7
xor eax, eax
jmp 0x422e98
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 0x422dc3
xor eax, eax
jmp 0x422e98
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x422ddf
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x422e98
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x422dff
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x422e98
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 0x422e30
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 0x422e79
mov edi, dword [esp + 0x20]
push 0x10
call fcn.0042b550
mov esi, eax
cmp esi, ebp
je 0x422e77
lea eax, [esp + 0x28]
mov dword [esi], 0x44f938
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.0042b850
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x422e79
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 0x422e96
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 0x424510
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 0x424528
mov eax, 0x1001
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.00438690
add esp, 4
test eax, eax
jne 0x42453f
mov eax, 0x1003
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.00417ba0
add esp, 4
test eax, eax
jne 0x42458f
mov cl, byte [0x45e818]
mov al, 1
test al, cl
jne 0x42457c
mov dl, cl
mov ecx, 0x45e820
or dl, al
mov byte [0x45e818], dl
call fcn.004296b0
push 0x403fc0
call fcn.00438860
add esp, 4
push 0x1f
mov ecx, 0x45e820
call fcn.00429980
mov eax, 0x1002
pop esi
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4245ea
mov esi, dword [esi + 4]
push esi
push eax
call fcn.00421160
add esp, 8
test eax, eax
jne 0x4245ea
mov cl, byte [0x45e818]
mov al, 1
test al, cl
jne 0x4245d7
mov dl, cl
mov ecx, 0x45e820
or dl, al
mov byte [0x45e818], dl
call fcn.004296b0
push 0x403fc0
call fcn.00438860
add esp, 4
push 0x1e
mov ecx, 0x45e820
call fcn.00429980
mov eax, 0x1004
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4245f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x424620
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.0043a84c
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret

Function at 0x424fd0
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 0x425000
push eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x4c], eax
call fcn.0043a84c
add esp, 0x18
mov dword [esi + 0x20], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x425580
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44e5a6
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], 0x44fb18
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.00407a00
mov edx, dword [eax]
push 4
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [0x457054]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42560d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x42560d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
add esp, 4
push str.liveupdatelog
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00407a00
mov ecx, dword [eax]
push 4
push 0
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x457054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x425651
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x425651
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d34c
add esp, 4
mov ecx, dword [edi]
push 4
push 0
push ecx
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [0x457054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x425683
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x425683
mov eax, dword [esi + 0xc]
sub eax, 0xc
push eax
call fcn.0042d34c
add esp, 4
mov eax, dword [edi]
mov edx, dword [0x457054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4256aa
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4256aa
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.0042d34c
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 0x425ae0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 3
push 0
push 3
push 0x80
push str..360SelfProtection
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x425b4f
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push 0x22204c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x425b4f
mov eax, dword [esp + 4]
test eax, eax
jne 0x425b8e
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x425b5e
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425b8e
push esi
call fcn.00417ba0
add esp, 4
test eax, eax
jne 0x425b8e
push 1
call fcn.004382e0
push eax
push esi
call fcn.00438570
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x426420
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 0x426457
cmp esi, dword [eax - 4]
jle 0x4264e8
mov eax, dword [eax - 8]
cmp esi, eax
mov dword [esp + 0x24], eax
jge 0x426464
mov esi, eax
test esi, esi
jne 0x426472
mov ecx, dword [0x457050]
mov dword [ebx], ecx
jmp 0x42649f
lea edx, [esi + esi + 0xe]
push edx
call fcn.00438f1a
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4264ea
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 0x4264c6
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 [0x457054]
cmp edi, eax
je 0x4264e8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4264e8
push edi
call fcn.0042d34c
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 0x42657e
mov ecx, dword [0x457054]
add eax, 0xfffffff4
cmp eax, ecx
je 0x42654a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x426543
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0042d34c
add esp, 4
mov eax, dword [0x457050]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.00403d10
test eax, eax
je 0x42657e
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 0x42657e
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
Function at 0x426f20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
test esi, esi
push edi
je 0x427012
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x427012
mov ebp, dword [esp + 0x128]
cmp ebp, 0x80
jl 0x427012
mov ecx, 0x40
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 0x427012
cmp eax, 0xff
ja 0x427012
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427012
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x457468
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427012
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.00420c70
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x427760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x608
push ebx
push ebp
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x218]
push eax
push ecx
mov ecx, dword [edx + 0x4c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 0x48]
push ecx
mov ecx, dword [edx + 0x54]
mov edi, 0x200
push eax
mov dword [esp + 0x24], esi
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [esp + 0x61c]
mov edx, dword [0x457050]
lea eax, [esp + 0x218]
test eax, eax
mov dword [ebx], edx
je 0x42791b
lea ecx, [esp + 0x218]
shr ecx, 0x10
jne 0x4278bc
mov eax, dword [0x45d3d0]
xor ebp, ebp
lea edx, [esp + 0x218]
lea ecx, [esp + 0x18]
mov eax, dword [eax + 8]
mov bp, dx
push 0x100
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, esi
jne 0x42781e
mov word [esp + 0x18], si
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x427859
lea eax, [esp + 0x18]
test eax, eax
je 0x42783d
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
push eax
call fcn.00403d70
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x608
ret 4
push 0x1ff
mov ecx, ebx
call fcn.00403b50
mov esi, eax
test esi, esi
je 0x4278a4
mov eax, dword [0x45d3d0]
push edi
push esi
push ebp
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x427884
mov word [esi], ax
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x4278a4
add edi, 0x100
mov ecx, ebx
lea edx, [edi - 1]
push edx
call fcn.00403b50
mov esi, eax
test esi, esi
jne 0x42786b
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00403c10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x608
ret 4
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x42791b
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00438f1a
add esp, 4
test eax, eax
je 0x42791b
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
add eax, 0xc
cmp edx, ecx
mov dword [ebx], eax
jb 0x42791b
mov edi, eax
mov eax, ecx
lea esi, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x608
ret 4

Function at 0x4285f0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428626
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push ecx
push edx
push esi
call fcn.00428660
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x428660
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00439ff0
mov eax, dword [esp + 0x1010]
push ebx
push ebp
push esi
cmp eax, 0xffffffff
push edi
je 0x42878c
mov ebp, dword [esp + 0x1024]
xor esi, esi
cmp ebp, esi
je 0x42878c
mov ecx, dword [esp + 0x1028]
cmp ecx, esi
jle 0x42878c
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
mov ebx, eax
mov eax, ecx
sar ebx, 0xc
and eax, 0x80000fff
jns 0x4286be
dec eax
or eax, 0xfffff000
inc eax
cmp ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jle 0x42872e
mov edx, dword [esp + 0x1020]
mov ecx, 0x400
mov esi, ebp
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x1000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42878c
mov eax, dword [esp + 0x102c]
test eax, eax
je 0x428717
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x14]
add ebp, 0x1000
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4286ce
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x42877c
mov ecx, eax
mov esi, ebp
mov edx, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x102c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42878c
mov eax, dword [esp + 0x102c]
test eax, eax
je 0x42877c
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100c
ret
Function at 0x428c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x428c73
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x428c90
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
mov dword [ebp], eax
mov dword [ebp + 4], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10

Function at 0x428cb0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00428b20
add esp, 8
test eax, eax
jne 0x428ccd
pop esi
ret
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
ret

Function at 0x429500
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00439ff0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x4295f3
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x4295f3
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x4295f3
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 0x4295f3
cmp eax, 0x1fff
ja 0x4295f3
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4295f3
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x457468
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4295f3
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 ebx
call fcn.0043a7dd
add esp, 0x18
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 0x429eb0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
push 0
rep stosd dword es:[edi], eax
push 0
push 0
push 0
push 0
stosw word es:[edi], ax
mov dword [esp + 0x24], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x42a098
mov eax, dword [0x457050]
mov ecx, str.update.360safe.com
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x429f59
mov edx, ecx
shr edx, 0x10
jne 0x429f18
xor eax, eax
mov ax, cx
lea ecx, [esp + 0xc]
push eax
call fcn.004076c0
jmp 0x429f59
push str.update.360safe.com
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x429f59
push esi
lea ecx, [esp + 0x10]
call fcn.00403d10
test eax, eax
je 0x429f59
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x429f59
mov edi, dword [esp + 0xc]
mov eax, ecx
mov esi, str.update.360safe.com
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 [esp + 0xc]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
test esi, esi
jne 0x429f80
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x429fb3
mov ecx, dword [esp + 0x58]
push 0
push 0x8440c100
push 0
push 0
push str.HTTP_1.1
push ecx
push 0x457e18
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x429fdf
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
mov eax, dword [esp + 0xc]
mov ecx, dword [0x457054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42a098
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a098
jmp 0x42a088
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x42a03d
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov eax, dword [esp + 0xc]
mov edx, dword [0x457054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a098
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a098
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x13
push edi
mov dword [esp + 0x24], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebx
call edi
mov eax, dword [esp + 0xc]
mov ecx, dword [0x457054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42a098
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a098
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.0042d34c
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4
Function at 0x42a0d0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x42a280
push 0
push 0
mov dword [esi], 0
mov dword [esp + 0x1c], 0
call fcn.0043a84c
add esp, 0x18
mov dword [esi + 8], eax
pop esi
pop ecx
ret

Function at 0x42a930
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x11c
ret