joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c85f
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push str.DownloadControl____Start
mov ebx, 0x6c7880
push ebx
call fcn.0048d855
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, esi
call fcn.0046c6d8
test eax, eax
jne 0x46c8a2
push str.DownloadControl_curlExecuter_Invalid
push ebx
call fcn.0048d855
pop ecx
pop ecx
mov eax, 0x100
jmp 0x46ca40
push dword [ebp + 0xc]
push esi
call fcn.0046c71f
mov edi, eax
test edi, edi
je 0x46c8c3
push str.DownloadControl_GetDownloadFileLength_Failure
push ebx
call fcn.0048d855
pop ecx
pop ecx
jmp 0x46ca3e
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], ecx
cmp eax, ecx
jne 0x46c8e0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esi + 0x10]
cmp dword [edi], 0
je 0x46c8f3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
mov ecx, dword [esi + 4]
call fcn.0046e6bb
test eax, eax
je 0x46c90e
sub esp, 0x18
mov ecx, edi
push dword [esi + 4]
call fcn.0046c553
jmp 0x46c913
mov eax, 0x80004005
test eax, eax
jns 0x46c92e
push str.DownloadControl_CreateFile_Failure
push ebx
call fcn.0048d855
pop ecx
pop ecx
mov eax, 0x102
jmp 0x46ca40
and dword [esp + 0x14], 0
mov edi, 0x103
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0046ca49
mov edi, dword [esp + 0x14]
mov ebx, eax
push edi
push dword [esi + 0xc]
push dword [esp + 0x14]
push ebx
push str.DownloadControl____ExE_CurlCode___d__Count___d__CurrentSize___d__ResCode___d
push 0x6c7880
call fcn.0048d855
add esp, 0x18
test ebx, ebx
je 0x46c9b7
cmp ebx, 0x1c
je 0x46c999
cmp ebx, 0x21
je 0x46c97e
cmp ebx, 0x2a
je 0x46c9da
jmp 0x46c9fa
push 0x69b488
push 0x6c7880
call fcn.0048d855
pop ecx
pop ecx
mov dword [esp + 0x10], 0x10a
jmp 0x46c9fa
push 0x69b474
push 0x6c7880
call fcn.0048d855
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46c9fa
push edi
push 0x69b444
push 0x6c7880
call fcn.0048d855
add esp, 0xc
cmp edi, 0xce
je 0x46c9f5
cmp edi, 0xc8
je 0x46c9f5
push 0x69b45c
push 0x6c7880
call fcn.0048d855
pop ecx
pop ecx
mov dword [esp + 0x10], 0x109
jmp 0x46c9fa
and dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x25d
jle 0x46c93c
mov ecx, esi
call fcn.0046c689
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46ca23
test ebx, ebx
cmovne edi, ebx
mov dword [eax], edi
push dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push edi
push str.DownloadControl____End_HRESULT___d__Count___d
push 0x6c7880
call fcn.0048d855
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46de10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
mov ebx, eax
test ecx, ecx
je 0x46de93
push edi
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46de92
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.00499313
mov esi, eax
pop ecx
test esi, esi
je 0x46de8a
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x46de83
mov ecx, dword [ebp - 4]
push esi
mov byte [esi + ecx], 0
mov ecx, dword [ebp - 8]
call fcn.00405d0b
push esi
call fcn.0049930e
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46de9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
push edi
push edi
push 2
push edi
inc eax
mov ebx, edx
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x46df15
mov eax, dword [ebx]
mov dword [ebp - 8], edi
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 4], ecx
jle 0x46dee2
push ecx
mov ecx, ebx
call fcn.00406c12
mov ecx, dword [ebp - 4]
push edi
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.00413e9a
test esi, esi
je 0x46df0c
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
push 1
pop eax
cmove edi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e09e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x60c405
call fcn.0060b6e8
sub esp, 0x10
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x46e165
push ebx
xor ecx, ecx
lea eax, [edi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499313
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
test ebx, ebx
je 0x46e162
lea ecx, [edi*2 + 2]
push ecx
push esi
push ebx
call fcn.005e1180
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
shr edi, 2
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x46e14d
push ebx
lea ecx, [ebp - 0x10]
call fcn.004060f8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46e145
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a8c2
lea ecx, [ebp - 0x10]
add ebx, 8
call fcn.00406271
sub edi, 1
jne 0x46e11d
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
xor esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.00404ea9
push ebx
call fcn.0049930e
pop ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46e175
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x60cebc
call fcn.0060b6e8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46e196
xor eax, eax
jmp 0x46e23e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46e18f
xor ebx, ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push dword [esi]
push 0x69b554
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x14], edx
cmp edx, 0xffffffff
je 0x46e234
push 0xa
pop ecx
push 0x28
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x24], ebx
rep stosd dword es:[edi], eax
pop ecx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
push eax
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46e22b
xor eax, eax
inc eax
cmp dword [ebp - 0x30], 7
cmovne ebx, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e24f
Capabilities:
Set registry value

