Function at 0x427250
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 8
call fcn.004c4d96
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x532144
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp + 0x10], 0x6611
jne 0x4272ff
mov dword [ebp + 0x10], 0x660e
cmp dword [ebp + 0x10], 0x6611
je 0x427337
cmp dword [ebp + 0x10], 0x660e
je 0x427337
cmp dword [ebp + 0x10], 0x660f
je 0x427337
cmp dword [ebp + 0x10], 0x6610
je 0x427337
xor eax, eax
jmp 0x42733c
mov eax, 1
test eax, eax
je 0x427350
mov dword [ebp - 4], 0x18
jmp 0x427357
mov dword [ebp - 4], 1
cmp dword [ebp + 0x24], 0
jne 0x427368
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x4c], esp
push 0xf0000000
push dword [ebp - 4]
push 0x4ee2e4
push 0x4ee2e4
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4273a7
push 0x1ea
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x42740a
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 4]
push 0x4ee2e4
push 0x4ee2e4
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4273f3
push 0x245
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x42740a
mov eax, 0x532144
jmp 0x427d8a
push getsockname
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x42741f
mov eax, 0x532144
push eax
push 1
mov ebx, 0x198
call fcn.004cbae0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x427449
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x427469
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004c4d96
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42747a
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.00426fbc
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4274ac
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push getsockname
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4274c3
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.004cbae0
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0xc]
push dword [ebp - 0x50]
push dword [ebp - 0x14]
mov ecx, 3
call fcn.00412624
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x42751c
push ebx
call fcn.004c4d90
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x427530
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push getsockname
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x427547
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42757b
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x4275a5
push 0x3f0
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4275ed
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4275e3
push 0x425
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0x532144
jmp 0x427d8a
push 0x80000301
push 0
push dword [ebp + 0x24]
push 1
mov ebx, 0x198
call fcn.004cbae0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x427620
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x4c], esp
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42763d
add eax, 8
push eax
push 4
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x42766c
push 0x4ed
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4276e0
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4276a5
push 0x521
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4276d6
push 0x53b
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0x532144
jmp 0x427d8a
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.004c92a0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x427715
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x4c], esp
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x427736
add eax, 8
push eax
push 8
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427765
push 0x607
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x42778a
mov eax, 0x532144
push eax
push 3
mov ebx, 0x19c
call fcn.004c93d0
add esp, 0x28
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp ecx, 0x80000101
jne 0x4277be
and eax, 0xff
jmp 0x427813
cmp ecx, 0x80000201
jne 0x4277c9
cwde
jmp 0x427813
cmp ecx, 0x80000301
je 0x427813
cmp ecx, 0x80000401
je 0x427813
mov dword [ebp - 0x5c], eax
cmp ecx, 0x80000501
je 0x427803
cmp ecx, 0x80000601
je 0x427808
push 0x656
push 0x40fdb1b
push 2
call fcn.004c4d9c
add esp, 0xc
fld dword [ebp - 0x5c]
jmp 0x42780e
mov dword [ebp - 0x58], edx
fld qword [ebp - 0x5c]
call fcn.00402744
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x533768]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.00402744
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4278a4
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427869
push 0x6ea
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x42789a
push 0x704
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0x532144
jmp 0x427d8a
push dword [ebp + 0x1c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.00427e48
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4278ca
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x532144
xor ecx, ecx
test eax, eax
je 0x4278dc
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x4278ef
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x427906
dec eax
test ecx, ecx
je 0x427906
call fcn.0040493c
add esp, 0xc
test eax, eax
jne 0x42794c
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.004c92a0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x427946
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x4c], esp
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x427960
add eax, 8
push eax
push 1
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x42798f
push 0x842
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x427a03
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4279c8
push 0x876
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4279f9
push 0x890
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0x532144
jmp 0x427d8a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004284ac
mov ebx, dword [ebp - 0x2c]
call fcn.0040a9e8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push eax
lea eax, [ebp - 0x34]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x427c7c
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jne 0x427a50
mov dword [ebp - 0x38], 1
jmp 0x427a57
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x34]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x4c], ebx
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.004c92a0
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
push dword [ebx]
mov ecx, 2
call fcn.00412624
add esp, 8
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x427ab7
push ebx
call fcn.004c4d90
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x427acb
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x34]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x4c], ebx
push getsockname
push 0
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x427afd
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
mov dword [ebp - 0x40], eax
push getsockname
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x427b26
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x427b50
add eax, 8
push eax
push 0
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427b87
push 0xb12
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x427bfb
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427bc0
push 0xb5f
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427bf1
push 0xb79
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0x532144
jmp 0x427d8a
push 0x80000301
push 0
push dword [ebp - 0x40]
push getsockname
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x427c18
mov eax, 0x532144
push eax
push 2
mov ebx, 0x1a0
call fcn.004cc6c0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x427c42
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov ecx, 2
call fcn.00412624
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x427c70
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
pop eax
pop ebx
pop ecx
jmp 0x427a2a
add esp, 0xc
push getsockname
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x427c92
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x5c]
fsub qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402744
push 0x80000301
push 0
push eax
push getsockname
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x427ce0
mov eax, 0x532144
push eax
push 2
mov ebx, 0x1a0
call fcn.004cc6c0
add esp, 0x1c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x427d0a
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427d3a
push 0xcb8
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x427d6b
push 0xcd2
push 0x40fdb1b
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x427d85
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004c4d96
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x427d8a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x427d9b
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x427dab
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x427dbb
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x427dcb
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x427ddb
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x427df9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x427df5
imul eax, dword [ebx]
jmp 0x427dea
mov ecx, eax
test ecx, ecx
je 0x427e18
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x427e11
push ebx
push eax
call fcn.004c4d90
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x427dff
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x427e30
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x427e40
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24