joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a680
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov esi, eax
lea ecx, [ebx + 0xa0]
mov ebp, 4
mov edi, 4
jmp 0x45a6a0
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
sub edi, 1
jne 0x45a6a0
sub ebp, 1
jne 0x45a696
mov byte [esp + 0x13], 9
add ebx, 0x90
jmp 0x45a6c0
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 0xf], al
mov eax, esi
mov byte [esi + 7], cl
mov byte [esi + 0xb], dl
call fcn.0045a500
mov eax, esi
mov ecx, ebx
mov ebp, 4
mov edi, 4
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
sub edi, 1
jne 0x45a725
sub ebp, 1
jne 0x45a720
mov eax, esi
call fcn.0045a140
mov al, byte [esp + 0x13]
dec al
sub ebx, 0x10
mov byte [esp + 0x13], al
test al, al
ja 0x45a6c0
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 0xf], al
mov eax, esi
mov byte [esi + 7], cl
mov byte [esi + 0xb], dl
call fcn.0045a500
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, esi
lea edi, [ebp + 4]
mov esi, 4
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x45a7b8
sub edi, 1
jne 0x45a7b3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x45a7d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
lea edx, [ebx + 0xb0]
push esi
mov esi, ecx
mov dword [esp + 4], edx
mov ecx, edx
test eax, eax
jbe 0x45a826
push ebp
lea ebp, [eax - 1]
shr ebp, 4
push edi
inc ebp
lea ecx, [ecx]
mov eax, esi
sub ecx, esi
mov edi, 0x10
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub edi, 1
jne 0x45a800
push ebx
mov eax, esi
call fcn.0045a540
mov ecx, esi
add esp, 4
add esi, 0x10
sub ebp, 1
jne 0x45a7f0
mov edx, dword [esp + 0xc]
pop edi
pop ebp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
pop esi
pop ecx
ret
Function at 0x45a840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 8], eax
mov esi, edx
test ecx, ecx
jbe 0x45a8c8
dec ecx
push ebx
shr ecx, 4
push ebp
inc ecx
push edi
lea edi, [eax + 0xb0]
mov dword [esp + 0x10], ecx
jmp 0x45a875
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
push eax
mov eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.0045a680
add esp, 4
mov eax, edi
mov ecx, 0x10
lea ebx, [ebx]
mov dl, byte [eax]
xor byte [esi], dl
inc eax
inc esi
sub ecx, 1
jne 0x45a8a0
sub dword [esp + 0x10], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jne 0x45a871
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004cb38b
add esp, 0x1c
ret

