Function at 0x418e49
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00418aff
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x418eb8
mov eax, 0x48c3a9
jmp 0x419185
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00449630
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x418eed
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x418f0e
add eax, 8
push eax
push 8
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418f33
push 6
call fcn.004481f1
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x418f58
mov eax, 0x48c3a9
push eax
push 3
mov ebx, 0x19c
call fcn.00449490
add esp, 0x28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, 0x80000101
jne 0x418f8c
and eax, 0xff
jmp 0x418fd7
cmp ecx, 0x80000201
jne 0x418f97
cwde
jmp 0x418fd7
cmp ecx, 0x80000301
je 0x418fd7
cmp ecx, 0x80000401
je 0x418fd7
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000501
je 0x418fc7
cmp ecx, 0x80000601
je 0x418fcc
push 2
call fcn.004481f1
add esp, 4
fld dword [ebp - 0x38]
jmp 0x418fd2
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.00402ffd
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x733f43]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402ffd
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41900b
mov eax, 0x48c3a9
jmp 0x419185
push reloc.WSOCK32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x419020
mov eax, 0x48c3a9
push eax
push 1
mov ebx, 0x194
call fcn.00449860
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], eax
je 0x41904c
mov eax, 0x48c3a9
jmp 0x419185
push dword [ebp + 0xc]
call fcn.00413dbf
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41906b
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 0
je 0x419091
mov dword [ebp - 0x24], 0x20
jmp 0x419098
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4190a9
add eax, 8
push eax
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4190d6
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4190ed
mov eax, 0x48c3a9
jmp 0x419185
push 0x80000301
push 0
push dword [ebp - 0x1c]
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41910a
mov eax, 0x48c3a9
push eax
push 2
mov ebx, 0x1a0
call fcn.00449870
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x419134
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x419166
lea eax, [ebp - 0x18]
push eax
call fcn.00413dbf
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x419162
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419180
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x419185
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x419196
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4191a6
push ebx
call fcn.00448209
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10