joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59db04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x59db5f
cmp byte [ebx + 0xeb], 0
jne 0x59db5f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409e78
mov eax, dword [esi]
test eax, eax
je 0x59db4c
mov eax, dword [eax - 4]
test eax, eax
jne 0x59db6c
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0d0
jmp 0x59db6c
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0d0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x59f25c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x59f2cd
mov eax, esi
call fcn.005265d4
test al, al
je 0x59f2cd
mov eax, dword [ebx + 0x98]
call fcn.0052616c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x59f2cd
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x17c]
test al, al
je 0x59f2be
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052616c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0051c498
jmp 0x59f2cd
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.0059f068
pop esi
pop ebx
ret
Function at 0x5a4db8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x98], 0
jne 0x5a4e3e
mov eax, dword [ebx + 8]
call fcn.0052616c
mov ecx, eax
mov dl, 1
mov eax, dword [0x5335e0]
call fcn.0051fc7c
mov dword [ebx + 0x98], eax
mov esi, dword [ebx + 0x98]
xor edx, edx
mov eax, esi
call fcn.00538d10
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x5a4688
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052616c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052616c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa8], 0
jne 0x5a4ec0
mov eax, dword [ebx + 8]
call fcn.0052616c
mov ecx, eax
mov dl, 1
mov eax, dword [0x5335e0]
call fcn.0051fc7c
mov dword [ebx + 0xa8], eax
mov esi, dword [ebx + 0xa8]
mov dl, 1
mov eax, esi
call fcn.00538d10
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x5a46d4
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa8]
call fcn.0052616c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa8]
call fcn.0052616c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa0], 0
jne 0x5a4f3e
mov eax, dword [ebx + 8]
call fcn.0052616c
mov ecx, eax
mov dl, 1
mov eax, dword [0x534124]
call fcn.0051fc7c
mov dword [ebx + 0xa0], eax
mov esi, dword [ebx + 0xa0]
mov byte [esi + 0x2c8], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0052616c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0052616c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5dcdc4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x5dcddf
cmp dword [ebp - 0xc], 0
jne 0x5dcdf3
mov ecx, 0x3e3
mov edx, 0x5dce68
mov eax, 0x5dcec4
call fcn.00409b2c
push 0x40
push 0x1000
push 0x20
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.005dcee8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.005dcee8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005dcfec
test al, al
jne 0x5dce55
push 0x8000
push 0x20
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualFree
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5e4e88
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
push 0
call sub.kernel32.dll_GetModuleHandleW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.ImageHlp.dll_ImageDirectoryEntryToData
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5e4f83
jmp 0x5e4ee6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x5e4eef
add dword [ebp - 0x1c], 0x14
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
jne 0x5e4ec5
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x5e4f83
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x5e4f77
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
neg al
sbb eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5e4f73
lea eax, [ebp - 0x30]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 4
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
jmp 0x5e4f83
add dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x5e4f0a
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x751b16c4
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4c261113
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x8d2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008d21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8d207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d206a
add dl, dl
jne 0x8d2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d20dc
xor eax, eax
add dl, dl
jne 0x8d2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d217d
add dl, dl
jne 0x8d20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d2075
mov eax, 1
add dl, dl
jne 0x8d20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d20e1
sub eax, ebx
mov ebx, 1
jne 0x8d2128
mov ecx, 1
add dl, dl
jne 0x8d210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d2136
cmp eax, 0x7d00
jae 0x8d216d
cmp eax, 0x500
jb 0x8d2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
cmp eax, 0x7f
ja 0x8d2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8d2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x172a526e
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x799c0830
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x60af60ca
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x479e4d39
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x25a2ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2142000]
push edi
jmp 0x25a2ada
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x25a2ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x25a2ad0
mov eax, 1
add ebx, ebx
jne 0x25a2af3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x25a2b04
jne 0x25a2b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x25a2b23
dec eax
add ebx, ebx
jne 0x25a2b10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x25a2ae8
add ebx, ebx
jne 0x25a2b1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x25a2b75
xor ecx, ecx
sub eax, 3
jb 0x25a2b3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x25a2baa
sar eax, 1
mov ebp, eax
jmp 0x25a2b46
add ebx, ebx
jne 0x25a2b46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x25a2b14
inc ecx
add ebx, ebx
jne 0x25a2b54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x25a2b14
add ebx, ebx
jne 0x25a2b61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x25a2b56
jne 0x25a2b72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x25a2b56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x25a2b94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x25a2b86
jmp 0x25a2ad6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x25a2b94
add edi, ecx
jmp 0x25a2ad6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x25a2bb2
cmp byte [edi], 0x11
jne 0x25a2bb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x25a2bb7
lea edi, [esi + 0x219b000]
mov eax, dword [edi]
or eax, eax
je 0x25a2c2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x425eeec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x425f068]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x25a2be4
mov ecx, edi
jns 0x25a2c13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x425f06c]
or eax, eax
je 0x25a2c29
mov dword [ebx], eax
add ebx, 4
jmp 0x25a2c01
call dword [esi + 0x425f07c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x25a2c60
cmp al, 0xef
ja 0x25a2c53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x25a2c35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x25a2c42
mov ebp, dword [esi + 0x425f070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x25a2c94
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4010d8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00467130
mov eax, dword [0x4be8a0]
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.004670a0
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.004670a0
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004670a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401000
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.00468984
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011ab
inc edi
cmp edi, 0xa
jl 0x401142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046711a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.004025eb
xor eax, eax
inc eax
jmp 0x40119c

Function at 0x401227
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x401234
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401230
lea ecx, [esi + 8]
push ecx
push 0
push dword [esi + 0x1c]
push eax
push 0
push 0
call fcn.00468af3
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret

Function at 0x401479
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x18]
push 8
push 0
push edi
call fcn.004670a0
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4014ce
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4016fb
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp word [edi], si
je 0x401730
cmp eax, esi
je 0x401741
cmp word [eax], si
je 0x401741
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x401785
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046711a
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004670a0
add esp, 0xc
push esi
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401730
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x401732

Function at 0x40178a
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 0x4017a9
test byte [ebp - 4], 7
je 0x4017a9
xor eax, eax
inc eax
leave
ret
call fcn.004017b0
leave
ret

Function at 0x4019ac
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4019f9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4019f9
push edi
call fcn.00402346
pop ecx
test eax, eax
je 0x4019f9
push esi
mov esi, dword [esp + 0xc]
add esi, 0x394
push edi
mov ecx, esi
call fcn.004025eb
push dword [esi]
call fcn.00463970
pop ecx
push 4
push 0
push dword [esi]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, edi
pop esi
jmp 0x4019fb
xor eax, eax
pop edi
ret 8
Function at 0x401a14
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x14
mov eax, 0x48e419
call fcn.004677c7
mov edi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor esi, esi
mov dword [ebp - 0x20], vtable.CResourceUnpack.0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push edx
push ecx
mov dword [ebp - 4], esi
push eax
lea esi, [ebp - 0x20]
call fcn.0040e033
test eax, eax
jne 0x401a98
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.0046711a
add ebp, 0x804
leave
ret 0x10
mov ebx, 0x4c4f30
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401ce4
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.0040e1d8
test eax, eax
jne 0x401aca
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023e9
jmp 0x401a71
xor eax, eax
push 0x7fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.004670a0
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.004670a0
mov esi, dword [ebp - 0x14]
add esp, 0x18
push str.360SafeAssist.exe
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call fcn.00402346
pop ecx
test eax, eax
jne 0x401b24
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.004023e9
mov eax, edi
jmp 0x401a73
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401ce4
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004010d8
mov ebx, dword [ebp - 0x10]
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x10]
add edi, 0x39c
push eax
mov ecx, edi
call fcn.00401d13
push 4
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0040ec92
lea ecx, [ebx - 0x10]
call fcn.004023e9
xor edi, edi
inc edi
jmp 0x401b15

Function at 0x401c7f
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
test edi, edi
je 0x401cc5
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401cc5
push edi
call fcn.00402346
pop ecx
test eax, eax
je 0x401cc5
push esi
mov esi, dword [esp + 8]
add esi, 0x398
push edi
mov ecx, esi
call fcn.004025eb
push dword [esi]
call fcn.00401e0c
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
inc eax
pop esi
jmp 0x401cc7
xor eax, eax
ret 4
Function at 0x401e4d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401e92
xor eax, eax
jmp 0x401f22
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push eax
call esi
test eax, eax
je 0x401f16
cmp dword [esp + 0x14], 0x40
jne 0x401f16
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401f16
push edi
push edi
push dword [esp + 0x154]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14c]
jne 0x401f16
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401f16
cmp dword [esp + 0x14], ebx
jne 0x401f16
cmp dword [esp + 0x18], 0x4550
jne 0x401f16
cmp word [esp + 0x1e], di
je 0x401f16
xor edi, edi
inc edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046711a
mov esp, ebp
pop ebp
ret

Function at 0x402132
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.004670a0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4970c4
xor edi, edi
push 0x4a0a38
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402207
push str.360ver.dll
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402207
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00402032
pop ecx
pop ecx
test eax, eax
je 0x402207
lea eax, [ebp - 0x808]
push eax
call fcn.00402118
mov esi, eax
test esi, esi
je 0x402207
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046711a
leave
ret