joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a08
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x402a5e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402bd3
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402b45
push 0x40ba78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
push 0x40ba78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp - 4], 0
jle 0x402b33
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.00401960
add esp, 0xc
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
jmp 0x402a4e
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00401922
add esp, 0xc
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x402a4e
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
leave
ret
Function at 0x40375c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403785
cmp al, 0x22
je 0x40377d
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403771
cmp byte [esi], 0x22
jne 0x40378f
inc esi
jmp 0x40378f
cmp al, 0x20
jle 0x40378f
inc esi
cmp byte [esi], 0x20
jg 0x403789
mov al, byte [esi]
test al, al
je 0x403799
cmp al, 0x20
jle 0x403782
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403807
push 0x405004
push section..data
call fcn.004037ed
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4037c9
movzx eax, word [ebp - 0x14]
jmp 0x4037cc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040381f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x437a70
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x43c004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x437a9b
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x437acf
cmp edi, 0x19f
jne 0x437acf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.fihiresaduduvakuzafanenazewuduhe
push str.vabunayadedifecibu
push str.yosavagenisusoluselidesuli
push str.nibezitihomoyaradilocaxihenazigo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x437b42
jmp 0x437ae0
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.00437a60
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x437b3d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x437ae0
pop esi
cmp edi, 0x2d
jne 0x437b5c
mov dword [0x516500], 0xa62e7790
mov dword [0x516504], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x408310
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.00479a50
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408457
cmp dword [esi + 4], 6
push edi
ja 0x40836b
jne 0x4083f3
cmp dword [esi + 8], 2
jb 0x4083f3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4083f3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4083f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4083f3
movups xmm0, xmmword [0x4b87a8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x4b87b8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4083f3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4083f3
cmp word [edi + 2], ax
jbe 0x4083f3
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40843e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00479a50
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x40843e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00476b97
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00476b97
add esp, 0x140
ret

Function at 0x409790
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bac4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d304c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407260
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407260
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407260
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407260
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00407260
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49be58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d304c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.004070b0
test al, al
je 0x40a810
xor al, al
jmp 0x40a946
push esi
lea ecx, [ebp - 0x28]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40a872
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x28]
call fcn.00407460
cmp eax, 2
jbe 0x40a92f
lea ecx, [ebp - 0x28]
call fcn.00407460
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.004073c0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40a8b7
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40a8d6
lea ecx, [ebp - 0x28]
call fcn.00407460
cmp dword [esi + 0x14], 8
jb 0x40a8ce
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40a92f
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a933
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40a91e
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp esi, 0xffffffff
jne 0x40a933
xor bl, bl
jmp 0x40a935
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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 - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x40a970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49be98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004070b0
test al, al
je 0x40a9b0
xor al, al
jmp 0x40aaec
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004070c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40aa1f
lea ecx, [ebp - 0x44]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0041c740
test al, al
je 0x40aa0e
lea ecx, [ebp - 0x44]
call fcn.004070c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40aa28
test bl, 0x10
je 0x40aad9
lea ecx, [ebp - 0x2c]
call fcn.00407460
cmp eax, 2
jbe 0x40aad5
lea ecx, [ebp - 0x2c]
call fcn.00407460
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.004073c0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40aa58
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40aa77
lea ecx, [ebp - 0x2c]
call fcn.00407460
cmp dword [esi + 0x14], 8
jb 0x40aa6f
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40aad5
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004070c0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40aad0
lea ecx, [ebp - 0x44]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0041c740
test al, al
je 0x40aabf
lea ecx, [ebp - 0x44]
call fcn.004070c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40aad5
test bl, 0x10
je 0x40aad9
xor bl, bl
jmp 0x40aadb
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407180
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 - 0x14]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bed0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004070b0
test al, al
je 0x40ab4f
xor al, al
jmp 0x40abda
push esi
lea ecx, [ebp - 0x28]
call fcn.00407280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004070c0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40abbe
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40abad
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407180
cmp ebx, 0xffffffff
je 0x40abc7
test bl, 0x10
je 0x40abc7
mov bl, 1
jmp 0x40abc9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x40b410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c000
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d304c]
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, dword [ebp + 8]
mov ecx, edi
call fcn.004070b0
test al, al
je 0x40b450
xor al, al
jmp 0x40b60b
push edi
call fcn.0040ab10
add esp, 4
test al, al
je 0x40b464
mov al, 1
jmp 0x40b60b
push 0
mov ecx, edi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40b4b3
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x40b4a4
push 0
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
push edi
call fcn.0040ab10
add esp, 4
test al, al
jne 0x40b45d
mov ecx, edi
call fcn.00407460
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40b5ac
mov ecx, edi
call fcn.004073c0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40b4ec
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40b50f
mov eax, ebx
cmp ecx, 8
jb 0x40b505
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40b59c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408f10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004070b0
test al, al
jne 0x40b58d
lea eax, [ebp - 0x28]
push eax
call fcn.0040a7d0
add esp, 4
test al, al
jne 0x40b58d
push 0
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b58d
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x40b581
push 0
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40b4e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040a7d0
add esp, 4
test al, al
jne 0x40b602
push 0
mov ecx, edi
call fcn.004070c0
push eax
call ebx
test eax, eax
jne 0x40b602
lea ecx, [ebp - 0x40]
call fcn.00407260
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x40b5f3
push 0
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
push edi
call fcn.0040ab10
add esp, 4
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.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x40c880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c278
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d304c]
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 esi, ecx
push ecx
push 0x4b88e0
call fcn.0040ce80
cmp eax, 0xffffffff
jne 0x40c915
mov ecx, esi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c910
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c740
test al, al
je 0x40c8fe
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
cmp edi, 0xffffffff
setne al
jmp 0x40c944
lea ecx, [ebp - 0x68]
call fcn.0041b1e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0041b750
add esp, 8
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
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 - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret

Function at 0x40cf80
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.004070b0
test al, al
jne 0x40cfa7
mov ecx, dword [esp + 8]
call fcn.004070c0
jmp 0x40cfa9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40cfd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x40cfd3
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x40d030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c358
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d304c]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x40d076
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041eee0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40d09f
lea ebx, [esi + 8]
jmp 0x40d0a1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.004070b0
test al, al
jne 0x40d0b7
mov ecx, dword [ebp - 0x18]
call fcn.004070c0
jmp 0x40d0b9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40d0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d0da
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40d103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40d118
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00476e72
add esp, 8
mov dword [ebp - 0x14], 0
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 - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret 4
Function at 0x40d150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c358
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d304c]
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
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40d193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041efa0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40d1c0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x40d1c7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.004070b0
test al, al
jne 0x40d1db
mov ecx, ebx
call fcn.004070c0
jmp 0x40d1dd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x40d22e
call ecx
cmp eax, 5
jne 0x40d228
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.004070b0
test al, al
jne 0x40d218
mov ecx, ebx
call fcn.004070c0
jmp 0x40d21a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x40d24c
call ecx
cmp eax, 0xb7
jne 0x40d241
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0041dc20
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40d272
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40d287
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00476e72
add esp, 8
mov dword [ebp - 0x14], 0
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 - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret 4