Function at 0x45a980
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x503377
call fcn.004d2f7d
test edi, edi
jne 0x45a994
xor eax, eax
jmp 0x45a9e3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a990
lea eax, [ebp - 0x10]
push str.360Base.dll
push eax
call fcn.0045b262
and dword [ebp - 4], 0
push dword [eax]
call fcn.00407d50
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004087f0
test esi, esi
je 0x45a9dc
push edi
push 0x5489c8
xor esi, esi
call fcn.0045b0fb
jmp 0x45a9e3
mov eax, edi
call fcn.004c5620
call fcn.004d3057
ret
Function at 0x45b83e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x45b85b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov ebx, 0x80
push ebx
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call esi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x45b95f
push edi
push ebx
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x45b933
mov dword [ebp - 0x20], edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45b928
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
cmp eax, 0x500000
ja 0x45b928
push 0x54cfe0
push eax
call fcn.004cc21d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45b928
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b901
cmp dword [ebp - 8], 0
je 0x45b91a
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45b8e4
jmp 0x45b921
mov dword [ebp - 4], 1
push edi
call fcn.004cc1ec
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x45b95f
push edi
push ebx
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x45b95f
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45b967
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
jne 0x45b978
inc eax
pop edi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x45b9a4
push esi
call edi
test eax, eax
je 0x45b9a4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x45b9a9
push esi
call ebx
test eax, eax
je 0x45b9a9
xor eax, eax
inc eax
jmp 0x45b9ba
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
pop ebx
pop edi
ret
Function at 0x45bbe4
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x4f6761
call fcn.004d2f7d
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00408850
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x45bc8e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45bc8e
mov edi, dword [edi]
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x18], esi
call fcn.0045b664
pop ecx
pop ecx
test eax, eax
je 0x45bc4c
movzx eax, word [ebp - 0x44]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x40]
shr esi, 0x10
shr ebx, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea edi, [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
push esi
push 0x515e2c
call fcn.00404c10
mov eax, dword [ebp + 0xc]
add esp, 0x14
test eax, eax
je 0x45bc6d
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45bc79
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45bc82
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x45bc8e
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408780
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.004087f0
mov eax, esi
call fcn.004d3057
ret

Function at 0x45cb8c
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x503377
call fcn.004d2f7d
lea eax, [ebp - 0x10]
push 0x50fe3c
push eax
call fcn.0045b262
pop ecx
pop ecx
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x45cc0d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45cc0d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045afbc
pop ecx
test eax, eax
jne 0x45cbd8
call fcn.0045a980
test eax, eax
je 0x45cc0d
push dword [ebp - 0x10]
call fcn.004051e0
pop ecx
test eax, eax
je 0x45cc0d
mov eax, dword [0x549230]
test eax, eax
je 0x45cbf8
push esi
push 0x51b0f4
call eax
jmp 0x45cbfd
mov eax, 0x80004001
test eax, eax
jne 0x45cc0d
mov eax, dword [esi]
test eax, eax
je 0x45cc0d
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004087f0
call fcn.004d3057
ret
Function at 0x45ccd3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x45cd0c
call fcn.00405ec0
jmp 0x45cd49
mov ecx, dword [ebp - 0xc]
push 4
pop edx
push edi
push ecx
push edi
push edi
push edx
push eax
mov dword [esi + 4], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
cmp eax, edi
jne 0x45cd47
call fcn.00405ec0
push dword [esi + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov eax, ebx
jmp 0x45cd49
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x45d7fe
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x503377
call fcn.004d2f7d
lea eax, [ebp - 0x10]
push str.360netbase.dll
push eax
call fcn.0045b262
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45d839
push dword [ebp - 0x10]
call fcn.0045d7bb
pop ecx
test eax, eax
jne 0x45d83c
push 2
pop esi
lea ecx, [ebp - 0x10]
call fcn.004087f0
mov eax, esi
call fcn.004d3057
ret

Function at 0x45e6d9
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, 0x549658
call fcn.004479b0
mov eax, dword [0x549658]
push dword [esp + 0x10]
neg eax
sbb eax, eax
mov edi, 0xf001b
and eax, edi
xor ebx, ebx
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x549660], eax
cmp eax, ebx
je 0x45e72f
mov ecx, dword [0x549658]
neg ecx
push ebx
sbb ecx, ecx
push ebx
and ecx, edi
push ebx
add ecx, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x549664], eax
cmp dword [0x549664], ebx
jne 0x45e73c
call fcn.004479b0
pop edi
pop esi
pop ebx
ret 4
Function at 0x45f790
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4f9b58
call fcn.004d2f7d
mov ebx, dword [ebp + 8]
mov edx, 0x514b40
mov edi, ebx
call fcn.004085a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.00408850
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x400
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x3fc
call fcn.004084b0
push eax
lea eax, [ebp - 0x20]
push eax
push str.UninstallString
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
or eax, 0xffffffff
call fcn.004080c0
test edi, edi
jne 0x45f89c
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
jle 0x45f89c
mov edx, str.......360se.exe
mov edi, esi
call fcn.00433a40
lea ecx, [ebp - 0x18]
call fcn.00408850
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov ecx, 0x104
lea esi, [ebp - 0x18]
call fcn.004084b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
or eax, 0xffffffff
call fcn.004080c0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f894
mov esi, dword [ebx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x45f890
cmp dword [esi + 0xc], 0
jl 0x45f884
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x45f884
call fcn.00408780
mov edi, eax
mov eax, esi
call fcn.00408830
add edi, 0x10
mov dword [ebx], edi
jmp 0x45f890
mov ebx, dword [edi - 0xc]
mov eax, dword [ebp + 8]
push edi
call fcn.00408500
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x18]
call fcn.004087f0
lea ecx, [ebp - 0x14]
call fcn.004087f0
movzx eax, byte [ebp - 0xd]
call fcn.004d3057
ret
Function at 0x45f8ae
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4f9b58
call fcn.004d2f7d
mov ebx, dword [ebp + 8]
mov edx, 0x514b40
mov edi, ebx
call fcn.004085a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.00408850
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x400
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x3fc
call fcn.004084b0
push eax
lea eax, [ebp - 0x20]
push eax
push str.UninstallString
push str.Software360ChromeUpdateClientState27D39816_7A3D_406c_9ABC_97FB55674016
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
or eax, 0xffffffff
call fcn.004080c0
test edi, edi
jne 0x45f9ba
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
jle 0x45f9ba
mov edx, str.......360chrome.exe
mov edi, esi
call fcn.00433a40
lea ecx, [ebp - 0x18]
call fcn.00408850
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov ecx, 0x104
lea esi, [ebp - 0x18]
call fcn.004084b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
or eax, 0xffffffff
call fcn.004080c0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f9b2
mov esi, dword [ebx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x45f9ae
cmp dword [esi + 0xc], 0
jl 0x45f9a2
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x45f9a2
call fcn.00408780
mov edi, eax
mov eax, esi
call fcn.00408830
add edi, 0x10
mov dword [ebx], edi
jmp 0x45f9ae
mov ebx, dword [edi - 0xc]
mov eax, dword [ebp + 8]
push edi
call fcn.00408500
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x18]
call fcn.004087f0
lea ecx, [ebp - 0x14]
call fcn.004087f0
movzx eax, byte [ebp - 0xd]
call fcn.004d3057
ret
Function at 0x45fd42
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.004d7710
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360SafeSoftMgr
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea ecx, [ebp - 0x7c]
call fcn.004085e0
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.004cb38b
add ebp, 0x190
leave
ret

