joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421fb5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004159b5
and dword [ebp - 0x14], 0
cmp dword [0x44d47c], 0
mov dword [ebp - 0x18], eax
jne 0x422068
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x422110
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42cda4
push ebx
call edi
test eax, eax
je 0x422110
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44d47c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44d480], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44d484], eax
call edi
push eax
call esi
mov dword [0x44d48c], eax
test eax, eax
je 0x422068
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44d488], eax
mov eax, dword [0x44d488]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4220c1
cmp dword [0x44d48c], ecx
je 0x4220c1
push eax
call esi
push dword [0x44d48c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4220c1
test ebx, ebx
je 0x4220c1
call edi
test eax, eax
je 0x4220b8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4220b8
test byte [ebp - 8], 1
jne 0x4220c1
or dword [ebp + 0x10], 0x200000
jmp 0x4220f4
mov eax, dword [0x44d480]
cmp eax, dword [ebp - 0x18]
je 0x4220f4
push eax
call esi
test eax, eax
je 0x4220f4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4220f4
mov eax, dword [0x44d484]
cmp eax, dword [ebp - 0x18]
je 0x4220f4
push eax
call esi
test eax, eax
je 0x4220f4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44d47c]
call esi
test eax, eax
je 0x422110
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x422112
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e71b
leave
ret
Function at 0x405d75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b624]
jne 0x405d7f
repz ret
jmp fcn.0040ac54

