Function at 0x407c96
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x64
mov eax, 0x4388f8
call fcn.0041a581
mov dword [ebp - 0x20], edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
push 1
push str.SoftwareNinite
push 0x80000001
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call fcn.0041336e
test eax, eax
je 0x407d23
movzx edx, ax
or edx, 0x80070000
test eax, eax
mov ecx, edx
cmovle ecx, eax
test ecx, ecx
jns 0x407cee
test eax, eax
cmovle edx, eax
jmp 0x407cf3
mov edx, 0x80004005
push 0xd
push edx
push ecx
mov esi, esp
call fcn.00413c5e
push eax
mov ecx, esi
call fcn.00413a4e
mov ecx, ebx
call fcn.004142d3
cmp dword [ebp - 0x4c], 0
je 0x407d1c
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x408079
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x4c]
mov edx, edi
push eax
lea eax, [ebp - 0x58]
push eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040350e
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x64], 0
jge 0x407dce
cmp dword [ebp - 0x60], 0
push 0x11
pop eax
cmovne eax, dword [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x5c]
mov esi, esp
mov dword [ebp - 0x20], esi
lea ecx, [ecx - 0x10]
call fcn.0041423d
add eax, 0x10
lea ecx, [ebp - 0x70]
mov dword [esi], eax
call fcn.004142d3
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040153c
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x407dc0
mov eax, dword [ebp - 0x50]
push 1
sub eax, ecx
push eax
push ecx
call fcn.004134d7
add esp, 0xc
test edi, edi
je 0x407d1c
push edi
jmp 0x407d16
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004142bb
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
sub eax, ebx
jne 0x407e4a
push 0x13
push 0x80004005
push ecx
mov esi, esp
call fcn.00413c5e
push eax
mov ecx, esi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.0040153c
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.004142bb
test ebx, ebx
je 0x407e38
mov eax, dword [ebp - 0x50]
push 1
sub eax, ebx
push eax
push ebx
call fcn.004134d7
add esp, 0xc
test edi, edi
je 0x407e43
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408079
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
setne al
test al, al
jne 0x407ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
mov ecx, edx
cmovle ecx, eax
test ecx, ecx
jns 0x407e93
test eax, eax
cmovle edx, eax
jmp 0x407e98
mov edx, 0x80004005
push 0x17
push edx
push ecx
mov esi, esp
call fcn.00413c5e
push eax
mov ecx, esi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov byte [ebp - 4], 5
jmp 0x407e0a
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x38]
cmp ecx, 2
sbb al, al
add al, 1
jne 0x407f0b
push 0x1a
push 0x80004005
push ecx
mov edi, esp
call fcn.00413c5e
push eax
mov ecx, edi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
call fcn.0040153c
mov ecx, dword [ebp - 0x68]
jmp 0x408040
cmp byte [esi + ecx - 1], 0
je 0x407f37
push 0x1b
push 0x80004005
push ecx
mov edi, esp
call fcn.00413c5e
push eax
mov ecx, edi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov byte [ebp - 4], 8
jmp 0x407ef5
cmp byte [esi + ecx - 2], 0
je 0x407f63
push 0x1c
push 0x80004005
push ecx
mov edi, esp
call fcn.00413c5e
push eax
mov ecx, edi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov byte [ebp - 4], 9
jmp 0x407ef5
push esi
lea ecx, [ebp - 0x18]
call fcn.00414128
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push ecx
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x445360
call fcn.00414128
push ecx
mov byte [ebp - 4], 0xc
mov edi, esp
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edi
lea ecx, [ecx - 0x10]
call fcn.0041423d
add eax, 0x10
lea ecx, [ebp - 0x64]
mov dword [edi], eax
mov dl, 1
mov byte [ebp - 4], 0xb
call fcn.00410c2b
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
sub eax, ecx
sar eax, 2
cmp eax, 2
jae 0x408003
push 0x20
push 0x80004005
push ecx
mov edi, esp
call fcn.00413c5e
push eax
mov ecx, edi
call fcn.00413a4e
lea ecx, [ebp - 0x70]
call fcn.004142d3
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.0040153c
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.004142bb
jmp 0x408035
mov edi, dword [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.004136ae
mov eax, dword [ebp - 0x64]
lea ecx, [edi + 4]
add eax, 4
push eax
call fcn.004136ae
mov edi, dword [ebp - 0x14]
and dword [edi], 0
and dword [edi + 4], 0
call fcn.00413c5e
push eax
lea ecx, [edi + 8]
call fcn.00413a4e
lea ecx, [ebp - 0x64]
call fcn.00410108
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004142bb
test esi, esi
je 0x408053
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x408068
mov eax, dword [ebp - 0x50]
push 1
sub eax, ebx
push eax
push ebx
call fcn.004134d7
add esp, 0xc
cmp dword [ebp - 0x4c], 0
je 0x408077
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0041a54a
ret