Function at 0x452520
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2540
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4ce4bc]
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 ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa0], ebx
cmp dword [ebx + 0x10], 0
jne 0x45257f
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x452ae1
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0x54], 0x6f
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x53], 4
mov byte [ebp - 0x52], 0x18
mov byte [ebp - 0x51], 0x6f
mov byte [ebp - 0x50], 0x68
mov byte [ebp - 0x4f], 0x18
mov byte [ebp - 0x4e], 0x25
mov byte [ebp - 0x4d], 0x18
mov byte [ebp - 0x4c], 0x4e
mov byte [ebp - 0x4b], 0x7c
mov byte [ebp - 0x4a], 0x69
mov byte [ebp - 0x49], 0x7c
mov byte [ebp - 0x48], 0x69
mov byte [ebp - 0x47], 0x6f
mov byte [ebp - 0x46], 0x3a
mov byte [ebp - 0x45], 4
mov byte [ebp - 0x44], 0
mov al, byte [ebp - 0x54]
mov dword [ebp - 4], 0
mov byte [ebp - 0x43], 0
call fcn.004512d0
mov edx, eax
mov dword [ebp - 0x40], 0
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452625
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00413a60
mov byte [ebp - 0x68], 0x11
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x67], 0x18
mov byte [ebp - 0x66], 0x7d
mov byte [ebp - 0x65], 0x11
mov byte [ebp - 0x64], 0x68
mov byte [ebp - 0x63], 0x18
mov byte [ebp - 0x62], 0x2c
mov byte [ebp - 0x61], 0x54
mov byte [ebp - 0x60], 4
mov byte [ebp - 0x5f], 0x2c
mov byte [ebp - 0x5e], 4
mov byte [ebp - 0x5d], 0x69
mov byte [ebp - 0x5c], 0x54
mov byte [ebp - 0x5b], 0x54
mov byte [ebp - 0x5a], 0x12
mov byte [ebp - 0x59], 0x12
mov byte [ebp - 0x58], 0
mov al, byte [ebp - 0x68]
mov byte [ebp - 4], 1
mov byte [ebp - 0x57], 0
call fcn.004512d0
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4526b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00413a60
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x8c]
push 0
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
jne 0x452700
push 8
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push eax
lea eax, [ebp - 0x8c]
push eax
call esi
test eax, eax
je 0x452a3a
xor eax, eax
mov dword [ebp - 0x84], 0x208
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
mov dword [ebp - 0x78], eax
cmovae edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x80], 0x660e
push edx
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x10
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push 0x1c
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x452842
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp edx, 0x10
jb 0x4527b3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4527a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452a34
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4527f9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4527ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452a34
push edx
push ecx
call fcn.004991fe
add esp, 8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test eax, eax
je 0x452826
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x452ae1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x452ae1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 1
push dword [ebp - 0x88]
call esi
test eax, eax
je 0x452a3a
push 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 1
push eax
push 4
push dword [ebp - 0x88]
call esi
test eax, eax
je 0x452a3a
mov eax, dword [ebx + 0x10]
push 0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x452a3a
mov eax, dword [ebp - 0x90]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x45292e
cmp eax, 0x7fffffff
ja 0x452aff
cmp eax, 0x1000
jb 0x45290e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x452b04
push ecx
call fcn.004991ce
add esp, 4
test eax, eax
je 0x452a34
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x452919
push eax
call fcn.004991ce
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x9c]
push eax
push 0
push esi
lea ebx, [esi + eax]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 0x14], 0x10
jb 0x452943
mov ecx, dword [eax]
add ecx, dword [eax + 0x10]
mov eax, dword [eax]
jmp 0x452948
mov ecx, dword [eax + 0x10]
add ecx, eax
sub ecx, eax
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x94]
push dword [ebp - 0x90]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4529b8
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
test esi, esi
je 0x452a4e
sub ebx, esi
cmp ebx, 0x1000
jb 0x4529a9
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x452a34
mov esi, ecx
push ebx
push esi
call fcn.004991fe
add esp, 8
jmp 0x452a4e
mov edx, dword [ebp - 0x14]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edx, 0x10
jb 0x4529f0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4529e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452a34
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x452ac4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x452aba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x452aba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x452a7e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x452a74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452a34
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
cmp edx, 0x10
jb 0x452ac4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x452aba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452a34
push edx
push ecx
call fcn.004991fe
add esp, 8
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0044da70
mov eax, edi
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.0049920c
mov esp, ebp
pop ebp
ret
call fcn.00401c60
call fcn.00401bd0
int3