Function at 0x45fdb8
Capabilities:
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x505ec9
call fcn.004d2f7d
lea eax, [ebp - 0x14]
push 0x50fe3c
xor ebx, ebx
push eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
call fcn.0045b262
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
call fcn.0045f9cc
test eax, eax
je 0x45fe36
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0045bbe4
mov eax, dword [eax]
add esp, 0x14
cmp dword [eax - 0xc], ebx
je 0x45fe23
cmp dword [ebp - 0x18], 1
ja 0x45fe23
cmp dword [ebp - 0x1c], 0x3f8
mov byte [ebp - 0xd], 1
jb 0x45fe26
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x20]
call fcn.004087f0
cmp byte [ebp - 0xd], bl
je 0x45fe56
xor esi, esi
inc esi
cmp dword [0x549654], ebx
jne 0x45fe70
cmp dword [0x54fb88], ebx
je 0x45fe7f
cmp esi, ebx
jne 0x45fe7f
lea ecx, [ebp - 0x14]
call fcn.004087f0
xor eax, eax
jmp 0x45fea0
cmp dword [0x54fb88], ebx
jne 0x45fe70
push dword [ebp - 0x14]
call fcn.004051e0
pop ecx
mov dword [0x54fb88], eax
cmp eax, ebx
je 0x45fe36
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045ff5f
pop ecx
pop ecx
jmp 0x45fe94
push 5
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x514be8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004087f0
mov eax, esi
call fcn.004d3057
ret
Function at 0x46421b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
test ebx, ebx
je 0x4642e4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x464230
sub eax, edx
sar eax, 1
je 0x4642e4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4642e4
cmp dword [ebp + 8], 0
je 0x4642e4
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x464263
sub eax, edx
sar eax, 1
je 0x4642e4
push dword [ebp + 8]
push ebx
call fcn.0045fdb8
cmp eax, 0x20
pop ecx
pop ecx
jg 0x4642e6
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
pop esi
stosd dword es:[edi], eax
push esi
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004d7710
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x64], esi
push ebx
call fcn.0045fea6
add esp, 0x10
test eax, eax
je 0x4642cf
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push 0x21
pop eax
jmp 0x4642e6
push 5
push edi
push dword [ebp + 8]
push ebx
push 0x514be8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4642e6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46576a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004d7710
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4657db
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
mov esi, eax
sub esi, 0x102
neg esi
sbb esi, esi
and esi, 2
dec esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x4657e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004d7710
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x465853
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
mov esi, eax
sub esi, 0x102
neg esi
sbb esi, esi
and esi, 2
dec esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x466a28
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 0xc
mov eax, 0x4fe4aa
call fcn.004d2f7d
and dword [ebp - 0x18], 0
mov ebx, edx
mov esi, ecx
push 0x25
push ebx
mov dword [ebp - 0x14], esi
call fcn.004ce890
pop ecx
pop ecx
test eax, eax
je 0x466bc2
lea esi, [ebp - 0x10]
call fcn.00404790
and dword [ebp - 4], 0
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._360safe_
push ebx
call esi
mov edi, eax
test edi, edi
je 0x466ab2
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0045b262
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ebx, dword [eax]
lea eax, [ebp - 0x10]
call fcn.00446bb0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004087f0
jmp 0x466af6
push 0x51bccc
push ebx
call esi
mov edi, eax
test edi, edi
je 0x466afb
push 0x104
lea eax, [ebp]
push 0
push eax
call fcn.004d7710
add esp, 0xc
push 0
push 0x10
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x466b6c
lea edx, [ebp]
lea ebx, [ebp - 0x10]
call fcn.00417210
lea edx, [edi + 9]
jmp 0x466b3d
push 0x51bcd8
push ebx
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x466b48
push 0x104
lea eax, [ebp]
push edi
push eax
call fcn.004d7710
add esp, 0xc
push edi
push 0x19
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x466b6c
lea edx, [ebp]
lea ebx, [ebp - 0x10]
call fcn.00417210
lea edx, [esi + 0xf]
lea eax, [ebp - 0x10]
push eax
call fcn.004338e0
jmp 0x466b6c
push 0x51b844
push ebx
call fcn.004cf160
pop ecx
pop ecx
cmp eax, edi
je 0x466b66
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00466491
jmp 0x466b68
xor eax, eax
cmp eax, edi
je 0x466b89
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00418660
mov esi, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
call fcn.0042afc0
jmp 0x466bca
push 0x104
lea eax, [ebp + 1]
push edi
push eax
mov byte [ebp], 0
call fcn.004d7710
add esp, 0xc
push 0x105
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [ebp]
test eax, eax
jne 0x466bb8
mov edx, ebx
lea ebx, [ebp - 0x10]
call fcn.00417210
jmp 0x466b6c
push esi
mov ecx, ebx
call fcn.00417170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.004cb38b
add ebp, 0x10c
leave
ret