joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e08
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push esi
push edi
push 0x104
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x78]
push ecx
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x401ea8
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x401ea8
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x401ea8
cmp dword [ebp - 0x7c], edi
ja 0x401ea8
jb 0x401e8e
cmp eax, 0x7fffffff
ja 0x401ea8
push edi
push eax
push dword [esi + 8]
mov ecx, esi
call fcn.00401c5e
test al, al
je 0x401ea8
mov ecx, dword [ebp - 0x80]
mov al, 1
mov dword [esi + 0xc], ecx
jmp 0x401eaa
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop esi
call fcn.00420802
lea esp, [ebp + 0x194]
pop ebp
ret 4
Function at 0x402e32
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x454
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x454], eax
push 0x14
mov eax, 0x45a588
call fcn.0042084a
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x460]
xor ebx, ebx
push ecx
push dword [eax]
mov dword [ebp - 0x18], ecx
call fcn.004038ed
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x45f524
push edi
mov dword [ebp - 4], ebx
call fcn.004038ed
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1c], esi
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004019b6
lea eax, [ebp + 0x204]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
call fcn.00401a2d
push esi
call fcn.0043bc57
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0043bc57
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x402f7e
push 0x2e
pop ecx
cmp word [ebp + 0x230], cx
jne 0x402ef8
cmp word [ebp + 0x232], 0
je 0x402f59
cmp word [ebp + 0x232], cx
jne 0x402ef8
cmp word [ebp + 0x234], 0
je 0x402f59
lea eax, [ebp + 0x230]
push eax
call fcn.00403ecc
mov edi, eax
mov dword [ebp - 0x1c], edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.004038ed
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x20], esi
test byte [ebp + 0x204], 0x10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
push esi
je 0x402f39
call fcn.00402e32
jmp 0x402f3e
call fcn.0040318a
push esi
mov ebx, eax
call fcn.0043bc57
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0043bc57
pop ecx
pop ecx
test ebx, ebx
jne 0x402f75
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
mov eax, dword [ebp - 0x10]
pop ecx
jne 0x402ed2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x458]
pop ebp
ret 4
Function at 0x403000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x454
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x454], eax
push 8
mov eax, 0x45a5b8
call fcn.0042084a
mov eax, ecx
mov dword [ebp - 0x10], eax
push str.TMP.
push dword [eax]
call fcn.004038ed
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea ecx, [ebp]
push esi
call fcn.004019b6
lea eax, [ebp + 0x204]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp]
mov ebx, eax
call fcn.00401a2d
push esi
call fcn.0043bc57
pop ecx
cmp ebx, 0xffffffff
je 0x4030ed
push 0x2e
pop eax
cmp word [ebp + 0x230], ax
jne 0x403098
cmp word [ebp + 0x232], 0
je 0x4030d1
cmp word [ebp + 0x232], ax
jne 0x403098
cmp word [ebp + 0x234], 0
je 0x4030d1
test byte [ebp + 0x204], 0x10
jne 0x4030d1
lea eax, [ebp + 0x230]
push eax
call fcn.00403ecc
mov edi, eax
mov eax, dword [ebp - 0x10]
push edi
push dword [eax]
call fcn.004038ed
mov esi, eax
push esi
call fcn.00402fa5
push esi
call fcn.0043bc57
push edi
call fcn.0043bc57
add esp, 0x18
lea eax, [ebp + 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x403072
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x458]
pop ebp
ret

Function at 0x4032b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x4032ef
xor al, al
jmp 0x403304
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420802
mov esp, ebp
pop ebp
ret

Function at 0x403b42
Capabilities:
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x48e104]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x208]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x428]
mov ebx, 0x104
push ebx
push ecx
push 0xffffffffffffffff
push eax
push 0
mov ebp, 0xfde9
push ebp
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x403b8e
xor al, al
jmp 0x403bbf
push ebx
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x403b8a
push 3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x41c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420802
add esp, 0x414
ret
Function at 0x403d4f
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x403d90
push 0xa
pop eax
jmp 0x403e0a
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403dc7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x403e09
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403df2
cmp dword [ebp - 0x210], edi
jne 0x403df2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x403e09
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00420802
mov esp, ebp
pop ebp
ret
Function at 0x404068
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x45a6d3
call fcn.0042084a
mov edi, ecx
push dword [edi + 8]
lea ecx, [ebp - 0x10]
push dword [edi + 4]
call fcn.00403fd9
push dword [edi + 0x44]
and dword [ebp - 4], 0
mov ecx, eax
push dword [edi + 0x40]
movzx esi, byte [edi + 0x48]
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x34]
push dword [edi + 0x30]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
push esi
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x49]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4a]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4b]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4c]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4d]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4e]
push ecx
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x4f]
push ecx
mov ecx, eax
call fcn.00404013
push dword [edi + 0x50]
movzx esi, byte [edi + 0x54]
mov ecx, eax
call fcn.0040402e
push esi
mov ecx, eax
call fcn.00404013
movzx ecx, byte [edi + 0x55]
push ecx
mov ecx, eax
call fcn.00404013
push dword [edi + 0x80]
push dword [edi + 0x7c]
push dword [edi + 0x78]
push dword [edi + 0x74]
push dword [edi + 0x70]
mov ecx, eax
push dword [edi + 0x6c]
push dword [edi + 0x68]
push dword [edi + 0x64]
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x58]
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.00404049
mov ecx, eax
call fcn.0040402e
mov ecx, eax
call fcn.0040402e
mov ecx, eax
call fcn.0040402e
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
call fcn.0040982a
pop ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4041d5
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00420813
ret

Function at 0x404d6e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [0x4959f0], eax
lea eax, [esp + 4]
push eax
push esi
push esi
push 0x4075af
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
pop ecx
ret
Function at 0x405127
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
sub esp, 0x60c
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x60c], eax
push 0x10
mov eax, 0x45a8b5
call fcn.0042084a
mov eax, dword [ebp + 0x618]
mov edi, dword [ebp + 0x61c]
mov esi, dword [ebp + 0x624]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x620]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0x477858
push 1
push 0
push 0x477878
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x405291
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
and dword [ebp - 0x14], 0
push edx
push 0x477868
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebx, eax
test ebx, ebx
js 0x405288
push edi
lea ecx, [ebp + 0x204]
call fcn.004019b6
mov eax, dword [ebp - 0x10]
xor ebx, ebx
push dword [ebp + 0x204]
mov dword [ebp - 4], ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test esi, esi
je 0x4051ff
push esi
lea ecx, [ebp + 0x408]
call fcn.004019b6
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x408]
mov byte [ebp - 4], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp + 0x408]
mov byte [ebp - 4], bl
call fcn.00401a2d
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp + 0x204]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x204]
call fcn.00401a2d
push dword [ebp - 0x18]
lea ecx, [ebp + 0x408]
call fcn.004019b6
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x408]
mov dword [ebp - 4], 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x408]
call fcn.00401a2d
push dword [ebp - 0x1c]
lea ecx, [ebp]
call fcn.004019b6
mov eax, dword [ebp - 0x14]
push 1
push dword [ebp]
mov dword [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
mov ebx, eax
call fcn.00401a2d
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
not ebx
shr ebx, 0x1f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60c]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x610]
pop ebp
ret
Function at 0x405c51
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x284
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x284], eax
push 0x14
mov eax, 0x45a9f5
call fcn.0042084a
mov eax, dword [ebp + 0x290]
lea ecx, [ebp]
xor ebx, ebx
push eax
mov esi, ebx
call fcn.004019b6
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [ebp]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
test eax, eax
je 0x405d57
push eax
call fcn.004207f4
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x10]
push ebx
push dword [ebp]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405d4e
lea eax, [ebp + 0x204]
push str.VarFileInfoTranslation
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x204]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405d4e
cmp dword [ebp - 0x14], 4
jb 0x405d4e
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp + 0x204]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x204]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405d4e
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.0043bc5c
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov byte [ecx + esi], bl
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.00437e50
add esp, 0x10
push edi
call fcn.004207fd
pop ecx
mov ebx, esi
lea ecx, [ebp]
call fcn.00401a2d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x284]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x288]
pop ebp
ret

