Function at 0x1276966
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x1276c26
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x1276c26
cmp dword [ebp + 0x10], edi
je 0x1276c26
cmp dword [esi + 8], 4
je 0x12769b4
mov esi, 0x80049e2f
jmp 0x1276c38
cmp dword [esi + 0x20], edi
je 0x1276c1f
cmp dword [esi + 0x24], edi
je 0x1276c1f
push 0x2c
call fcn.010324da
pop ecx
test eax, eax
je 0x12769e1
push dword [esi + 0x24]
mov ecx, eax
call fcn.01276117
mov dword [ebp - 4], eax
jmp 0x12769e4
and dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x12769f3
mov esi, 0x8007000e
jmp 0x1276c38
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
jne 0x1276c2b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010324da
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1276aa7
mov edx, dword [ebx]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jne 0x1276c2b
mov eax, dword [ebp - 0x14]
mov ecx, 0x1021e78
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1276a6d
test dx, dx
je 0x1276a69
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1276a6d
add eax, 4
add ecx, 4
test dx, dx
jne 0x1276a47
xor eax, eax
jmp 0x1276a72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1276c18
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jne 0x1276c2b
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov dword [ebp - 0x1c], eax
call fcn.010324da
mov edi, eax
pop ecx
test edi, edi
jne 0x1276ab1
mov esi, 0x8007000e
jmp 0x1276c2b
xor eax, eax
mov word [edi + 2], ax
mov eax, dword [ebp + 8]
lea ebx, [edi + 0xc]
mov byte [edi], 1
mov byte [edi + 1], 2
mov ecx, 0x1021e20
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1276aef
test dx, dx
je 0x1276aeb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1276aef
add eax, 4
add ecx, 4
test dx, dx
jne 0x1276ac9
xor eax, eax
jmp 0x1276af4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1276b0e
mov eax, dword [ebp - 4]
mov dword [edi + 4], 0x660e
mov dword [eax + 8], 1
jmp 0x1276ba4
mov eax, dword [ebp + 8]
mov ecx, 0x1021dc8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1276b3c
test dx, dx
je 0x1276b38
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1276b3c
add eax, 4
add ecx, 4
test dx, dx
jne 0x1276b16
xor eax, eax
jmp 0x1276b41
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1276b58
mov eax, dword [ebp - 4]
mov dword [edi + 4], 0x660f
mov dword [eax + 8], 2
jmp 0x1276ba4
mov eax, dword [ebp + 8]
mov ecx, 0x1021d70
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1276b86
test dx, dx
je 0x1276b82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1276b86
add eax, 4
add ecx, 4
test dx, dx
jne 0x1276b60
xor eax, eax
jmp 0x1276b8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1276c18
mov eax, dword [ebp - 4]
mov dword [edi + 4], 0x6610
mov dword [eax + 8], 3
mov ecx, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 0xc]
mov dword [edi + 8], 0xa400
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jne 0x1276c2b
push dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.012756ea
mov esi, eax
test esi, esi
jne 0x1276c2b
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebx + 0x20]
push dword [ebp - 0x1c]
push edi
push dword [ebx + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1276c04
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1276c00
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1276c2b
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp + 0x10]
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x1276c38
mov esi, 0x80049e5b
jmp 0x1276c2b
mov esi, 0x80049e51
jmp 0x1276c38
mov esi, 0x80070057
mov eax, dword [ebp - 4]
test eax, eax
je 0x1276c38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x14]
call fcn.010324e9
push edi
call fcn.010324e9
cmp dword [ebp - 8], 0
pop ecx
pop ecx
je 0x1276c57
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc