joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb4ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x4cb5f8
cmp byte [ebx + 0x45], 0
je 0x4cb5f8
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4cb523
xor al, al
jmp 0x4cb5fa
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.00429f04
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4cb583
dec eax
je 0x4cb587
dec eax
dec eax
je 0x4cb5e5
xor bl, bl
jmp 0x4cb5e7
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x4cb5c6
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004fc93f
add esp, 0x10
cmp esi, eax
jne 0x4cb57f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x45], 0
je 0x4cb5e5
test esi, esi
jne 0x4cb549
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.00429d96
jmp 0x4cb541
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0042a139
mov al, bl
jmp 0x4cb5fa
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a291
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040b430
call fcn.00409abb
test eax, eax
je 0x40a2ac
call fcn.0040a243
push ebx
push esi
push edi
call fcn.00409b46
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
mov esi, 0x400
je 0x40a323
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 9
call fcn.00409747
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x1000]
push eax
call fcn.00409c03
test eax, eax
pop ecx
je 0x40a323
push ebx
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40a323
lea eax, [ebp - 0x1000]
push eax
call fcn.0040750e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00409bbc
test eax, eax
je 0x40a336
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
call fcn.0040746d
cmp eax, ebx
push esi
je 0x40a356
lea ecx, [ebp - 0x800]
push ecx
push dword [eax*4 + 0x40d03c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40a370
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
mov ecx, 0x4025c0
lea eax, [ebp - 0x800]
call fcn.0040512d
push 1
lea eax, [ebp - 0x800]
push eax
push 0x402734
push 0x4024e0
push 0x80000001
call fcn.00406721
add esp, 0x14
test eax, eax
je 0x40a3c4
lea eax, [ebp - 0x800]
push eax
call fcn.0040750e
test eax, eax
pop ecx
je 0x40a3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
call fcn.00409747
pop ecx
jmp 0x40a31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40a3cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.00409747
pop ecx
pop ecx
mov dword [0x40d054], ebx
jmp 0x40a2a7

Function at 0x40abe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40abf0
repz ret
jmp fcn.0040ae8b

Function at 0x4ecaf5
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4ec887
sub edi, 0xbdfffea0
dec edi
call fcn.004ecb32
and esi, esi
xor dword [ecx], ebx
and edi, edi
add ecx, 1
dec esi
and edi, edi
add edi, 0x811d43c9
cmp ecx, edx
jl fcn.004ecaf5
or esi, esi
add esi, 0xc94c564c
dec edi
ret
Function at 0x401040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c2fe0]
test eax, eax
jl 0x401073
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [ebp - 0x120]
push edx
mov dword [0x4c2fe0], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
call fcn.0047e260
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x4010ff
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x40114e
push str.GetNativeSystemInfo
push 0x4a40ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40114e
lea edx, [ebp - 0x144]
push edx
call eax
mov eax, dword [ebp - 0x144]
cmp ax, 9
je 0x401135
cmp ax, 6
jne 0x40114e
mov eax, 1
mov dword [0x4c2fe0], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x408], 0x1388
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x401665
lea eax, [edi + 1]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x408]
push eax
push 2
push 0
call esi
push 4
lea ecx, [ebp - 0x408]
push ecx
push 5
push 0
call esi
push 4
lea edx, [ebp - 0x408]
push edx
push 6
push 0
call esi
push 4
lea eax, [ebp - 0x408]
push eax
push 8
push 0
call esi
push 0
push 0x80080000
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4016de
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x40c]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x401751
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
mov dword [ebp - 0x414], ebx
call fcn.0047e260
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop esi
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x4017f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ed4b0], 0
push esi
mov esi, eax
jne 0x401998
push 0x4ed4b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4ed4b0], 0
je 0x40182a
push 0x4ed4b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push ecx
push 0x28
push 0x4ed098
xor eax, eax
push ecx
mov dword [0x4ed2a0], 0
mov dword [0x4ed4ac], 0
mov word [0x4ed098], ax
mov word [0x4ed2a4], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40187b
push str.:windows_
push 0x4ed098
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4018fd
xor edi, edi
call fcn.004311d0
test al, al
jne 0x40198c
test esi, esi
je 0x40198c
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4018ed
test eax, eax
je 0x4018ed
lea edx, [ebp - 4]
push edx
push 8
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4018ed
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x4ed098
push ecx
mov dword [ebp - 8], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x4018e3
mov edi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.00401000
test edi, edi
je 0x40198c
push 0x4ed098
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x4ed098
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401910
push 0x104
sub eax, edx
push 0x4ed2a4
sar eax, 1
push 0x4ed098
mov dword [0x4ed2a0], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x401944
cmp eax, 0x104
jb 0x40194c
xor eax, eax
mov word [0x4ed2a4], ax
push 0x4ed2a4
push 0x4ed098
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x401969
xor ecx, ecx
mov word [0x4ed2a4], cx
mov eax, 0x4ed2a4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401971
sub eax, edx
sar eax, 1
mov dword [0x4ed4ac], eax
mov byte [0x4ed4b0], 1
push 0x4ed4b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x401abb
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x401a45
push eax
call fcn.004785af
add esp, 4
push esi
call fcn.004783f4
add esp, 4
mov dword [edi + 0x20c], eax
test eax, eax
je 0x401abb
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401abb
mov eax, dword [edi + 0x20c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push str.VarFileInfoTranslation
push eax
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401abb
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x208
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.0047e260
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push 0x4abdc0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401c96
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x401c96
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x401c8e
cmp eax, 0x103
jae 0x401c96
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x401c9b
mov ecx, 0x4a3cf0
push esi
call fcn.00416680
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x401fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor eax, eax
movzx esi, ax
push edi
add edx, 4
mov eax, esi
shl esi, 0x10
or eax, esi
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push edx
lea ecx, [ebp - 8]
push ecx
push str.Path
push 0x4abdc0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x208
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4998f8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x402e80
push esi
mov ecx, 0x4a3cf0
call fcn.00416680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x4a472c
push eax
lea edx, [ebp + 8]
push edx
call fcn.00414ae0
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402eb4
push esi
mov ecx, 0x4a3cf0
call fcn.00416680
jmp 0x402ec4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00416a00
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0047e260
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x403a57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x403a47
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret

Function at 0x403aa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0047e260
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x403af6
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x403af8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret

Function at 0x404330
Capabilities:
Terminate process

Disassembly:
cmp eax, 0xffffffff
jne 0x404338
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40436d
test esi, esi
je 0x40436d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x404367
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
Function at 0x404380
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498f71
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
mov byte [ebp - 0x251], 0
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], esi
mov word [ebp - 0x24c], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.0047e260
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x404459
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404410
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00409380
cmp dword [ebp - 0x23c], esi
jne 0x404459
cmp dword [ebp - 0x238], 8
jb 0x404452
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00477b12
add esp, 4
xor al, al
jmp 0x40457a
call fcn.00403b10
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x404477
call fcn.00403b90
test al, al
je 0x4044f1
push str.Shcore.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.0040dce0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x4044ad
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4044cd
push str.SetProcessDpiAwareness
push eax
call ebx
test eax, eax
je 0x4044cd
push 1
call eax
test eax, eax
sete byte [ebp - 0x251]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], esi
jb 0x4044e8
mov eax, dword [ebp - 0x230]
push eax
call fcn.00477b12
add esp, 4
cmp byte [ebp - 0x251], 0
jne 0x40455c
push str.User32.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.0040dce0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x404527
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404545
push str.SetProcessDPIAware
push eax
call ebx
test eax, eax
je 0x404545
call eax
test eax, eax
setne byte [ebp - 0x251]
cmp dword [ebp - 0x21c], esi
jb 0x40455c
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00477b12
add esp, 4
cmp dword [ebp - 0x238], 8
jb 0x404574
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00477b12
add esp, 4
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x407050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498abb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x238], ebx
cmp edi, 0x23
je 0x4070a2
cmp edi, 0x1a
je 0x4070a2
push 0x4a3cf0
mov ecx, esi
call fcn.004092d0
jmp 0x4071b0
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.0047e260
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x407091
xor eax, eax
mov word [ebp - 0x230], ax
mov edi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
lea edx, [eax + 2]
jmp 0x407100
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407100
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00409380
push 0x11
push str.360TotalSecurity
lea eax, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.0040b400
lea eax, [ebp - 0x234]
cmp byte [ebp + 8], bl
jne 0x407173
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040b530
cmp dword [ebp - 0x21c], 8
jb 0x4071b0
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00477b12
add esp, 4
jmp 0x4071b0
call fcn.00431180
mov ecx, esi
test al, al
je 0x40719b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov word [esi + 4], dx
call fcn.0040b530
jmp 0x4071a5
push 0x4a3cf0
call fcn.004092d0
lea ecx, [ebp - 0x234]
call fcn.00409320
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x407330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a612
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
push 0x4abdb0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call fcn.0040dce0
add esp, 4
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
lea eax, [ebp - 0x14]
push eax
call fcn.00403ca0
add esp, 4
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0x10], 3
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4073a0
sub eax, edi
sar eax, 1
push eax
push ecx
mov eax, esi
call fcn.0040b400
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x10], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], ebx
je 0x40740c
cmp dword [esi + 0x18], 8
jb 0x4073f1
mov edi, dword [esi + 4]
jmp 0x4073f4
lea edi, [esi + 4]
cmp edi, ebx
je 0x40740c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40740c
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov dword [ebp - 0x210], 1
call fcn.0047e260
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360zip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x40895b
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408942
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x408967
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4a3cf0
mov ecx, esi
call fcn.00409380
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret

Function at 0x408980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0047e260
add esp, 0xc
lea esi, [ebp - 0x22c]
call fcn.004088b0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4089c5
mov eax, dword [eax + 4]
jmp 0x4089c8
add eax, 4
push str.360zip.exe
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp - 0x214], esi
jb 0x4089f2
mov edx, dword [ebp - 0x228]
push edx
call fcn.00477b12
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a45
cmp dword [0x4eecfc], 0
jne 0x408a1f
mov ecx, dword [0x4ed08c]
push ecx
call fcn.004106c0
add esp, 4
test eax, eax
je 0x408a45
push 0x4ee8d0
lea edi, [ebp - 0x210]
call fcn.00450290
test eax, eax
je 0x408a45
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret