Function at 0x42a680
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x20], 0x14
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x20], 0xf
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x20], 0xb
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x20], 0xb
xor ecx, ecx
mov word [ebp - 0x1c], cx
xor edx, edx
mov dword [ebp - 0x1a], edx
mov dword [ebp - 0x16], edx
mov dword [ebp - 0x12], edx
mov word [ebp - 0xe], dx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0xc], 0
xor ecx, ecx
mov dword [ebp - 0xb], ecx
movzx eax, word [ebp - 0x1c]
cdq
mov ecx, 0x64
idiv ecx
mov edx, 1
imul ecx, edx, 0
mov byte [ebp + ecx - 0xc], al
movzx eax, word [ebp - 0x1c]
cdq
mov ecx, 0x64
idiv ecx
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0xc], dl
mov ecx, 1
shl ecx, 1
mov dl, byte [ebp - 0x1a]
mov byte [ebp + ecx - 0xc], dl
mov eax, 1
imul ecx, eax, 3
mov dl, byte [ebp - 0x16]
mov byte [ebp + ecx - 0xc], dl
mov ecx, dword [ebp - 0x3c]
call fcn.0042aad0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0042ab20
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
call fcn.00497f5e
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
add ecx, 9
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x42a7a5
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jae 0x42a7bc
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + edx - 0x20]
mov byte [ecx], al
jmp 0x42a79c
mov dword [ebp - 0x2c], 0
jmp 0x42a7ce
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 4
jae 0x42a7e6
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp + eax - 0xc]
mov byte [edx + 4], cl
jmp 0x42a7c5
mov dword [ebp - 0x30], 0
jmp 0x42a7f8
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x10]
jae 0x42a813
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ecx + 8], al
jmp 0x42a7ef
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x42a83a
xor eax, eax
jmp 0x42a87f
cmp dword [ebp - 0x34], 0
je 0x42a852
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x42a852
xor eax, eax
jmp 0x42a87f
cmp dword [ebp - 0x38], 0
je 0x42a86c
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x42a86c
xor eax, eax
jmp 0x42a87f
cmp dword [ebp - 0x24], 0
je 0x42a87a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 0xc