Function at 0x417400
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 0x43d6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x456b38]
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 0x41745f
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x4179c1
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.004132c0
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 0x417505
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00410a60
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.004132c0
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 0x417590
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00410a60
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
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 0x4175e0
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 0x41791a
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 0x417722
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp edx, 0x10
jb 0x417693
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417689
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417914
push edx
push ecx
call fcn.00438e9f
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 0x4176d9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4176cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417914
push edx
push ecx
call fcn.00438e9f
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 0x417706
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4179c1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4179c1
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 0x41791a
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 0x41791a
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 0x41791a
mov eax, dword [ebp - 0x90]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x41780e
cmp eax, 0x7fffffff
ja 0x4179df
cmp eax, 0x1000
jb 0x4177ee
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4179e4
push ecx
call fcn.00438e6f
add esp, 4
test eax, eax
je 0x417914
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4177f9
push eax
call fcn.00438e6f
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 0x417823
mov ecx, dword [eax]
add ecx, dword [eax + 0x10]
mov eax, dword [eax]
jmp 0x417828
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 0x417898
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
test esi, esi
je 0x41792e
sub ebx, esi
cmp ebx, 0x1000
jb 0x417889
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x417914
mov esi, ecx
push ebx
push esi
call fcn.00438e9f
add esp, 8
jmp 0x41792e
mov edx, dword [ebp - 0x14]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edx, 0x10
jb 0x4178d0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4178c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417914
push edx
push ecx
call fcn.00438e9f
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 0x4179a4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41799a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41799a
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 0x41795e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417954
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417914
push edx
push ecx
call fcn.00438e9f
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 0x4179a4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41799a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417914
push edx
push ecx
call fcn.00438e9f
add esp, 8
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404ee0
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.0043910c
mov esp, ebp
pop ebp
ret
call fcn.00410220
call fcn.00401fe0
int3