Disassembly:
mov eax, 0x6105c6
call fcn.0060b6e8
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push str.semauthority
push str.SOFTWAREKingsoft
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._s_s
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 0x10
push edi
push esi
push SysReAllocString
call fcn.0040af84
test eax, eax
je 0x46e2d2
push edi
call fcn.005f0e60
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], edi
je 0x46e2d2
push 8
lea eax, [ebp - 0x18]
push eax
push 0xb
push edi
push 0x6916e4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.00404ea9
cmp dword [ebp - 0x10], 0
je 0x46e2e9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46e398
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x60c405
call fcn.0060b6e8
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
push edi
call fcn.00406173
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e40e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46e40e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46e40e
lea ecx, [ebp - 0x10]
call fcn.0046e332
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46e411
mov ecx, eax
call fcn.0046e398
test eax, eax
je 0x46e411
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46e40e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46e411
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46e42e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60c405
call fcn.0060b6e8
sub esp, 0x5c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.005e1180
add esp, 0xc
mov dword [ebp - 0x68], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 1
movups xmmword [ebp - 0x20], xmm0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
and dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push esi
push edi
push str.__s___s
push eax
call fcn.00406cc8
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x46e496
push 0xa
pop eax
jmp 0x46e498
xor eax, eax
mov esi, dword [ebp - 0x10]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46e4d0
cmp dword [ebp + 8], 0
je 0x46e4cd
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x46e4e5
push dword [ebp - 0x20]
call edi
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x46e4f4
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e6bb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x60fa60
call fcn.0060b6e8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.00406173
push 3
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405fec
mov edi, eax
add edi, 1
je 0x46e75a
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d36
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e746
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x46e760
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00405fec
mov edi, eax
add edi, 1
jne 0x46e6ff
jmp 0x46e75d
mov esi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ecda
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60d1d6
call fcn.0060b6e8
sub esp, 0x6c
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x46ecf8
xor eax, eax
jmp 0x46ee37
push ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
push edi
push esi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push str.__s___s
push eax
mov dword [ebp - 4], ebx
call fcn.00406cc8
add esp, 0x10
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
call fcn.00418b11
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x46ee1d
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.005e1180
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
cmp dword [ebp + 8], ebx
je 0x46ed5c
push 5
pop eax
jmp 0x46ed5e
xor eax, eax
push str.userenv.dll
mov word [ebp - 0x48], ax
mov dword [ebp - 0x70], str.Winsta0Default
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x46edc8
push str.CreateEnvironmentBlock
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
call edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x46edc5
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
call eax
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x46edc0
mov eax, 0x430
jmp 0x46edcb
mov dword [ebp - 0x18], ebx
jmp 0x46edc8
mov edi, dword [ebp - 0x14]
push 0x30
pop eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], 0
mov ebx, eax
je 0x46edf7
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x46ee06
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46ee12
push dword [ebp - 0x18]
call eax
test edi, edi
je 0x46ee1d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x46ee2c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ee47
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
and dword [ebp - 8], 0
lea eax, [ebp - 0x68]
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x20], ecx
push ebx
push eax
mov edi, edx
mov dword [ebp - 0x6c], 0x44
call fcn.005e1180
and dword [ebp - 0xc], ebx
lea edx, [ebp - 0xc]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
xor esi, esi
call fcn.0046fd7c
test eax, eax
je 0x46ef24
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0046fe39
push 0x800
lea eax, [ebp - 0x86c]
push ebx
push eax
call fcn.005e1180
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x86c]
push str.__s___s
push 0x400
push eax
call fcn.0043b929
add esp, 0x20
push 0x694dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x46ef06
push str.CreateProcessWithTokenW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46ef06
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x86c]
push ecx
push ebx
push ebx
push dword [ebp - 8]
call eax
jmp 0x46ef22
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x86c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x46ef39
push dword [ebp - 8]
call edi
and dword [ebp - 8], 0
cmp dword [ebp - 0x1c], 0
je 0x46ef48
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x46ef57
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
test esi, esi
je 0x46ef62
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f18c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6106e8
call fcn.0060b6e8
sub esp, 0xc
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x46f37d
push esi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], edi
jne 0x46f342
push ebx
lea ecx, [ebp - 0x10]
call fcn.00406123
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f1fc
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x46f342
lea ecx, [ebp - 0x14]
call fcn.00406271
lea ecx, [ebp - 0x18]
call fcn.0046f7f3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x46f2a1
lea ecx, [ebp - 0x18]
call fcn.0046f38f
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push ebx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040b545
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f2a1
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x46f342
lea ecx, [ebp - 0x14]
call fcn.00406271
lea ecx, [ebp - 0x18]
call fcn.0046f8b4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x46f342
lea ecx, [ebp - 0x18]
call fcn.0046f38f
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push ebx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040b545
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00406123
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f342
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], edi
je 0x46f35f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f35f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x46f369
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46f7f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword fs:[0x2c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6c7c84]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
cmp eax, dword [edx + 4]
jle 0x46f856
push ebx
mov ebx, 0x6c7c84
push ebx
call fcn.00499481
cmp dword [0x6c7c84], 0xffffffff
pop ecx
jne 0x46f855
call fcn.00404f47
push eax
mov ecx, 0x6c7c88
call fcn.004065d8
push 0x612b3e
call fcn.004997d8
push ebx
call fcn.00499442
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6c7c88]
cmp dword [eax - 0xc], edi
jne 0x46f89d
push 0x20c
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x214]
push 1
push 0x25
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x214]
mov ecx, 0x6c7c88
push eax
call fcn.004060f8
mov eax, dword [0x6c7c88]
add eax, 0xfffffff0
push eax
call fcn.004067cf
pop ecx
add eax, 0x10
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f8b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword fs:[0x2c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6c7c8c]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
cmp eax, dword [edx + 4]
jle 0x46f917
push ebx
mov ebx, 0x6c7c8c
push ebx
call fcn.00499481
cmp dword [0x6c7c8c], 0xffffffff
pop ecx
jne 0x46f916
call fcn.00404f47
push eax
mov ecx, 0x6c7c90
call fcn.004065d8
push 0x612b4c
call fcn.004997d8
push ebx
call fcn.00499442
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6c7c90]
cmp dword [eax - 0xc], edi
jne 0x46f95e
push 0x20c
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x214]
push 1
push 0x24
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x214]
mov ecx, 0x6c7c90
push eax
call fcn.004060f8
mov eax, dword [0x6c7c90]
add eax, 0xfffffff0
push eax
call fcn.004067cf
pop ecx
add eax, 0x10
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f975
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x60c66d
call fcn.0060b6e8
sub esp, 0x210
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x46f9f6
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret