joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10087040]
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
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x1000f2ae
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x1000f2ae
push 0x228
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000f2ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 - 0x10]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebx]
mov esi, dword [edi + 4]
cmp byte [esi + 0xd], 0
jne 0x1000f300
nop dword [eax]
push dword [esi + 8]
mov ecx, ebx
push ebx
call fcn.1000aa20
mov eax, esi
mov esi, dword [esi]
push 0x14
push eax
call fcn.10042472
add esp, 8
cmp byte [esi + 0xd], 0
je 0x1000f2e0
mov esi, dword [ebp - 0x244]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebx + 4], 0
nop word [eax + eax]
push dword [ebp - 0x248]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1000f3ec
mov eax, dword [ebx]
xor esi, esi
mov edx, dword [ebp - 0x238]
mov ecx, eax
mov dword [ebp - 0x24c], eax
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x1000f375
mov eax, edi
mov edi, eax
cmp dword [eax + 0x10], edx
jae 0x1000f366
mov eax, dword [eax + 8]
xor esi, esi
jmp 0x1000f36f
mov ecx, eax
mov esi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1000f358
cmp byte [ecx + 0xd], 0
jne 0x1000f380
cmp edx, dword [ecx + 0x10]
jae 0x1000f3e6
cmp dword [ebx + 4], 0xccccccc
je 0x1000f413
mov dword [ebp - 0x254], ebx
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x250], 0
call fcn.100424ac
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x250], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
push esi
push edi
mov word [eax + 0xc], 0
call fcn.1000a030
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000f320
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1000f2b0
call fcn.1000a3e0
int3
Function at 0x100156d0
Capabilities:
Check os version
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [ebp - 0x140], ebx
xor esi, esi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x118
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x13c], 0x11c
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 6
jae 0x100157ac
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
je 0x100157ac
mov ecx, 0x2710
nop dword [eax + eax]
cmp dword [ebp + 0x10], eax
jne 0x100157c4
cmp esi, 5
ja 0x100157c4
mov eax, 0xaaaaaaab
mul dword [ebp - 8]
shr edx, 1
cmp edx, 0x3e8
jae 0x10015783
mov edx, 0x3e8
jmp 0x1001578c
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
inc esi
push eax
push dword [ebp - 0x140]
call edi
mov eax, dword [ebp - 0x1c]
mov ecx, 0x2710
cmp eax, ebx
jne 0x10015760
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100166b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10089eac]
mov dword [ebp - 0x8c], 0
push esi
mov esi, 0x80004005
test al, 1
jne 0x10016707
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
lea eax, [ebp - 0x8c]
push eax
push 0xf003f
push 0
push dword [0x10089e64]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016731
xor esi, esi
jmp 0x10016809
mov eax, dword [0x10089eac]
test al, 1
jne 0x10016765
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x10089e64]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10016809
push 0x80
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10043f30
push 0
call fcn.1004e5a0
push edx
push eax
lea eax, [ebp - 0x88]
push str._I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x88]
add esp, 0x20
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100167d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
and esi, 0x80004005
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10041e20
mov esp, ebp
pop ebp
ret
Function at 0x10016830
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100169c9
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10016901
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.10043f30
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x10016901
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x100168f8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x100168d0
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.10043f30
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1004cfef
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.100444ab
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10016971
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.100444ab
mov esi, eax
add esp, 8
test esi, esi
je 0x100169c6
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x100169d9
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100169be
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 4
call fcn.10041f64
int3
Function at 0x10016c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fcfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.100240f0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
jne 0x10016cb7
xor edi, edi
jmp 0x10016d7c
push str.config.ini
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100062c0
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016d0a
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10016dd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.1004e4ca
cdq
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
call fcn.10016de0
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push str.act_time
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x20]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10016d5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016d7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016d9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10016db9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x10016d5e
Function at 0x10016f10
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
test edi, edi
jne 0x10016f4e
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0xc
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x214]
push edi
push str._sRes.cab
push 0x104
push eax
call fcn.100170f0
add esp, 0x10
test esi, esi
jne 0x10016f93
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1001709d
movzx ecx, word [ebp + 8]
push 0xa
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10017078
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10017078
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 4
push 0
push 2
mov edi, eax
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x220], ecx
cmp ecx, 0xffffffff
je 0x100170b2
test ecx, ecx
je 0x100170b2
xor esi, esi
mov dword [ebp - 0x21c], 0
test edi, edi
je 0x1001705b
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 0x218]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10017055
mov ecx, dword [ebp - 0x220]
cmp esi, edi
jb 0x10017018
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x21c], 0
je 0x1001709d
mov edi, dword [ebp - 0x224]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.1001cff0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1001709d
Function at 0x10017880
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x1007a188
push 1
push 0
push 0x1007a198
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1001797e
cmp dword [edi + 0x60], 7
lea edx, [edi + 0x4c]
mov dword [ebp - 0xc], 0
jbe 0x100178cd
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [edi + 0x48], 7
lea edx, [edi + 0x34]
jbe 0x100178e2
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [edi + 0x74], 0
je 0x10017907
cmp dword [edi + 0x78], 7
lea edx, [edi + 0x64]
jbe 0x100178fd
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push esi
push edx
push 0x1007a1a8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
js 0x10017972
cmp dword [edi + 0x90], 7
lea esi, [edi + 0x7c]
mov eax, esi
jbe 0x1001792f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017949
cmp dword [esi + 0x14], 7
jbe 0x10017942
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x7c
cmp dword [edi + 0x14], 7
jbe 0x10017954
mov edi, dword [edi]
mov eax, dword [ebp - 0xc]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10041e20
mov esp, ebp
pop ebp
ret 4
Function at 0x10017990
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fe32
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c0]
mov eax, dword [esi]
mov dword [ebp - 0x4c4], eax
lea eax, [esi + 4]
push eax
call fcn.1000f4b0
lea eax, [esi + 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4a8]
call fcn.1000f4b0
lea eax, [esi + 0x34]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x490]
call fcn.1000f4b0
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x478]
call fcn.1000f4b0
lea eax, [esi + 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x460]
call fcn.1000f4b0
lea edi, [esi + 0x7c]
mov byte [ebp - 4], 4
push edi
lea ecx, [ebp - 0x448]
call fcn.1000f4b0
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 5
push 0
push eax
call fcn.10043f30
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x490]
add esp, 0xc
cmp dword [ebp - 0x47c], 7
cmova eax, dword [ebp - 0x490]
push eax
lea eax, [ebp - 0x21c]
push 0x1007c014
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push 0
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x4c0]
cmp dword [ebp - 0x4ac], 7
cmova eax, dword [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x424]
push str._s.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10017ae0
sub eax, edx
lea ecx, [ebp - 0x448]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1000a240
lea eax, [ebp - 0x4c4]
push eax
call fcn.10017880
test eax, eax
js 0x10017bc2
cmp dword [edi + 0x14], 7
jbe 0x10017b1e
mov edi, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10017bec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push str.barP
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 6
push str.Task_sin
push eax
call fcn.10004ea0
add esp, 0xc
lea eax, [ebp - 0x448]
cmp dword [ebp - 0x434], 7
cmova eax, dword [ebp - 0x448]
push 0
push 0
push 0
push eax
push 0x1007b468
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x434], 7
lea eax, [ebp - 0x448]
cmova eax, dword [ebp - 0x448]
push eax
call esi
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017bc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c4]
call fcn.1000da00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013a0
int3
Function at 0x10018450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ff70
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x100184db
push 0x10
lea eax, [ebp - 0x234]
push eax
call fcn.10018660
push eax
mov ecx, edi
call fcn.1000a350
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x100184db
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100184d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001863c
push ecx
push edx
call fcn.10042472
add esp, 8
cmp dword [edi + 0x28], 0
jne 0x10018538
push 2
lea eax, [ebp - 0x234]
push eax
call fcn.10018660
push eax
lea ecx, [edi + 0x18]
call fcn.1000a350
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10018538
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001852e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018641
push ecx
push edx
call fcn.10042472
add esp, 8
cmp dword [edi + 0x40], 0
jne 0x1001860e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018646
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x1007c654
push str.k_LaunchUser_P
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str.MicrosoftInternet_ExplorerQuic_sinnedTas_s
push eax
call fcn.10004ea0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
add esp, 0x10
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100185d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.1000a240
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001860e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x28], 0
mov eax, 0x80004005
je 0x10018621
xor ecx, ecx
cmp dword [edi + 0x10], ecx
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret
call fcn.10045dc4
call fcn.10045dc4
push 0x80004005
call fcn.100013a0
int3
Function at 0x10018660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x10018724
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1001870e
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100186f2
lea eax, [ebp - 0x210]
push eax
jmp 0x10018729
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x214], 0
push 0x1007b468
mov ecx, esi
call fcn.100098a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10041e20
mov esp, ebp
pop ebp
ret 8

Function at 0x10018750
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10043f30
add esp, 0xc
cmp dword [ebx + 0x10], 0
je 0x100187e8
cmp dword [ebx + 0x14], 7
jbe 0x100187a2
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 7
jbe 0x100187aa
mov edi, dword [edi]
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 0x18], 0
je 0x100187e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100187e0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x10], 0
je 0x1001882e
jmp 0x1001880b
cmp dword [esi + 0x10], 0
je 0x1001882e
cmp dword [edi + 0x14], 7
jbe 0x100187f6
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1004cfef
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp dword [esi + 0x14], 7
jbe 0x10018820
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..lnk
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.100548f3
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call fcn.100098a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x14