joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c5a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c63e
push ebx
push esi
call fcn.1000c56a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c4fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c5eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c63d
push edi
push eax
call fcn.1000d55c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c60b
call fcn.1000b044
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c63c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c4fe
add esp, 0x20
test eax, eax
jne 0x1000c62a
push edi
call fcn.1000b044
jmp 0x1000c632
push ebx
call fcn.1000b044
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000c8ab
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014668
push 0x10014660
push str.FlsAlloc
push 0x1f
call fcn.1000c7c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c8df
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013150]
call esi
jmp 0x1000c8e5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c929
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014678
push 0x10014670
push str.FlsGetValue
push 0x21
call fcn.1000c7c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c960
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c968
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014680
push 0x10014678
push str.FlsSetValue
push 0x22
call fcn.1000c7c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c9a2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10013150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001205d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001205d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401070
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x2000], eax
cmp dword [0x70bfdc], 0
push edi
mov edi, ecx
je 0x401101
mov ecx, dword [esp + 0x2010]
lea eax, [esp + 0x2014]
push eax
push ecx
lea edx, [esp + 0xc]
push 0xfff
push edx
call sub.MSVCR90.dll__vsnprintf
add esp, 0x10
test eax, eax
jl 0x4010c3
cmp eax, 0xfff
ja 0x4010c3
jne 0x4010cb
mov byte [esp + 0x1003], 0
mov eax, dword [esp + 0x200c]
push eax
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x7063f8
push 0x6cef64
mov ecx, 0x1000
lea edi, [esp + 0x101c]
call fcn.00401010
add esp, 0x18
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2004]
pop edi
xor ecx, esp
call fcn.00606c9e
add esp, 0x2004
ret

Function at 0x401160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x103
xor esi, esi
lea eax, [esp + 0x19]
push esi
push eax
mov dword [esp + 0x14], 4
mov byte [esp + 0x20], 0
call sub.MSVCR90.dll_memset
push str.SOFTWAREMarkAnyWebDRMNoAXMaRex
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
call sub.MSVCR90.dll_strcpy_s
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 0xf003f
push esi
lea eax, [esp + 0x20]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401203
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push esi
push str.bUse
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401203
lea eax, [esi + 1]
cmp dword [esp + 4], esi
ja 0x401205
mov eax, esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00606c9e
add esp, 0x118
ret
Function at 0x401220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
mov dword [esp + 0x14], 0
call sub.KERNEL32.dll_Process32First
test al, al
je 0x4012f2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea esi, [esp + 0x34]
lea ecx, [esp + 0x138]
sub esi, ecx
mov edi, edi
push 0x105
lea edx, [esp + 0x13c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, 0x105
lea eax, [esp + 0x138]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x4012be
mov cl, byte [esi + eax]
test cl, cl
je 0x4012be
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4012a3
jmp 0x4012c2
test edx, edx
jne 0x4012c3
dec eax
push str.marex.exe
lea edx, [esp + 0x13c]
push edx
mov byte [eax], 0
call ebx
test eax, eax
jne 0x4012ea
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test al, al
jne 0x401280
jmp 0x4012f2
mov dword [esp + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x70c058], 0
jne 0x401377
push esi
push str.Called__m_bUse_is_FALSE_return_
push 0x57
push str..CMaExAllow.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.CMAEXALLOW::ExcuteMaRex
call fcn.00401070
add esp, 8
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret 4
lea eax, [esp]
push eax
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4013d7
push str.MarkAnyWebDRMNoAX_binmarex.exe
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [esp + 0x10c], 0
je 0x4013bf
call fcn.00401220
test eax, eax
jne 0x4013d7
push 1
push eax
push str.marex_hide_start
lea edx, [esp + 0xc]
push edx
jmp 0x4013cd
push 1
push 0
push str.marex_stop
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret 4
Function at 0x401c80
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x90
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00606c9e
add esp, 0x98
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call sub.MSVCR90.dll_memset
push 0x208
call sub.MSVCR90.dll_malloc
push 0x104
mov ebx, eax
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0x1c
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e01
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x61bb54
call eax
mov eax, dword [esp + 8]
test eax, eax
je 0x401e01
xor ecx, ecx
cmp cx, word [eax]
je 0x401e01
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401dd4
mov esi, dword [esp + 8]
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401dc3
jmp 0x401e45
mov edx, dword [esp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, dword [esp + 8]
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401df0
jmp 0x401e45
xor eax, eax
jmp 0x401e10
movzx ecx, word [eax + str.C:UsersPublic]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x401e10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401e41
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, dword [esp + 8]
test esi, esi
je 0x401e58
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 8], 0
lea edx, [esp + 0xc]
push edx
push 0x104
push ebx
call sub.MSVCR90.dll_wcscpy_s
mov ecx, dword [esp + 0x220]
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00606c9e
add esp, 0x210
ret
Function at 0x402020
Capabilities:
Create directory
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x104], eax
call fcn.00401c80
cmp eax, 1
je 0x402055
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00401d20
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, eax
push edi
push 0
push 0
call ebp
mov ebx, eax
push ebx
call sub.MSVCR90.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x4020b0
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
push esi
lea ecx, [esp + 0x14]
push 0x104
push ecx
call sub.MSVCR90.dll_strcpy_s
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.MarkAny
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x14]
push ecx
call edi
push str.WebDRMNoAX
lea edx, [esp + 0x14]
push edx
call esi
push 0
lea eax, [esp + 0x14]
push eax
call edi
push 0x6cf4b8
lea ecx, [esp + 0x14]
push ecx
call esi
push 0
lea edx, [esp + 0x14]
push edx
call edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401e90
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x70ad80], eax
xor ecx, esp
mov eax, 1
call fcn.00606c9e
add esp, 0x108
ret

Function at 0x402b20
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x20210
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x2020c], eax
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [0x70bfdc], ebx
je 0x402c0e
mov ecx, dword [esp + 0x20220]
lea eax, [esp + 0x20224]
push eax
push ecx
lea edx, [esp + 0x21c]
push 0xfffd
push edx
call sub.MSVCR90.dll__vsnwprintf
push 0x103
lea eax, [esp + 0x125]
push ebx
push eax
mov byte [esp + 0x12c], bl
call sub.MSVCR90.dll_memset
push edi
lea ecx, [esp + 0x130]
push 0x104
push ecx
call sub.MSVCR90.dll_strcpy_s
push 0x103
lea edx, [esp + 0x39]
push ebx
push edx
mov byte [esp + 0x40], bl
call sub.MSVCR90.dll_memset
push esi
lea eax, [esp + 0x44]
push 0x104
push eax
call sub.MSVCR90.dll_strcpy_s
mov ecx, dword [esp + 0x2025c]
add esp, 0x40
push ecx
lea edi, [esp + 0x114]
call fcn.00405bd0
push eax
lea edx, [esp + 0x21c]
push edx
lea edi, [esp + 0x18]
call fcn.00405bd0
push eax
push 0x706500
push str.__s_::__s___s_______s___dL__
mov ecx, 0x7fff
lea ebx, [esp + 0x1022c]
call fcn.00402150
add esp, 0x18
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x20214]
pop edi
pop ebx
xor ecx, esp
call fcn.00606c9e
add esp, 0x20210
ret
Function at 0x402c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x617573
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x70635c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], ebx
mov byte [esi + 0x90], bl
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xac], bl
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xc8], bl
mov dword [esi + 0xf8], eax
mov dword [esi + 0xf4], ebx
mov byte [esi + 0xe4], bl
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], ebx
mov byte [esi + 0x100], bl
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ebx
mov byte [esi + 0x11c], bl
mov dword [esi + 0x150], eax
mov dword [esi + 0x14c], ebx
mov byte [esi + 0x13c], bl
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], ebx
mov byte [esi + 0x158], bl
lea eax, [esi + 0x170]
push eax
mov byte [esp + 0x18], 0xc
call fcn.004080a0
mov eax, 0xfffffeff
mov byte [esi + 0x208], bl
and dword [esi + 0x208], eax
mov dword [esi + 0x20c], ebx
mov byte [esi + 0x218], bl
and dword [esi + 0x218], eax
mov dword [esi + 0x21c], ebx
mov byte [esi + 0x228], bl
and dword [esi + 0x228], eax
mov dword [esi + 0x22c], ebx
mov byte [esi + 0x238], bl
and dword [esi + 0x238], eax
mov dword [esi + 0x23c], ebx
mov byte [esi + 0x248], bl
and dword [esi + 0x248], eax
mov dword [esi + 0x24c], ebx
mov ecx, esi
mov byte [esp + 0x14], 0x17
call fcn.00403050
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x403050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x617348
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x70635c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x6cf55b
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x1c]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x38]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x54]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x70]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x8c]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0xa8]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0xc4]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0xe0]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0xfc]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x118]
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x154]
mov dword [esi + 0x134], 0
call fcn.00406850
push 0
push 0x6cf55b
lea ecx, [esi + 0x138]
call fcn.00406850
mov eax, dword [esp + 0x14]
and eax, 0xffffff04
or eax, 0x104
push 0x6cf55b
or ecx, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.0040a0a0
add esp, 4
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
add esi, 0x240
call fcn.0040a280
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.0040a4e0
mov eax, ecx
call fcn.0040a3e0
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040a3e0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x405cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6e9380
push 0x607724
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x70635c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
push edi
push str..pipeC158F7E0_E1F0_4318_A228_FD50431CDD21_PIPE_X64
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x405d19
push str.Not_Connected
push 0x3e
jmp 0x405d9c
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeC158F7E0_E1F0_4318_A228_FD50431CDD21_PIPE_X64
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
jne 0x405d46
push str.CreateFile_Failed
push 0x45
jmp 0x405d9c
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 8
lea edx, [ebp - 0x24]
push edx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test eax, eax
je 0x405d95
cmp dword [ebp - 0x2c], 8
jne 0x405d95
mov dword [ebp - 0x30], 0x11f8
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x11f9
push ebx
push edi
call esi
mov dword [ebp - 0x34], eax
jmp 0x405db6
push str.WriteFile_Failed
push 0x52
push str.c:UsersmkSongDesktopWebDRM81._MaWebDRMNoAX_gs01.srcCommonPipeClientMgr.h
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.PipeClientMgr::CallPipe
call fcn.00401070
add esp, 8
mov dword [ebp - 4], 0xfffffffe
call fcn.00405de3
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x405eb5
push ebx
push ebp
push edi
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x110]
push 0x104
push edi
call sub.MSVCR90.dll_strcpy_s
lea eax, [esp + 0x1c]
push eax
lea ebx, [esi + 0x214]
push 0x104
push ebx
call sub.MSVCR90.dll_strcpy_s
lea ecx, [esp + 0x28]
push ecx
lea ebp, [esi + 0xc]
push 0x104
push ebp
call sub.MSVCR90.dll_strcpy_s
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0x24
push str.MarkanyWebDRMNoAXcert
push edi
call esi
push str.MarkanyWebDRMNoAXcert
push ebx
call esi
push str.MarkanyWebDRMNoAXcert
push ebp
call esi
push str.mac.pem
push edi
call esi
push str.mak.pem
push ebx
call esi
push str.mar.pem
push ebp
call esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret
Function at 0x405ed0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x84
push edi
mov edi, ecx
push 0x84
lea ecx, [esp + 8]
push 0
push ecx
mov dword [esi], eax
mov dword [esi + 4], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
test edi, edi
je 0x405f18
mov ecx, esi
call fcn.00405df0
lea edx, [esi + 0x110]
lea eax, [esi + 0x214]
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov edx, dword [esi]
or eax, 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0x706714
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], str.127.0.0.1
call fcn.0041cf20
mov edi, eax
add esp, 4
test edi, edi
jne 0x405f75
push eax
push str.MarkAny_WebDRM
push 0x6cfb60
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esi + 8], 0
jne 0x405f91
jmp 0x405f80
push 0x32
push edi
call fcn.0041c4e0
add esp, 8
cmp dword [esi + 8], 0
je 0x405f80
push edi
call fcn.0041cd70
add esp, 4
pop edi
add esp, 0x84
ret
Function at 0x40a540
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x616e78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
mov eax, dword [0x70635c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
movsx eax, byte [ecx + 8]
xor ebx, ebx
mov dword [esp + 8], ebx
cmp eax, 7
ja case.default.0x40a577
jmp dword [eax*4 + 0x40a668]
push 0x6cf55b
mov ecx, esi
call fcn.00405fb0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x54
ret
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x40a5a8
mov ecx, 0x6cf55b
push ecx
mov ecx, esi
call fcn.00405fb0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x54
ret
mov eax, str.true
cmp byte [ecx], bl
jne 0x40a5d1
mov eax, str.false
push eax
mov ecx, esi
call fcn.00405fb0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x54
ret
push str.Type_is_not_convertible_to_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x21
push str.Type_is_not_convertible_to_string
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00406850
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x60], ebx
call fcn.00407c40
push 0x6e8f48
lea edx, [esp + 0x2c]
push edx
call sub.MSVCR90.dll__CxxThrowException
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x6cf55b
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00406850
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x54
ret