Function at 0x4060eb
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x3f8], eax
push edi
xor eax, eax
mov dword [ebp - 0x74], 0x10
push 7
mov word [ebp + 0x3d8], ax
lea edi, [ebp + 0x3da]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x3d8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
pop edi
test eax, eax
je 0x4061a4
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0x44
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x200
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp + 0x3d8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4061a4
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x394]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x4061a4
push esi
push dword [ebp - 0x70]
call fcn.00403ecc
pop ecx
push dword [ebp - 0x70]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, esi
pop esi
jmp 0x4061a6
xor eax, eax
mov ecx, dword [ebp + 0x3f8]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x3fc]
pop ebp
ret
Function at 0x4067c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x406807
cmp dword [ebp - 0x70], 2
jne 0x406807
cmp dword [ebp - 0x7c], 6
jb 0x406807
xor eax, eax
inc eax
jmp 0x406809
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x98]
pop ebp
ret

Function at 0x4068bb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push str.SpotifyMainWindow
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x406986
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 8]
xor bl, bl
push eax
push 0x1388
push 1
push 0
push 0
push 0x8068
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x406950
cmp dword [ebp - 4], 0
je 0x406923
push dword [ebp - 4]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
jmp 0x406925
xor esi, esi
push 0x1388
test esi, esi
je 0x406946
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40694c
call dword [sym.imp.KERNEL32.DLL_Sleep]
test bl, bl
jne 0x406985
cmp dword [ebp - 4], 0
je 0x406985
push dword [ebp - 4]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x406985
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40698b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push str.SpotifyHttpsListener
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x4069eb
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 8]
push eax
push 0x3e8
push 1
push edi
push edi
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push dword [ebp - 4]
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x4069eb
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4069f1
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
test esi, esi
je 0x406a1e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x406a1e
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x406a28
mov dword [eax], esi
mov al, 1
pop esi
ret
Function at 0x407457
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043b140
mov dword [ebp - 0x3c], esi
add esp, 0xc
mov esi, dword [ebp + 0x1c]
mov eax, esi
neg eax
mov dword [ebp - 0x20], 1
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4074c1
test esi, esi
je 0x4074be
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407dd3
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x60c
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x60c], eax
push 0x60
mov eax, 0x45ad33
call fcn.0042084a
mov eax, dword [ebp + 0x618]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov eax, dword [ebp + 0x61c]
mov esi, dword [ebp + 0x624]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x620]
mov dword [ebp - 0x18], eax
xor eax, eax
stosd dword es:[edi], eax
push 0x44
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0043b140
add esp, 0xc
test esi, esi
je 0x407e38
mov dword [esi], ebx
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.004019b6
push dword [ebp - 0x14]
lea ecx, [ebp + 0x204]
mov dword [ebp - 4], ebx
call fcn.004019b6
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 0x408]
test edi, edi
mov byte [ebp - 4], 1
mov eax, 0x45f514
cmovne eax, edi
push eax
call fcn.004019b6
xor eax, eax
mov dword [ebp - 0x6c], 0x44
lea ecx, [ebp - 0x28]
test edi, edi
push ecx
cmovne eax, dword [ebp + 0x408]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x204]
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x407ec1
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x407eb5
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
jmp 0x407eba
push dword [ebp - 0x28]
call edi
push dword [ebp - 0x24]
call edi
mov bl, 1
lea ecx, [ebp + 0x408]
call fcn.00401a2d
lea ecx, [ebp + 0x204]
call fcn.00401a2d
lea ecx, [ebp]
call fcn.00401a2d
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60c]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x610]
pop ebp
ret
Function at 0x40982a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.00442e47
pop ecx
lea ecx, [ebp - 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x406a2c
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409efc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00420c50
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
neg eax
push 0x10
sbb al, al
and byte [ebp - 0x1004], al
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00407550
dec eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00406ad2
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.00420802
mov esp, ebp
pop ebp
ret 0x10