Function at 0x409d37
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004053e0
and dword [ebp - 4], 0
cmp dword [0x43083c], 0
mov ebx, eax
jne 0x409de8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409e99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409e99
push eax
call fcn.0040536e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43083c], eax
call esi
push eax
call fcn.0040536e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430840], eax
call esi
push eax
call fcn.0040536e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430844], eax
call esi
push eax
call fcn.0040536e
pop ecx
mov dword [0x43084c], eax
test eax, eax
je 0x409de8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040536e
pop ecx
mov dword [0x430848], eax
mov eax, dword [0x430848]
cmp eax, ebx
je 0x409e40
cmp dword [0x43084c], ebx
je 0x409e40
push eax
call fcn.004053e9
push dword [0x43084c]
mov esi, eax
call fcn.004053e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409e40
test edi, edi
je 0x409e40
call esi
test eax, eax
je 0x409e37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409e37
test byte [ebp - 0xc], 1
jne 0x409e40
or dword [ebp + 0x10], 0x200000
jmp 0x409e79
mov eax, dword [0x430840]
cmp eax, ebx
je 0x409e79
push eax
call fcn.004053e9
pop ecx
test eax, eax
je 0x409e79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409e79
mov eax, dword [0x430844]
cmp eax, ebx
je 0x409e79
push eax
call fcn.004053e9
pop ecx
test eax, eax
je 0x409e79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43083c]
call fcn.004053e9
pop ecx
test eax, eax
je 0x409e99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409e9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30014ae6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x3001dec8
call fcn.3001696e
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x30014951
push 0x12
call fcn.3001489f
pop ecx
jmp 0x30014adb
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x3001496f
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x30014adb
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x300149a1
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x30021824], esi
mov dword [0x3002182c], eax
mov dword [0x30021830], ecx
mov dword [0x30021834], edx
mov dword [0x30021828], edi
call fcn.300148c5
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.30016914
pop ecx
test eax, eax
jne 0x300149e9
push 0x1c
call fcn.3001489f
pop ecx
call fcn.30016735
test eax, eax
jne 0x300149fa
push 0x10
call fcn.3001489f
pop ecx
call fcn.3001633a
mov dword [ebp - 4], ebx
call fcn.300160fa
test eax, eax
jge 0x30014a13
push 0x1b
call fcn.300155eb
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x300232f8], eax
call fcn.30015fc5
mov dword [0x3002180c], eax
call main
test eax, eax
jge 0x30014a39
push 8
call fcn.300155eb
pop ecx
call fcn.30015c99
test eax, eax
jge 0x30014a4a
push 9
call fcn.300155eb
pop ecx
push ebx
call fcn.30015707
pop ecx
test eax, eax
je 0x30014a5c
push eax
call fcn.300155eb
pop ecx
call fcn.30015c3c
test byte [ebp - 0x44], bl
je 0x30014a6c
movzx ecx, word [ebp - 0x40]
jmp 0x30014a6f
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x30014a8c
push eax
call fcn.30015867
call fcn.30015889
jmp 0x30014ac1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x30014ae0
mov eax, 0xff
call fcn.300169b3
ret
call main
jmp 0x30014906
Function at 0x30014af0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30020490]
jne 0x30016bf1
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30021d98], eax
mov dword [0x30021d94], ecx
mov dword [0x30021d90], edx
mov dword [0x30021d8c], ebx
mov dword [0x30021d88], esi
mov dword [0x30021d84], edi
mov word [0x30021db0], ss
mov word [0x30021da4], cs
mov word [0x30021d80], ds
mov word [0x30021d7c], es
mov word [0x30021d78], fs
mov word [0x30021d74], gs
pushfd
pop dword [0x30021da8]
mov eax, dword [ebp]
mov dword [0x30021d9c], eax
mov eax, dword [ebp + 4]
mov dword [0x30021da0], eax
lea eax, [ebp + 8]
mov dword [0x30021dac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30021ce8], 0x10001
mov eax, dword [0x30021da0]
mov dword [0x30021c9c], eax
mov dword [0x30021c90], 0xc0000409
mov dword [0x30021c94], 1
mov eax, dword [0x30020490]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30020494]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x30021ce0], eax
push 1
call fcn.3001ac97
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x30002c70
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x30021ce0], 0
jne 0x30016ce1
push 1
call fcn.3001ac97
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x3001aeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x3001aebf
pop dword [ebp - 0x24]
mov eax, 0x3001aebf
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x39d25
push 0
mov eax, 0x9a52d889
sub eax, 0x6a52c771
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xd2d13d13
add ecx, 0x2d2f0c37
xor ebx, ebx
add ebx, eax
mov esi, 0x47bfb719
sub esi, 0x17bd4f19
add esi, dword [ebp - 0x24]
mov edx, 0xbb651cf8
sub edx, 0x86a623d6
add dword [ebp - 0xc], 0xaee1cbf7
mov edi, dword [esi]
sub dword [ebp - 0x1c], ecx
sub edi, edx
sub dword [ebp - 0x18], ecx
mov dword [ebx], edi
xor dword [ebp - 0x18], 0x360fcf3f
add ebx, 4
add esi, 0x332d43ea
add esi, 0xccd2bc1a
loop 0x3001af1b
add eax, 0x65475e49
sub eax, 0x6546464e
xor ebx, ebx
add ebx, eax
add eax, 0x851c5090
add eax, 0x7ae3af75
mov ecx, 0xbd1ab290
add ecx, 0x72e54d70
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10003368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10003377
pop dword [ebp - 0x4c]
mov eax, 0x5b77e720
sub eax, 0x4b77b3a9
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xbf3b19c1
add dword [ebp - 0x5c], 0x8f172b8a
mov dword [ebp - 0x58], 0x77a11f35
add dword [ebp - 0x58], 0xba922d10
mov dword [ebp - 0x54], 0x69376211
sub dword [ebp - 0x54], 0x1ceb1de3
mov dword [ebp - 0x50], 0x6d19f7ad
add dword [ebp - 0x50], 0x92e60853
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb570d5dc
add dword [ebp - 0x5c], 0xbf01937a
mov dword [ebp - 0x58], 0xa1d01678
sub dword [ebp - 0x58], 0x6063b503
mov dword [ebp - 0x54], 0xf276f2f4
sub dword [ebp - 0x54], 0x8f078688
mov dword [ebp - 0x50], 0xc869abe5
add dword [ebp - 0x50], 0x3796541b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x37323
push 0
call eax
mov ecx, 0xf1f94a04
add ecx, 0xe070058
mov ebx, eax
mov edx, 0x1f9f8b6d
sub edx, 0xf9ef56d
add edx, dword [ebp - 0x4c]
mov edi, 0xfab636a8
sub edi, 0xda7424e5
sub dword [ebp - 0x34], ecx
mov esi, dword [edx]
add dword [ebp - 8], edi
xor esi, edi
sub dword [ebp - 0x1c], 0x76f4a3d8
mov dword [ebx], esi
add dword [ebp - 8], 0xfcd9220a
add ebx, 4
add edx, 0x86d55be7
add edx, 0x792aa41d
loop 0x1000348f
add eax, 0x11c43
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa87ded67
add ecx, 0x67821299
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4033d0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4074c5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x40b008]
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 edi, ecx
lea ecx, [ebp - 0x44]
call fcn.00402f60
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
push str.LoadLibraryW
push str.Kernel32.dll
lea esi, [eax*2 + 2]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x3000
push esi
push 0
push edi
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x403583
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push dword [ebp - 0x54]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x403495
push str.Could_not_create_remote_thread
jmp 0x403588
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4034b0
push str.Thread_exit_timeout
jmp 0x403588
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x14], 0
jne 0x4034cb
push str.Failed_to_load_library_from_remote_process
jmp 0x403588
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x403517
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40350d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403557
push ecx
push edx
call fcn.00406460
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x403567
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40355d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40355d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
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.0040641d
mov esp, ebp
pop ebp
ret
push str.Could_not_allocate_memory_on_target_process
lea ecx, [ebp - 0x50]
call fcn.00401000
push 0x40983c
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4035a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4074fd
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov esi, eax
lea eax, [ebp - 0x238]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403639
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x403673
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x23c]
push eax
push esi
call edi
test eax, eax
jne 0x403618
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x403658
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.0040641d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x403e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4075fe
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
push eax
push 0
push 0
push 0x408230
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x54]
push dword [ebp - 0x38]
call fcn.00405870
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x34]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.00405820
add esp, 8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x30]
call fcn.004042a0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], 8
push eax
lea ecx, [ebp - 0x30]
call fcn.00401c10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x58]
cmp ecx, 8
jb 0x403f1a
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f4a
push ecx
push edx
call fcn.00406460
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x403f5a
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403f50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
xor eax, eax
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x40], 7
lea ecx, [ebp - 0x30]
mov word [ebp - 0x54], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x40b030
call fcn.00403340
and eax, edx
cmp eax, 0xffffffff
jne 0x403f9a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.e_1_93mWarn:_Failed_to_delete_Spotify_update___localappdata__Spotify_Update_._You_may_need_to_re_run_Install.ps1_to_downgrade._ne_0m
call fcn.004049a0
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x403fdf
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403fd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403fd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040641d
mov esp, ebp
pop ebp
ret
Function at 0x405a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov ecx, 0x8b
lea edi, [ebp - 0x230]
push str.Spotify.exe
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405aeb
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040641d
mov esp, ebp
pop ebp
ret 4

Function at 0x405b20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov ebx, ecx
lea edi, [ebp - 0x230]
mov ecx, 0x8b
push str.Spotify.exe
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405b9d
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push 0x4036b0
mov dword [ebp - 0x234], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x234], 0
je 0x405b9d
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040641d
mov esp, ebp
pop ebp
ret 4

Function at 0x405da1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00405d7d
pop esi
leave
ret 8

Function at 0x406cc3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406d02
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406d02
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d02
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406d02
cmp dword [ecx + 0x74], 0xe
jbe 0x406d02
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001e10
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x10001eb7
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x10001e65
test dword [esi + 0xc], 0x100000
jne 0x10001e7d
mov eax, dword [esi + 4]
push eax
jmp 0x10001e77
cmp ebp, 1
jne 0x10001e7d
test dword [esi + 0xc], 0x100000
je 0x10001e7d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x10001e52
mov ebx, 1
pop ebp
test esi, esi
je 0x10001ec4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret