joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a488
push 0x403958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edx, ecx
mov dword [ebp - 0x1c4], edx
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov byte [ebp - 0x148], bl
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x18c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18c], 0x44
mov dword [ebp - 4], ebx
mov eax, dword [edx + 0x21c]
mov dword [ebp - 0x1bc], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x190], eax
cmp eax, ebx
jne 0x401731
mov dword [ebp - 0x198], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
push eax
push str.Error_Code:_u
lea eax, [ebp - 0x44]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
call esi
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x148]
push eax
call esi
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x4017d6
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x28]
push ecx
push 1
call esi
mov dword [ebp - 0x19c], eax
cmp eax, 1
jne 0x401779
push 1
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1b8]
push edx
call edi
test eax, eax
je 0x40173d
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401758
mov ecx, dword [ebp - 0x28]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov dword [ebp - 0x194], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4017d6
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx + 4], ebx
jne 0x40185f
cmp byte [ebp - 0x148], bl
je 0x40185f
lea edx, [ebp - 0x148]
mov edi, str._nCommandline:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0x1c4]
mov edi, dword [eax + 0x21c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x10
lea ecx, [ebp - 0x148]
push ecx
call fcn.00416ee5
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401890
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x419370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x423b70
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
call fcn.004117f6
mov eax, dword [0x420548]
add esi, 0x10c
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 1
mov dword [esp + 0xc], eax
call fcn.004118c5
push str._binworktop.exe
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], 2
call fcn.004119fd
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jbe 0x4019a2
push ebx
push ebp
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push ebp
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov edi, str.StringFileInfo040904b0FileVersion
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401992
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004118c5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
mov esi, dword [esp + 0x130]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0041151b
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x128], 1
call fcn.00411788
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 0
call fcn.00411788
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret 4

Function at 0x401d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x108]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 4]
push str.MSI.DLL
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x10], eax
je 0x401d8b
push str.MsiQueryProductStateA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0xc], eax
je 0x401d8b
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
pop esi
add esp, 0x208
ret
Function at 0x410790
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00404a20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41085b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41085b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41080e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x410819
or bh, 8
and edi, 0x8000000
je 0x410834
mov eax, dword [0x42763c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41085b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x410c5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x410c7f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x410c9a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004059f5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x410e75
test byte [esp + 8], 2
je 0x410e75
call fcn.00405a68
mov dword [eax], 0xd
call fcn.00405a71
mov dword [eax], 5
jmp 0x410e4e
xor eax, eax
ret
Function at 0x414744
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x414786
call fcn.00417806
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414786
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41477d
xor eax, eax
jmp 0x41478e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00414794
pop edi
pop esi
pop ebx
ret 4

Function at 0x4188d4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x418902
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418920
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041883a
jmp 0x418920
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418920
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041883a
test edi, edi
mov eax, edi
jne 0x41890a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405d80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c31f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00440978
add esp, 8
mov dword [ebp - 0x38], eax
push 1
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x405dfe
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0044de87
add esp, 0x10
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x461283
lea ecx, [ebp - 0x58]
call fcn.0040a300
mov dword [ebp - 4], 0
push 0x461299
lea ecx, [ebp - 0x34]
call fcn.0040a300
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00405f90
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
movzx edx, byte [0x47df88]
test edx, edx
jne 0x405e8b
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
jmp 0x405f6a
cmp dword [ebp - 0x3c], 0
je 0x405f4f
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004404c0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.004404c0
add esp, 4
add esi, eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004404c0
add esp, 4
lea ecx, [esi + eax + 0x100]
mov dword [ebp - 0x60], ecx
push 1
mov edx, dword [ebp - 0x60]
push edx
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x405f43
mov eax, dword [ebp - 0x60]
push eax
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403230
push eax
lea ecx, [ebp - 0x58]
call fcn.00403230
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x461300
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440c56
add esp, 0x24
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00409db0
add esp, 8
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440d12
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x407290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x520], 0
je 0x4072a7
jmp 0x4072e7
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x520], 1
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x406be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4072e7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov esp, ebp
pop ebp
ret

Function at 0x4081a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x520], 0
je 0x4081b7
jmp 0x4081d0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x401490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x408ab0
Capabilities:
Create process on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x174], ecx
movsx eax, byte [ebp + 8]
add eax, 0x41
push eax
push 0x461d60
push 5
lea ecx, [ebp - 0x170]
push ecx
call fcn.00440cd3
add esp, 0x10
push 0
push 0x160
lea edx, [ebp - 0x168]
push edx
push 0
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 1
push 0
push 0
lea ecx, [ebp - 0x170]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c839
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call fcn.0040af70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x144]
add ecx, 0x1c
call fcn.0040afe0
mov byte [ebp - 4], 1
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00440170
add esp, 0xc
mov dword [ebp - 0x120], 0
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ab0b
push 0x5c
lea edx, [ebp - 0x11c]
push edx
call fcn.0040af30
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x40ab0b
mov eax, dword [ebp - 0x124]
sub eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x40ab0b
mov dword [ebp - 0x120], 1
cmp dword [0x4801f8], 1
jne 0x40ab59
cmp dword [ebp - 0x120], 0
je 0x40ab59
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
push 0x4629c0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00410a50
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp - 0x144]
call fcn.004031c0
jmp 0x40ab78
push 0
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0040ac00
lea ecx, [ebp - 0x140]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret

Function at 0x40b890
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push str.GlobalEDPEDISK_253F342C_3342_4076_8A4B_C44AB683B4AC
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b8e8
push str.EDPEDISK:_App_already_run
push 3
push 0x3c
push 0x462ae4
push str.IsAppRunning
call fcn.0040b8f0
add esp, 0x14
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40b8f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c910
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00440978
add esp, 8
mov dword [ebp - 0x38], eax
push 1
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40b96e
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0044de87
add esp, 0x10
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4629db
lea ecx, [ebp - 0x58]
call fcn.0040a300
mov dword [ebp - 4], 0
push 0x4629f1
lea ecx, [ebp - 0x34]
call fcn.0040a300
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040bb00
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
movzx edx, byte [0x47df88]
test edx, edx
jne 0x40b9fb
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
jmp 0x40bada
cmp dword [ebp - 0x3c], 0
je 0x40babf
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004404c0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.004404c0
add esp, 4
add esi, eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004404c0
add esp, 4
lea ecx, [esi + eax + 0x100]
mov dword [ebp - 0x60], ecx
push 1
mov edx, dword [ebp - 0x60]
push edx
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40bab3
mov eax, dword [ebp - 0x60]
push eax
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403230
push eax
lea ecx, [ebp - 0x58]
call fcn.00403230
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x462a58
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440c56
add esp, 0x24
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00409db0
add esp, 8
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440d12
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x40bf10
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c96d
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], 0
push 0x4629f2
lea ecx, [ebp - 0x10]
call fcn.00402fd0
mov dword [ebp - 4], 0
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.00440170
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x462b38
lea edx, [ebp - 0x124]
push edx
push str._sSystem32_s
lea eax, [ebp - 0x10]
push eax
call fcn.00404400
add esp, 0x10
push 0
lea ecx, [ebp - 0x10]
call fcn.00403140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c04e
push 0x520
call fcn.0042227a
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 0
je 0x40c04e
mov edx, dword [ebp - 0x128]
push edx
call fcn.0040be30
add esp, 4
push str.EdpEdisk
mov eax, dword [ebp - 0x128]
push eax
push 0
lea ecx, [ebp - 0x10]
call fcn.00403140
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call fcn.0040a300
mov dword [ebp - 0x13c], eax
call fcn.0040d1b0
add esp, 0x24
mov byte [ebp - 0x13d], al
mov cl, byte [ebp - 0x13d]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.004222a9
add esp, 4
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x135], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403050
mov al, byte [ebp - 0x135]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret